Packaging: spec cleanup.
[platform/upstream/pam.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65.
4 #
5 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175   if (eval "$as_required") 2>/dev/null; then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187   IFS=$as_save_IFS
188   test -z "$as_dir" && as_dir=.
189   as_found=:
190   case $as_dir in #(
191          /*)
192            for as_base in sh bash ksh sh5; do
193              # Try only shells that exist, to save several forks.
194              as_shell=$as_dir/$as_base
195              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197   CONFIG_SHELL=$as_shell as_have_required=yes
198                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199   break 2
200 fi
201 fi
202            done;;
203        esac
204   as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208   CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213       if test "x$CONFIG_SHELL" != x; then :
214   # We cannot yet assume a decent shell, so we have to provide a
215         # neutralization value for shells without unset; and this also
216         # works around shells that cannot unset nonexistent variables.
217         BASH_ENV=/dev/null
218         ENV=/dev/null
219         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220         export CONFIG_SHELL
221         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224     if test x$as_have_required = xno; then :
225   $as_echo "$0: This script requires a shell more modern than all"
226   $as_echo "$0: the shells that I found on your system."
227   if test x${ZSH_VERSION+set} = xset ; then
228     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230   else
231     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235   fi
236   exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254   { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263   return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271   set +e
272   as_fn_set_status $1
273   exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282   case $as_dir in #(
283   -*) as_dir=./$as_dir;;
284   esac
285   test -d "$as_dir" || eval $as_mkdir_p || {
286     as_dirs=
287     while :; do
288       case $as_dir in #(
289       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290       *) as_qdir=$as_dir;;
291       esac
292       as_dirs="'$as_qdir' $as_dirs"
293       as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295          X"$as_dir" : 'X\(//\)[^/]' \| \
296          X"$as_dir" : 'X\(//\)$' \| \
297          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300             s//\1/
301             q
302           }
303           /^X\(\/\/\)[^/].*/{
304             s//\1/
305             q
306           }
307           /^X\(\/\/\)$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\).*/{
312             s//\1/
313             q
314           }
315           s/.*/./; q'`
316       test -d "$as_dir" && break
317     done
318     test -z "$as_dirs" || eval "mkdir $as_dirs"
319   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330   eval 'as_fn_append ()
331   {
332     eval $1+=\$2
333   }'
334 else
335   as_fn_append ()
336   {
337     eval $1=\$$1\$2
338   }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347   eval 'as_fn_arith ()
348   {
349     as_val=$(( $* ))
350   }'
351 else
352   as_fn_arith ()
353   {
354     as_val=`expr "$@" || test $? -eq 1`
355   }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366   as_status=$?; test $as_status -eq 0 && as_status=1
367   if test "$3"; then
368     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370   fi
371   $as_echo "$as_me: error: $1" >&2
372   as_fn_exit $as_status
373 } # as_fn_error
374
375 if expr a : '\(a\)' >/dev/null 2>&1 &&
376    test "X`expr 00001 : '.*\(...\)'`" = X001; then
377   as_expr=expr
378 else
379   as_expr=false
380 fi
381
382 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
383   as_basename=basename
384 else
385   as_basename=false
386 fi
387
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389   as_dirname=dirname
390 else
391   as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396          X"$0" : 'X\(//\)$' \| \
397          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" |
399     sed '/^.*\/\([^/][^/]*\)\/*$/{
400             s//\1/
401             q
402           }
403           /^X\/\(\/\/\)$/{
404             s//\1/
405             q
406           }
407           /^X\/\(\/\).*/{
408             s//\1/
409             q
410           }
411           s/.*/./; q'`
412
413 # Avoid depending upon Character Ranges.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits='0123456789'
418 as_cr_alnum=$as_cr_Letters$as_cr_digits
419
420
421   as_lineno_1=$LINENO as_lineno_1a=$LINENO
422   as_lineno_2=$LINENO as_lineno_2a=$LINENO
423   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
426   sed -n '
427     p
428     /[$]LINENO/=
429   ' <$as_myself |
430     sed '
431       s/[$]LINENO.*/&-/
432       t lineno
433       b
434       :lineno
435       N
436       :loop
437       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438       t loop
439       s/-\n.*//
440     ' >$as_me.lineno &&
441   chmod +x "$as_me.lineno" ||
442     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
443
444   # Don't try to exec as it changes $[0], causing all sort of problems
445   # (the dirname of $[0] is not the place where we might find the
446   # original and so on.  Autoconf is especially sensitive to this).
447   . "./$as_me.lineno"
448   # Exit status is that of the last command.
449   exit
450 }
451
452 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #(((((
454 -n*)
455   case `echo 'xy\c'` in
456   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
457   xy)  ECHO_C='\c';;
458   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
459        ECHO_T=' ';;
460   esac;;
461 *)
462   ECHO_N='-n';;
463 esac
464
465 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then
467   rm -f conf$$.dir/conf$$.file
468 else
469   rm -f conf$$.dir
470   mkdir conf$$.dir 2>/dev/null
471 fi
472 if (echo >conf$$.file) 2>/dev/null; then
473   if ln -s conf$$.file conf$$ 2>/dev/null; then
474     as_ln_s='ln -s'
475     # ... but there are two gotchas:
476     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478     # In both cases, we have to default to `cp -p'.
479     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480       as_ln_s='cp -p'
481   elif ln conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s=ln
483   else
484     as_ln_s='cp -p'
485   fi
486 else
487   as_ln_s='cp -p'
488 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null
491
492 if mkdir -p . 2>/dev/null; then
493   as_mkdir_p='mkdir -p "$as_dir"'
494 else
495   test -d ./-p && rmdir ./-p
496   as_mkdir_p=false
497 fi
498
499 if test -x / >/dev/null 2>&1; then
500   as_test_x='test -x'
501 else
502   if ls -dL / >/dev/null 2>&1; then
503     as_ls_L_option=L
504   else
505     as_ls_L_option=
506   fi
507   as_test_x='
508     eval sh -c '\''
509       if test -d "$1"; then
510         test -d "$1/.";
511       else
512         case $1 in #(
513         -*)set "./$1";;
514         esac;
515         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516         ???[sx]*):;;*)false;;esac;fi
517     '\'' sh
518   '
519 fi
520 as_executable_p=$as_test_x
521
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527
528
529
530 # Check that we are running under the correct shell.
531 SHELL=${CONFIG_SHELL-/bin/sh}
532
533 case X$lt_ECHO in
534 X*--fallback-echo)
535   # Remove one level of quotation (which was required for Make).
536   ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
537   ;;
538 esac
539
540 ECHO=${lt_ECHO-echo}
541 if test "X$1" = X--no-reexec; then
542   # Discard the --no-reexec flag, and continue.
543   shift
544 elif test "X$1" = X--fallback-echo; then
545   # Avoid inline document here, it may be left over
546   :
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548   # Yippee, $ECHO works!
549   :
550 else
551   # Restart under the correct shell.
552   exec $SHELL "$0" --no-reexec ${1+"$@"}
553 fi
554
555 if test "X$1" = X--fallback-echo; then
556   # used as fallback echo
557   shift
558   cat <<_LT_EOF
559 $*
560 _LT_EOF
561   exit 0
562 fi
563
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
565 # if CDPATH is set.
566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
567
568 if test -z "$lt_ECHO"; then
569   if test "X${echo_test_string+set}" != Xset; then
570     # find a string as large as possible, as long as the shell can cope with it
571     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572       # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573       if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574          { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
575       then
576         break
577       fi
578     done
579   fi
580
581   if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582      echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583      test "X$echo_testing_string" = "X$echo_test_string"; then
584     :
585   else
586     # The Solaris, AIX, and Digital Unix default echo programs unquote
587     # backslashes.  This makes it impossible to quote backslashes using
588     #   echo "$something" | sed 's/\\/\\\\/g'
589     #
590     # So, first we look for a working echo in the user's PATH.
591
592     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593     for dir in $PATH /usr/ucb; do
594       IFS="$lt_save_ifs"
595       if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596          test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597          echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598          test "X$echo_testing_string" = "X$echo_test_string"; then
599         ECHO="$dir/echo"
600         break
601       fi
602     done
603     IFS="$lt_save_ifs"
604
605     if test "X$ECHO" = Xecho; then
606       # We didn't find a better echo, so look for alternatives.
607       if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608          echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609          test "X$echo_testing_string" = "X$echo_test_string"; then
610         # This shell has a builtin print -r that does the trick.
611         ECHO='print -r'
612       elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613            test "X$CONFIG_SHELL" != X/bin/ksh; then
614         # If we have ksh, try running configure again with it.
615         ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616         export ORIGINAL_CONFIG_SHELL
617         CONFIG_SHELL=/bin/ksh
618         export CONFIG_SHELL
619         exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
620       else
621         # Try using printf.
622         ECHO='printf %s\n'
623         if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624            echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625            test "X$echo_testing_string" = "X$echo_test_string"; then
626           # Cool, printf works
627           :
628         elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629              test "X$echo_testing_string" = 'X\t' &&
630              echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631              test "X$echo_testing_string" = "X$echo_test_string"; then
632           CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
633           export CONFIG_SHELL
634           SHELL="$CONFIG_SHELL"
635           export SHELL
636           ECHO="$CONFIG_SHELL $0 --fallback-echo"
637         elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638              test "X$echo_testing_string" = 'X\t' &&
639              echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640              test "X$echo_testing_string" = "X$echo_test_string"; then
641           ECHO="$CONFIG_SHELL $0 --fallback-echo"
642         else
643           # maybe with a smaller string...
644           prev=:
645
646           for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647             if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
648             then
649               break
650             fi
651             prev="$cmd"
652           done
653
654           if test "$prev" != 'sed 50q "$0"'; then
655             echo_test_string=`eval $prev`
656             export echo_test_string
657             exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
658           else
659             # Oops.  We lost completely, so just stick with echo.
660             ECHO=echo
661           fi
662         fi
663       fi
664     fi
665   fi
666 fi
667
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
670 lt_ECHO=$ECHO
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672    lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
673 fi
674
675
676
677
678 test -n "$DJDIR" || exec 7<&0 </dev/null
679 exec 6>&1
680
681 # Name of the host.
682 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
685
686 #
687 # Initializations.
688 #
689 ac_default_prefix=/usr/local
690 ac_clean_files=
691 ac_config_libobj_dir=.
692 LIBOBJS=
693 cross_compiling=no
694 subdirs=
695 MFLAGS=
696 MAKEFLAGS=
697
698 # Identity of this package.
699 PACKAGE_NAME=
700 PACKAGE_TARNAME=
701 PACKAGE_VERSION=
702 PACKAGE_STRING=
703 PACKAGE_BUGREPORT=
704 PACKAGE_URL=
705
706 ac_unique_file="conf/pam_conv1/pam_conv_y.y"
707 ac_default_prefix=/usr
708 # Factoring default headers for most tests.
709 ac_includes_default="\
710 #include <stdio.h>
711 #ifdef HAVE_SYS_TYPES_H
712 # include <sys/types.h>
713 #endif
714 #ifdef HAVE_SYS_STAT_H
715 # include <sys/stat.h>
716 #endif
717 #ifdef STDC_HEADERS
718 # include <stdlib.h>
719 # include <stddef.h>
720 #else
721 # ifdef HAVE_STDLIB_H
722 #  include <stdlib.h>
723 # endif
724 #endif
725 #ifdef HAVE_STRING_H
726 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
727 #  include <memory.h>
728 # endif
729 # include <string.h>
730 #endif
731 #ifdef HAVE_STRINGS_H
732 # include <strings.h>
733 #endif
734 #ifdef HAVE_INTTYPES_H
735 # include <inttypes.h>
736 #endif
737 #ifdef HAVE_STDINT_H
738 # include <stdint.h>
739 #endif
740 #ifdef HAVE_UNISTD_H
741 # include <unistd.h>
742 #endif"
743
744 ac_subst_vars='am__EXEEXT_FALSE
745 am__EXEEXT_TRUE
746 LTLIBOBJS
747 HAVE_KEY_MANAGEMENT_FALSE
748 HAVE_KEY_MANAGEMENT_TRUE
749 HAVE_KEY_MANAGEMENT
750 POSUB
751 LTLIBINTL
752 LIBINTL
753 INTLLIBS
754 LTLIBICONV
755 LIBICONV
756 INTL_MACOSX_LIBS
757 MSGMERGE
758 XGETTEXT_015
759 XGETTEXT
760 GMSGFMT_015
761 MSGFMT_015
762 GMSGFMT
763 MSGFMT
764 USE_NLS
765 ENABLE_GENERATE_PDF_FALSE
766 ENABLE_GENERATE_PDF_TRUE
767 ENABLE_REGENERATE_MAN_FALSE
768 ENABLE_REGENERATE_MAN_TRUE
769 FO2PDF
770 BROWSER
771 XMLCATALOG
772 XML_CATALOG_FILE
773 XMLLINT
774 XSLTPROC
775 HAVE_UNSHARE_FALSE
776 HAVE_UNSHARE_TRUE
777 LIBOBJS
778 HAVE_LIBSELINUX_FALSE
779 HAVE_LIBSELINUX_TRUE
780 LIBSELINUX
781 NIS_LIBS
782 NIS_CFLAGS
783 libtirpc_LIBS
784 libtirpc_CFLAGS
785 PKG_CONFIG
786 HAVE_LIBDB_FALSE
787 HAVE_LIBDB_TRUE
788 LIBDB
789 LIBCRYPT
790 HAVE_AUDIT_TTY_STATUS_FALSE
791 HAVE_AUDIT_TTY_STATUS_TRUE
792 LIBAUDIT
793 HAVE_LIBCRACK_FALSE
794 HAVE_LIBCRACK_TRUE
795 LIBCRACK
796 LIBDL
797 pam_xauth_path
798 SCONFIGDIR
799 SECUREDIR
800 LIBPRELUDE_CONFIG_PREFIX
801 LIBPRELUDE_PREFIX
802 LIBPRELUDE_LIBS
803 LIBPRELUDE_LDFLAGS
804 LIBPRELUDE_PTHREAD_CFLAGS
805 LIBPRELUDE_CFLAGS
806 LIBPRELUDE_CONFIG
807 PIE_LDFLAGS
808 PIE_CFLAGS
809 libc_cv_fpie
810 HAVE_VERSIONING_FALSE
811 HAVE_VERSIONING_TRUE
812 BUILD_LDFLAGS
813 BUILD_CFLAGS
814 CC_FOR_BUILD
815 pam_cv_ld_O1
816 pam_cv_ld_no_undefined
817 pam_cv_ld_as_needed
818 OTOOL64
819 OTOOL
820 LIPO
821 NMEDIT
822 DSYMUTIL
823 lt_ECHO
824 RANLIB
825 AR
826 OBJDUMP
827 NM
828 ac_ct_DUMPBIN
829 DUMPBIN
830 LD
831 FGREP
832 SED
833 LIBTOOL
834 LN_S
835 LEXLIB
836 LEX_OUTPUT_ROOT
837 LEX
838 YFLAGS
839 YACC
840 EGREP
841 GREP
842 CPP
843 am__fastdepCC_FALSE
844 am__fastdepCC_TRUE
845 CCDEPMODE
846 AMDEPBACKSLASH
847 AMDEP_FALSE
848 AMDEP_TRUE
849 am__quote
850 am__include
851 DEPDIR
852 OBJEXT
853 EXEEXT
854 ac_ct_CC
855 CPPFLAGS
856 LDFLAGS
857 CFLAGS
858 CC
859 STATIC_MODULES_FALSE
860 STATIC_MODULES_TRUE
861 host_os
862 host_vendor
863 host_cpu
864 host
865 build_os
866 build_vendor
867 build_cpu
868 build
869 am__untar
870 am__tar
871 AMTAR
872 am__leading_dot
873 SET_MAKE
874 AWK
875 mkdir_p
876 MKDIR_P
877 INSTALL_STRIP_PROGRAM
878 STRIP
879 install_sh
880 MAKEINFO
881 AUTOHEADER
882 AUTOMAKE
883 AUTOCONF
884 ACLOCAL
885 VERSION
886 PACKAGE
887 CYGPATH_W
888 am__isrc
889 INSTALL_DATA
890 INSTALL_SCRIPT
891 INSTALL_PROGRAM
892 target_alias
893 host_alias
894 build_alias
895 LIBS
896 ECHO_T
897 ECHO_N
898 ECHO_C
899 DEFS
900 mandir
901 localedir
902 libdir
903 psdir
904 pdfdir
905 dvidir
906 htmldir
907 infodir
908 docdir
909 oldincludedir
910 includedir
911 localstatedir
912 sharedstatedir
913 sysconfdir
914 datadir
915 datarootdir
916 libexecdir
917 sbindir
918 bindir
919 program_transform_name
920 prefix
921 exec_prefix
922 PACKAGE_URL
923 PACKAGE_BUGREPORT
924 PACKAGE_STRING
925 PACKAGE_VERSION
926 PACKAGE_TARNAME
927 PACKAGE_NAME
928 PATH_SEPARATOR
929 SHELL'
930 ac_subst_files=''
931 ac_user_opts='
932 enable_option_checking
933 enable_static_modules
934 enable_static
935 enable_shared
936 enable_dependency_tracking
937 with_pic
938 enable_fast_install
939 with_gnu_ld
940 enable_libtool_lock
941 enable_largefile
942 enable_pie
943 enable_prelude
944 with_libprelude_prefix
945 enable_debug
946 enable_securedir
947 enable_isadir
948 enable_sconfigdir
949 enable_pamlocking
950 enable_read_both_confs
951 enable_lckpwdf
952 with_mailspool
953 with_xauth
954 enable_cracklib
955 enable_audit
956 with_randomdev
957 enable_db
958 with_db_uniquename
959 enable_nis
960 enable_selinux
961 enable_regenerate_docu
962 with_xml_catalog
963 enable_nls
964 enable_rpath
965 with_libiconv_prefix
966 with_libintl_prefix
967 '
968       ac_precious_vars='build_alias
969 host_alias
970 target_alias
971 CC
972 CFLAGS
973 LDFLAGS
974 LIBS
975 CPPFLAGS
976 CPP
977 YACC
978 YFLAGS
979 PKG_CONFIG
980 libtirpc_CFLAGS
981 libtirpc_LIBS'
982
983
984 # Initialize some variables set by options.
985 ac_init_help=
986 ac_init_version=false
987 ac_unrecognized_opts=
988 ac_unrecognized_sep=
989 # The variables have the same names as the options, with
990 # dashes changed to underlines.
991 cache_file=/dev/null
992 exec_prefix=NONE
993 no_create=
994 no_recursion=
995 prefix=NONE
996 program_prefix=NONE
997 program_suffix=NONE
998 program_transform_name=s,x,x,
999 silent=
1000 site=
1001 srcdir=
1002 verbose=
1003 x_includes=NONE
1004 x_libraries=NONE
1005
1006 # Installation directory options.
1007 # These are left unexpanded so users can "make install exec_prefix=/foo"
1008 # and all the variables that are supposed to be based on exec_prefix
1009 # by default will actually change.
1010 # Use braces instead of parens because sh, perl, etc. also accept them.
1011 # (The list follows the same order as the GNU Coding Standards.)
1012 bindir='${exec_prefix}/bin'
1013 sbindir='${exec_prefix}/sbin'
1014 libexecdir='${exec_prefix}/libexec'
1015 datarootdir='${prefix}/share'
1016 datadir='${datarootdir}'
1017 sysconfdir='${prefix}/etc'
1018 sharedstatedir='${prefix}/com'
1019 localstatedir='${prefix}/var'
1020 includedir='${prefix}/include'
1021 oldincludedir='/usr/include'
1022 docdir='${datarootdir}/doc/${PACKAGE}'
1023 infodir='${datarootdir}/info'
1024 htmldir='${docdir}'
1025 dvidir='${docdir}'
1026 pdfdir='${docdir}'
1027 psdir='${docdir}'
1028 libdir='${exec_prefix}/lib'
1029 localedir='${datarootdir}/locale'
1030 mandir='${datarootdir}/man'
1031
1032 ac_prev=
1033 ac_dashdash=
1034 for ac_option
1035 do
1036   # If the previous option needs an argument, assign it.
1037   if test -n "$ac_prev"; then
1038     eval $ac_prev=\$ac_option
1039     ac_prev=
1040     continue
1041   fi
1042
1043   case $ac_option in
1044   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1045   *)    ac_optarg=yes ;;
1046   esac
1047
1048   # Accept the important Cygnus configure options, so we can diagnose typos.
1049
1050   case $ac_dashdash$ac_option in
1051   --)
1052     ac_dashdash=yes ;;
1053
1054   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1055     ac_prev=bindir ;;
1056   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1057     bindir=$ac_optarg ;;
1058
1059   -build | --build | --buil | --bui | --bu)
1060     ac_prev=build_alias ;;
1061   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1062     build_alias=$ac_optarg ;;
1063
1064   -cache-file | --cache-file | --cache-fil | --cache-fi \
1065   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1066     ac_prev=cache_file ;;
1067   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1068   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1069     cache_file=$ac_optarg ;;
1070
1071   --config-cache | -C)
1072     cache_file=config.cache ;;
1073
1074   -datadir | --datadir | --datadi | --datad)
1075     ac_prev=datadir ;;
1076   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1077     datadir=$ac_optarg ;;
1078
1079   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1080   | --dataroo | --dataro | --datar)
1081     ac_prev=datarootdir ;;
1082   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1083   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1084     datarootdir=$ac_optarg ;;
1085
1086   -disable-* | --disable-*)
1087     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1088     # Reject names that are not valid shell variable names.
1089     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1090       as_fn_error "invalid feature name: $ac_useropt"
1091     ac_useropt_orig=$ac_useropt
1092     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1093     case $ac_user_opts in
1094       *"
1095 "enable_$ac_useropt"
1096 "*) ;;
1097       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1098          ac_unrecognized_sep=', ';;
1099     esac
1100     eval enable_$ac_useropt=no ;;
1101
1102   -docdir | --docdir | --docdi | --doc | --do)
1103     ac_prev=docdir ;;
1104   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1105     docdir=$ac_optarg ;;
1106
1107   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1108     ac_prev=dvidir ;;
1109   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1110     dvidir=$ac_optarg ;;
1111
1112   -enable-* | --enable-*)
1113     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1114     # Reject names that are not valid shell variable names.
1115     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1116       as_fn_error "invalid feature name: $ac_useropt"
1117     ac_useropt_orig=$ac_useropt
1118     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1119     case $ac_user_opts in
1120       *"
1121 "enable_$ac_useropt"
1122 "*) ;;
1123       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1124          ac_unrecognized_sep=', ';;
1125     esac
1126     eval enable_$ac_useropt=\$ac_optarg ;;
1127
1128   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1129   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1130   | --exec | --exe | --ex)
1131     ac_prev=exec_prefix ;;
1132   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1133   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1134   | --exec=* | --exe=* | --ex=*)
1135     exec_prefix=$ac_optarg ;;
1136
1137   -gas | --gas | --ga | --g)
1138     # Obsolete; use --with-gas.
1139     with_gas=yes ;;
1140
1141   -help | --help | --hel | --he | -h)
1142     ac_init_help=long ;;
1143   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1144     ac_init_help=recursive ;;
1145   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1146     ac_init_help=short ;;
1147
1148   -host | --host | --hos | --ho)
1149     ac_prev=host_alias ;;
1150   -host=* | --host=* | --hos=* | --ho=*)
1151     host_alias=$ac_optarg ;;
1152
1153   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1154     ac_prev=htmldir ;;
1155   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1156   | --ht=*)
1157     htmldir=$ac_optarg ;;
1158
1159   -includedir | --includedir | --includedi | --included | --include \
1160   | --includ | --inclu | --incl | --inc)
1161     ac_prev=includedir ;;
1162   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1163   | --includ=* | --inclu=* | --incl=* | --inc=*)
1164     includedir=$ac_optarg ;;
1165
1166   -infodir | --infodir | --infodi | --infod | --info | --inf)
1167     ac_prev=infodir ;;
1168   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1169     infodir=$ac_optarg ;;
1170
1171   -libdir | --libdir | --libdi | --libd)
1172     ac_prev=libdir ;;
1173   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1174     libdir=$ac_optarg ;;
1175
1176   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1177   | --libexe | --libex | --libe)
1178     ac_prev=libexecdir ;;
1179   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1180   | --libexe=* | --libex=* | --libe=*)
1181     libexecdir=$ac_optarg ;;
1182
1183   -localedir | --localedir | --localedi | --localed | --locale)
1184     ac_prev=localedir ;;
1185   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1186     localedir=$ac_optarg ;;
1187
1188   -localstatedir | --localstatedir | --localstatedi | --localstated \
1189   | --localstate | --localstat | --localsta | --localst | --locals)
1190     ac_prev=localstatedir ;;
1191   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1192   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1193     localstatedir=$ac_optarg ;;
1194
1195   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1196     ac_prev=mandir ;;
1197   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1198     mandir=$ac_optarg ;;
1199
1200   -nfp | --nfp | --nf)
1201     # Obsolete; use --without-fp.
1202     with_fp=no ;;
1203
1204   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1205   | --no-cr | --no-c | -n)
1206     no_create=yes ;;
1207
1208   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1209   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1210     no_recursion=yes ;;
1211
1212   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1213   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1214   | --oldin | --oldi | --old | --ol | --o)
1215     ac_prev=oldincludedir ;;
1216   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1217   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1218   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1219     oldincludedir=$ac_optarg ;;
1220
1221   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1222     ac_prev=prefix ;;
1223   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1224     prefix=$ac_optarg ;;
1225
1226   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1227   | --program-pre | --program-pr | --program-p)
1228     ac_prev=program_prefix ;;
1229   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1230   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1231     program_prefix=$ac_optarg ;;
1232
1233   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1234   | --program-suf | --program-su | --program-s)
1235     ac_prev=program_suffix ;;
1236   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1237   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1238     program_suffix=$ac_optarg ;;
1239
1240   -program-transform-name | --program-transform-name \
1241   | --program-transform-nam | --program-transform-na \
1242   | --program-transform-n | --program-transform- \
1243   | --program-transform | --program-transfor \
1244   | --program-transfo | --program-transf \
1245   | --program-trans | --program-tran \
1246   | --progr-tra | --program-tr | --program-t)
1247     ac_prev=program_transform_name ;;
1248   -program-transform-name=* | --program-transform-name=* \
1249   | --program-transform-nam=* | --program-transform-na=* \
1250   | --program-transform-n=* | --program-transform-=* \
1251   | --program-transform=* | --program-transfor=* \
1252   | --program-transfo=* | --program-transf=* \
1253   | --program-trans=* | --program-tran=* \
1254   | --progr-tra=* | --program-tr=* | --program-t=*)
1255     program_transform_name=$ac_optarg ;;
1256
1257   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1258     ac_prev=pdfdir ;;
1259   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1260     pdfdir=$ac_optarg ;;
1261
1262   -psdir | --psdir | --psdi | --psd | --ps)
1263     ac_prev=psdir ;;
1264   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1265     psdir=$ac_optarg ;;
1266
1267   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1268   | -silent | --silent | --silen | --sile | --sil)
1269     silent=yes ;;
1270
1271   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1272     ac_prev=sbindir ;;
1273   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1274   | --sbi=* | --sb=*)
1275     sbindir=$ac_optarg ;;
1276
1277   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1278   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1279   | --sharedst | --shareds | --shared | --share | --shar \
1280   | --sha | --sh)
1281     ac_prev=sharedstatedir ;;
1282   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1283   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1284   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1285   | --sha=* | --sh=*)
1286     sharedstatedir=$ac_optarg ;;
1287
1288   -site | --site | --sit)
1289     ac_prev=site ;;
1290   -site=* | --site=* | --sit=*)
1291     site=$ac_optarg ;;
1292
1293   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1294     ac_prev=srcdir ;;
1295   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1296     srcdir=$ac_optarg ;;
1297
1298   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1299   | --syscon | --sysco | --sysc | --sys | --sy)
1300     ac_prev=sysconfdir ;;
1301   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1302   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1303     sysconfdir=$ac_optarg ;;
1304
1305   -target | --target | --targe | --targ | --tar | --ta | --t)
1306     ac_prev=target_alias ;;
1307   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1308     target_alias=$ac_optarg ;;
1309
1310   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1311     verbose=yes ;;
1312
1313   -version | --version | --versio | --versi | --vers | -V)
1314     ac_init_version=: ;;
1315
1316   -with-* | --with-*)
1317     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1318     # Reject names that are not valid shell variable names.
1319     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1320       as_fn_error "invalid package name: $ac_useropt"
1321     ac_useropt_orig=$ac_useropt
1322     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1323     case $ac_user_opts in
1324       *"
1325 "with_$ac_useropt"
1326 "*) ;;
1327       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1328          ac_unrecognized_sep=', ';;
1329     esac
1330     eval with_$ac_useropt=\$ac_optarg ;;
1331
1332   -without-* | --without-*)
1333     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1334     # Reject names that are not valid shell variable names.
1335     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1336       as_fn_error "invalid package name: $ac_useropt"
1337     ac_useropt_orig=$ac_useropt
1338     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1339     case $ac_user_opts in
1340       *"
1341 "with_$ac_useropt"
1342 "*) ;;
1343       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1344          ac_unrecognized_sep=', ';;
1345     esac
1346     eval with_$ac_useropt=no ;;
1347
1348   --x)
1349     # Obsolete; use --with-x.
1350     with_x=yes ;;
1351
1352   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1353   | --x-incl | --x-inc | --x-in | --x-i)
1354     ac_prev=x_includes ;;
1355   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1356   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1357     x_includes=$ac_optarg ;;
1358
1359   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1360   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1361     ac_prev=x_libraries ;;
1362   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1363   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1364     x_libraries=$ac_optarg ;;
1365
1366   -*) as_fn_error "unrecognized option: \`$ac_option'
1367 Try \`$0 --help' for more information."
1368     ;;
1369
1370   *=*)
1371     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1372     # Reject names that are not valid shell variable names.
1373     case $ac_envvar in #(
1374       '' | [0-9]* | *[!_$as_cr_alnum]* )
1375       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1376     esac
1377     eval $ac_envvar=\$ac_optarg
1378     export $ac_envvar ;;
1379
1380   *)
1381     # FIXME: should be removed in autoconf 3.0.
1382     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1383     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1384       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1385     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1386     ;;
1387
1388   esac
1389 done
1390
1391 if test -n "$ac_prev"; then
1392   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1393   as_fn_error "missing argument to $ac_option"
1394 fi
1395
1396 if test -n "$ac_unrecognized_opts"; then
1397   case $enable_option_checking in
1398     no) ;;
1399     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1400     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1401   esac
1402 fi
1403
1404 # Check all directory arguments for consistency.
1405 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1406                 datadir sysconfdir sharedstatedir localstatedir includedir \
1407                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1408                 libdir localedir mandir
1409 do
1410   eval ac_val=\$$ac_var
1411   # Remove trailing slashes.
1412   case $ac_val in
1413     */ )
1414       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1415       eval $ac_var=\$ac_val;;
1416   esac
1417   # Be sure to have absolute directory names.
1418   case $ac_val in
1419     [\\/$]* | ?:[\\/]* )  continue;;
1420     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1421   esac
1422   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1423 done
1424
1425 # There might be people who depend on the old broken behavior: `$host'
1426 # used to hold the argument of --host etc.
1427 # FIXME: To remove some day.
1428 build=$build_alias
1429 host=$host_alias
1430 target=$target_alias
1431
1432 # FIXME: To remove some day.
1433 if test "x$host_alias" != x; then
1434   if test "x$build_alias" = x; then
1435     cross_compiling=maybe
1436     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1437     If a cross compiler is detected then cross compile mode will be used." >&2
1438   elif test "x$build_alias" != "x$host_alias"; then
1439     cross_compiling=yes
1440   fi
1441 fi
1442
1443 ac_tool_prefix=
1444 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1445
1446 test "$silent" = yes && exec 6>/dev/null
1447
1448
1449 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1450 ac_ls_di=`ls -di .` &&
1451 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1452   as_fn_error "working directory cannot be determined"
1453 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1454   as_fn_error "pwd does not report name of working directory"
1455
1456
1457 # Find the source files, if location was not specified.
1458 if test -z "$srcdir"; then
1459   ac_srcdir_defaulted=yes
1460   # Try the directory containing this script, then the parent directory.
1461   ac_confdir=`$as_dirname -- "$as_myself" ||
1462 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1463          X"$as_myself" : 'X\(//\)[^/]' \| \
1464          X"$as_myself" : 'X\(//\)$' \| \
1465          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1466 $as_echo X"$as_myself" |
1467     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1468             s//\1/
1469             q
1470           }
1471           /^X\(\/\/\)[^/].*/{
1472             s//\1/
1473             q
1474           }
1475           /^X\(\/\/\)$/{
1476             s//\1/
1477             q
1478           }
1479           /^X\(\/\).*/{
1480             s//\1/
1481             q
1482           }
1483           s/.*/./; q'`
1484   srcdir=$ac_confdir
1485   if test ! -r "$srcdir/$ac_unique_file"; then
1486     srcdir=..
1487   fi
1488 else
1489   ac_srcdir_defaulted=no
1490 fi
1491 if test ! -r "$srcdir/$ac_unique_file"; then
1492   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1493   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1494 fi
1495 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1496 ac_abs_confdir=`(
1497         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1498         pwd)`
1499 # When building in place, set srcdir=.
1500 if test "$ac_abs_confdir" = "$ac_pwd"; then
1501   srcdir=.
1502 fi
1503 # Remove unnecessary trailing slashes from srcdir.
1504 # Double slashes in file names in object file debugging info
1505 # mess up M-x gdb in Emacs.
1506 case $srcdir in
1507 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1508 esac
1509 for ac_var in $ac_precious_vars; do
1510   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1511   eval ac_env_${ac_var}_value=\$${ac_var}
1512   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1513   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1514 done
1515
1516 #
1517 # Report the --help message.
1518 #
1519 if test "$ac_init_help" = "long"; then
1520   # Omit some internal or obsolete options to make the list less imposing.
1521   # This message is too long to be a string in the A/UX 3.1 sh.
1522   cat <<_ACEOF
1523 \`configure' configures this package to adapt to many kinds of systems.
1524
1525 Usage: $0 [OPTION]... [VAR=VALUE]...
1526
1527 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1528 VAR=VALUE.  See below for descriptions of some of the useful variables.
1529
1530 Defaults for the options are specified in brackets.
1531
1532 Configuration:
1533   -h, --help              display this help and exit
1534       --help=short        display options specific to this package
1535       --help=recursive    display the short help of all the included packages
1536   -V, --version           display version information and exit
1537   -q, --quiet, --silent   do not print \`checking...' messages
1538       --cache-file=FILE   cache test results in FILE [disabled]
1539   -C, --config-cache      alias for \`--cache-file=config.cache'
1540   -n, --no-create         do not create output files
1541       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1542
1543 Installation directories:
1544   --prefix=PREFIX         install architecture-independent files in PREFIX
1545                           [$ac_default_prefix]
1546   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1547                           [PREFIX]
1548
1549 By default, \`make install' will install all the files in
1550 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1551 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1552 for instance \`--prefix=\$HOME'.
1553
1554 For better control, use the options below.
1555
1556 Fine tuning of the installation directories:
1557   --bindir=DIR            user executables [EPREFIX/bin]
1558   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1559   --libexecdir=DIR        program executables [EPREFIX/libexec]
1560   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1561   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1562   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1563   --libdir=DIR            object code libraries [EPREFIX/lib]
1564   --includedir=DIR        C header files [PREFIX/include]
1565   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1566   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1567   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1568   --infodir=DIR           info documentation [DATAROOTDIR/info]
1569   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1570   --mandir=DIR            man documentation [DATAROOTDIR/man]
1571   --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1572   --htmldir=DIR           html documentation [DOCDIR]
1573   --dvidir=DIR            dvi documentation [DOCDIR]
1574   --pdfdir=DIR            pdf documentation [DOCDIR]
1575   --psdir=DIR             ps documentation [DOCDIR]
1576 _ACEOF
1577
1578   cat <<\_ACEOF
1579
1580 Program names:
1581   --program-prefix=PREFIX            prepend PREFIX to installed program names
1582   --program-suffix=SUFFIX            append SUFFIX to installed program names
1583   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1584
1585 System types:
1586   --build=BUILD     configure for building on BUILD [guessed]
1587   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1588 _ACEOF
1589 fi
1590
1591 if test -n "$ac_init_help"; then
1592
1593   cat <<\_ACEOF
1594
1595 Optional Features:
1596   --disable-option-checking  ignore unrecognized --enable/--with options
1597   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1598   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1599   --enable-static-modules do not make the modules dynamically loadable
1600   --enable-static[=PKGS]  build static libraries [default=yes]
1601   --enable-shared[=PKGS]  build shared libraries [default=no]
1602   --disable-dependency-tracking  speeds up one-time build
1603   --enable-dependency-tracking   do not reject slow dependency extractors
1604   --enable-fast-install[=PKGS]
1605                           optimize for fast installation [default=yes]
1606   --disable-libtool-lock  avoid locking (might break parallel builds)
1607   --disable-largefile     omit support for large files
1608   --disable-pie           disable position-independent executeables (PIE)
1609   --disable-prelude       do not use prelude
1610   --enable-debug          specify you are building with debugging on
1611   --enable-securedir=DIR  path to location of PAMs [default=$libdir/security]
1612   --enable-isadir=DIR     path to arch-specific module files
1613                           [default=../../(basename of $libdir)/security]
1614   --enable-sconfigdir=DIR path to module conf files
1615                           [default=$sysconfdir/security]
1616   --enable-pamlocking     configure libpam to observe a global authentication
1617                           lock
1618   --enable-read-both-confs
1619                           read both /etc/pam.d and /etc/pam.conf files
1620   --disable-lckpwdf       do not use the lckpwdf function
1621   --disable-cracklib      do not use cracklib
1622   --disable-audit         do not enable audit support
1623   --enable-db=(db|ndbm|yes|no)
1624                           Default behavior 'yes', which is to check for libdb
1625                           first, followed by ndbm. Use 'no' to disable db
1626                           support.
1627   --disable-nis           Disable building NIS/YP support in pam_unix and
1628                           pam_access
1629   --disable-selinux       do not use SELinux
1630   --disable-regenerate-docu
1631                           Don't re-build documentation from XML souces
1632   --disable-nls           do not use Native Language Support
1633   --disable-rpath         do not hardcode runtime library paths
1634
1635 Optional Packages:
1636   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1637   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1638   --with-pic              try to use only PIC/non-PIC objects [default=use
1639                           both]
1640   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1641   --with-libprelude-prefix=PFX
1642                           Prefix where libprelude is installed (optional)
1643   --with-mailspool        path to mail spool directory
1644                           default _PATH_MAILDIR if defined in paths.h, otherwise /var/spool/mail
1645   --with-xauth            additional path to check for xauth when it is called from pam_xauth
1646                           added to the default of /usr/X11R6/bin/xauth, /usr/bin/xauth, /usr/bin/X11/xauth
1647   --with-randomdev=(<path>|yes|no)
1648                           use specified random device instead of /dev/urandom
1649                           or 'no' to disable
1650   --with-db-uniquename=extension
1651                           Unique name for db libraries and functions.
1652   --with-xml-catalog=CATALOG
1653                           path to xml catalog to use
1654   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1655   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1656   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1657   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1658   --without-libintl-prefix     don't search for libintl in includedir and libdir
1659
1660 Some influential environment variables:
1661   CC          C compiler command
1662   CFLAGS      C compiler flags
1663   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1664               nonstandard directory <lib dir>
1665   LIBS        libraries to pass to the linker, e.g. -l<library>
1666   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1667               you have headers in a nonstandard directory <include dir>
1668   CPP         C preprocessor
1669   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1670               the first program found out of: `bison -y', `byacc', `yacc'.
1671   YFLAGS      The list of arguments that will be passed by default to $YACC.
1672               This script will default YFLAGS to the empty string to avoid a
1673               default value of `-d' given by some make applications.
1674   PKG_CONFIG  path to pkg-config utility
1675   libtirpc_CFLAGS
1676               C compiler flags for libtirpc, overriding pkg-config
1677   libtirpc_LIBS
1678               linker flags for libtirpc, overriding pkg-config
1679
1680 Use these variables to override the choices made by `configure' or to help
1681 it to find libraries and programs with nonstandard names/locations.
1682
1683 Report bugs to the package provider.
1684 _ACEOF
1685 ac_status=$?
1686 fi
1687
1688 if test "$ac_init_help" = "recursive"; then
1689   # If there are subdirs, report their specific --help.
1690   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1691     test -d "$ac_dir" ||
1692       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1693       continue
1694     ac_builddir=.
1695
1696 case "$ac_dir" in
1697 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1698 *)
1699   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1700   # A ".." for each directory in $ac_dir_suffix.
1701   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1702   case $ac_top_builddir_sub in
1703   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1704   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1705   esac ;;
1706 esac
1707 ac_abs_top_builddir=$ac_pwd
1708 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1709 # for backward compatibility:
1710 ac_top_builddir=$ac_top_build_prefix
1711
1712 case $srcdir in
1713   .)  # We are building in place.
1714     ac_srcdir=.
1715     ac_top_srcdir=$ac_top_builddir_sub
1716     ac_abs_top_srcdir=$ac_pwd ;;
1717   [\\/]* | ?:[\\/]* )  # Absolute name.
1718     ac_srcdir=$srcdir$ac_dir_suffix;
1719     ac_top_srcdir=$srcdir
1720     ac_abs_top_srcdir=$srcdir ;;
1721   *) # Relative name.
1722     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1723     ac_top_srcdir=$ac_top_build_prefix$srcdir
1724     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1725 esac
1726 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1727
1728     cd "$ac_dir" || { ac_status=$?; continue; }
1729     # Check for guested configure.
1730     if test -f "$ac_srcdir/configure.gnu"; then
1731       echo &&
1732       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733     elif test -f "$ac_srcdir/configure"; then
1734       echo &&
1735       $SHELL "$ac_srcdir/configure" --help=recursive
1736     else
1737       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1738     fi || ac_status=$?
1739     cd "$ac_pwd" || { ac_status=$?; break; }
1740   done
1741 fi
1742
1743 test -n "$ac_init_help" && exit $ac_status
1744 if $ac_init_version; then
1745   cat <<\_ACEOF
1746 configure
1747 generated by GNU Autoconf 2.65
1748
1749 Copyright (C) 2009 Free Software Foundation, Inc.
1750 This configure script is free software; the Free Software Foundation
1751 gives unlimited permission to copy, distribute and modify it.
1752 _ACEOF
1753   exit
1754 fi
1755
1756 ## ------------------------ ##
1757 ## Autoconf initialization. ##
1758 ## ------------------------ ##
1759
1760 # ac_fn_c_try_compile LINENO
1761 # --------------------------
1762 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1763 ac_fn_c_try_compile ()
1764 {
1765   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1766   rm -f conftest.$ac_objext
1767   if { { ac_try="$ac_compile"
1768 case "(($ac_try" in
1769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770   *) ac_try_echo=$ac_try;;
1771 esac
1772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1773 $as_echo "$ac_try_echo"; } >&5
1774   (eval "$ac_compile") 2>conftest.err
1775   ac_status=$?
1776   if test -s conftest.err; then
1777     grep -v '^ *+' conftest.err >conftest.er1
1778     cat conftest.er1 >&5
1779     mv -f conftest.er1 conftest.err
1780   fi
1781   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782   test $ac_status = 0; } && {
1783          test -z "$ac_c_werror_flag" ||
1784          test ! -s conftest.err
1785        } && test -s conftest.$ac_objext; then :
1786   ac_retval=0
1787 else
1788   $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1790
1791         ac_retval=1
1792 fi
1793   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794   as_fn_set_status $ac_retval
1795
1796 } # ac_fn_c_try_compile
1797
1798 # ac_fn_c_try_cpp LINENO
1799 # ----------------------
1800 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1801 ac_fn_c_try_cpp ()
1802 {
1803   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804   if { { ac_try="$ac_cpp conftest.$ac_ext"
1805 case "(($ac_try" in
1806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807   *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1812   ac_status=$?
1813   if test -s conftest.err; then
1814     grep -v '^ *+' conftest.err >conftest.er1
1815     cat conftest.er1 >&5
1816     mv -f conftest.er1 conftest.err
1817   fi
1818   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819   test $ac_status = 0; } >/dev/null && {
1820          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1821          test ! -s conftest.err
1822        }; then :
1823   ac_retval=0
1824 else
1825   $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828     ac_retval=1
1829 fi
1830   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1831   as_fn_set_status $ac_retval
1832
1833 } # ac_fn_c_try_cpp
1834
1835 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1836 # -------------------------------------------------------
1837 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1838 # the include files in INCLUDES and setting the cache variable VAR
1839 # accordingly.
1840 ac_fn_c_check_header_mongrel ()
1841 {
1842   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1844   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1845 $as_echo_n "checking for $2... " >&6; }
1846 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1847   $as_echo_n "(cached) " >&6
1848 fi
1849 eval ac_res=\$$3
1850                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 else
1853   # Is the header compilable?
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1855 $as_echo_n "checking $2 usability... " >&6; }
1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1857 /* end confdefs.h.  */
1858 $4
1859 #include <$2>
1860 _ACEOF
1861 if ac_fn_c_try_compile "$LINENO"; then :
1862   ac_header_compiler=yes
1863 else
1864   ac_header_compiler=no
1865 fi
1866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1868 $as_echo "$ac_header_compiler" >&6; }
1869
1870 # Is the header present?
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1872 $as_echo_n "checking $2 presence... " >&6; }
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h.  */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1878   ac_header_preproc=yes
1879 else
1880   ac_header_preproc=no
1881 fi
1882 rm -f conftest.err conftest.$ac_ext
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1884 $as_echo "$ac_header_preproc" >&6; }
1885
1886 # So?  What about this header?
1887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1888   yes:no: )
1889     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1890 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1891     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1892 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1893     ;;
1894   no:yes:* )
1895     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1896 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1897     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1898 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1899     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1900 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1901     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1902 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1903     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1904 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1905     ;;
1906 esac
1907   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910   $as_echo_n "(cached) " >&6
1911 else
1912   eval "$3=\$ac_header_compiler"
1913 fi
1914 eval ac_res=\$$3
1915                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 fi
1918   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1919
1920 } # ac_fn_c_check_header_mongrel
1921
1922 # ac_fn_c_try_run LINENO
1923 # ----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1925 # that executables *can* be run.
1926 ac_fn_c_try_run ()
1927 {
1928   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929   if { { ac_try="$ac_link"
1930 case "(($ac_try" in
1931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1932   *) ac_try_echo=$ac_try;;
1933 esac
1934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936   (eval "$ac_link") 2>&5
1937   ac_status=$?
1938   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1940   { { case "(($ac_try" in
1941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1942   *) ac_try_echo=$ac_try;;
1943 esac
1944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1945 $as_echo "$ac_try_echo"; } >&5
1946   (eval "$ac_try") 2>&5
1947   ac_status=$?
1948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949   test $ac_status = 0; }; }; then :
1950   ac_retval=0
1951 else
1952   $as_echo "$as_me: program exited with status $ac_status" >&5
1953        $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.$ac_ext >&5
1955
1956        ac_retval=$ac_status
1957 fi
1958   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1959   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960   as_fn_set_status $ac_retval
1961
1962 } # ac_fn_c_try_run
1963
1964 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1965 # -------------------------------------------------------
1966 # Tests whether HEADER exists and can be compiled using the include files in
1967 # INCLUDES, setting the cache variable VAR accordingly.
1968 ac_fn_c_check_header_compile ()
1969 {
1970   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1971   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1972 $as_echo_n "checking for $2... " >&6; }
1973 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1974   $as_echo_n "(cached) " >&6
1975 else
1976   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h.  */
1978 $4
1979 #include <$2>
1980 _ACEOF
1981 if ac_fn_c_try_compile "$LINENO"; then :
1982   eval "$3=yes"
1983 else
1984   eval "$3=no"
1985 fi
1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1987 fi
1988 eval ac_res=\$$3
1989                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990 $as_echo "$ac_res" >&6; }
1991   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1992
1993 } # ac_fn_c_check_header_compile
1994
1995 # ac_fn_c_try_link LINENO
1996 # -----------------------
1997 # Try to link conftest.$ac_ext, and return whether this succeeded.
1998 ac_fn_c_try_link ()
1999 {
2000   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001   rm -f conftest.$ac_objext conftest$ac_exeext
2002   if { { ac_try="$ac_link"
2003 case "(($ac_try" in
2004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2005   *) ac_try_echo=$ac_try;;
2006 esac
2007 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2008 $as_echo "$ac_try_echo"; } >&5
2009   (eval "$ac_link") 2>conftest.err
2010   ac_status=$?
2011   if test -s conftest.err; then
2012     grep -v '^ *+' conftest.err >conftest.er1
2013     cat conftest.er1 >&5
2014     mv -f conftest.er1 conftest.err
2015   fi
2016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2017   test $ac_status = 0; } && {
2018          test -z "$ac_c_werror_flag" ||
2019          test ! -s conftest.err
2020        } && test -s conftest$ac_exeext && {
2021          test "$cross_compiling" = yes ||
2022          $as_test_x conftest$ac_exeext
2023        }; then :
2024   ac_retval=0
2025 else
2026   $as_echo "$as_me: failed program was:" >&5
2027 sed 's/^/| /' conftest.$ac_ext >&5
2028
2029         ac_retval=1
2030 fi
2031   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2032   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2033   # interfere with the next link command; also delete a directory that is
2034   # left behind by Apple's compiler.  We do this before executing the actions.
2035   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2036   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2037   as_fn_set_status $ac_retval
2038
2039 } # ac_fn_c_try_link
2040
2041 # ac_fn_c_check_func LINENO FUNC VAR
2042 # ----------------------------------
2043 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2044 ac_fn_c_check_func ()
2045 {
2046   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2047   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2050   $as_echo_n "(cached) " >&6
2051 else
2052   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053 /* end confdefs.h.  */
2054 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2055    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2056 #define $2 innocuous_$2
2057
2058 /* System header to define __stub macros and hopefully few prototypes,
2059     which can conflict with char $2 (); below.
2060     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2061     <limits.h> exists even on freestanding compilers.  */
2062
2063 #ifdef __STDC__
2064 # include <limits.h>
2065 #else
2066 # include <assert.h>
2067 #endif
2068
2069 #undef $2
2070
2071 /* Override any GCC internal prototype to avoid an error.
2072    Use char because int might match the return type of a GCC
2073    builtin and then its argument prototype would still apply.  */
2074 #ifdef __cplusplus
2075 extern "C"
2076 #endif
2077 char $2 ();
2078 /* The GNU C library defines this for functions which it implements
2079     to always fail with ENOSYS.  Some functions are actually named
2080     something starting with __ and the normal name is an alias.  */
2081 #if defined __stub_$2 || defined __stub___$2
2082 choke me
2083 #endif
2084
2085 int
2086 main ()
2087 {
2088 return $2 ();
2089   ;
2090   return 0;
2091 }
2092 _ACEOF
2093 if ac_fn_c_try_link "$LINENO"; then :
2094   eval "$3=yes"
2095 else
2096   eval "$3=no"
2097 fi
2098 rm -f core conftest.err conftest.$ac_objext \
2099     conftest$ac_exeext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105
2106 } # ac_fn_c_check_func
2107
2108 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2109 # -------------------------------------------
2110 # Tests whether TYPE exists after having included INCLUDES, setting cache
2111 # variable VAR accordingly.
2112 ac_fn_c_check_type ()
2113 {
2114   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2116 $as_echo_n "checking for $2... " >&6; }
2117 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2118   $as_echo_n "(cached) " >&6
2119 else
2120   eval "$3=no"
2121   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122 /* end confdefs.h.  */
2123 $4
2124 int
2125 main ()
2126 {
2127 if (sizeof ($2))
2128          return 0;
2129   ;
2130   return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h.  */
2136 $4
2137 int
2138 main ()
2139 {
2140 if (sizeof (($2)))
2141             return 0;
2142   ;
2143   return 0;
2144 }
2145 _ACEOF
2146 if ac_fn_c_try_compile "$LINENO"; then :
2147
2148 else
2149   eval "$3=yes"
2150 fi
2151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2152 fi
2153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2154 fi
2155 eval ac_res=\$$3
2156                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2157 $as_echo "$ac_res" >&6; }
2158   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2159
2160 } # ac_fn_c_check_type
2161
2162 # ac_fn_c_check_decl LINENO SYMBOL VAR
2163 # ------------------------------------
2164 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2165 ac_fn_c_check_decl ()
2166 {
2167   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2168   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2169 $as_echo_n "checking whether $2 is declared... " >&6; }
2170 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2171   $as_echo_n "(cached) " >&6
2172 else
2173   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h.  */
2175 $4
2176 int
2177 main ()
2178 {
2179 #ifndef $2
2180   (void) $2;
2181 #endif
2182
2183   ;
2184   return 0;
2185 }
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188   eval "$3=yes"
2189 else
2190   eval "$3=no"
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 fi
2194 eval ac_res=\$$3
2195                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2198
2199 } # ac_fn_c_check_decl
2200 cat >config.log <<_ACEOF
2201 This file contains any messages produced by compilers while
2202 running configure, to aid debugging if configure makes a mistake.
2203
2204 It was created by $as_me, which was
2205 generated by GNU Autoconf 2.65.  Invocation command line was
2206
2207   $ $0 $@
2208
2209 _ACEOF
2210 exec 5>>config.log
2211 {
2212 cat <<_ASUNAME
2213 ## --------- ##
2214 ## Platform. ##
2215 ## --------- ##
2216
2217 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2218 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2219 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2220 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2221 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2222
2223 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2224 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2225
2226 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2227 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2228 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2229 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2230 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2231 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2232 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2233
2234 _ASUNAME
2235
2236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2237 for as_dir in $PATH
2238 do
2239   IFS=$as_save_IFS
2240   test -z "$as_dir" && as_dir=.
2241     $as_echo "PATH: $as_dir"
2242   done
2243 IFS=$as_save_IFS
2244
2245 } >&5
2246
2247 cat >&5 <<_ACEOF
2248
2249
2250 ## ----------- ##
2251 ## Core tests. ##
2252 ## ----------- ##
2253
2254 _ACEOF
2255
2256
2257 # Keep a trace of the command line.
2258 # Strip out --no-create and --no-recursion so they do not pile up.
2259 # Strip out --silent because we don't want to record it for future runs.
2260 # Also quote any args containing shell meta-characters.
2261 # Make two passes to allow for proper duplicate-argument suppression.
2262 ac_configure_args=
2263 ac_configure_args0=
2264 ac_configure_args1=
2265 ac_must_keep_next=false
2266 for ac_pass in 1 2
2267 do
2268   for ac_arg
2269   do
2270     case $ac_arg in
2271     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2272     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2273     | -silent | --silent | --silen | --sile | --sil)
2274       continue ;;
2275     *\'*)
2276       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2277     esac
2278     case $ac_pass in
2279     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2280     2)
2281       as_fn_append ac_configure_args1 " '$ac_arg'"
2282       if test $ac_must_keep_next = true; then
2283         ac_must_keep_next=false # Got value, back to normal.
2284       else
2285         case $ac_arg in
2286           *=* | --config-cache | -C | -disable-* | --disable-* \
2287           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2288           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2289           | -with-* | --with-* | -without-* | --without-* | --x)
2290             case "$ac_configure_args0 " in
2291               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2292             esac
2293             ;;
2294           -* ) ac_must_keep_next=true ;;
2295         esac
2296       fi
2297       as_fn_append ac_configure_args " '$ac_arg'"
2298       ;;
2299     esac
2300   done
2301 done
2302 { ac_configure_args0=; unset ac_configure_args0;}
2303 { ac_configure_args1=; unset ac_configure_args1;}
2304
2305 # When interrupted or exit'd, cleanup temporary files, and complete
2306 # config.log.  We remove comments because anyway the quotes in there
2307 # would cause problems or look ugly.
2308 # WARNING: Use '\'' to represent an apostrophe within the trap.
2309 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2310 trap 'exit_status=$?
2311   # Save into config.log some information that might help in debugging.
2312   {
2313     echo
2314
2315     cat <<\_ASBOX
2316 ## ---------------- ##
2317 ## Cache variables. ##
2318 ## ---------------- ##
2319 _ASBOX
2320     echo
2321     # The following way of writing the cache mishandles newlines in values,
2322 (
2323   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2324     eval ac_val=\$$ac_var
2325     case $ac_val in #(
2326     *${as_nl}*)
2327       case $ac_var in #(
2328       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2329 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2330       esac
2331       case $ac_var in #(
2332       _ | IFS | as_nl) ;; #(
2333       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2334       *) { eval $ac_var=; unset $ac_var;} ;;
2335       esac ;;
2336     esac
2337   done
2338   (set) 2>&1 |
2339     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2340     *${as_nl}ac_space=\ *)
2341       sed -n \
2342         "s/'\''/'\''\\\\'\'''\''/g;
2343           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2344       ;; #(
2345     *)
2346       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2347       ;;
2348     esac |
2349     sort
2350 )
2351     echo
2352
2353     cat <<\_ASBOX
2354 ## ----------------- ##
2355 ## Output variables. ##
2356 ## ----------------- ##
2357 _ASBOX
2358     echo
2359     for ac_var in $ac_subst_vars
2360     do
2361       eval ac_val=\$$ac_var
2362       case $ac_val in
2363       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2364       esac
2365       $as_echo "$ac_var='\''$ac_val'\''"
2366     done | sort
2367     echo
2368
2369     if test -n "$ac_subst_files"; then
2370       cat <<\_ASBOX
2371 ## ------------------- ##
2372 ## File substitutions. ##
2373 ## ------------------- ##
2374 _ASBOX
2375       echo
2376       for ac_var in $ac_subst_files
2377       do
2378         eval ac_val=\$$ac_var
2379         case $ac_val in
2380         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2381         esac
2382         $as_echo "$ac_var='\''$ac_val'\''"
2383       done | sort
2384       echo
2385     fi
2386
2387     if test -s confdefs.h; then
2388       cat <<\_ASBOX
2389 ## ----------- ##
2390 ## confdefs.h. ##
2391 ## ----------- ##
2392 _ASBOX
2393       echo
2394       cat confdefs.h
2395       echo
2396     fi
2397     test "$ac_signal" != 0 &&
2398       $as_echo "$as_me: caught signal $ac_signal"
2399     $as_echo "$as_me: exit $exit_status"
2400   } >&5
2401   rm -f core *.core core.conftest.* &&
2402     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2403     exit $exit_status
2404 ' 0
2405 for ac_signal in 1 2 13 15; do
2406   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2407 done
2408 ac_signal=0
2409
2410 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2411 rm -f -r conftest* confdefs.h
2412
2413 $as_echo "/* confdefs.h */" > confdefs.h
2414
2415 # Predefined preprocessor variables.
2416
2417 cat >>confdefs.h <<_ACEOF
2418 #define PACKAGE_NAME "$PACKAGE_NAME"
2419 _ACEOF
2420
2421 cat >>confdefs.h <<_ACEOF
2422 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2423 _ACEOF
2424
2425 cat >>confdefs.h <<_ACEOF
2426 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2427 _ACEOF
2428
2429 cat >>confdefs.h <<_ACEOF
2430 #define PACKAGE_STRING "$PACKAGE_STRING"
2431 _ACEOF
2432
2433 cat >>confdefs.h <<_ACEOF
2434 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2435 _ACEOF
2436
2437 cat >>confdefs.h <<_ACEOF
2438 #define PACKAGE_URL "$PACKAGE_URL"
2439 _ACEOF
2440
2441
2442 # Let the site file select an alternate cache file if it wants to.
2443 # Prefer an explicitly selected file to automatically selected ones.
2444 ac_site_file1=NONE
2445 ac_site_file2=NONE
2446 if test -n "$CONFIG_SITE"; then
2447   ac_site_file1=$CONFIG_SITE
2448 elif test "x$prefix" != xNONE; then
2449   ac_site_file1=$prefix/share/config.site
2450   ac_site_file2=$prefix/etc/config.site
2451 else
2452   ac_site_file1=$ac_default_prefix/share/config.site
2453   ac_site_file2=$ac_default_prefix/etc/config.site
2454 fi
2455 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2456 do
2457   test "x$ac_site_file" = xNONE && continue
2458   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2459     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2460 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2461     sed 's/^/| /' "$ac_site_file" >&5
2462     . "$ac_site_file"
2463   fi
2464 done
2465
2466 if test -r "$cache_file"; then
2467   # Some versions of bash will fail to source /dev/null (special files
2468   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2469   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2470     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2471 $as_echo "$as_me: loading cache $cache_file" >&6;}
2472     case $cache_file in
2473       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2474       *)                      . "./$cache_file";;
2475     esac
2476   fi
2477 else
2478   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2479 $as_echo "$as_me: creating cache $cache_file" >&6;}
2480   >$cache_file
2481 fi
2482
2483 # Check that the precious variables saved in the cache have kept the same
2484 # value.
2485 ac_cache_corrupted=false
2486 for ac_var in $ac_precious_vars; do
2487   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2488   eval ac_new_set=\$ac_env_${ac_var}_set
2489   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2490   eval ac_new_val=\$ac_env_${ac_var}_value
2491   case $ac_old_set,$ac_new_set in
2492     set,)
2493       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2494 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2495       ac_cache_corrupted=: ;;
2496     ,set)
2497       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2498 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2499       ac_cache_corrupted=: ;;
2500     ,);;
2501     *)
2502       if test "x$ac_old_val" != "x$ac_new_val"; then
2503         # differences in whitespace do not lead to failure.
2504         ac_old_val_w=`echo x $ac_old_val`
2505         ac_new_val_w=`echo x $ac_new_val`
2506         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2507           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2508 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2509           ac_cache_corrupted=:
2510         else
2511           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2512 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2513           eval $ac_var=\$ac_old_val
2514         fi
2515         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2516 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2517         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2518 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2519       fi;;
2520   esac
2521   # Pass precious variables to config.status.
2522   if test "$ac_new_set" = set; then
2523     case $ac_new_val in
2524     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2525     *) ac_arg=$ac_var=$ac_new_val ;;
2526     esac
2527     case " $ac_configure_args " in
2528       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2529       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2530     esac
2531   fi
2532 done
2533 if $ac_cache_corrupted; then
2534   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2536   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2537 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2538   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2539 fi
2540 ## -------------------- ##
2541 ## Main body of script. ##
2542 ## -------------------- ##
2543
2544 ac_ext=c
2545 ac_cpp='$CPP $CPPFLAGS'
2546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2549
2550
2551
2552 ac_aux_dir=
2553 for ac_dir in build-aux "$srcdir"/build-aux; do
2554   for ac_t in install-sh install.sh shtool; do
2555     if test -f "$ac_dir/$ac_t"; then
2556       ac_aux_dir=$ac_dir
2557       ac_install_sh="$ac_aux_dir/$ac_t -c"
2558       break 2
2559     fi
2560   done
2561 done
2562 if test -z "$ac_aux_dir"; then
2563   as_fn_error "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2564 fi
2565
2566 # These three variables are undocumented and unsupported,
2567 # and are intended to be withdrawn in a future Autoconf release.
2568 # They can cause serious problems if a builder's source tree is in a directory
2569 # whose full name contains unusual characters.
2570 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2571 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2572 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2573
2574
2575 am__api_version='1.11'
2576
2577 # Find a good install program.  We prefer a C program (faster),
2578 # so one script is as good as another.  But avoid the broken or
2579 # incompatible versions:
2580 # SysV /etc/install, /usr/sbin/install
2581 # SunOS /usr/etc/install
2582 # IRIX /sbin/install
2583 # AIX /bin/install
2584 # AmigaOS /C/install, which installs bootblocks on floppy discs
2585 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2586 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2587 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2588 # OS/2's system install, which has a completely different semantic
2589 # ./install, which can be erroneously created by make from ./install.sh.
2590 # Reject install programs that cannot install multiple files.
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2592 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2593 if test -z "$INSTALL"; then
2594 if test "${ac_cv_path_install+set}" = set; then :
2595   $as_echo_n "(cached) " >&6
2596 else
2597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600   IFS=$as_save_IFS
2601   test -z "$as_dir" && as_dir=.
2602     # Account for people who put trailing slashes in PATH elements.
2603 case $as_dir/ in #((
2604   ./ | .// | /[cC]/* | \
2605   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2606   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2607   /usr/ucb/* ) ;;
2608   *)
2609     # OSF1 and SCO ODT 3.0 have their own names for install.
2610     # Don't use installbsd from OSF since it installs stuff as root
2611     # by default.
2612     for ac_prog in ginstall scoinst install; do
2613       for ac_exec_ext in '' $ac_executable_extensions; do
2614         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2615           if test $ac_prog = install &&
2616             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2617             # AIX install.  It has an incompatible calling convention.
2618             :
2619           elif test $ac_prog = install &&
2620             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2621             # program-specific install script used by HP pwplus--don't use.
2622             :
2623           else
2624             rm -rf conftest.one conftest.two conftest.dir
2625             echo one > conftest.one
2626             echo two > conftest.two
2627             mkdir conftest.dir
2628             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2629               test -s conftest.one && test -s conftest.two &&
2630               test -s conftest.dir/conftest.one &&
2631               test -s conftest.dir/conftest.two
2632             then
2633               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2634               break 3
2635             fi
2636           fi
2637         fi
2638       done
2639     done
2640     ;;
2641 esac
2642
2643   done
2644 IFS=$as_save_IFS
2645
2646 rm -rf conftest.one conftest.two conftest.dir
2647
2648 fi
2649   if test "${ac_cv_path_install+set}" = set; then
2650     INSTALL=$ac_cv_path_install
2651   else
2652     # As a last resort, use the slow shell script.  Don't cache a
2653     # value for INSTALL within a source directory, because that will
2654     # break other packages using the cache if that directory is
2655     # removed, or if the value is a relative name.
2656     INSTALL=$ac_install_sh
2657   fi
2658 fi
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2660 $as_echo "$INSTALL" >&6; }
2661
2662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2663 # It thinks the first close brace ends the variable substitution.
2664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2665
2666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2667
2668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2669
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2671 $as_echo_n "checking whether build environment is sane... " >&6; }
2672 # Just in case
2673 sleep 1
2674 echo timestamp > conftest.file
2675 # Reject unsafe characters in $srcdir or the absolute working directory
2676 # name.  Accept space and tab only in the latter.
2677 am_lf='
2678 '
2679 case `pwd` in
2680   *[\\\"\#\$\&\'\`$am_lf]*)
2681     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2682 esac
2683 case $srcdir in
2684   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2685     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2686 esac
2687
2688 # Do `set' in a subshell so we don't clobber the current shell's
2689 # arguments.  Must try -L first in case configure is actually a
2690 # symlink; some systems play weird games with the mod time of symlinks
2691 # (eg FreeBSD returns the mod time of the symlink's containing
2692 # directory).
2693 if (
2694    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2695    if test "$*" = "X"; then
2696       # -L didn't work.
2697       set X `ls -t "$srcdir/configure" conftest.file`
2698    fi
2699    rm -f conftest.file
2700    if test "$*" != "X $srcdir/configure conftest.file" \
2701       && test "$*" != "X conftest.file $srcdir/configure"; then
2702
2703       # If neither matched, then we have a broken ls.  This can happen
2704       # if, for instance, CONFIG_SHELL is bash and it inherits a
2705       # broken ls alias from the environment.  This has actually
2706       # happened.  Such a system could not be considered "sane".
2707       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2708 alias in your environment" "$LINENO" 5
2709    fi
2710
2711    test "$2" = conftest.file
2712    )
2713 then
2714    # Ok.
2715    :
2716 else
2717    as_fn_error "newly created file is older than distributed files!
2718 Check your system clock" "$LINENO" 5
2719 fi
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2721 $as_echo "yes" >&6; }
2722 test "$program_prefix" != NONE &&
2723   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724 # Use a double $ so make ignores it.
2725 test "$program_suffix" != NONE &&
2726   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727 # Double any \ or $.
2728 # By default was `s,x,x', remove it if useless.
2729 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2731
2732 # expand $ac_aux_dir to an absolute path
2733 am_aux_dir=`cd $ac_aux_dir && pwd`
2734
2735 if test x"${MISSING+set}" != xset; then
2736   case $am_aux_dir in
2737   *\ * | *\     *)
2738     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2739   *)
2740     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741   esac
2742 fi
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --run true"; then
2745   am_missing_run="$MISSING --run "
2746 else
2747   am_missing_run=
2748   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2749 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2750 fi
2751
2752 if test x"${install_sh}" != xset; then
2753   case $am_aux_dir in
2754   *\ * | *\     *)
2755     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2756   *)
2757     install_sh="\${SHELL} $am_aux_dir/install-sh"
2758   esac
2759 fi
2760
2761 # Installed binaries are usually stripped using `strip' when the user
2762 # run `make install-strip'.  However `strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the `STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no; then
2766   if test -n "$ac_tool_prefix"; then
2767   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}strip; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if test "${ac_cv_prog_STRIP+set}" = set; then :
2772   $as_echo_n "(cached) " >&6
2773 else
2774   if test -n "$STRIP"; then
2775   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2779 do
2780   IFS=$as_save_IFS
2781   test -z "$as_dir" && as_dir=.
2782     for ac_exec_ext in '' $ac_executable_extensions; do
2783   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2784     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786     break 2
2787   fi
2788 done
2789   done
2790 IFS=$as_save_IFS
2791
2792 fi
2793 fi
2794 STRIP=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 $as_echo "$STRIP" >&6; }
2798 else
2799   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2801 fi
2802
2803
2804 fi
2805 if test -z "$ac_cv_prog_STRIP"; then
2806   ac_ct_STRIP=$STRIP
2807   # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2812   $as_echo_n "(cached) " >&6
2813 else
2814   if test -n "$ac_ct_STRIP"; then
2815   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2819 do
2820   IFS=$as_save_IFS
2821   test -z "$as_dir" && as_dir=.
2822     for ac_exec_ext in '' $ac_executable_extensions; do
2823   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2824     ac_cv_prog_ac_ct_STRIP="strip"
2825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826     break 2
2827   fi
2828 done
2829   done
2830 IFS=$as_save_IFS
2831
2832 fi
2833 fi
2834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835 if test -n "$ac_ct_STRIP"; then
2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837 $as_echo "$ac_ct_STRIP" >&6; }
2838 else
2839   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2841 fi
2842
2843   if test "x$ac_ct_STRIP" = x; then
2844     STRIP=":"
2845   else
2846     case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852     STRIP=$ac_ct_STRIP
2853   fi
2854 else
2855   STRIP="$ac_cv_prog_STRIP"
2856 fi
2857
2858 fi
2859 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2860
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863 if test -z "$MKDIR_P"; then
2864   if test "${ac_cv_path_mkdir+set}" = set; then :
2865   $as_echo_n "(cached) " >&6
2866 else
2867   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2869 do
2870   IFS=$as_save_IFS
2871   test -z "$as_dir" && as_dir=.
2872     for ac_prog in mkdir gmkdir; do
2873          for ac_exec_ext in '' $ac_executable_extensions; do
2874            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2875            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876              'mkdir (GNU coreutils) '* | \
2877              'mkdir (coreutils) '* | \
2878              'mkdir (fileutils) '4.1*)
2879                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880                break 3;;
2881            esac
2882          done
2883        done
2884   done
2885 IFS=$as_save_IFS
2886
2887 fi
2888
2889   test -d ./--version && rmdir ./--version
2890   if test "${ac_cv_path_mkdir+set}" = set; then
2891     MKDIR_P="$ac_cv_path_mkdir -p"
2892   else
2893     # As a last resort, use the slow shell script.  Don't cache a
2894     # value for MKDIR_P within a source directory, because that will
2895     # break other packages using the cache if that directory is
2896     # removed, or if the value is a relative name.
2897     MKDIR_P="$ac_install_sh -d"
2898   fi
2899 fi
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901 $as_echo "$MKDIR_P" >&6; }
2902
2903 mkdir_p="$MKDIR_P"
2904 case $mkdir_p in
2905   [\\/$]* | ?:[\\/]*) ;;
2906   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2907 esac
2908
2909 for ac_prog in gawk mawk nawk awk
2910 do
2911   # Extract the first word of "$ac_prog", so it can be a program name with args.
2912 set dummy $ac_prog; ac_word=$2
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2914 $as_echo_n "checking for $ac_word... " >&6; }
2915 if test "${ac_cv_prog_AWK+set}" = set; then :
2916   $as_echo_n "(cached) " >&6
2917 else
2918   if test -n "$AWK"; then
2919   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2920 else
2921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922 for as_dir in $PATH
2923 do
2924   IFS=$as_save_IFS
2925   test -z "$as_dir" && as_dir=.
2926     for ac_exec_ext in '' $ac_executable_extensions; do
2927   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2928     ac_cv_prog_AWK="$ac_prog"
2929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2930     break 2
2931   fi
2932 done
2933   done
2934 IFS=$as_save_IFS
2935
2936 fi
2937 fi
2938 AWK=$ac_cv_prog_AWK
2939 if test -n "$AWK"; then
2940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2941 $as_echo "$AWK" >&6; }
2942 else
2943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 $as_echo "no" >&6; }
2945 fi
2946
2947
2948   test -n "$AWK" && break
2949 done
2950
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2952 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2953 set x ${MAKE-make}
2954 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2955 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2956   $as_echo_n "(cached) " >&6
2957 else
2958   cat >conftest.make <<\_ACEOF
2959 SHELL = /bin/sh
2960 all:
2961         @echo '@@@%%%=$(MAKE)=@@@%%%'
2962 _ACEOF
2963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2964 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2965   *@@@%%%=?*=@@@%%%*)
2966     eval ac_cv_prog_make_${ac_make}_set=yes;;
2967   *)
2968     eval ac_cv_prog_make_${ac_make}_set=no;;
2969 esac
2970 rm -f conftest.make
2971 fi
2972 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2974 $as_echo "yes" >&6; }
2975   SET_MAKE=
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979   SET_MAKE="MAKE=${MAKE-make}"
2980 fi
2981
2982 rm -rf .tst 2>/dev/null
2983 mkdir .tst 2>/dev/null
2984 if test -d .tst; then
2985   am__leading_dot=.
2986 else
2987   am__leading_dot=_
2988 fi
2989 rmdir .tst 2>/dev/null
2990
2991 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2992   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2993   # is not polluted with repeated "-I."
2994   am__isrc=' -I$(srcdir)'
2995   # test to see if srcdir already configured
2996   if test -f $srcdir/config.status; then
2997     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2998   fi
2999 fi
3000
3001 # test whether we have cygpath
3002 if test -z "$CYGPATH_W"; then
3003   if (cygpath --version) >/dev/null 2>/dev/null; then
3004     CYGPATH_W='cygpath -w'
3005   else
3006     CYGPATH_W=echo
3007   fi
3008 fi
3009
3010
3011 # Define the identity of the package.
3012  PACKAGE="Linux-PAM"
3013  VERSION=1.1.6
3014
3015
3016 cat >>confdefs.h <<_ACEOF
3017 #define PACKAGE "$PACKAGE"
3018 _ACEOF
3019
3020
3021 cat >>confdefs.h <<_ACEOF
3022 #define VERSION "$VERSION"
3023 _ACEOF
3024
3025 # Some tools Automake needs.
3026
3027 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3028
3029
3030 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3031
3032
3033 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3034
3035
3036 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3037
3038
3039 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3040
3041 # We need awk for the "check" target.  The system "awk" is bad on
3042 # some platforms.
3043 # Always define AMTAR for backward compatibility.
3044
3045 AMTAR=${AMTAR-"${am_missing_run}tar"}
3046
3047 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3048
3049
3050
3051
3052
3053
3054 ac_config_headers="$ac_config_headers config.h"
3055
3056
3057 # Make sure we can run config.sub.
3058 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3059   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3060
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3062 $as_echo_n "checking build system type... " >&6; }
3063 if test "${ac_cv_build+set}" = set; then :
3064   $as_echo_n "(cached) " >&6
3065 else
3066   ac_build_alias=$build_alias
3067 test "x$ac_build_alias" = x &&
3068   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3069 test "x$ac_build_alias" = x &&
3070   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3071 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3072   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3073
3074 fi
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3076 $as_echo "$ac_cv_build" >&6; }
3077 case $ac_cv_build in
3078 *-*-*) ;;
3079 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3080 esac
3081 build=$ac_cv_build
3082 ac_save_IFS=$IFS; IFS='-'
3083 set x $ac_cv_build
3084 shift
3085 build_cpu=$1
3086 build_vendor=$2
3087 shift; shift
3088 # Remember, the first character of IFS is used to create $*,
3089 # except with old shells:
3090 build_os=$*
3091 IFS=$ac_save_IFS
3092 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3093
3094
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3096 $as_echo_n "checking host system type... " >&6; }
3097 if test "${ac_cv_host+set}" = set; then :
3098   $as_echo_n "(cached) " >&6
3099 else
3100   if test "x$host_alias" = x; then
3101   ac_cv_host=$ac_cv_build
3102 else
3103   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3104     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3105 fi
3106
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3109 $as_echo "$ac_cv_host" >&6; }
3110 case $ac_cv_host in
3111 *-*-*) ;;
3112 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3113 esac
3114 host=$ac_cv_host
3115 ac_save_IFS=$IFS; IFS='-'
3116 set x $ac_cv_host
3117 shift
3118 host_cpu=$1
3119 host_vendor=$2
3120 shift; shift
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3123 host_os=$*
3124 IFS=$ac_save_IFS
3125 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3126
3127
3128
3129
3130
3131
3132
3133
3134 test "${prefix}" = "NONE" && prefix="/usr"
3135 if test ${prefix} = '/usr'
3136 then
3137         if test ${sysconfdir} = '${prefix}/etc'
3138         then
3139                 sysconfdir="/etc"
3140         fi
3141         if test ${libdir} = '${exec_prefix}/lib'
3142         then
3143                 case "`uname -m`" in
3144                     x86_64|ppc64|s390x|sparc64)
3145                         libdir="/lib64" ;;
3146                     *)
3147                         libdir="/lib" ;;
3148                 esac
3149         fi
3150         if test ${sbindir} = '${exec_prefix}/sbin'
3151         then
3152                 sbindir="/sbin"
3153         fi
3154         if test ${mandir} = '${prefix}/man'
3155         then
3156                 mandir='${prefix}/share/man'
3157         fi
3158         if test ${includedir} = '${prefix}/include'
3159         then
3160                 includedir="${prefix}/include/security"
3161         fi
3162
3163         if test ${localstatedir} = '${prefix}/var'
3164         then
3165                 localstatedir="/var"
3166         fi
3167
3168 fi
3169
3170 # Check whether --enable-static-modules was given.
3171 if test "${enable_static_modules+set}" = set; then :
3172   enableval=$enable_static_modules; STATIC_MODULES=$enableval
3173 else
3174   STATIC_MODULES=no
3175 fi
3176
3177 if test "$STATIC_MODULES" != "no" ; then
3178         CFLAGS="$CFLAGS -DPAM_STATIC"
3179         # Check whether --enable-static was given.
3180 if test "${enable_static+set}" = set; then :
3181   enableval=$enable_static; p=${PACKAGE-default}
3182     case $enableval in
3183     yes) enable_static=yes ;;
3184     no) enable_static=no ;;
3185     *)
3186      enable_static=no
3187       # Look at the argument we got.  We use all the common list separators.
3188       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3189       for pkg in $enableval; do
3190         IFS="$lt_save_ifs"
3191         if test "X$pkg" = "X$p"; then
3192           enable_static=yes
3193         fi
3194       done
3195       IFS="$lt_save_ifs"
3196       ;;
3197     esac
3198 else
3199   enable_static=yes
3200 fi
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210         # Check whether --enable-shared was given.
3211 if test "${enable_shared+set}" = set; then :
3212   enableval=$enable_shared; p=${PACKAGE-default}
3213     case $enableval in
3214     yes) enable_shared=yes ;;
3215     no) enable_shared=no ;;
3216     *)
3217       enable_shared=no
3218       # Look at the argument we got.  We use all the common list separators.
3219       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3220       for pkg in $enableval; do
3221         IFS="$lt_save_ifs"
3222         if test "X$pkg" = "X$p"; then
3223           enable_shared=yes
3224         fi
3225       done
3226       IFS="$lt_save_ifs"
3227       ;;
3228     esac
3229 else
3230   enable_shared=no
3231 fi
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241 else
3242 # per default don't build static libraries
3243         # Check whether --enable-static was given.
3244 if test "${enable_static+set}" = set; then :
3245   enableval=$enable_static; p=${PACKAGE-default}
3246     case $enableval in
3247     yes) enable_static=yes ;;
3248     no) enable_static=no ;;
3249     *)
3250      enable_static=no
3251       # Look at the argument we got.  We use all the common list separators.
3252       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3253       for pkg in $enableval; do
3254         IFS="$lt_save_ifs"
3255         if test "X$pkg" = "X$p"; then
3256           enable_static=yes
3257         fi
3258       done
3259       IFS="$lt_save_ifs"
3260       ;;
3261     esac
3262 else
3263   enable_static=no
3264 fi
3265
3266
3267
3268
3269
3270
3271         # Check whether --enable-shared was given.
3272 if test "${enable_shared+set}" = set; then :
3273   enableval=$enable_shared; p=${PACKAGE-default}
3274     case $enableval in
3275     yes) enable_shared=yes ;;
3276     no) enable_shared=no ;;
3277     *)
3278       enable_shared=no
3279       # Look at the argument we got.  We use all the common list separators.
3280       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3281       for pkg in $enableval; do
3282         IFS="$lt_save_ifs"
3283         if test "X$pkg" = "X$p"; then
3284           enable_shared=yes
3285         fi
3286       done
3287       IFS="$lt_save_ifs"
3288       ;;
3289     esac
3290 else
3291   enable_shared=yes
3292 fi
3293
3294
3295
3296
3297
3298
3299 fi
3300  if test "$STATIC_MODULES" != "no"; then
3301   STATIC_MODULES_TRUE=
3302   STATIC_MODULES_FALSE='#'
3303 else
3304   STATIC_MODULES_TRUE='#'
3305   STATIC_MODULES_FALSE=
3306 fi
3307
3308
3309 DEPDIR="${am__leading_dot}deps"
3310
3311 ac_config_commands="$ac_config_commands depfiles"
3312
3313
3314 am_make=${MAKE-make}
3315 cat > confinc << 'END'
3316 am__doit:
3317         @echo this is the am__doit target
3318 .PHONY: am__doit
3319 END
3320 # If we don't find an include directive, just comment out the code.
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3322 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3323 am__include="#"
3324 am__quote=
3325 _am_result=none
3326 # First try GNU make style include.
3327 echo "include confinc" > confmf
3328 # Ignore all kinds of additional output from `make'.
3329 case `$am_make -s -f confmf 2> /dev/null` in #(
3330 *the\ am__doit\ target*)
3331   am__include=include
3332   am__quote=
3333   _am_result=GNU
3334   ;;
3335 esac
3336 # Now try BSD make style include.
3337 if test "$am__include" = "#"; then
3338    echo '.include "confinc"' > confmf
3339    case `$am_make -s -f confmf 2> /dev/null` in #(
3340    *the\ am__doit\ target*)
3341      am__include=.include
3342      am__quote="\""
3343      _am_result=BSD
3344      ;;
3345    esac
3346 fi
3347
3348
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3350 $as_echo "$_am_result" >&6; }
3351 rm -f confinc confmf
3352
3353 # Check whether --enable-dependency-tracking was given.
3354 if test "${enable_dependency_tracking+set}" = set; then :
3355   enableval=$enable_dependency_tracking;
3356 fi
3357
3358 if test "x$enable_dependency_tracking" != xno; then
3359   am_depcomp="$ac_aux_dir/depcomp"
3360   AMDEPBACKSLASH='\'
3361 fi
3362  if test "x$enable_dependency_tracking" != xno; then
3363   AMDEP_TRUE=
3364   AMDEP_FALSE='#'
3365 else
3366   AMDEP_TRUE='#'
3367   AMDEP_FALSE=
3368 fi
3369
3370
3371 ac_ext=c
3372 ac_cpp='$CPP $CPPFLAGS'
3373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 if test -n "$ac_tool_prefix"; then
3377   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3378 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3380 $as_echo_n "checking for $ac_word... " >&6; }
3381 if test "${ac_cv_prog_CC+set}" = set; then :
3382   $as_echo_n "(cached) " >&6
3383 else
3384   if test -n "$CC"; then
3385   ac_cv_prog_CC="$CC" # Let the user override the test.
3386 else
3387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3388 for as_dir in $PATH
3389 do
3390   IFS=$as_save_IFS
3391   test -z "$as_dir" && as_dir=.
3392     for ac_exec_ext in '' $ac_executable_extensions; do
3393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3394     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3396     break 2
3397   fi
3398 done
3399   done
3400 IFS=$as_save_IFS
3401
3402 fi
3403 fi
3404 CC=$ac_cv_prog_CC
3405 if test -n "$CC"; then
3406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3407 $as_echo "$CC" >&6; }
3408 else
3409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3410 $as_echo "no" >&6; }
3411 fi
3412
3413
3414 fi
3415 if test -z "$ac_cv_prog_CC"; then
3416   ac_ct_CC=$CC
3417   # Extract the first word of "gcc", so it can be a program name with args.
3418 set dummy gcc; ac_word=$2
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3420 $as_echo_n "checking for $ac_word... " >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3422   $as_echo_n "(cached) " >&6
3423 else
3424   if test -n "$ac_ct_CC"; then
3425   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430   IFS=$as_save_IFS
3431   test -z "$as_dir" && as_dir=.
3432     for ac_exec_ext in '' $ac_executable_extensions; do
3433   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434     ac_cv_prog_ac_ct_CC="gcc"
3435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3436     break 2
3437   fi
3438 done
3439   done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3447 $as_echo "$ac_ct_CC" >&6; }
3448 else
3449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3450 $as_echo "no" >&6; }
3451 fi
3452
3453   if test "x$ac_ct_CC" = x; then
3454     CC=""
3455   else
3456     case $cross_compiling:$ac_tool_warned in
3457 yes:)
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3460 ac_tool_warned=yes ;;
3461 esac
3462     CC=$ac_ct_CC
3463   fi
3464 else
3465   CC="$ac_cv_prog_CC"
3466 fi
3467
3468 if test -z "$CC"; then
3469           if test -n "$ac_tool_prefix"; then
3470     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3471 set dummy ${ac_tool_prefix}cc; ac_word=$2
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3473 $as_echo_n "checking for $ac_word... " >&6; }
3474 if test "${ac_cv_prog_CC+set}" = set; then :
3475   $as_echo_n "(cached) " >&6
3476 else
3477   if test -n "$CC"; then
3478   ac_cv_prog_CC="$CC" # Let the user override the test.
3479 else
3480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3481 for as_dir in $PATH
3482 do
3483   IFS=$as_save_IFS
3484   test -z "$as_dir" && as_dir=.
3485     for ac_exec_ext in '' $ac_executable_extensions; do
3486   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3487     ac_cv_prog_CC="${ac_tool_prefix}cc"
3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3489     break 2
3490   fi
3491 done
3492   done
3493 IFS=$as_save_IFS
3494
3495 fi
3496 fi
3497 CC=$ac_cv_prog_CC
3498 if test -n "$CC"; then
3499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3500 $as_echo "$CC" >&6; }
3501 else
3502   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3503 $as_echo "no" >&6; }
3504 fi
3505
3506
3507   fi
3508 fi
3509 if test -z "$CC"; then
3510   # Extract the first word of "cc", so it can be a program name with args.
3511 set dummy cc; ac_word=$2
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3513 $as_echo_n "checking for $ac_word... " >&6; }
3514 if test "${ac_cv_prog_CC+set}" = set; then :
3515   $as_echo_n "(cached) " >&6
3516 else
3517   if test -n "$CC"; then
3518   ac_cv_prog_CC="$CC" # Let the user override the test.
3519 else
3520   ac_prog_rejected=no
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524   IFS=$as_save_IFS
3525   test -z "$as_dir" && as_dir=.
3526     for ac_exec_ext in '' $ac_executable_extensions; do
3527   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3529        ac_prog_rejected=yes
3530        continue
3531      fi
3532     ac_cv_prog_CC="cc"
3533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3534     break 2
3535   fi
3536 done
3537   done
3538 IFS=$as_save_IFS
3539
3540 if test $ac_prog_rejected = yes; then
3541   # We found a bogon in the path, so make sure we never use it.
3542   set dummy $ac_cv_prog_CC
3543   shift
3544   if test $# != 0; then
3545     # We chose a different compiler from the bogus one.
3546     # However, it has the same basename, so the bogon will be chosen
3547     # first if we set CC to just the basename; use the full file name.
3548     shift
3549     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3550   fi
3551 fi
3552 fi
3553 fi
3554 CC=$ac_cv_prog_CC
3555 if test -n "$CC"; then
3556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3557 $as_echo "$CC" >&6; }
3558 else
3559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 fi
3562
3563
3564 fi
3565 if test -z "$CC"; then
3566   if test -n "$ac_tool_prefix"; then
3567   for ac_prog in cl.exe
3568   do
3569     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3570 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3572 $as_echo_n "checking for $ac_word... " >&6; }
3573 if test "${ac_cv_prog_CC+set}" = set; then :
3574   $as_echo_n "(cached) " >&6
3575 else
3576   if test -n "$CC"; then
3577   ac_cv_prog_CC="$CC" # Let the user override the test.
3578 else
3579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3580 for as_dir in $PATH
3581 do
3582   IFS=$as_save_IFS
3583   test -z "$as_dir" && as_dir=.
3584     for ac_exec_ext in '' $ac_executable_extensions; do
3585   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3586     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3587     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3588     break 2
3589   fi
3590 done
3591   done
3592 IFS=$as_save_IFS
3593
3594 fi
3595 fi
3596 CC=$ac_cv_prog_CC
3597 if test -n "$CC"; then
3598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3599 $as_echo "$CC" >&6; }
3600 else
3601   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3602 $as_echo "no" >&6; }
3603 fi
3604
3605
3606     test -n "$CC" && break
3607   done
3608 fi
3609 if test -z "$CC"; then
3610   ac_ct_CC=$CC
3611   for ac_prog in cl.exe
3612 do
3613   # Extract the first word of "$ac_prog", so it can be a program name with args.
3614 set dummy $ac_prog; ac_word=$2
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3616 $as_echo_n "checking for $ac_word... " >&6; }
3617 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3618   $as_echo_n "(cached) " >&6
3619 else
3620   if test -n "$ac_ct_CC"; then
3621   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3622 else
3623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 for as_dir in $PATH
3625 do
3626   IFS=$as_save_IFS
3627   test -z "$as_dir" && as_dir=.
3628     for ac_exec_ext in '' $ac_executable_extensions; do
3629   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3630     ac_cv_prog_ac_ct_CC="$ac_prog"
3631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3632     break 2
3633   fi
3634 done
3635   done
3636 IFS=$as_save_IFS
3637
3638 fi
3639 fi
3640 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3641 if test -n "$ac_ct_CC"; then
3642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3643 $as_echo "$ac_ct_CC" >&6; }
3644 else
3645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3646 $as_echo "no" >&6; }
3647 fi
3648
3649
3650   test -n "$ac_ct_CC" && break
3651 done
3652
3653   if test "x$ac_ct_CC" = x; then
3654     CC=""
3655   else
3656     case $cross_compiling:$ac_tool_warned in
3657 yes:)
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3660 ac_tool_warned=yes ;;
3661 esac
3662     CC=$ac_ct_CC
3663   fi
3664 fi
3665
3666 fi
3667
3668
3669 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error "no acceptable C compiler found in \$PATH
3672 See \`config.log' for more details." "$LINENO" 5; }
3673
3674 # Provide some information about the compiler.
3675 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3676 set X $ac_compile
3677 ac_compiler=$2
3678 for ac_option in --version -v -V -qversion; do
3679   { { ac_try="$ac_compiler $ac_option >&5"
3680 case "(($ac_try" in
3681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3682   *) ac_try_echo=$ac_try;;
3683 esac
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3687   ac_status=$?
3688   if test -s conftest.err; then
3689     sed '10a\
3690 ... rest of stderr output deleted ...
3691          10q' conftest.err >conftest.er1
3692     cat conftest.er1 >&5
3693   fi
3694   rm -f conftest.er1 conftest.err
3695   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696   test $ac_status = 0; }
3697 done
3698
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h.  */
3701
3702 int
3703 main ()
3704 {
3705
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 ac_clean_files_save=$ac_clean_files
3711 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3712 # Try to create an executable without -o first, disregard a.out.
3713 # It will help us diagnose broken compilers, and finding out an intuition
3714 # of exeext.
3715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3716 $as_echo_n "checking whether the C compiler works... " >&6; }
3717 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3718
3719 # The possible output files:
3720 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3721
3722 ac_rmfiles=
3723 for ac_file in $ac_files
3724 do
3725   case $ac_file in
3726     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3727     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3728   esac
3729 done
3730 rm -f $ac_rmfiles
3731
3732 if { { ac_try="$ac_link_default"
3733 case "(($ac_try" in
3734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735   *) ac_try_echo=$ac_try;;
3736 esac
3737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3738 $as_echo "$ac_try_echo"; } >&5
3739   (eval "$ac_link_default") 2>&5
3740   ac_status=$?
3741   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3742   test $ac_status = 0; }; then :
3743   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3744 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3745 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3746 # so that the user can short-circuit this test for compilers unknown to
3747 # Autoconf.
3748 for ac_file in $ac_files ''
3749 do
3750   test -f "$ac_file" || continue
3751   case $ac_file in
3752     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3753         ;;
3754     [ab].out )
3755         # We found the default executable, but exeext='' is most
3756         # certainly right.
3757         break;;
3758     *.* )
3759         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3760         then :; else
3761            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3762         fi
3763         # We set ac_cv_exeext here because the later test for it is not
3764         # safe: cross compilers may not add the suffix if given an `-o'
3765         # argument, so we may need to know it at that point already.
3766         # Even if this section looks crufty: it has the advantage of
3767         # actually working.
3768         break;;
3769     * )
3770         break;;
3771   esac
3772 done
3773 test "$ac_cv_exeext" = no && ac_cv_exeext=
3774
3775 else
3776   ac_file=''
3777 fi
3778 if test -z "$ac_file"; then :
3779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3780 $as_echo "no" >&6; }
3781 $as_echo "$as_me: failed program was:" >&5
3782 sed 's/^/| /' conftest.$ac_ext >&5
3783
3784 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3785 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3786 { as_fn_set_status 77
3787 as_fn_error "C compiler cannot create executables
3788 See \`config.log' for more details." "$LINENO" 5; }; }
3789 else
3790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3791 $as_echo "yes" >&6; }
3792 fi
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3794 $as_echo_n "checking for C compiler default output file name... " >&6; }
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3796 $as_echo "$ac_file" >&6; }
3797 ac_exeext=$ac_cv_exeext
3798
3799 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3800 ac_clean_files=$ac_clean_files_save
3801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3802 $as_echo_n "checking for suffix of executables... " >&6; }
3803 if { { ac_try="$ac_link"
3804 case "(($ac_try" in
3805   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3806   *) ac_try_echo=$ac_try;;
3807 esac
3808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3809 $as_echo "$ac_try_echo"; } >&5
3810   (eval "$ac_link") 2>&5
3811   ac_status=$?
3812   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813   test $ac_status = 0; }; then :
3814   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3815 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3816 # work properly (i.e., refer to `conftest.exe'), while it won't with
3817 # `rm'.
3818 for ac_file in conftest.exe conftest conftest.*; do
3819   test -f "$ac_file" || continue
3820   case $ac_file in
3821     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3822     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3823           break;;
3824     * ) break;;
3825   esac
3826 done
3827 else
3828   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3830 as_fn_error "cannot compute suffix of executables: cannot compile and link
3831 See \`config.log' for more details." "$LINENO" 5; }
3832 fi
3833 rm -f conftest conftest$ac_cv_exeext
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3835 $as_echo "$ac_cv_exeext" >&6; }
3836
3837 rm -f conftest.$ac_ext
3838 EXEEXT=$ac_cv_exeext
3839 ac_exeext=$EXEEXT
3840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3841 /* end confdefs.h.  */
3842 #include <stdio.h>
3843 int
3844 main ()
3845 {
3846 FILE *f = fopen ("conftest.out", "w");
3847  return ferror (f) || fclose (f) != 0;
3848
3849   ;
3850   return 0;
3851 }
3852 _ACEOF
3853 ac_clean_files="$ac_clean_files conftest.out"
3854 # Check that the compiler produces executables we can run.  If not, either
3855 # the compiler is broken, or we cross compile.
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3857 $as_echo_n "checking whether we are cross compiling... " >&6; }
3858 if test "$cross_compiling" != yes; then
3859   { { ac_try="$ac_link"
3860 case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866   (eval "$ac_link") 2>&5
3867   ac_status=$?
3868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3869   test $ac_status = 0; }
3870   if { ac_try='./conftest$ac_cv_exeext'
3871   { { case "(($ac_try" in
3872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3873   *) ac_try_echo=$ac_try;;
3874 esac
3875 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3876 $as_echo "$ac_try_echo"; } >&5
3877   (eval "$ac_try") 2>&5
3878   ac_status=$?
3879   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880   test $ac_status = 0; }; }; then
3881     cross_compiling=no
3882   else
3883     if test "$cross_compiling" = maybe; then
3884         cross_compiling=yes
3885     else
3886         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3888 as_fn_error "cannot run C compiled programs.
3889 If you meant to cross compile, use \`--host'.
3890 See \`config.log' for more details." "$LINENO" 5; }
3891     fi
3892   fi
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3895 $as_echo "$cross_compiling" >&6; }
3896
3897 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3898 ac_clean_files=$ac_clean_files_save
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3900 $as_echo_n "checking for suffix of object files... " >&6; }
3901 if test "${ac_cv_objext+set}" = set; then :
3902   $as_echo_n "(cached) " >&6
3903 else
3904   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h.  */
3906
3907 int
3908 main ()
3909 {
3910
3911   ;
3912   return 0;
3913 }
3914 _ACEOF
3915 rm -f conftest.o conftest.obj
3916 if { { ac_try="$ac_compile"
3917 case "(($ac_try" in
3918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919   *) ac_try_echo=$ac_try;;
3920 esac
3921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3922 $as_echo "$ac_try_echo"; } >&5
3923   (eval "$ac_compile") 2>&5
3924   ac_status=$?
3925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3926   test $ac_status = 0; }; then :
3927   for ac_file in conftest.o conftest.obj conftest.*; do
3928   test -f "$ac_file" || continue;
3929   case $ac_file in
3930     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3931     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3932        break;;
3933   esac
3934 done
3935 else
3936   $as_echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3941 as_fn_error "cannot compute suffix of object files: cannot compile
3942 See \`config.log' for more details." "$LINENO" 5; }
3943 fi
3944 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3945 fi
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3947 $as_echo "$ac_cv_objext" >&6; }
3948 OBJEXT=$ac_cv_objext
3949 ac_objext=$OBJEXT
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3951 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3952 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3953   $as_echo_n "(cached) " >&6
3954 else
3955   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h.  */
3957
3958 int
3959 main ()
3960 {
3961 #ifndef __GNUC__
3962        choke me
3963 #endif
3964
3965   ;
3966   return 0;
3967 }
3968 _ACEOF
3969 if ac_fn_c_try_compile "$LINENO"; then :
3970   ac_compiler_gnu=yes
3971 else
3972   ac_compiler_gnu=no
3973 fi
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3975 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3976
3977 fi
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3979 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3980 if test $ac_compiler_gnu = yes; then
3981   GCC=yes
3982 else
3983   GCC=
3984 fi
3985 ac_test_CFLAGS=${CFLAGS+set}
3986 ac_save_CFLAGS=$CFLAGS
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3988 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3989 if test "${ac_cv_prog_cc_g+set}" = set; then :
3990   $as_echo_n "(cached) " >&6
3991 else
3992   ac_save_c_werror_flag=$ac_c_werror_flag
3993    ac_c_werror_flag=yes
3994    ac_cv_prog_cc_g=no
3995    CFLAGS="-g"
3996    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h.  */
3998
3999 int
4000 main ()
4001 {
4002
4003   ;
4004   return 0;
4005 }
4006 _ACEOF
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008   ac_cv_prog_cc_g=yes
4009 else
4010   CFLAGS=""
4011       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h.  */
4013
4014 int
4015 main ()
4016 {
4017
4018   ;
4019   return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023
4024 else
4025   ac_c_werror_flag=$ac_save_c_werror_flag
4026          CFLAGS="-g"
4027          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4028 /* end confdefs.h.  */
4029
4030 int
4031 main ()
4032 {
4033
4034   ;
4035   return 0;
4036 }
4037 _ACEOF
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039   ac_cv_prog_cc_g=yes
4040 fi
4041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4042 fi
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 fi
4045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4046    ac_c_werror_flag=$ac_save_c_werror_flag
4047 fi
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4049 $as_echo "$ac_cv_prog_cc_g" >&6; }
4050 if test "$ac_test_CFLAGS" = set; then
4051   CFLAGS=$ac_save_CFLAGS
4052 elif test $ac_cv_prog_cc_g = yes; then
4053   if test "$GCC" = yes; then
4054     CFLAGS="-g -O2"
4055   else
4056     CFLAGS="-g"
4057   fi
4058 else
4059   if test "$GCC" = yes; then
4060     CFLAGS="-O2"
4061   else
4062     CFLAGS=
4063   fi
4064 fi
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4066 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4067 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4068   $as_echo_n "(cached) " >&6
4069 else
4070   ac_cv_prog_cc_c89=no
4071 ac_save_CC=$CC
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h.  */
4074 #include <stdarg.h>
4075 #include <stdio.h>
4076 #include <sys/types.h>
4077 #include <sys/stat.h>
4078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4079 struct buf { int x; };
4080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4081 static char *e (p, i)
4082      char **p;
4083      int i;
4084 {
4085   return p[i];
4086 }
4087 static char *f (char * (*g) (char **, int), char **p, ...)
4088 {
4089   char *s;
4090   va_list v;
4091   va_start (v,p);
4092   s = g (p, va_arg (v,int));
4093   va_end (v);
4094   return s;
4095 }
4096
4097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4098    function prototypes and stuff, but not '\xHH' hex character constants.
4099    These don't provoke an error unfortunately, instead are silently treated
4100    as 'x'.  The following induces an error, until -std is added to get
4101    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4102    array size at least.  It's necessary to write '\x00'==0 to get something
4103    that's true only with -std.  */
4104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4105
4106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4107    inside strings and character constants.  */
4108 #define FOO(x) 'x'
4109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4110
4111 int test (int i, double x);
4112 struct s1 {int (*f) (int a);};
4113 struct s2 {int (*f) (double a);};
4114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4115 int argc;
4116 char **argv;
4117 int
4118 main ()
4119 {
4120 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4121   ;
4122   return 0;
4123 }
4124 _ACEOF
4125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4126         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4127 do
4128   CC="$ac_save_CC $ac_arg"
4129   if ac_fn_c_try_compile "$LINENO"; then :
4130   ac_cv_prog_cc_c89=$ac_arg
4131 fi
4132 rm -f core conftest.err conftest.$ac_objext
4133   test "x$ac_cv_prog_cc_c89" != "xno" && break
4134 done
4135 rm -f conftest.$ac_ext
4136 CC=$ac_save_CC
4137
4138 fi
4139 # AC_CACHE_VAL
4140 case "x$ac_cv_prog_cc_c89" in
4141   x)
4142     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4143 $as_echo "none needed" >&6; } ;;
4144   xno)
4145     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4146 $as_echo "unsupported" >&6; } ;;
4147   *)
4148     CC="$CC $ac_cv_prog_cc_c89"
4149     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4150 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4151 esac
4152 if test "x$ac_cv_prog_cc_c89" != xno; then :
4153
4154 fi
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161
4162 depcc="$CC"   am_compiler_list=
4163
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4165 $as_echo_n "checking dependency style of $depcc... " >&6; }
4166 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4167   $as_echo_n "(cached) " >&6
4168 else
4169   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4170   # We make a subdir and do the tests there.  Otherwise we can end up
4171   # making bogus files that we don't know about and never remove.  For
4172   # instance it was reported that on HP-UX the gcc test will end up
4173   # making a dummy file named `D' -- because `-MD' means `put the output
4174   # in D'.
4175   mkdir conftest.dir
4176   # Copy depcomp to subdir because otherwise we won't find it if we're
4177   # using a relative directory.
4178   cp "$am_depcomp" conftest.dir
4179   cd conftest.dir
4180   # We will build objects and dependencies in a subdirectory because
4181   # it helps to detect inapplicable dependency modes.  For instance
4182   # both Tru64's cc and ICC support -MD to output dependencies as a
4183   # side effect of compilation, but ICC will put the dependencies in
4184   # the current directory while Tru64 will put them in the object
4185   # directory.
4186   mkdir sub
4187
4188   am_cv_CC_dependencies_compiler_type=none
4189   if test "$am_compiler_list" = ""; then
4190      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4191   fi
4192   am__universal=false
4193   case " $depcc " in #(
4194      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195      esac
4196
4197   for depmode in $am_compiler_list; do
4198     # Setup a source with many dependencies, because some compilers
4199     # like to wrap large dependency lists on column 80 (with \), and
4200     # we should not choose a depcomp mode which is confused by this.
4201     #
4202     # We need to recreate these files for each test, as the compiler may
4203     # overwrite some of them when testing with obscure command lines.
4204     # This happens at least with the AIX C compiler.
4205     : > sub/conftest.c
4206     for i in 1 2 3 4 5 6; do
4207       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4208       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4209       # Solaris 8's {/usr,}/bin/sh.
4210       touch sub/conftst$i.h
4211     done
4212     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4213
4214     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4215     # mode.  It turns out that the SunPro C++ compiler does not properly
4216     # handle `-M -o', and we need to detect this.  Also, some Intel
4217     # versions had trouble with output in subdirs
4218     am__obj=sub/conftest.${OBJEXT-o}
4219     am__minus_obj="-o $am__obj"
4220     case $depmode in
4221     gcc)
4222       # This depmode causes a compiler race in universal mode.
4223       test "$am__universal" = false || continue
4224       ;;
4225     nosideeffect)
4226       # after this tag, mechanisms are not by side-effect, so they'll
4227       # only be used when explicitly requested
4228       if test "x$enable_dependency_tracking" = xyes; then
4229         continue
4230       else
4231         break
4232       fi
4233       ;;
4234     msvisualcpp | msvcmsys)
4235       # This compiler won't grok `-c -o', but also, the minuso test has
4236       # not run yet.  These depmodes are late enough in the game, and
4237       # so weak that their functioning should not be impacted.
4238       am__obj=conftest.${OBJEXT-o}
4239       am__minus_obj=
4240       ;;
4241     none) break ;;
4242     esac
4243     if depmode=$depmode \
4244        source=sub/conftest.c object=$am__obj \
4245        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4246        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4247          >/dev/null 2>conftest.err &&
4248        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4249        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4250        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4251        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4252       # icc doesn't choke on unknown options, it will just issue warnings
4253       # or remarks (even with -Werror).  So we grep stderr for any message
4254       # that says an option was ignored or not supported.
4255       # When given -MP, icc 7.0 and 7.1 complain thusly:
4256       #   icc: Command line warning: ignoring option '-M'; no argument required
4257       # The diagnosis changed in icc 8.0:
4258       #   icc: Command line remark: option '-MP' not supported
4259       if (grep 'ignoring option' conftest.err ||
4260           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4261         am_cv_CC_dependencies_compiler_type=$depmode
4262         break
4263       fi
4264     fi
4265   done
4266
4267   cd ..
4268   rm -rf conftest.dir
4269 else
4270   am_cv_CC_dependencies_compiler_type=none
4271 fi
4272
4273 fi
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4275 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4276 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277
4278  if
4279   test "x$enable_dependency_tracking" != xno \
4280   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4281   am__fastdepCC_TRUE=
4282   am__fastdepCC_FALSE='#'
4283 else
4284   am__fastdepCC_TRUE='#'
4285   am__fastdepCC_FALSE=
4286 fi
4287
4288
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4296 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4297 # On Suns, sometimes $CPP names a directory.
4298 if test -n "$CPP" && test -d "$CPP"; then
4299   CPP=
4300 fi
4301 if test -z "$CPP"; then
4302   if test "${ac_cv_prog_CPP+set}" = set; then :
4303   $as_echo_n "(cached) " >&6
4304 else
4305       # Double quotes because CPP needs to be expanded
4306     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4307     do
4308       ac_preproc_ok=false
4309 for ac_c_preproc_warn_flag in '' yes
4310 do
4311   # Use a header file that comes with gcc, so configuring glibc
4312   # with a fresh cross-compiler works.
4313   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4314   # <limits.h> exists even on freestanding compilers.
4315   # On the NeXT, cc -E runs the code through the compiler's parser,
4316   # not just through cpp. "Syntax error" is here to catch this case.
4317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318 /* end confdefs.h.  */
4319 #ifdef __STDC__
4320 # include <limits.h>
4321 #else
4322 # include <assert.h>
4323 #endif
4324                      Syntax error
4325 _ACEOF
4326 if ac_fn_c_try_cpp "$LINENO"; then :
4327
4328 else
4329   # Broken: fails on valid input.
4330 continue
4331 fi
4332 rm -f conftest.err conftest.$ac_ext
4333
4334   # OK, works on sane cases.  Now check whether nonexistent headers
4335   # can be detected and how.
4336   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h.  */
4338 #include <ac_nonexistent.h>
4339 _ACEOF
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4341   # Broken: success on invalid input.
4342 continue
4343 else
4344   # Passes both tests.
4345 ac_preproc_ok=:
4346 break
4347 fi
4348 rm -f conftest.err conftest.$ac_ext
4349
4350 done
4351 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4352 rm -f conftest.err conftest.$ac_ext
4353 if $ac_preproc_ok; then :
4354   break
4355 fi
4356
4357     done
4358     ac_cv_prog_CPP=$CPP
4359
4360 fi
4361   CPP=$ac_cv_prog_CPP
4362 else
4363   ac_cv_prog_CPP=$CPP
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4366 $as_echo "$CPP" >&6; }
4367 ac_preproc_ok=false
4368 for ac_c_preproc_warn_flag in '' yes
4369 do
4370   # Use a header file that comes with gcc, so configuring glibc
4371   # with a fresh cross-compiler works.
4372   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4373   # <limits.h> exists even on freestanding compilers.
4374   # On the NeXT, cc -E runs the code through the compiler's parser,
4375   # not just through cpp. "Syntax error" is here to catch this case.
4376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4377 /* end confdefs.h.  */
4378 #ifdef __STDC__
4379 # include <limits.h>
4380 #else
4381 # include <assert.h>
4382 #endif
4383                      Syntax error
4384 _ACEOF
4385 if ac_fn_c_try_cpp "$LINENO"; then :
4386
4387 else
4388   # Broken: fails on valid input.
4389 continue
4390 fi
4391 rm -f conftest.err conftest.$ac_ext
4392
4393   # OK, works on sane cases.  Now check whether nonexistent headers
4394   # can be detected and how.
4395   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4396 /* end confdefs.h.  */
4397 #include <ac_nonexistent.h>
4398 _ACEOF
4399 if ac_fn_c_try_cpp "$LINENO"; then :
4400   # Broken: success on invalid input.
4401 continue
4402 else
4403   # Passes both tests.
4404 ac_preproc_ok=:
4405 break
4406 fi
4407 rm -f conftest.err conftest.$ac_ext
4408
4409 done
4410 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4411 rm -f conftest.err conftest.$ac_ext
4412 if $ac_preproc_ok; then :
4413
4414 else
4415   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4417 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4418 See \`config.log' for more details." "$LINENO" 5; }
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4429 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4430 if test "${ac_cv_path_GREP+set}" = set; then :
4431   $as_echo_n "(cached) " >&6
4432 else
4433   if test -z "$GREP"; then
4434   ac_path_GREP_found=false
4435   # Loop through the user's path and test for each of PROGNAME-LIST
4436   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4438 do
4439   IFS=$as_save_IFS
4440   test -z "$as_dir" && as_dir=.
4441     for ac_prog in grep ggrep; do
4442     for ac_exec_ext in '' $ac_executable_extensions; do
4443       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4444       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4445 # Check for GNU ac_path_GREP and select it if it is found.
4446   # Check for GNU $ac_path_GREP
4447 case `"$ac_path_GREP" --version 2>&1` in
4448 *GNU*)
4449   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4450 *)
4451   ac_count=0
4452   $as_echo_n 0123456789 >"conftest.in"
4453   while :
4454   do
4455     cat "conftest.in" "conftest.in" >"conftest.tmp"
4456     mv "conftest.tmp" "conftest.in"
4457     cp "conftest.in" "conftest.nl"
4458     $as_echo 'GREP' >> "conftest.nl"
4459     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4460     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4461     as_fn_arith $ac_count + 1 && ac_count=$as_val
4462     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4463       # Best one so far, save it but keep looking for a better one
4464       ac_cv_path_GREP="$ac_path_GREP"
4465       ac_path_GREP_max=$ac_count
4466     fi
4467     # 10*(2^10) chars as input seems more than enough
4468     test $ac_count -gt 10 && break
4469   done
4470   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4471 esac
4472
4473       $ac_path_GREP_found && break 3
4474     done
4475   done
4476   done
4477 IFS=$as_save_IFS
4478   if test -z "$ac_cv_path_GREP"; then
4479     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4480   fi
4481 else
4482   ac_cv_path_GREP=$GREP
4483 fi
4484
4485 fi
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4487 $as_echo "$ac_cv_path_GREP" >&6; }
4488  GREP="$ac_cv_path_GREP"
4489
4490
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4492 $as_echo_n "checking for egrep... " >&6; }
4493 if test "${ac_cv_path_EGREP+set}" = set; then :
4494   $as_echo_n "(cached) " >&6
4495 else
4496   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4497    then ac_cv_path_EGREP="$GREP -E"
4498    else
4499      if test -z "$EGREP"; then
4500   ac_path_EGREP_found=false
4501   # Loop through the user's path and test for each of PROGNAME-LIST
4502   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4503 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4504 do
4505   IFS=$as_save_IFS
4506   test -z "$as_dir" && as_dir=.
4507     for ac_prog in egrep; do
4508     for ac_exec_ext in '' $ac_executable_extensions; do
4509       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4510       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4511 # Check for GNU ac_path_EGREP and select it if it is found.
4512   # Check for GNU $ac_path_EGREP
4513 case `"$ac_path_EGREP" --version 2>&1` in
4514 *GNU*)
4515   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4516 *)
4517   ac_count=0
4518   $as_echo_n 0123456789 >"conftest.in"
4519   while :
4520   do
4521     cat "conftest.in" "conftest.in" >"conftest.tmp"
4522     mv "conftest.tmp" "conftest.in"
4523     cp "conftest.in" "conftest.nl"
4524     $as_echo 'EGREP' >> "conftest.nl"
4525     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4526     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4527     as_fn_arith $ac_count + 1 && ac_count=$as_val
4528     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4529       # Best one so far, save it but keep looking for a better one
4530       ac_cv_path_EGREP="$ac_path_EGREP"
4531       ac_path_EGREP_max=$ac_count
4532     fi
4533     # 10*(2^10) chars as input seems more than enough
4534     test $ac_count -gt 10 && break
4535   done
4536   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4537 esac
4538
4539       $ac_path_EGREP_found && break 3
4540     done
4541   done
4542   done
4543 IFS=$as_save_IFS
4544   if test -z "$ac_cv_path_EGREP"; then
4545     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4546   fi
4547 else
4548   ac_cv_path_EGREP=$EGREP
4549 fi
4550
4551    fi
4552 fi
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4554 $as_echo "$ac_cv_path_EGREP" >&6; }
4555  EGREP="$ac_cv_path_EGREP"
4556
4557
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4559 $as_echo_n "checking for ANSI C header files... " >&6; }
4560 if test "${ac_cv_header_stdc+set}" = set; then :
4561   $as_echo_n "(cached) " >&6
4562 else
4563   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h.  */
4565 #include <stdlib.h>
4566 #include <stdarg.h>
4567 #include <string.h>
4568 #include <float.h>
4569
4570 int
4571 main ()
4572 {
4573
4574   ;
4575   return 0;
4576 }
4577 _ACEOF
4578 if ac_fn_c_try_compile "$LINENO"; then :
4579   ac_cv_header_stdc=yes
4580 else
4581   ac_cv_header_stdc=no
4582 fi
4583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4584
4585 if test $ac_cv_header_stdc = yes; then
4586   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588 /* end confdefs.h.  */
4589 #include <string.h>
4590
4591 _ACEOF
4592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4593   $EGREP "memchr" >/dev/null 2>&1; then :
4594
4595 else
4596   ac_cv_header_stdc=no
4597 fi
4598 rm -f conftest*
4599
4600 fi
4601
4602 if test $ac_cv_header_stdc = yes; then
4603   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4605 /* end confdefs.h.  */
4606 #include <stdlib.h>
4607
4608 _ACEOF
4609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4610   $EGREP "free" >/dev/null 2>&1; then :
4611
4612 else
4613   ac_cv_header_stdc=no
4614 fi
4615 rm -f conftest*
4616
4617 fi
4618
4619 if test $ac_cv_header_stdc = yes; then
4620   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4621   if test "$cross_compiling" = yes; then :
4622   :
4623 else
4624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625 /* end confdefs.h.  */
4626 #include <ctype.h>
4627 #include <stdlib.h>
4628 #if ((' ' & 0x0FF) == 0x020)
4629 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4630 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4631 #else
4632 # define ISLOWER(c) \
4633                    (('a' <= (c) && (c) <= 'i') \
4634                      || ('j' <= (c) && (c) <= 'r') \
4635                      || ('s' <= (c) && (c) <= 'z'))
4636 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4637 #endif
4638
4639 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4640 int
4641 main ()
4642 {
4643   int i;
4644   for (i = 0; i < 256; i++)
4645     if (XOR (islower (i), ISLOWER (i))
4646         || toupper (i) != TOUPPER (i))
4647       return 2;
4648   return 0;
4649 }
4650 _ACEOF
4651 if ac_fn_c_try_run "$LINENO"; then :
4652
4653 else
4654   ac_cv_header_stdc=no
4655 fi
4656 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4657   conftest.$ac_objext conftest.beam conftest.$ac_ext
4658 fi
4659
4660 fi
4661 fi
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4663 $as_echo "$ac_cv_header_stdc" >&6; }
4664 if test $ac_cv_header_stdc = yes; then
4665
4666 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4667
4668 fi
4669
4670 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4671 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4672                   inttypes.h stdint.h unistd.h
4673 do :
4674   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4675 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4676 "
4677 eval as_val=\$$as_ac_Header
4678    if test "x$as_val" = x""yes; then :
4679   cat >>confdefs.h <<_ACEOF
4680 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4681 _ACEOF
4682
4683 fi
4684
4685 done
4686
4687
4688
4689   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4690 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4691   MINIX=yes
4692 else
4693   MINIX=
4694 fi
4695
4696
4697   if test "$MINIX" = yes; then
4698
4699 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4700
4701
4702 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4703
4704
4705 $as_echo "#define _MINIX 1" >>confdefs.h
4706
4707   fi
4708
4709
4710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4711 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4712 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4713   $as_echo_n "(cached) " >&6
4714 else
4715   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4716 /* end confdefs.h.  */
4717
4718 #         define __EXTENSIONS__ 1
4719           $ac_includes_default
4720 int
4721 main ()
4722 {
4723
4724   ;
4725   return 0;
4726 }
4727 _ACEOF
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729   ac_cv_safe_to_define___extensions__=yes
4730 else
4731   ac_cv_safe_to_define___extensions__=no
4732 fi
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 fi
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4736 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4737   test $ac_cv_safe_to_define___extensions__ = yes &&
4738     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4739
4740   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4741
4742   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4743
4744   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4745
4746   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4747
4748
4749 ac_ext=c
4750 ac_cpp='$CPP $CPPFLAGS'
4751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4754 if test -n "$ac_tool_prefix"; then
4755   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4756 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 $as_echo_n "checking for $ac_word... " >&6; }
4759 if test "${ac_cv_prog_CC+set}" = set; then :
4760   $as_echo_n "(cached) " >&6
4761 else
4762   if test -n "$CC"; then
4763   ac_cv_prog_CC="$CC" # Let the user override the test.
4764 else
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH
4767 do
4768   IFS=$as_save_IFS
4769   test -z "$as_dir" && as_dir=.
4770     for ac_exec_ext in '' $ac_executable_extensions; do
4771   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4772     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4773     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4774     break 2
4775   fi
4776 done
4777   done
4778 IFS=$as_save_IFS
4779
4780 fi
4781 fi
4782 CC=$ac_cv_prog_CC
4783 if test -n "$CC"; then
4784   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 $as_echo "$CC" >&6; }
4786 else
4787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4789 fi
4790
4791
4792 fi
4793 if test -z "$ac_cv_prog_CC"; then
4794   ac_ct_CC=$CC
4795   # Extract the first word of "gcc", so it can be a program name with args.
4796 set dummy gcc; ac_word=$2
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 $as_echo_n "checking for $ac_word... " >&6; }
4799 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4800   $as_echo_n "(cached) " >&6
4801 else
4802   if test -n "$ac_ct_CC"; then
4803   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4804 else
4805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4812     ac_cv_prog_ac_ct_CC="gcc"
4813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817   done
4818 IFS=$as_save_IFS
4819
4820 fi
4821 fi
4822 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4823 if test -n "$ac_ct_CC"; then
4824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4825 $as_echo "$ac_ct_CC" >&6; }
4826 else
4827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4828 $as_echo "no" >&6; }
4829 fi
4830
4831   if test "x$ac_ct_CC" = x; then
4832     CC=""
4833   else
4834     case $cross_compiling:$ac_tool_warned in
4835 yes:)
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4838 ac_tool_warned=yes ;;
4839 esac
4840     CC=$ac_ct_CC
4841   fi
4842 else
4843   CC="$ac_cv_prog_CC"
4844 fi
4845
4846 if test -z "$CC"; then
4847           if test -n "$ac_tool_prefix"; then
4848     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4849 set dummy ${ac_tool_prefix}cc; ac_word=$2
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851 $as_echo_n "checking for $ac_word... " >&6; }
4852 if test "${ac_cv_prog_CC+set}" = set; then :
4853   $as_echo_n "(cached) " >&6
4854 else
4855   if test -n "$CC"; then
4856   ac_cv_prog_CC="$CC" # Let the user override the test.
4857 else
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863     for ac_exec_ext in '' $ac_executable_extensions; do
4864   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4865     ac_cv_prog_CC="${ac_tool_prefix}cc"
4866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4867     break 2
4868   fi
4869 done
4870   done
4871 IFS=$as_save_IFS
4872
4873 fi
4874 fi
4875 CC=$ac_cv_prog_CC
4876 if test -n "$CC"; then
4877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4878 $as_echo "$CC" >&6; }
4879 else
4880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4881 $as_echo "no" >&6; }
4882 fi
4883
4884
4885   fi
4886 fi
4887 if test -z "$CC"; then
4888   # Extract the first word of "cc", so it can be a program name with args.
4889 set dummy cc; ac_word=$2
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4891 $as_echo_n "checking for $ac_word... " >&6; }
4892 if test "${ac_cv_prog_CC+set}" = set; then :
4893   $as_echo_n "(cached) " >&6
4894 else
4895   if test -n "$CC"; then
4896   ac_cv_prog_CC="$CC" # Let the user override the test.
4897 else
4898   ac_prog_rejected=no
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4901 do
4902   IFS=$as_save_IFS
4903   test -z "$as_dir" && as_dir=.
4904     for ac_exec_ext in '' $ac_executable_extensions; do
4905   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4907        ac_prog_rejected=yes
4908        continue
4909      fi
4910     ac_cv_prog_CC="cc"
4911     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4912     break 2
4913   fi
4914 done
4915   done
4916 IFS=$as_save_IFS
4917
4918 if test $ac_prog_rejected = yes; then
4919   # We found a bogon in the path, so make sure we never use it.
4920   set dummy $ac_cv_prog_CC
4921   shift
4922   if test $# != 0; then
4923     # We chose a different compiler from the bogus one.
4924     # However, it has the same basename, so the bogon will be chosen
4925     # first if we set CC to just the basename; use the full file name.
4926     shift
4927     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4928   fi
4929 fi
4930 fi
4931 fi
4932 CC=$ac_cv_prog_CC
4933 if test -n "$CC"; then
4934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4935 $as_echo "$CC" >&6; }
4936 else
4937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4938 $as_echo "no" >&6; }
4939 fi
4940
4941
4942 fi
4943 if test -z "$CC"; then
4944   if test -n "$ac_tool_prefix"; then
4945   for ac_prog in cl.exe
4946   do
4947     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4948 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_CC+set}" = set; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   if test -n "$CC"; then
4955   ac_cv_prog_CC="$CC" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960   IFS=$as_save_IFS
4961   test -z "$as_dir" && as_dir=.
4962     for ac_exec_ext in '' $ac_executable_extensions; do
4963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4965     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966     break 2
4967   fi
4968 done
4969   done
4970 IFS=$as_save_IFS
4971
4972 fi
4973 fi
4974 CC=$ac_cv_prog_CC
4975 if test -n "$CC"; then
4976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4977 $as_echo "$CC" >&6; }
4978 else
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4981 fi
4982
4983
4984     test -n "$CC" && break
4985   done
4986 fi
4987 if test -z "$CC"; then
4988   ac_ct_CC=$CC
4989   for ac_prog in cl.exe
4990 do
4991   # Extract the first word of "$ac_prog", so it can be a program name with args.
4992 set dummy $ac_prog; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4996   $as_echo_n "(cached) " >&6
4997 else
4998   if test -n "$ac_ct_CC"; then
4999   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_exec_ext in '' $ac_executable_extensions; do
5007   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5008     ac_cv_prog_ac_ct_CC="$ac_prog"
5009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013   done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5019 if test -n "$ac_ct_CC"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5021 $as_echo "$ac_ct_CC" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028   test -n "$ac_ct_CC" && break
5029 done
5030
5031   if test "x$ac_ct_CC" = x; then
5032     CC=""
5033   else
5034     case $cross_compiling:$ac_tool_warned in
5035 yes:)
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5037 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5038 ac_tool_warned=yes ;;
5039 esac
5040     CC=$ac_ct_CC
5041   fi
5042 fi
5043
5044 fi
5045
5046
5047 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5048 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5049 as_fn_error "no acceptable C compiler found in \$PATH
5050 See \`config.log' for more details." "$LINENO" 5; }
5051
5052 # Provide some information about the compiler.
5053 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5054 set X $ac_compile
5055 ac_compiler=$2
5056 for ac_option in --version -v -V -qversion; do
5057   { { ac_try="$ac_compiler $ac_option >&5"
5058 case "(($ac_try" in
5059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5060   *) ac_try_echo=$ac_try;;
5061 esac
5062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5063 $as_echo "$ac_try_echo"; } >&5
5064   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5065   ac_status=$?
5066   if test -s conftest.err; then
5067     sed '10a\
5068 ... rest of stderr output deleted ...
5069          10q' conftest.err >conftest.er1
5070     cat conftest.er1 >&5
5071   fi
5072   rm -f conftest.er1 conftest.err
5073   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5074   test $ac_status = 0; }
5075 done
5076
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5078 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5079 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5080   $as_echo_n "(cached) " >&6
5081 else
5082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5083 /* end confdefs.h.  */
5084
5085 int
5086 main ()
5087 {
5088 #ifndef __GNUC__
5089        choke me
5090 #endif
5091
5092   ;
5093   return 0;
5094 }
5095 _ACEOF
5096 if ac_fn_c_try_compile "$LINENO"; then :
5097   ac_compiler_gnu=yes
5098 else
5099   ac_compiler_gnu=no
5100 fi
5101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5103
5104 fi
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5106 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5107 if test $ac_compiler_gnu = yes; then
5108   GCC=yes
5109 else
5110   GCC=
5111 fi
5112 ac_test_CFLAGS=${CFLAGS+set}
5113 ac_save_CFLAGS=$CFLAGS
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5115 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5116 if test "${ac_cv_prog_cc_g+set}" = set; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   ac_save_c_werror_flag=$ac_c_werror_flag
5120    ac_c_werror_flag=yes
5121    ac_cv_prog_cc_g=no
5122    CFLAGS="-g"
5123    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5124 /* end confdefs.h.  */
5125
5126 int
5127 main ()
5128 {
5129
5130   ;
5131   return 0;
5132 }
5133 _ACEOF
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135   ac_cv_prog_cc_g=yes
5136 else
5137   CFLAGS=""
5138       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h.  */
5140
5141 int
5142 main ()
5143 {
5144
5145   ;
5146   return 0;
5147 }
5148 _ACEOF
5149 if ac_fn_c_try_compile "$LINENO"; then :
5150
5151 else
5152   ac_c_werror_flag=$ac_save_c_werror_flag
5153          CFLAGS="-g"
5154          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5155 /* end confdefs.h.  */
5156
5157 int
5158 main ()
5159 {
5160
5161   ;
5162   return 0;
5163 }
5164 _ACEOF
5165 if ac_fn_c_try_compile "$LINENO"; then :
5166   ac_cv_prog_cc_g=yes
5167 fi
5168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5169 fi
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 fi
5172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5173    ac_c_werror_flag=$ac_save_c_werror_flag
5174 fi
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5176 $as_echo "$ac_cv_prog_cc_g" >&6; }
5177 if test "$ac_test_CFLAGS" = set; then
5178   CFLAGS=$ac_save_CFLAGS
5179 elif test $ac_cv_prog_cc_g = yes; then
5180   if test "$GCC" = yes; then
5181     CFLAGS="-g -O2"
5182   else
5183     CFLAGS="-g"
5184   fi
5185 else
5186   if test "$GCC" = yes; then
5187     CFLAGS="-O2"
5188   else
5189     CFLAGS=
5190   fi
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5193 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5194 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5195   $as_echo_n "(cached) " >&6
5196 else
5197   ac_cv_prog_cc_c89=no
5198 ac_save_CC=$CC
5199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5200 /* end confdefs.h.  */
5201 #include <stdarg.h>
5202 #include <stdio.h>
5203 #include <sys/types.h>
5204 #include <sys/stat.h>
5205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5206 struct buf { int x; };
5207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5208 static char *e (p, i)
5209      char **p;
5210      int i;
5211 {
5212   return p[i];
5213 }
5214 static char *f (char * (*g) (char **, int), char **p, ...)
5215 {
5216   char *s;
5217   va_list v;
5218   va_start (v,p);
5219   s = g (p, va_arg (v,int));
5220   va_end (v);
5221   return s;
5222 }
5223
5224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5225    function prototypes and stuff, but not '\xHH' hex character constants.
5226    These don't provoke an error unfortunately, instead are silently treated
5227    as 'x'.  The following induces an error, until -std is added to get
5228    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5229    array size at least.  It's necessary to write '\x00'==0 to get something
5230    that's true only with -std.  */
5231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5232
5233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5234    inside strings and character constants.  */
5235 #define FOO(x) 'x'
5236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5237
5238 int test (int i, double x);
5239 struct s1 {int (*f) (int a);};
5240 struct s2 {int (*f) (double a);};
5241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5242 int argc;
5243 char **argv;
5244 int
5245 main ()
5246 {
5247 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5248   ;
5249   return 0;
5250 }
5251 _ACEOF
5252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5253         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5254 do
5255   CC="$ac_save_CC $ac_arg"
5256   if ac_fn_c_try_compile "$LINENO"; then :
5257   ac_cv_prog_cc_c89=$ac_arg
5258 fi
5259 rm -f core conftest.err conftest.$ac_objext
5260   test "x$ac_cv_prog_cc_c89" != "xno" && break
5261 done
5262 rm -f conftest.$ac_ext
5263 CC=$ac_save_CC
5264
5265 fi
5266 # AC_CACHE_VAL
5267 case "x$ac_cv_prog_cc_c89" in
5268   x)
5269     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5270 $as_echo "none needed" >&6; } ;;
5271   xno)
5272     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5273 $as_echo "unsupported" >&6; } ;;
5274   *)
5275     CC="$CC $ac_cv_prog_cc_c89"
5276     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5277 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5278 esac
5279 if test "x$ac_cv_prog_cc_c89" != xno; then :
5280
5281 fi
5282
5283 ac_ext=c
5284 ac_cpp='$CPP $CPPFLAGS'
5285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5288
5289 depcc="$CC"   am_compiler_list=
5290
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5292 $as_echo_n "checking dependency style of $depcc... " >&6; }
5293 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5294   $as_echo_n "(cached) " >&6
5295 else
5296   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5297   # We make a subdir and do the tests there.  Otherwise we can end up
5298   # making bogus files that we don't know about and never remove.  For
5299   # instance it was reported that on HP-UX the gcc test will end up
5300   # making a dummy file named `D' -- because `-MD' means `put the output
5301   # in D'.
5302   mkdir conftest.dir
5303   # Copy depcomp to subdir because otherwise we won't find it if we're
5304   # using a relative directory.
5305   cp "$am_depcomp" conftest.dir
5306   cd conftest.dir
5307   # We will build objects and dependencies in a subdirectory because
5308   # it helps to detect inapplicable dependency modes.  For instance
5309   # both Tru64's cc and ICC support -MD to output dependencies as a
5310   # side effect of compilation, but ICC will put the dependencies in
5311   # the current directory while Tru64 will put them in the object
5312   # directory.
5313   mkdir sub
5314
5315   am_cv_CC_dependencies_compiler_type=none
5316   if test "$am_compiler_list" = ""; then
5317      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5318   fi
5319   am__universal=false
5320   case " $depcc " in #(
5321      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5322      esac
5323
5324   for depmode in $am_compiler_list; do
5325     # Setup a source with many dependencies, because some compilers
5326     # like to wrap large dependency lists on column 80 (with \), and
5327     # we should not choose a depcomp mode which is confused by this.
5328     #
5329     # We need to recreate these files for each test, as the compiler may
5330     # overwrite some of them when testing with obscure command lines.
5331     # This happens at least with the AIX C compiler.
5332     : > sub/conftest.c
5333     for i in 1 2 3 4 5 6; do
5334       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5335       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5336       # Solaris 8's {/usr,}/bin/sh.
5337       touch sub/conftst$i.h
5338     done
5339     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5340
5341     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5342     # mode.  It turns out that the SunPro C++ compiler does not properly
5343     # handle `-M -o', and we need to detect this.  Also, some Intel
5344     # versions had trouble with output in subdirs
5345     am__obj=sub/conftest.${OBJEXT-o}
5346     am__minus_obj="-o $am__obj"
5347     case $depmode in
5348     gcc)
5349       # This depmode causes a compiler race in universal mode.
5350       test "$am__universal" = false || continue
5351       ;;
5352     nosideeffect)
5353       # after this tag, mechanisms are not by side-effect, so they'll
5354       # only be used when explicitly requested
5355       if test "x$enable_dependency_tracking" = xyes; then
5356         continue
5357       else
5358         break
5359       fi
5360       ;;
5361     msvisualcpp | msvcmsys)
5362       # This compiler won't grok `-c -o', but also, the minuso test has
5363       # not run yet.  These depmodes are late enough in the game, and
5364       # so weak that their functioning should not be impacted.
5365       am__obj=conftest.${OBJEXT-o}
5366       am__minus_obj=
5367       ;;
5368     none) break ;;
5369     esac
5370     if depmode=$depmode \
5371        source=sub/conftest.c object=$am__obj \
5372        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5373        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5374          >/dev/null 2>conftest.err &&
5375        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5376        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5377        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5378        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5379       # icc doesn't choke on unknown options, it will just issue warnings
5380       # or remarks (even with -Werror).  So we grep stderr for any message
5381       # that says an option was ignored or not supported.
5382       # When given -MP, icc 7.0 and 7.1 complain thusly:
5383       #   icc: Command line warning: ignoring option '-M'; no argument required
5384       # The diagnosis changed in icc 8.0:
5385       #   icc: Command line remark: option '-MP' not supported
5386       if (grep 'ignoring option' conftest.err ||
5387           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5388         am_cv_CC_dependencies_compiler_type=$depmode
5389         break
5390       fi
5391     fi
5392   done
5393
5394   cd ..
5395   rm -rf conftest.dir
5396 else
5397   am_cv_CC_dependencies_compiler_type=none
5398 fi
5399
5400 fi
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5402 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5403 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5404
5405  if
5406   test "x$enable_dependency_tracking" != xno \
5407   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5408   am__fastdepCC_TRUE=
5409   am__fastdepCC_FALSE='#'
5410 else
5411   am__fastdepCC_TRUE='#'
5412   am__fastdepCC_FALSE=
5413 fi
5414
5415
5416 for ac_prog in 'bison -y' byacc
5417 do
5418   # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy $ac_prog; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if test "${ac_cv_prog_YACC+set}" = set; then :
5423   $as_echo_n "(cached) " >&6
5424 else
5425   if test -n "$YACC"; then
5426   ac_cv_prog_YACC="$YACC" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431   IFS=$as_save_IFS
5432   test -z "$as_dir" && as_dir=.
5433     for ac_exec_ext in '' $ac_executable_extensions; do
5434   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435     ac_cv_prog_YACC="$ac_prog"
5436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437     break 2
5438   fi
5439 done
5440   done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 YACC=$ac_cv_prog_YACC
5446 if test -n "$YACC"; then
5447   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
5448 $as_echo "$YACC" >&6; }
5449 else
5450   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454
5455   test -n "$YACC" && break
5456 done
5457 test -n "$YACC" || YACC="yacc"
5458
5459 for ac_prog in flex lex
5460 do
5461   # Extract the first word of "$ac_prog", so it can be a program name with args.
5462 set dummy $ac_prog; ac_word=$2
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5464 $as_echo_n "checking for $ac_word... " >&6; }
5465 if test "${ac_cv_prog_LEX+set}" = set; then :
5466   $as_echo_n "(cached) " >&6
5467 else
5468   if test -n "$LEX"; then
5469   ac_cv_prog_LEX="$LEX" # Let the user override the test.
5470 else
5471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5472 for as_dir in $PATH
5473 do
5474   IFS=$as_save_IFS
5475   test -z "$as_dir" && as_dir=.
5476     for ac_exec_ext in '' $ac_executable_extensions; do
5477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5478     ac_cv_prog_LEX="$ac_prog"
5479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5480     break 2
5481   fi
5482 done
5483   done
5484 IFS=$as_save_IFS
5485
5486 fi
5487 fi
5488 LEX=$ac_cv_prog_LEX
5489 if test -n "$LEX"; then
5490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
5491 $as_echo "$LEX" >&6; }
5492 else
5493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5494 $as_echo "no" >&6; }
5495 fi
5496
5497
5498   test -n "$LEX" && break
5499 done
5500 test -n "$LEX" || LEX=":"
5501
5502 if test "x$LEX" != "x:"; then
5503   cat >conftest.l <<_ACEOF
5504 %%
5505 a { ECHO; }
5506 b { REJECT; }
5507 c { yymore (); }
5508 d { yyless (1); }
5509 e { yyless (input () != 0); }
5510 f { unput (yytext[0]); }
5511 . { BEGIN INITIAL; }
5512 %%
5513 #ifdef YYTEXT_POINTER
5514 extern char *yytext;
5515 #endif
5516 int
5517 main (void)
5518 {
5519   return ! yylex () + ! yywrap ();
5520 }
5521 _ACEOF
5522 { { ac_try="$LEX conftest.l"
5523 case "(($ac_try" in
5524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5525   *) ac_try_echo=$ac_try;;
5526 esac
5527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5528 $as_echo "$ac_try_echo"; } >&5
5529   (eval "$LEX conftest.l") 2>&5
5530   ac_status=$?
5531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5532   test $ac_status = 0; }
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
5534 $as_echo_n "checking lex output file root... " >&6; }
5535 if test "${ac_cv_prog_lex_root+set}" = set; then :
5536   $as_echo_n "(cached) " >&6
5537 else
5538
5539 if test -f lex.yy.c; then
5540   ac_cv_prog_lex_root=lex.yy
5541 elif test -f lexyy.c; then
5542   ac_cv_prog_lex_root=lexyy
5543 else
5544   as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
5545 fi
5546 fi
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
5548 $as_echo "$ac_cv_prog_lex_root" >&6; }
5549 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
5550
5551 if test -z "${LEXLIB+set}"; then
5552   { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
5553 $as_echo_n "checking lex library... " >&6; }
5554 if test "${ac_cv_lib_lex+set}" = set; then :
5555   $as_echo_n "(cached) " >&6
5556 else
5557
5558     ac_save_LIBS=$LIBS
5559     ac_cv_lib_lex='none needed'
5560     for ac_lib in '' -lfl -ll; do
5561       LIBS="$ac_lib $ac_save_LIBS"
5562       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h.  */
5564 `cat $LEX_OUTPUT_ROOT.c`
5565 _ACEOF
5566 if ac_fn_c_try_link "$LINENO"; then :
5567   ac_cv_lib_lex=$ac_lib
5568 fi
5569 rm -f core conftest.err conftest.$ac_objext \
5570     conftest$ac_exeext conftest.$ac_ext
5571       test "$ac_cv_lib_lex" != 'none needed' && break
5572     done
5573     LIBS=$ac_save_LIBS
5574
5575 fi
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
5577 $as_echo "$ac_cv_lib_lex" >&6; }
5578   test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
5579 fi
5580
5581
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
5583 $as_echo_n "checking whether yytext is a pointer... " >&6; }
5584 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
5585   $as_echo_n "(cached) " >&6
5586 else
5587   # POSIX says lex can declare yytext either as a pointer or an array; the
5588 # default is implementation-dependent.  Figure out which it is, since
5589 # not all implementations provide the %pointer and %array declarations.
5590 ac_cv_prog_lex_yytext_pointer=no
5591 ac_save_LIBS=$LIBS
5592 LIBS="$LEXLIB $ac_save_LIBS"
5593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594 /* end confdefs.h.  */
5595 #define YYTEXT_POINTER 1
5596 `cat $LEX_OUTPUT_ROOT.c`
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"; then :
5599   ac_cv_prog_lex_yytext_pointer=yes
5600 fi
5601 rm -f core conftest.err conftest.$ac_objext \
5602     conftest$ac_exeext conftest.$ac_ext
5603 LIBS=$ac_save_LIBS
5604
5605 fi
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
5607 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
5608 if test $ac_cv_prog_lex_yytext_pointer = yes; then
5609
5610 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
5611
5612 fi
5613 rm -f conftest.l $LEX_OUTPUT_ROOT.c
5614
5615 fi
5616 if test "$LEX" = :; then
5617   LEX=${am_missing_run}flex
5618 fi
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5621 $as_echo_n "checking whether ln -s works... " >&6; }
5622 LN_S=$as_ln_s
5623 if test "$LN_S" = "ln -s"; then
5624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5625 $as_echo "yes" >&6; }
5626 else
5627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5628 $as_echo "no, using $LN_S" >&6; }
5629 fi
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5632 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5633 set x ${MAKE-make}
5634 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5635 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5636   $as_echo_n "(cached) " >&6
5637 else
5638   cat >conftest.make <<\_ACEOF
5639 SHELL = /bin/sh
5640 all:
5641         @echo '@@@%%%=$(MAKE)=@@@%%%'
5642 _ACEOF
5643 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5644 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5645   *@@@%%%=?*=@@@%%%*)
5646     eval ac_cv_prog_make_${ac_make}_set=yes;;
5647   *)
5648     eval ac_cv_prog_make_${ac_make}_set=no;;
5649 esac
5650 rm -f conftest.make
5651 fi
5652 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5653   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5654 $as_echo "yes" >&6; }
5655   SET_MAKE=
5656 else
5657   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658 $as_echo "no" >&6; }
5659   SET_MAKE="MAKE=${MAKE-make}"
5660 fi
5661
5662 case `pwd` in
5663   *\ * | *\     *)
5664     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5665 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5666 esac
5667
5668
5669
5670 macro_version='2.2.6'
5671 macro_revision='1.3012'
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685 ltmain="$ac_aux_dir/ltmain.sh"
5686
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5688 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5689 if test "${ac_cv_path_SED+set}" = set; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5693      for ac_i in 1 2 3 4 5 6 7; do
5694        ac_script="$ac_script$as_nl$ac_script"
5695      done
5696      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5697      { ac_script=; unset ac_script;}
5698      if test -z "$SED"; then
5699   ac_path_SED_found=false
5700   # Loop through the user's path and test for each of PROGNAME-LIST
5701   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5702 for as_dir in $PATH
5703 do
5704   IFS=$as_save_IFS
5705   test -z "$as_dir" && as_dir=.
5706     for ac_prog in sed gsed; do
5707     for ac_exec_ext in '' $ac_executable_extensions; do
5708       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5709       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5710 # Check for GNU ac_path_SED and select it if it is found.
5711   # Check for GNU $ac_path_SED
5712 case `"$ac_path_SED" --version 2>&1` in
5713 *GNU*)
5714   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5715 *)
5716   ac_count=0
5717   $as_echo_n 0123456789 >"conftest.in"
5718   while :
5719   do
5720     cat "conftest.in" "conftest.in" >"conftest.tmp"
5721     mv "conftest.tmp" "conftest.in"
5722     cp "conftest.in" "conftest.nl"
5723     $as_echo '' >> "conftest.nl"
5724     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726     as_fn_arith $ac_count + 1 && ac_count=$as_val
5727     if test $ac_count -gt ${ac_path_SED_max-0}; then
5728       # Best one so far, save it but keep looking for a better one
5729       ac_cv_path_SED="$ac_path_SED"
5730       ac_path_SED_max=$ac_count
5731     fi
5732     # 10*(2^10) chars as input seems more than enough
5733     test $ac_count -gt 10 && break
5734   done
5735   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5736 esac
5737
5738       $ac_path_SED_found && break 3
5739     done
5740   done
5741   done
5742 IFS=$as_save_IFS
5743   if test -z "$ac_cv_path_SED"; then
5744     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5745   fi
5746 else
5747   ac_cv_path_SED=$SED
5748 fi
5749
5750 fi
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5752 $as_echo "$ac_cv_path_SED" >&6; }
5753  SED="$ac_cv_path_SED"
5754   rm -f conftest.sed
5755
5756 test -z "$SED" && SED=sed
5757 Xsed="$SED -e 1s/^X//"
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5770 $as_echo_n "checking for fgrep... " >&6; }
5771 if test "${ac_cv_path_FGREP+set}" = set; then :
5772   $as_echo_n "(cached) " >&6
5773 else
5774   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5775    then ac_cv_path_FGREP="$GREP -F"
5776    else
5777      if test -z "$FGREP"; then
5778   ac_path_FGREP_found=false
5779   # Loop through the user's path and test for each of PROGNAME-LIST
5780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5781 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5782 do
5783   IFS=$as_save_IFS
5784   test -z "$as_dir" && as_dir=.
5785     for ac_prog in fgrep; do
5786     for ac_exec_ext in '' $ac_executable_extensions; do
5787       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5788       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5789 # Check for GNU ac_path_FGREP and select it if it is found.
5790   # Check for GNU $ac_path_FGREP
5791 case `"$ac_path_FGREP" --version 2>&1` in
5792 *GNU*)
5793   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5794 *)
5795   ac_count=0
5796   $as_echo_n 0123456789 >"conftest.in"
5797   while :
5798   do
5799     cat "conftest.in" "conftest.in" >"conftest.tmp"
5800     mv "conftest.tmp" "conftest.in"
5801     cp "conftest.in" "conftest.nl"
5802     $as_echo 'FGREP' >> "conftest.nl"
5803     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5804     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5805     as_fn_arith $ac_count + 1 && ac_count=$as_val
5806     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5807       # Best one so far, save it but keep looking for a better one
5808       ac_cv_path_FGREP="$ac_path_FGREP"
5809       ac_path_FGREP_max=$ac_count
5810     fi
5811     # 10*(2^10) chars as input seems more than enough
5812     test $ac_count -gt 10 && break
5813   done
5814   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5815 esac
5816
5817       $ac_path_FGREP_found && break 3
5818     done
5819   done
5820   done
5821 IFS=$as_save_IFS
5822   if test -z "$ac_cv_path_FGREP"; then
5823     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5824   fi
5825 else
5826   ac_cv_path_FGREP=$FGREP
5827 fi
5828
5829    fi
5830 fi
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5832 $as_echo "$ac_cv_path_FGREP" >&6; }
5833  FGREP="$ac_cv_path_FGREP"
5834
5835
5836 test -z "$GREP" && GREP=grep
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856 # Check whether --with-gnu-ld was given.
5857 if test "${with_gnu_ld+set}" = set; then :
5858   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5859 else
5860   with_gnu_ld=no
5861 fi
5862
5863 ac_prog=ld
5864 if test "$GCC" = yes; then
5865   # Check if gcc -print-prog-name=ld gives a path.
5866   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5867 $as_echo_n "checking for ld used by $CC... " >&6; }
5868   case $host in
5869   *-*-mingw*)
5870     # gcc leaves a trailing carriage return which upsets mingw
5871     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5872   *)
5873     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5874   esac
5875   case $ac_prog in
5876     # Accept absolute paths.
5877     [\\/]* | ?:[\\/]*)
5878       re_direlt='/[^/][^/]*/\.\./'
5879       # Canonicalize the pathname of ld
5880       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5881       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5882         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5883       done
5884       test -z "$LD" && LD="$ac_prog"
5885       ;;
5886   "")
5887     # If it fails, then pretend we aren't using GCC.
5888     ac_prog=ld
5889     ;;
5890   *)
5891     # If it is relative, then search for the first ld in PATH.
5892     with_gnu_ld=unknown
5893     ;;
5894   esac
5895 elif test "$with_gnu_ld" = yes; then
5896   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5897 $as_echo_n "checking for GNU ld... " >&6; }
5898 else
5899   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5900 $as_echo_n "checking for non-GNU ld... " >&6; }
5901 fi
5902 if test "${lt_cv_path_LD+set}" = set; then :
5903   $as_echo_n "(cached) " >&6
5904 else
5905   if test -z "$LD"; then
5906   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5907   for ac_dir in $PATH; do
5908     IFS="$lt_save_ifs"
5909     test -z "$ac_dir" && ac_dir=.
5910     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5911       lt_cv_path_LD="$ac_dir/$ac_prog"
5912       # Check to see if the program is GNU ld.  I'd rather use --version,
5913       # but apparently some variants of GNU ld only accept -v.
5914       # Break only if it was the GNU/non-GNU ld that we prefer.
5915       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5916       *GNU* | *'with BFD'*)
5917         test "$with_gnu_ld" != no && break
5918         ;;
5919       *)
5920         test "$with_gnu_ld" != yes && break
5921         ;;
5922       esac
5923     fi
5924   done
5925   IFS="$lt_save_ifs"
5926 else
5927   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5928 fi
5929 fi
5930
5931 LD="$lt_cv_path_LD"
5932 if test -n "$LD"; then
5933   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5934 $as_echo "$LD" >&6; }
5935 else
5936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5937 $as_echo "no" >&6; }
5938 fi
5939 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5942 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5943   $as_echo_n "(cached) " >&6
5944 else
5945   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5946 case `$LD -v 2>&1 </dev/null` in
5947 *GNU* | *'with BFD'*)
5948   lt_cv_prog_gnu_ld=yes
5949   ;;
5950 *)
5951   lt_cv_prog_gnu_ld=no
5952   ;;
5953 esac
5954 fi
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5956 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5957 with_gnu_ld=$lt_cv_prog_gnu_ld
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5968 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5969 if test "${lt_cv_path_NM+set}" = set; then :
5970   $as_echo_n "(cached) " >&6
5971 else
5972   if test -n "$NM"; then
5973   # Let the user override the test.
5974   lt_cv_path_NM="$NM"
5975 else
5976   lt_nm_to_check="${ac_tool_prefix}nm"
5977   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5978     lt_nm_to_check="$lt_nm_to_check nm"
5979   fi
5980   for lt_tmp_nm in $lt_nm_to_check; do
5981     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5982     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5983       IFS="$lt_save_ifs"
5984       test -z "$ac_dir" && ac_dir=.
5985       tmp_nm="$ac_dir/$lt_tmp_nm"
5986       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5987         # Check to see if the nm accepts a BSD-compat flag.
5988         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5989         #   nm: unknown option "B" ignored
5990         # Tru64's nm complains that /dev/null is an invalid object file
5991         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5992         */dev/null* | *'Invalid file or object type'*)
5993           lt_cv_path_NM="$tmp_nm -B"
5994           break
5995           ;;
5996         *)
5997           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5998           */dev/null*)
5999             lt_cv_path_NM="$tmp_nm -p"
6000             break
6001             ;;
6002           *)
6003             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6004             continue # so that we can try to find one that supports BSD flags
6005             ;;
6006           esac
6007           ;;
6008         esac
6009       fi
6010     done
6011     IFS="$lt_save_ifs"
6012   done
6013   : ${lt_cv_path_NM=no}
6014 fi
6015 fi
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6017 $as_echo "$lt_cv_path_NM" >&6; }
6018 if test "$lt_cv_path_NM" != "no"; then
6019   NM="$lt_cv_path_NM"
6020 else
6021   # Didn't find any BSD compatible name lister, look for dumpbin.
6022   if test -n "$ac_tool_prefix"; then
6023   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6024   do
6025     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6026 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6030   $as_echo_n "(cached) " >&6
6031 else
6032   if test -n "$DUMPBIN"; then
6033   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6037 do
6038   IFS=$as_save_IFS
6039   test -z "$as_dir" && as_dir=.
6040     for ac_exec_ext in '' $ac_executable_extensions; do
6041   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044     break 2
6045   fi
6046 done
6047   done
6048 IFS=$as_save_IFS
6049
6050 fi
6051 fi
6052 DUMPBIN=$ac_cv_prog_DUMPBIN
6053 if test -n "$DUMPBIN"; then
6054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6055 $as_echo "$DUMPBIN" >&6; }
6056 else
6057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6059 fi
6060
6061
6062     test -n "$DUMPBIN" && break
6063   done
6064 fi
6065 if test -z "$DUMPBIN"; then
6066   ac_ct_DUMPBIN=$DUMPBIN
6067   for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6068 do
6069   # Extract the first word of "$ac_prog", so it can be a program name with args.
6070 set dummy $ac_prog; ac_word=$2
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6072 $as_echo_n "checking for $ac_word... " >&6; }
6073 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6074   $as_echo_n "(cached) " >&6
6075 else
6076   if test -n "$ac_ct_DUMPBIN"; then
6077   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6078 else
6079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6080 for as_dir in $PATH
6081 do
6082   IFS=$as_save_IFS
6083   test -z "$as_dir" && as_dir=.
6084     for ac_exec_ext in '' $ac_executable_extensions; do
6085   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6086     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6087     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6088     break 2
6089   fi
6090 done
6091   done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6097 if test -n "$ac_ct_DUMPBIN"; then
6098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6099 $as_echo "$ac_ct_DUMPBIN" >&6; }
6100 else
6101   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 $as_echo "no" >&6; }
6103 fi
6104
6105
6106   test -n "$ac_ct_DUMPBIN" && break
6107 done
6108
6109   if test "x$ac_ct_DUMPBIN" = x; then
6110     DUMPBIN=":"
6111   else
6112     case $cross_compiling:$ac_tool_warned in
6113 yes:)
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6116 ac_tool_warned=yes ;;
6117 esac
6118     DUMPBIN=$ac_ct_DUMPBIN
6119   fi
6120 fi
6121
6122
6123   if test "$DUMPBIN" != ":"; then
6124     NM="$DUMPBIN"
6125   fi
6126 fi
6127 test -z "$NM" && NM=nm
6128
6129
6130
6131
6132
6133
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6135 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6136 if test "${lt_cv_nm_interface+set}" = set; then :
6137   $as_echo_n "(cached) " >&6
6138 else
6139   lt_cv_nm_interface="BSD nm"
6140   echo "int some_variable = 0;" > conftest.$ac_ext
6141   (eval echo "\"\$as_me:6141: $ac_compile\"" >&5)
6142   (eval "$ac_compile" 2>conftest.err)
6143   cat conftest.err >&5
6144   (eval echo "\"\$as_me:6144: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6145   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6146   cat conftest.err >&5
6147   (eval echo "\"\$as_me:6147: output\"" >&5)
6148   cat conftest.out >&5
6149   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6150     lt_cv_nm_interface="MS dumpbin"
6151   fi
6152   rm -f conftest*
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6155 $as_echo "$lt_cv_nm_interface" >&6; }
6156
6157 # find the maximum length of command line arguments
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6159 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6160 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6161   $as_echo_n "(cached) " >&6
6162 else
6163     i=0
6164   teststring="ABCD"
6165
6166   case $build_os in
6167   msdosdjgpp*)
6168     # On DJGPP, this test can blow up pretty badly due to problems in libc
6169     # (any single argument exceeding 2000 bytes causes a buffer overrun
6170     # during glob expansion).  Even if it were fixed, the result of this
6171     # check would be larger than it should be.
6172     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6173     ;;
6174
6175   gnu*)
6176     # Under GNU Hurd, this test is not required because there is
6177     # no limit to the length of command line arguments.
6178     # Libtool will interpret -1 as no limit whatsoever
6179     lt_cv_sys_max_cmd_len=-1;
6180     ;;
6181
6182   cygwin* | mingw* | cegcc*)
6183     # On Win9x/ME, this test blows up -- it succeeds, but takes
6184     # about 5 minutes as the teststring grows exponentially.
6185     # Worse, since 9x/ME are not pre-emptively multitasking,
6186     # you end up with a "frozen" computer, even though with patience
6187     # the test eventually succeeds (with a max line length of 256k).
6188     # Instead, let's just punt: use the minimum linelength reported by
6189     # all of the supported platforms: 8192 (on NT/2K/XP).
6190     lt_cv_sys_max_cmd_len=8192;
6191     ;;
6192
6193   amigaos*)
6194     # On AmigaOS with pdksh, this test takes hours, literally.
6195     # So we just punt and use a minimum line length of 8192.
6196     lt_cv_sys_max_cmd_len=8192;
6197     ;;
6198
6199   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6200     # This has been around since 386BSD, at least.  Likely further.
6201     if test -x /sbin/sysctl; then
6202       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6203     elif test -x /usr/sbin/sysctl; then
6204       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6205     else
6206       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6207     fi
6208     # And add a safety zone
6209     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6210     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6211     ;;
6212
6213   interix*)
6214     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6215     lt_cv_sys_max_cmd_len=196608
6216     ;;
6217
6218   osf*)
6219     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6220     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6221     # nice to cause kernel panics so lets avoid the loop below.
6222     # First set a reasonable default.
6223     lt_cv_sys_max_cmd_len=16384
6224     #
6225     if test -x /sbin/sysconfig; then
6226       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6227         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6228       esac
6229     fi
6230     ;;
6231   sco3.2v5*)
6232     lt_cv_sys_max_cmd_len=102400
6233     ;;
6234   sysv5* | sco5v6* | sysv4.2uw2*)
6235     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6236     if test -n "$kargmax"; then
6237       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6238     else
6239       lt_cv_sys_max_cmd_len=32768
6240     fi
6241     ;;
6242   *)
6243     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6244     if test -n "$lt_cv_sys_max_cmd_len"; then
6245       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6246       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6247     else
6248       # Make teststring a little bigger before we do anything with it.
6249       # a 1K string should be a reasonable start.
6250       for i in 1 2 3 4 5 6 7 8 ; do
6251         teststring=$teststring$teststring
6252       done
6253       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6254       # If test is not a shell built-in, we'll probably end up computing a
6255       # maximum length that is only half of the actual maximum length, but
6256       # we can't tell.
6257       while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6258                  = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6259               test $i != 17 # 1/2 MB should be enough
6260       do
6261         i=`expr $i + 1`
6262         teststring=$teststring$teststring
6263       done
6264       # Only check the string length outside the loop.
6265       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6266       teststring=
6267       # Add a significant safety factor because C++ compilers can tack on
6268       # massive amounts of additional arguments before passing them to the
6269       # linker.  It appears as though 1/2 is a usable value.
6270       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6271     fi
6272     ;;
6273   esac
6274
6275 fi
6276
6277 if test -n $lt_cv_sys_max_cmd_len ; then
6278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6279 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6280 else
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6282 $as_echo "none" >&6; }
6283 fi
6284 max_cmd_len=$lt_cv_sys_max_cmd_len
6285
6286
6287
6288
6289
6290
6291 : ${CP="cp -f"}
6292 : ${MV="mv -f"}
6293 : ${RM="rm -f"}
6294
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6296 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6297 # Try some XSI features
6298 xsi_shell=no
6299 ( _lt_dummy="a/b/c"
6300   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6301       = c,a/b,, \
6302     && eval 'test $(( 1 + 1 )) -eq 2 \
6303     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6304   && xsi_shell=yes
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6306 $as_echo "$xsi_shell" >&6; }
6307
6308
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6310 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6311 lt_shell_append=no
6312 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6313     >/dev/null 2>&1 \
6314   && lt_shell_append=yes
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6316 $as_echo "$lt_shell_append" >&6; }
6317
6318
6319 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6320   lt_unset=unset
6321 else
6322   lt_unset=false
6323 fi
6324
6325
6326
6327
6328
6329 # test EBCDIC or ASCII
6330 case `echo X|tr X '\101'` in
6331  A) # ASCII based system
6332     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6333   lt_SP2NL='tr \040 \012'
6334   lt_NL2SP='tr \015\012 \040\040'
6335   ;;
6336  *) # EBCDIC based system
6337   lt_SP2NL='tr \100 \n'
6338   lt_NL2SP='tr \r\n \100\100'
6339   ;;
6340 esac
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6351 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6352 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6353   $as_echo_n "(cached) " >&6
6354 else
6355   lt_cv_ld_reload_flag='-r'
6356 fi
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6358 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6359 reload_flag=$lt_cv_ld_reload_flag
6360 case $reload_flag in
6361 "" | " "*) ;;
6362 *) reload_flag=" $reload_flag" ;;
6363 esac
6364 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6365 case $host_os in
6366   darwin*)
6367     if test "$GCC" = yes; then
6368       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6369     else
6370       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6371     fi
6372     ;;
6373 esac
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383 if test -n "$ac_tool_prefix"; then
6384   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6385 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6387 $as_echo_n "checking for $ac_word... " >&6; }
6388 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6389   $as_echo_n "(cached) " >&6
6390 else
6391   if test -n "$OBJDUMP"; then
6392   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6393 else
6394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6395 for as_dir in $PATH
6396 do
6397   IFS=$as_save_IFS
6398   test -z "$as_dir" && as_dir=.
6399     for ac_exec_ext in '' $ac_executable_extensions; do
6400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6401     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6403     break 2
6404   fi
6405 done
6406   done
6407 IFS=$as_save_IFS
6408
6409 fi
6410 fi
6411 OBJDUMP=$ac_cv_prog_OBJDUMP
6412 if test -n "$OBJDUMP"; then
6413   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6414 $as_echo "$OBJDUMP" >&6; }
6415 else
6416   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417 $as_echo "no" >&6; }
6418 fi
6419
6420
6421 fi
6422 if test -z "$ac_cv_prog_OBJDUMP"; then
6423   ac_ct_OBJDUMP=$OBJDUMP
6424   # Extract the first word of "objdump", so it can be a program name with args.
6425 set dummy objdump; ac_word=$2
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6427 $as_echo_n "checking for $ac_word... " >&6; }
6428 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6429   $as_echo_n "(cached) " >&6
6430 else
6431   if test -n "$ac_ct_OBJDUMP"; then
6432   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6433 else
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH
6436 do
6437   IFS=$as_save_IFS
6438   test -z "$as_dir" && as_dir=.
6439     for ac_exec_ext in '' $ac_executable_extensions; do
6440   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6441     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6442     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6443     break 2
6444   fi
6445 done
6446   done
6447 IFS=$as_save_IFS
6448
6449 fi
6450 fi
6451 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6452 if test -n "$ac_ct_OBJDUMP"; then
6453   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6454 $as_echo "$ac_ct_OBJDUMP" >&6; }
6455 else
6456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6457 $as_echo "no" >&6; }
6458 fi
6459
6460   if test "x$ac_ct_OBJDUMP" = x; then
6461     OBJDUMP="false"
6462   else
6463     case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469     OBJDUMP=$ac_ct_OBJDUMP
6470   fi
6471 else
6472   OBJDUMP="$ac_cv_prog_OBJDUMP"
6473 fi
6474
6475 test -z "$OBJDUMP" && OBJDUMP=objdump
6476
6477
6478
6479
6480
6481
6482
6483
6484
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6486 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6487 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6488   $as_echo_n "(cached) " >&6
6489 else
6490   lt_cv_file_magic_cmd='$MAGIC_CMD'
6491 lt_cv_file_magic_test_file=
6492 lt_cv_deplibs_check_method='unknown'
6493 # Need to set the preceding variable on all platforms that support
6494 # interlibrary dependencies.
6495 # 'none' -- dependencies not supported.
6496 # `unknown' -- same as none, but documents that we really don't know.
6497 # 'pass_all' -- all dependencies passed with no checks.
6498 # 'test_compile' -- check by making test program.
6499 # 'file_magic [[regex]]' -- check by looking for files in library path
6500 # which responds to the $file_magic_cmd with a given extended regex.
6501 # If you have `file' or equivalent on your system and you're not sure
6502 # whether `pass_all' will *always* work, you probably want this one.
6503
6504 case $host_os in
6505 aix[4-9]*)
6506   lt_cv_deplibs_check_method=pass_all
6507   ;;
6508
6509 beos*)
6510   lt_cv_deplibs_check_method=pass_all
6511   ;;
6512
6513 bsdi[45]*)
6514   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6515   lt_cv_file_magic_cmd='/usr/bin/file -L'
6516   lt_cv_file_magic_test_file=/shlib/libc.so
6517   ;;
6518
6519 cygwin*)
6520   # func_win32_libid is a shell function defined in ltmain.sh
6521   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6522   lt_cv_file_magic_cmd='func_win32_libid'
6523   ;;
6524
6525 mingw* | pw32*)
6526   # Base MSYS/MinGW do not provide the 'file' command needed by
6527   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6528   # unless we find 'file', for example because we are cross-compiling.
6529   if ( file / ) >/dev/null 2>&1; then
6530     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6531     lt_cv_file_magic_cmd='func_win32_libid'
6532   else
6533     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6534     lt_cv_file_magic_cmd='$OBJDUMP -f'
6535   fi
6536   ;;
6537
6538 cegcc)
6539   # use the weaker test based on 'objdump'. See mingw*.
6540   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6541   lt_cv_file_magic_cmd='$OBJDUMP -f'
6542   ;;
6543
6544 darwin* | rhapsody*)
6545   lt_cv_deplibs_check_method=pass_all
6546   ;;
6547
6548 freebsd* | dragonfly*)
6549   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550     case $host_cpu in
6551     i*86 )
6552       # Not sure whether the presence of OpenBSD here was a mistake.
6553       # Let's accept both of them until this is cleared up.
6554       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6555       lt_cv_file_magic_cmd=/usr/bin/file
6556       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6557       ;;
6558     esac
6559   else
6560     lt_cv_deplibs_check_method=pass_all
6561   fi
6562   ;;
6563
6564 gnu*)
6565   lt_cv_deplibs_check_method=pass_all
6566   ;;
6567
6568 hpux10.20* | hpux11*)
6569   lt_cv_file_magic_cmd=/usr/bin/file
6570   case $host_cpu in
6571   ia64*)
6572     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6573     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6574     ;;
6575   hppa*64*)
6576     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6577     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6578     ;;
6579   *)
6580     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6581     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6582     ;;
6583   esac
6584   ;;
6585
6586 interix[3-9]*)
6587   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6588   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6589   ;;
6590
6591 irix5* | irix6* | nonstopux*)
6592   case $LD in
6593   *-32|*"-32 ") libmagic=32-bit;;
6594   *-n32|*"-n32 ") libmagic=N32;;
6595   *-64|*"-64 ") libmagic=64-bit;;
6596   *) libmagic=never-match;;
6597   esac
6598   lt_cv_deplibs_check_method=pass_all
6599   ;;
6600
6601 # This must be Linux ELF.
6602 linux* | k*bsd*-gnu)
6603   lt_cv_deplibs_check_method=pass_all
6604   ;;
6605
6606 netbsd*)
6607   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6608     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6609   else
6610     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6611   fi
6612   ;;
6613
6614 newos6*)
6615   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6616   lt_cv_file_magic_cmd=/usr/bin/file
6617   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6618   ;;
6619
6620 *nto* | *qnx*)
6621   lt_cv_deplibs_check_method=pass_all
6622   ;;
6623
6624 openbsd*)
6625   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6626     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6627   else
6628     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6629   fi
6630   ;;
6631
6632 osf3* | osf4* | osf5*)
6633   lt_cv_deplibs_check_method=pass_all
6634   ;;
6635
6636 rdos*)
6637   lt_cv_deplibs_check_method=pass_all
6638   ;;
6639
6640 solaris*)
6641   lt_cv_deplibs_check_method=pass_all
6642   ;;
6643
6644 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6645   lt_cv_deplibs_check_method=pass_all
6646   ;;
6647
6648 sysv4 | sysv4.3*)
6649   case $host_vendor in
6650   motorola)
6651     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]'
6652     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6653     ;;
6654   ncr)
6655     lt_cv_deplibs_check_method=pass_all
6656     ;;
6657   sequent)
6658     lt_cv_file_magic_cmd='/bin/file'
6659     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6660     ;;
6661   sni)
6662     lt_cv_file_magic_cmd='/bin/file'
6663     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6664     lt_cv_file_magic_test_file=/lib/libc.so
6665     ;;
6666   siemens)
6667     lt_cv_deplibs_check_method=pass_all
6668     ;;
6669   pc)
6670     lt_cv_deplibs_check_method=pass_all
6671     ;;
6672   esac
6673   ;;
6674
6675 tpf*)
6676   lt_cv_deplibs_check_method=pass_all
6677   ;;
6678 esac
6679
6680 fi
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6682 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6683 file_magic_cmd=$lt_cv_file_magic_cmd
6684 deplibs_check_method=$lt_cv_deplibs_check_method
6685 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698 if test -n "$ac_tool_prefix"; then
6699   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6700 set dummy ${ac_tool_prefix}ar; ac_word=$2
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6702 $as_echo_n "checking for $ac_word... " >&6; }
6703 if test "${ac_cv_prog_AR+set}" = set; then :
6704   $as_echo_n "(cached) " >&6
6705 else
6706   if test -n "$AR"; then
6707   ac_cv_prog_AR="$AR" # Let the user override the test.
6708 else
6709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6710 for as_dir in $PATH
6711 do
6712   IFS=$as_save_IFS
6713   test -z "$as_dir" && as_dir=.
6714     for ac_exec_ext in '' $ac_executable_extensions; do
6715   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6716     ac_cv_prog_AR="${ac_tool_prefix}ar"
6717     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6718     break 2
6719   fi
6720 done
6721   done
6722 IFS=$as_save_IFS
6723
6724 fi
6725 fi
6726 AR=$ac_cv_prog_AR
6727 if test -n "$AR"; then
6728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6729 $as_echo "$AR" >&6; }
6730 else
6731   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6732 $as_echo "no" >&6; }
6733 fi
6734
6735
6736 fi
6737 if test -z "$ac_cv_prog_AR"; then
6738   ac_ct_AR=$AR
6739   # Extract the first word of "ar", so it can be a program name with args.
6740 set dummy ar; ac_word=$2
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6742 $as_echo_n "checking for $ac_word... " >&6; }
6743 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6744   $as_echo_n "(cached) " >&6
6745 else
6746   if test -n "$ac_ct_AR"; then
6747   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6748 else
6749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6750 for as_dir in $PATH
6751 do
6752   IFS=$as_save_IFS
6753   test -z "$as_dir" && as_dir=.
6754     for ac_exec_ext in '' $ac_executable_extensions; do
6755   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6756     ac_cv_prog_ac_ct_AR="ar"
6757     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6758     break 2
6759   fi
6760 done
6761   done
6762 IFS=$as_save_IFS
6763
6764 fi
6765 fi
6766 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6767 if test -n "$ac_ct_AR"; then
6768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6769 $as_echo "$ac_ct_AR" >&6; }
6770 else
6771   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6772 $as_echo "no" >&6; }
6773 fi
6774
6775   if test "x$ac_ct_AR" = x; then
6776     AR="false"
6777   else
6778     case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784     AR=$ac_ct_AR
6785   fi
6786 else
6787   AR="$ac_cv_prog_AR"
6788 fi
6789
6790 test -z "$AR" && AR=ar
6791 test -z "$AR_FLAGS" && AR_FLAGS=cru
6792
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803 if test -n "$ac_tool_prefix"; then
6804   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6805 set dummy ${ac_tool_prefix}strip; ac_word=$2
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6807 $as_echo_n "checking for $ac_word... " >&6; }
6808 if test "${ac_cv_prog_STRIP+set}" = set; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   if test -n "$STRIP"; then
6812   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6813 else
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6815 for as_dir in $PATH
6816 do
6817   IFS=$as_save_IFS
6818   test -z "$as_dir" && as_dir=.
6819     for ac_exec_ext in '' $ac_executable_extensions; do
6820   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6821     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6823     break 2
6824   fi
6825 done
6826   done
6827 IFS=$as_save_IFS
6828
6829 fi
6830 fi
6831 STRIP=$ac_cv_prog_STRIP
6832 if test -n "$STRIP"; then
6833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6834 $as_echo "$STRIP" >&6; }
6835 else
6836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6837 $as_echo "no" >&6; }
6838 fi
6839
6840
6841 fi
6842 if test -z "$ac_cv_prog_STRIP"; then
6843   ac_ct_STRIP=$STRIP
6844   # Extract the first word of "strip", so it can be a program name with args.
6845 set dummy strip; ac_word=$2
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6847 $as_echo_n "checking for $ac_word... " >&6; }
6848 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6849   $as_echo_n "(cached) " >&6
6850 else
6851   if test -n "$ac_ct_STRIP"; then
6852   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6853 else
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6855 for as_dir in $PATH
6856 do
6857   IFS=$as_save_IFS
6858   test -z "$as_dir" && as_dir=.
6859     for ac_exec_ext in '' $ac_executable_extensions; do
6860   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6861     ac_cv_prog_ac_ct_STRIP="strip"
6862     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6863     break 2
6864   fi
6865 done
6866   done
6867 IFS=$as_save_IFS
6868
6869 fi
6870 fi
6871 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6872 if test -n "$ac_ct_STRIP"; then
6873   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6874 $as_echo "$ac_ct_STRIP" >&6; }
6875 else
6876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6877 $as_echo "no" >&6; }
6878 fi
6879
6880   if test "x$ac_ct_STRIP" = x; then
6881     STRIP=":"
6882   else
6883     case $cross_compiling:$ac_tool_warned in
6884 yes:)
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6886 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6887 ac_tool_warned=yes ;;
6888 esac
6889     STRIP=$ac_ct_STRIP
6890   fi
6891 else
6892   STRIP="$ac_cv_prog_STRIP"
6893 fi
6894
6895 test -z "$STRIP" && STRIP=:
6896
6897
6898
6899
6900
6901
6902 if test -n "$ac_tool_prefix"; then
6903   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6904 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6906 $as_echo_n "checking for $ac_word... " >&6; }
6907 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6908   $as_echo_n "(cached) " >&6
6909 else
6910   if test -n "$RANLIB"; then
6911   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6912 else
6913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 for as_dir in $PATH
6915 do
6916   IFS=$as_save_IFS
6917   test -z "$as_dir" && as_dir=.
6918     for ac_exec_ext in '' $ac_executable_extensions; do
6919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6920     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6922     break 2
6923   fi
6924 done
6925   done
6926 IFS=$as_save_IFS
6927
6928 fi
6929 fi
6930 RANLIB=$ac_cv_prog_RANLIB
6931 if test -n "$RANLIB"; then
6932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6933 $as_echo "$RANLIB" >&6; }
6934 else
6935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6937 fi
6938
6939
6940 fi
6941 if test -z "$ac_cv_prog_RANLIB"; then
6942   ac_ct_RANLIB=$RANLIB
6943   # Extract the first word of "ranlib", so it can be a program name with args.
6944 set dummy ranlib; ac_word=$2
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6946 $as_echo_n "checking for $ac_word... " >&6; }
6947 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6948   $as_echo_n "(cached) " >&6
6949 else
6950   if test -n "$ac_ct_RANLIB"; then
6951   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6952 else
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH
6955 do
6956   IFS=$as_save_IFS
6957   test -z "$as_dir" && as_dir=.
6958     for ac_exec_ext in '' $ac_executable_extensions; do
6959   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6960     ac_cv_prog_ac_ct_RANLIB="ranlib"
6961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962     break 2
6963   fi
6964 done
6965   done
6966 IFS=$as_save_IFS
6967
6968 fi
6969 fi
6970 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6971 if test -n "$ac_ct_RANLIB"; then
6972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6973 $as_echo "$ac_ct_RANLIB" >&6; }
6974 else
6975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6976 $as_echo "no" >&6; }
6977 fi
6978
6979   if test "x$ac_ct_RANLIB" = x; then
6980     RANLIB=":"
6981   else
6982     case $cross_compiling:$ac_tool_warned in
6983 yes:)
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6986 ac_tool_warned=yes ;;
6987 esac
6988     RANLIB=$ac_ct_RANLIB
6989   fi
6990 else
6991   RANLIB="$ac_cv_prog_RANLIB"
6992 fi
6993
6994 test -z "$RANLIB" && RANLIB=:
6995
6996
6997
6998
6999
7000
7001 # Determine commands to create old-style static archives.
7002 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7003 old_postinstall_cmds='chmod 644 $oldlib'
7004 old_postuninstall_cmds=
7005
7006 if test -n "$RANLIB"; then
7007   case $host_os in
7008   openbsd*)
7009     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7010     ;;
7011   *)
7012     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7013     ;;
7014   esac
7015   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7016 fi
7017
7018
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051 # If no C compiler was specified, use CC.
7052 LTCC=${LTCC-"$CC"}
7053
7054 # If no C compiler flags were specified, use CFLAGS.
7055 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7056
7057 # Allow CC to be a program name with arguments.
7058 compiler=$CC
7059
7060
7061 # Check for command to grab the raw symbol name followed by C symbol from nm.
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7063 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7064 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7065   $as_echo_n "(cached) " >&6
7066 else
7067
7068 # These are sane defaults that work on at least a few old systems.
7069 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7070
7071 # Character class describing NM global symbol codes.
7072 symcode='[BCDEGRST]'
7073
7074 # Regexp to match symbols that can be accessed directly from C.
7075 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7076
7077 # Define system-specific variables.
7078 case $host_os in
7079 aix*)
7080   symcode='[BCDT]'
7081   ;;
7082 cygwin* | mingw* | pw32* | cegcc*)
7083   symcode='[ABCDGISTW]'
7084   ;;
7085 hpux*)
7086   if test "$host_cpu" = ia64; then
7087     symcode='[ABCDEGRST]'
7088   fi
7089   ;;
7090 irix* | nonstopux*)
7091   symcode='[BCDEGRST]'
7092   ;;
7093 osf*)
7094   symcode='[BCDEGQRST]'
7095   ;;
7096 solaris*)
7097   symcode='[BDRT]'
7098   ;;
7099 sco3.2v5*)
7100   symcode='[DT]'
7101   ;;
7102 sysv4.2uw2*)
7103   symcode='[DT]'
7104   ;;
7105 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7106   symcode='[ABDT]'
7107   ;;
7108 sysv4)
7109   symcode='[DFNSTU]'
7110   ;;
7111 esac
7112
7113 # If we're using GNU nm, then use its standard symbol codes.
7114 case `$NM -V 2>&1` in
7115 *GNU* | *'with BFD'*)
7116   symcode='[ABCDGIRSTW]' ;;
7117 esac
7118
7119 # Transform an extracted symbol line into a proper C declaration.
7120 # Some systems (esp. on ia64) link data and code symbols differently,
7121 # so use this general approach.
7122 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7123
7124 # Transform an extracted symbol line into symbol name and symbol address
7125 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7126 lt_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'"
7127
7128 # Handle CRLF in mingw tool chain
7129 opt_cr=
7130 case $build_os in
7131 mingw*)
7132   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7133   ;;
7134 esac
7135
7136 # Try without a prefix underscore, then with it.
7137 for ac_symprfx in "" "_"; do
7138
7139   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7140   symxfrm="\\1 $ac_symprfx\\2 \\2"
7141
7142   # Write the raw and C identifiers.
7143   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7144     # Fake it for dumpbin and say T for any non-static function
7145     # and D for any global variable.
7146     # Also find C++ and __fastcall symbols from MSVC++,
7147     # which start with @ or ?.
7148     lt_cv_sys_global_symbol_pipe="$AWK '"\
7149 "     {last_section=section; section=\$ 3};"\
7150 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7151 "     \$ 0!~/External *\|/{next};"\
7152 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7153 "     {if(hide[section]) next};"\
7154 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7155 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7156 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7157 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7158 "     ' prfx=^$ac_symprfx"
7159   else
7160     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7161   fi
7162
7163   # Check to see that the pipe works correctly.
7164   pipe_works=no
7165
7166   rm -f conftest*
7167   cat > conftest.$ac_ext <<_LT_EOF
7168 #ifdef __cplusplus
7169 extern "C" {
7170 #endif
7171 char nm_test_var;
7172 void nm_test_func(void);
7173 void nm_test_func(void){}
7174 #ifdef __cplusplus
7175 }
7176 #endif
7177 int main(){nm_test_var='a';nm_test_func();return(0);}
7178 _LT_EOF
7179
7180   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7181   (eval $ac_compile) 2>&5
7182   ac_status=$?
7183   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7184   test $ac_status = 0; }; then
7185     # Now try to grab the symbols.
7186     nlist=conftest.nm
7187     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7188   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7189   ac_status=$?
7190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7191   test $ac_status = 0; } && test -s "$nlist"; then
7192       # Try sorting and uniquifying the output.
7193       if sort "$nlist" | uniq > "$nlist"T; then
7194         mv -f "$nlist"T "$nlist"
7195       else
7196         rm -f "$nlist"T
7197       fi
7198
7199       # Make sure that we snagged all the symbols we need.
7200       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7201         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7202           cat <<_LT_EOF > conftest.$ac_ext
7203 #ifdef __cplusplus
7204 extern "C" {
7205 #endif
7206
7207 _LT_EOF
7208           # Now generate the symbol file.
7209           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7210
7211           cat <<_LT_EOF >> conftest.$ac_ext
7212
7213 /* The mapping between symbol names and symbols.  */
7214 const struct {
7215   const char *name;
7216   void       *address;
7217 }
7218 lt__PROGRAM__LTX_preloaded_symbols[] =
7219 {
7220   { "@PROGRAM@", (void *) 0 },
7221 _LT_EOF
7222           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7223           cat <<\_LT_EOF >> conftest.$ac_ext
7224   {0, (void *) 0}
7225 };
7226
7227 /* This works around a problem in FreeBSD linker */
7228 #ifdef FREEBSD_WORKAROUND
7229 static const void *lt_preloaded_setup() {
7230   return lt__PROGRAM__LTX_preloaded_symbols;
7231 }
7232 #endif
7233
7234 #ifdef __cplusplus
7235 }
7236 #endif
7237 _LT_EOF
7238           # Now try linking the two files.
7239           mv conftest.$ac_objext conftstm.$ac_objext
7240           lt_save_LIBS="$LIBS"
7241           lt_save_CFLAGS="$CFLAGS"
7242           LIBS="conftstm.$ac_objext"
7243           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7244           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7245   (eval $ac_link) 2>&5
7246   ac_status=$?
7247   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7248   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7249             pipe_works=yes
7250           fi
7251           LIBS="$lt_save_LIBS"
7252           CFLAGS="$lt_save_CFLAGS"
7253         else
7254           echo "cannot find nm_test_func in $nlist" >&5
7255         fi
7256       else
7257         echo "cannot find nm_test_var in $nlist" >&5
7258       fi
7259     else
7260       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7261     fi
7262   else
7263     echo "$progname: failed program was:" >&5
7264     cat conftest.$ac_ext >&5
7265   fi
7266   rm -rf conftest* conftst*
7267
7268   # Do not use the global_symbol_pipe unless it works.
7269   if test "$pipe_works" = yes; then
7270     break
7271   else
7272     lt_cv_sys_global_symbol_pipe=
7273   fi
7274 done
7275
7276 fi
7277
7278 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7279   lt_cv_sys_global_symbol_to_cdecl=
7280 fi
7281 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7282   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7283 $as_echo "failed" >&6; }
7284 else
7285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7286 $as_echo "ok" >&6; }
7287 fi
7288
7289
7290
7291
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310 # Check whether --enable-libtool-lock was given.
7311 if test "${enable_libtool_lock+set}" = set; then :
7312   enableval=$enable_libtool_lock;
7313 fi
7314
7315 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7316
7317 # Some flags need to be propagated to the compiler or linker for good
7318 # libtool support.
7319 case $host in
7320 ia64-*-hpux*)
7321   # Find out which ABI we are using.
7322   echo 'int i;' > conftest.$ac_ext
7323   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7324   (eval $ac_compile) 2>&5
7325   ac_status=$?
7326   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7327   test $ac_status = 0; }; then
7328     case `/usr/bin/file conftest.$ac_objext` in
7329       *ELF-32*)
7330         HPUX_IA64_MODE="32"
7331         ;;
7332       *ELF-64*)
7333         HPUX_IA64_MODE="64"
7334         ;;
7335     esac
7336   fi
7337   rm -rf conftest*
7338   ;;
7339 *-*-irix6*)
7340   # Find out which ABI we are using.
7341   echo '#line 7341 "configure"' > conftest.$ac_ext
7342   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7343   (eval $ac_compile) 2>&5
7344   ac_status=$?
7345   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7346   test $ac_status = 0; }; then
7347     if test "$lt_cv_prog_gnu_ld" = yes; then
7348       case `/usr/bin/file conftest.$ac_objext` in
7349         *32-bit*)
7350           LD="${LD-ld} -melf32bsmip"
7351           ;;
7352         *N32*)
7353           LD="${LD-ld} -melf32bmipn32"
7354           ;;
7355         *64-bit*)
7356           LD="${LD-ld} -melf64bmip"
7357         ;;
7358       esac
7359     else
7360       case `/usr/bin/file conftest.$ac_objext` in
7361         *32-bit*)
7362           LD="${LD-ld} -32"
7363           ;;
7364         *N32*)
7365           LD="${LD-ld} -n32"
7366           ;;
7367         *64-bit*)
7368           LD="${LD-ld} -64"
7369           ;;
7370       esac
7371     fi
7372   fi
7373   rm -rf conftest*
7374   ;;
7375
7376 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7377 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7378   # Find out which ABI we are using.
7379   echo 'int i;' > conftest.$ac_ext
7380   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7381   (eval $ac_compile) 2>&5
7382   ac_status=$?
7383   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7384   test $ac_status = 0; }; then
7385     case `/usr/bin/file conftest.o` in
7386       *32-bit*)
7387         case $host in
7388           x86_64-*kfreebsd*-gnu)
7389             LD="${LD-ld} -m elf_i386_fbsd"
7390             ;;
7391           x86_64-*linux*)
7392             LD="${LD-ld} -m elf_i386"
7393             ;;
7394           ppc64-*linux*|powerpc64-*linux*)
7395             LD="${LD-ld} -m elf32ppclinux"
7396             ;;
7397           s390x-*linux*)
7398             LD="${LD-ld} -m elf_s390"
7399             ;;
7400           sparc64-*linux*)
7401             LD="${LD-ld} -m elf32_sparc"
7402             ;;
7403         esac
7404         ;;
7405       *64-bit*)
7406         case $host in
7407           x86_64-*kfreebsd*-gnu)
7408             LD="${LD-ld} -m elf_x86_64_fbsd"
7409             ;;
7410           x86_64-*linux*)
7411             LD="${LD-ld} -m elf_x86_64"
7412             ;;
7413           ppc*-*linux*|powerpc*-*linux*)
7414             LD="${LD-ld} -m elf64ppc"
7415             ;;
7416           s390*-*linux*|s390*-*tpf*)
7417             LD="${LD-ld} -m elf64_s390"
7418             ;;
7419           sparc*-*linux*)
7420             LD="${LD-ld} -m elf64_sparc"
7421             ;;
7422         esac
7423         ;;
7424     esac
7425   fi
7426   rm -rf conftest*
7427   ;;
7428
7429 *-*-sco3.2v5*)
7430   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7431   SAVE_CFLAGS="$CFLAGS"
7432   CFLAGS="$CFLAGS -belf"
7433   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7434 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7435 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7436   $as_echo_n "(cached) " >&6
7437 else
7438   ac_ext=c
7439 ac_cpp='$CPP $CPPFLAGS'
7440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7443
7444      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7445 /* end confdefs.h.  */
7446
7447 int
7448 main ()
7449 {
7450
7451   ;
7452   return 0;
7453 }
7454 _ACEOF
7455 if ac_fn_c_try_link "$LINENO"; then :
7456   lt_cv_cc_needs_belf=yes
7457 else
7458   lt_cv_cc_needs_belf=no
7459 fi
7460 rm -f core conftest.err conftest.$ac_objext \
7461     conftest$ac_exeext conftest.$ac_ext
7462      ac_ext=c
7463 ac_cpp='$CPP $CPPFLAGS'
7464 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7467
7468 fi
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7470 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7471   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7472     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7473     CFLAGS="$SAVE_CFLAGS"
7474   fi
7475   ;;
7476 sparc*-*solaris*)
7477   # Find out which ABI we are using.
7478   echo 'int i;' > conftest.$ac_ext
7479   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7480   (eval $ac_compile) 2>&5
7481   ac_status=$?
7482   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7483   test $ac_status = 0; }; then
7484     case `/usr/bin/file conftest.o` in
7485     *64-bit*)
7486       case $lt_cv_prog_gnu_ld in
7487       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7488       *)
7489         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7490           LD="${LD-ld} -64"
7491         fi
7492         ;;
7493       esac
7494       ;;
7495     esac
7496   fi
7497   rm -rf conftest*
7498   ;;
7499 esac
7500
7501 need_locks="$enable_libtool_lock"
7502
7503
7504   case $host_os in
7505     rhapsody* | darwin*)
7506     if test -n "$ac_tool_prefix"; then
7507   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7508 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7510 $as_echo_n "checking for $ac_word... " >&6; }
7511 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7512   $as_echo_n "(cached) " >&6
7513 else
7514   if test -n "$DSYMUTIL"; then
7515   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7516 else
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 for as_dir in $PATH
7519 do
7520   IFS=$as_save_IFS
7521   test -z "$as_dir" && as_dir=.
7522     for ac_exec_ext in '' $ac_executable_extensions; do
7523   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7524     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7526     break 2
7527   fi
7528 done
7529   done
7530 IFS=$as_save_IFS
7531
7532 fi
7533 fi
7534 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7535 if test -n "$DSYMUTIL"; then
7536   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7537 $as_echo "$DSYMUTIL" >&6; }
7538 else
7539   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7540 $as_echo "no" >&6; }
7541 fi
7542
7543
7544 fi
7545 if test -z "$ac_cv_prog_DSYMUTIL"; then
7546   ac_ct_DSYMUTIL=$DSYMUTIL
7547   # Extract the first word of "dsymutil", so it can be a program name with args.
7548 set dummy dsymutil; ac_word=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7552   $as_echo_n "(cached) " >&6
7553 else
7554   if test -n "$ac_ct_DSYMUTIL"; then
7555   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7556 else
7557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7558 for as_dir in $PATH
7559 do
7560   IFS=$as_save_IFS
7561   test -z "$as_dir" && as_dir=.
7562     for ac_exec_ext in '' $ac_executable_extensions; do
7563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7564     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7566     break 2
7567   fi
7568 done
7569   done
7570 IFS=$as_save_IFS
7571
7572 fi
7573 fi
7574 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7575 if test -n "$ac_ct_DSYMUTIL"; then
7576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7577 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7578 else
7579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7580 $as_echo "no" >&6; }
7581 fi
7582
7583   if test "x$ac_ct_DSYMUTIL" = x; then
7584     DSYMUTIL=":"
7585   else
7586     case $cross_compiling:$ac_tool_warned in
7587 yes:)
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7589 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7590 ac_tool_warned=yes ;;
7591 esac
7592     DSYMUTIL=$ac_ct_DSYMUTIL
7593   fi
7594 else
7595   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7596 fi
7597
7598     if test -n "$ac_tool_prefix"; then
7599   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7600 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7602 $as_echo_n "checking for $ac_word... " >&6; }
7603 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7604   $as_echo_n "(cached) " >&6
7605 else
7606   if test -n "$NMEDIT"; then
7607   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7608 else
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7610 for as_dir in $PATH
7611 do
7612   IFS=$as_save_IFS
7613   test -z "$as_dir" && as_dir=.
7614     for ac_exec_ext in '' $ac_executable_extensions; do
7615   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7616     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7617     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7618     break 2
7619   fi
7620 done
7621   done
7622 IFS=$as_save_IFS
7623
7624 fi
7625 fi
7626 NMEDIT=$ac_cv_prog_NMEDIT
7627 if test -n "$NMEDIT"; then
7628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7629 $as_echo "$NMEDIT" >&6; }
7630 else
7631   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7632 $as_echo "no" >&6; }
7633 fi
7634
7635
7636 fi
7637 if test -z "$ac_cv_prog_NMEDIT"; then
7638   ac_ct_NMEDIT=$NMEDIT
7639   # Extract the first word of "nmedit", so it can be a program name with args.
7640 set dummy nmedit; ac_word=$2
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7642 $as_echo_n "checking for $ac_word... " >&6; }
7643 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7644   $as_echo_n "(cached) " >&6
7645 else
7646   if test -n "$ac_ct_NMEDIT"; then
7647   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7648 else
7649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7650 for as_dir in $PATH
7651 do
7652   IFS=$as_save_IFS
7653   test -z "$as_dir" && as_dir=.
7654     for ac_exec_ext in '' $ac_executable_extensions; do
7655   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7656     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7657     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7658     break 2
7659   fi
7660 done
7661   done
7662 IFS=$as_save_IFS
7663
7664 fi
7665 fi
7666 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7667 if test -n "$ac_ct_NMEDIT"; then
7668   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7669 $as_echo "$ac_ct_NMEDIT" >&6; }
7670 else
7671   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7672 $as_echo "no" >&6; }
7673 fi
7674
7675   if test "x$ac_ct_NMEDIT" = x; then
7676     NMEDIT=":"
7677   else
7678     case $cross_compiling:$ac_tool_warned in
7679 yes:)
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7682 ac_tool_warned=yes ;;
7683 esac
7684     NMEDIT=$ac_ct_NMEDIT
7685   fi
7686 else
7687   NMEDIT="$ac_cv_prog_NMEDIT"
7688 fi
7689
7690     if test -n "$ac_tool_prefix"; then
7691   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7692 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7694 $as_echo_n "checking for $ac_word... " >&6; }
7695 if test "${ac_cv_prog_LIPO+set}" = set; then :
7696   $as_echo_n "(cached) " >&6
7697 else
7698   if test -n "$LIPO"; then
7699   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7700 else
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702 for as_dir in $PATH
7703 do
7704   IFS=$as_save_IFS
7705   test -z "$as_dir" && as_dir=.
7706     for ac_exec_ext in '' $ac_executable_extensions; do
7707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7708     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710     break 2
7711   fi
7712 done
7713   done
7714 IFS=$as_save_IFS
7715
7716 fi
7717 fi
7718 LIPO=$ac_cv_prog_LIPO
7719 if test -n "$LIPO"; then
7720   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7721 $as_echo "$LIPO" >&6; }
7722 else
7723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724 $as_echo "no" >&6; }
7725 fi
7726
7727
7728 fi
7729 if test -z "$ac_cv_prog_LIPO"; then
7730   ac_ct_LIPO=$LIPO
7731   # Extract the first word of "lipo", so it can be a program name with args.
7732 set dummy lipo; ac_word=$2
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7734 $as_echo_n "checking for $ac_word... " >&6; }
7735 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7736   $as_echo_n "(cached) " >&6
7737 else
7738   if test -n "$ac_ct_LIPO"; then
7739   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7740 else
7741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7742 for as_dir in $PATH
7743 do
7744   IFS=$as_save_IFS
7745   test -z "$as_dir" && as_dir=.
7746     for ac_exec_ext in '' $ac_executable_extensions; do
7747   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7748     ac_cv_prog_ac_ct_LIPO="lipo"
7749     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7750     break 2
7751   fi
7752 done
7753   done
7754 IFS=$as_save_IFS
7755
7756 fi
7757 fi
7758 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7759 if test -n "$ac_ct_LIPO"; then
7760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7761 $as_echo "$ac_ct_LIPO" >&6; }
7762 else
7763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7765 fi
7766
7767   if test "x$ac_ct_LIPO" = x; then
7768     LIPO=":"
7769   else
7770     case $cross_compiling:$ac_tool_warned in
7771 yes:)
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7773 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7774 ac_tool_warned=yes ;;
7775 esac
7776     LIPO=$ac_ct_LIPO
7777   fi
7778 else
7779   LIPO="$ac_cv_prog_LIPO"
7780 fi
7781
7782     if test -n "$ac_tool_prefix"; then
7783   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7784 set dummy ${ac_tool_prefix}otool; ac_word=$2
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7786 $as_echo_n "checking for $ac_word... " >&6; }
7787 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7788   $as_echo_n "(cached) " >&6
7789 else
7790   if test -n "$OTOOL"; then
7791   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7792 else
7793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798     for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805   done
7806 IFS=$as_save_IFS
7807
7808 fi
7809 fi
7810 OTOOL=$ac_cv_prog_OTOOL
7811 if test -n "$OTOOL"; then
7812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7813 $as_echo "$OTOOL" >&6; }
7814 else
7815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7817 fi
7818
7819
7820 fi
7821 if test -z "$ac_cv_prog_OTOOL"; then
7822   ac_ct_OTOOL=$OTOOL
7823   # Extract the first word of "otool", so it can be a program name with args.
7824 set dummy otool; ac_word=$2
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7826 $as_echo_n "checking for $ac_word... " >&6; }
7827 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7828   $as_echo_n "(cached) " >&6
7829 else
7830   if test -n "$ac_ct_OTOOL"; then
7831   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7832 else
7833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 for as_dir in $PATH
7835 do
7836   IFS=$as_save_IFS
7837   test -z "$as_dir" && as_dir=.
7838     for ac_exec_ext in '' $ac_executable_extensions; do
7839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7840     ac_cv_prog_ac_ct_OTOOL="otool"
7841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7842     break 2
7843   fi
7844 done
7845   done
7846 IFS=$as_save_IFS
7847
7848 fi
7849 fi
7850 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7851 if test -n "$ac_ct_OTOOL"; then
7852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7853 $as_echo "$ac_ct_OTOOL" >&6; }
7854 else
7855   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7857 fi
7858
7859   if test "x$ac_ct_OTOOL" = x; then
7860     OTOOL=":"
7861   else
7862     case $cross_compiling:$ac_tool_warned in
7863 yes:)
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7865 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7866 ac_tool_warned=yes ;;
7867 esac
7868     OTOOL=$ac_ct_OTOOL
7869   fi
7870 else
7871   OTOOL="$ac_cv_prog_OTOOL"
7872 fi
7873
7874     if test -n "$ac_tool_prefix"; then
7875   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7876 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7878 $as_echo_n "checking for $ac_word... " >&6; }
7879 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7880   $as_echo_n "(cached) " >&6
7881 else
7882   if test -n "$OTOOL64"; then
7883   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7884 else
7885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7886 for as_dir in $PATH
7887 do
7888   IFS=$as_save_IFS
7889   test -z "$as_dir" && as_dir=.
7890     for ac_exec_ext in '' $ac_executable_extensions; do
7891   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7892     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7893     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7894     break 2
7895   fi
7896 done
7897   done
7898 IFS=$as_save_IFS
7899
7900 fi
7901 fi
7902 OTOOL64=$ac_cv_prog_OTOOL64
7903 if test -n "$OTOOL64"; then
7904   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7905 $as_echo "$OTOOL64" >&6; }
7906 else
7907   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7908 $as_echo "no" >&6; }
7909 fi
7910
7911
7912 fi
7913 if test -z "$ac_cv_prog_OTOOL64"; then
7914   ac_ct_OTOOL64=$OTOOL64
7915   # Extract the first word of "otool64", so it can be a program name with args.
7916 set dummy otool64; ac_word=$2
7917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7918 $as_echo_n "checking for $ac_word... " >&6; }
7919 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7920   $as_echo_n "(cached) " >&6
7921 else
7922   if test -n "$ac_ct_OTOOL64"; then
7923   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7924 else
7925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7926 for as_dir in $PATH
7927 do
7928   IFS=$as_save_IFS
7929   test -z "$as_dir" && as_dir=.
7930     for ac_exec_ext in '' $ac_executable_extensions; do
7931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7932     ac_cv_prog_ac_ct_OTOOL64="otool64"
7933     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7934     break 2
7935   fi
7936 done
7937   done
7938 IFS=$as_save_IFS
7939
7940 fi
7941 fi
7942 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7943 if test -n "$ac_ct_OTOOL64"; then
7944   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7945 $as_echo "$ac_ct_OTOOL64" >&6; }
7946 else
7947   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7948 $as_echo "no" >&6; }
7949 fi
7950
7951   if test "x$ac_ct_OTOOL64" = x; then
7952     OTOOL64=":"
7953   else
7954     case $cross_compiling:$ac_tool_warned in
7955 yes:)
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7958 ac_tool_warned=yes ;;
7959 esac
7960     OTOOL64=$ac_ct_OTOOL64
7961   fi
7962 else
7963   OTOOL64="$ac_cv_prog_OTOOL64"
7964 fi
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7993 $as_echo_n "checking for -single_module linker flag... " >&6; }
7994 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7995   $as_echo_n "(cached) " >&6
7996 else
7997   lt_cv_apple_cc_single_mod=no
7998       if test -z "${LT_MULTI_MODULE}"; then
7999         # By default we will add the -single_module flag. You can override
8000         # by either setting the environment variable LT_MULTI_MODULE
8001         # non-empty at configure time, or by adding -multi_module to the
8002         # link flags.
8003         rm -rf libconftest.dylib*
8004         echo "int foo(void){return 1;}" > conftest.c
8005         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8006 -dynamiclib -Wl,-single_module conftest.c" >&5
8007         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8008           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8009         _lt_result=$?
8010         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8011           lt_cv_apple_cc_single_mod=yes
8012         else
8013           cat conftest.err >&5
8014         fi
8015         rm -rf libconftest.dylib*
8016         rm -f conftest.*
8017       fi
8018 fi
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8020 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8022 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8023 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8024   $as_echo_n "(cached) " >&6
8025 else
8026   lt_cv_ld_exported_symbols_list=no
8027       save_LDFLAGS=$LDFLAGS
8028       echo "_main" > conftest.sym
8029       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8030       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8031 /* end confdefs.h.  */
8032
8033 int
8034 main ()
8035 {
8036
8037   ;
8038   return 0;
8039 }
8040 _ACEOF
8041 if ac_fn_c_try_link "$LINENO"; then :
8042   lt_cv_ld_exported_symbols_list=yes
8043 else
8044   lt_cv_ld_exported_symbols_list=no
8045 fi
8046 rm -f core conftest.err conftest.$ac_objext \
8047     conftest$ac_exeext conftest.$ac_ext
8048         LDFLAGS="$save_LDFLAGS"
8049
8050 fi
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8052 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8053     case $host_os in
8054     rhapsody* | darwin1.[012])
8055       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8056     darwin1.*)
8057       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8058     darwin*) # darwin 5.x on
8059       # if running on 10.5 or later, the deployment target defaults
8060       # to the OS version, if on x86, and 10.4, the deployment
8061       # target defaults to 10.4. Don't you love it?
8062       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8063         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8064           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8065         10.[012]*)
8066           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8067         10.*)
8068           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8069       esac
8070     ;;
8071   esac
8072     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8073       _lt_dar_single_mod='$single_module'
8074     fi
8075     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8076       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8077     else
8078       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8079     fi
8080     if test "$DSYMUTIL" != ":"; then
8081       _lt_dsymutil='~$DSYMUTIL $lib || :'
8082     else
8083       _lt_dsymutil=
8084     fi
8085     ;;
8086   esac
8087
8088 for ac_header in dlfcn.h
8089 do :
8090   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8091 "
8092 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8093   cat >>confdefs.h <<_ACEOF
8094 #define HAVE_DLFCN_H 1
8095 _ACEOF
8096
8097 fi
8098
8099 done
8100
8101
8102
8103 # Set options
8104
8105
8106
8107         enable_dlopen=no
8108
8109
8110   enable_win32_dll=no
8111
8112
8113
8114
8115
8116 # Check whether --with-pic was given.
8117 if test "${with_pic+set}" = set; then :
8118   withval=$with_pic; pic_mode="$withval"
8119 else
8120   pic_mode=default
8121 fi
8122
8123
8124 test -z "$pic_mode" && pic_mode=default
8125
8126
8127
8128
8129
8130
8131
8132   # Check whether --enable-fast-install was given.
8133 if test "${enable_fast_install+set}" = set; then :
8134   enableval=$enable_fast_install; p=${PACKAGE-default}
8135     case $enableval in
8136     yes) enable_fast_install=yes ;;
8137     no) enable_fast_install=no ;;
8138     *)
8139       enable_fast_install=no
8140       # Look at the argument we got.  We use all the common list separators.
8141       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8142       for pkg in $enableval; do
8143         IFS="$lt_save_ifs"
8144         if test "X$pkg" = "X$p"; then
8145           enable_fast_install=yes
8146         fi
8147       done
8148       IFS="$lt_save_ifs"
8149       ;;
8150     esac
8151 else
8152   enable_fast_install=yes
8153 fi
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165 # This can be used to rebuild libtool when needed
8166 LIBTOOL_DEPS="$ltmain"
8167
8168 # Always use our own libtool.
8169 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195 test -z "$LN_S" && LN_S="ln -s"
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 if test -n "${ZSH_VERSION+set}" ; then
8211    setopt NO_GLOB_SUBST
8212 fi
8213
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8215 $as_echo_n "checking for objdir... " >&6; }
8216 if test "${lt_cv_objdir+set}" = set; then :
8217   $as_echo_n "(cached) " >&6
8218 else
8219   rm -f .libs 2>/dev/null
8220 mkdir .libs 2>/dev/null
8221 if test -d .libs; then
8222   lt_cv_objdir=.libs
8223 else
8224   # MS-DOS does not allow filenames that begin with a dot.
8225   lt_cv_objdir=_libs
8226 fi
8227 rmdir .libs 2>/dev/null
8228 fi
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8230 $as_echo "$lt_cv_objdir" >&6; }
8231 objdir=$lt_cv_objdir
8232
8233
8234
8235
8236
8237 cat >>confdefs.h <<_ACEOF
8238 #define LT_OBJDIR "$lt_cv_objdir/"
8239 _ACEOF
8240
8241
8242
8243
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257 case $host_os in
8258 aix3*)
8259   # AIX sometimes has problems with the GCC collect2 program.  For some
8260   # reason, if we set the COLLECT_NAMES environment variable, the problems
8261   # vanish in a puff of smoke.
8262   if test "X${COLLECT_NAMES+set}" != Xset; then
8263     COLLECT_NAMES=
8264     export COLLECT_NAMES
8265   fi
8266   ;;
8267 esac
8268
8269 # Sed substitution that helps us do robust quoting.  It backslashifies
8270 # metacharacters that are still active within double-quoted strings.
8271 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8272
8273 # Same as above, but do not quote variable references.
8274 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8275
8276 # Sed substitution to delay expansion of an escaped shell variable in a
8277 # double_quote_subst'ed string.
8278 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8279
8280 # Sed substitution to delay expansion of an escaped single quote.
8281 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8282
8283 # Sed substitution to avoid accidental globbing in evaled expressions
8284 no_glob_subst='s/\*/\\\*/g'
8285
8286 # Global variables:
8287 ofile=libtool
8288 can_build_shared=yes
8289
8290 # All known linkers require a `.a' archive for static linking (except MSVC,
8291 # which needs '.lib').
8292 libext=a
8293
8294 with_gnu_ld="$lt_cv_prog_gnu_ld"
8295
8296 old_CC="$CC"
8297 old_CFLAGS="$CFLAGS"
8298
8299 # Set sane defaults for various variables
8300 test -z "$CC" && CC=cc
8301 test -z "$LTCC" && LTCC=$CC
8302 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8303 test -z "$LD" && LD=ld
8304 test -z "$ac_objext" && ac_objext=o
8305
8306 for cc_temp in $compiler""; do
8307   case $cc_temp in
8308     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8309     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8310     \-*) ;;
8311     *) break;;
8312   esac
8313 done
8314 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8315
8316
8317 # Only perform the check for file, if the check method requires it
8318 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8319 case $deplibs_check_method in
8320 file_magic*)
8321   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8322     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8323 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8324 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8325   $as_echo_n "(cached) " >&6
8326 else
8327   case $MAGIC_CMD in
8328 [\\/*] |  ?:[\\/]*)
8329   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8330   ;;
8331 *)
8332   lt_save_MAGIC_CMD="$MAGIC_CMD"
8333   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8334   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8335   for ac_dir in $ac_dummy; do
8336     IFS="$lt_save_ifs"
8337     test -z "$ac_dir" && ac_dir=.
8338     if test -f $ac_dir/${ac_tool_prefix}file; then
8339       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8340       if test -n "$file_magic_test_file"; then
8341         case $deplibs_check_method in
8342         "file_magic "*)
8343           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8344           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8345           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8346             $EGREP "$file_magic_regex" > /dev/null; then
8347             :
8348           else
8349             cat <<_LT_EOF 1>&2
8350
8351 *** Warning: the command libtool uses to detect shared libraries,
8352 *** $file_magic_cmd, produces output that libtool cannot recognize.
8353 *** The result is that libtool may fail to recognize shared libraries
8354 *** as such.  This will affect the creation of libtool libraries that
8355 *** depend on shared libraries, but programs linked with such libtool
8356 *** libraries will work regardless of this problem.  Nevertheless, you
8357 *** may want to report the problem to your system manager and/or to
8358 *** bug-libtool@gnu.org
8359
8360 _LT_EOF
8361           fi ;;
8362         esac
8363       fi
8364       break
8365     fi
8366   done
8367   IFS="$lt_save_ifs"
8368   MAGIC_CMD="$lt_save_MAGIC_CMD"
8369   ;;
8370 esac
8371 fi
8372
8373 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8374 if test -n "$MAGIC_CMD"; then
8375   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8376 $as_echo "$MAGIC_CMD" >&6; }
8377 else
8378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8379 $as_echo "no" >&6; }
8380 fi
8381
8382
8383
8384
8385
8386 if test -z "$lt_cv_path_MAGIC_CMD"; then
8387   if test -n "$ac_tool_prefix"; then
8388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8389 $as_echo_n "checking for file... " >&6; }
8390 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8391   $as_echo_n "(cached) " >&6
8392 else
8393   case $MAGIC_CMD in
8394 [\\/*] |  ?:[\\/]*)
8395   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8396   ;;
8397 *)
8398   lt_save_MAGIC_CMD="$MAGIC_CMD"
8399   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8400   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8401   for ac_dir in $ac_dummy; do
8402     IFS="$lt_save_ifs"
8403     test -z "$ac_dir" && ac_dir=.
8404     if test -f $ac_dir/file; then
8405       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8406       if test -n "$file_magic_test_file"; then
8407         case $deplibs_check_method in
8408         "file_magic "*)
8409           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8410           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8411           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8412             $EGREP "$file_magic_regex" > /dev/null; then
8413             :
8414           else
8415             cat <<_LT_EOF 1>&2
8416
8417 *** Warning: the command libtool uses to detect shared libraries,
8418 *** $file_magic_cmd, produces output that libtool cannot recognize.
8419 *** The result is that libtool may fail to recognize shared libraries
8420 *** as such.  This will affect the creation of libtool libraries that
8421 *** depend on shared libraries, but programs linked with such libtool
8422 *** libraries will work regardless of this problem.  Nevertheless, you
8423 *** may want to report the problem to your system manager and/or to
8424 *** bug-libtool@gnu.org
8425
8426 _LT_EOF
8427           fi ;;
8428         esac
8429       fi
8430       break
8431     fi
8432   done
8433   IFS="$lt_save_ifs"
8434   MAGIC_CMD="$lt_save_MAGIC_CMD"
8435   ;;
8436 esac
8437 fi
8438
8439 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8440 if test -n "$MAGIC_CMD"; then
8441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8442 $as_echo "$MAGIC_CMD" >&6; }
8443 else
8444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8446 fi
8447
8448
8449   else
8450     MAGIC_CMD=:
8451   fi
8452 fi
8453
8454   fi
8455   ;;
8456 esac
8457
8458 # Use C for the default configuration in the libtool script
8459
8460 lt_save_CC="$CC"
8461 ac_ext=c
8462 ac_cpp='$CPP $CPPFLAGS'
8463 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8464 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8465 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8466
8467
8468 # Source file extension for C test sources.
8469 ac_ext=c
8470
8471 # Object file extension for compiled C test sources.
8472 objext=o
8473 objext=$objext
8474
8475 # Code to be used in simple compile tests
8476 lt_simple_compile_test_code="int some_variable = 0;"
8477
8478 # Code to be used in simple link tests
8479 lt_simple_link_test_code='int main(){return(0);}'
8480
8481
8482
8483
8484
8485
8486
8487 # If no C compiler was specified, use CC.
8488 LTCC=${LTCC-"$CC"}
8489
8490 # If no C compiler flags were specified, use CFLAGS.
8491 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8492
8493 # Allow CC to be a program name with arguments.
8494 compiler=$CC
8495
8496 # Save the default compiler, since it gets overwritten when the other
8497 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8498 compiler_DEFAULT=$CC
8499
8500 # save warnings/boilerplate of simple test code
8501 ac_outfile=conftest.$ac_objext
8502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8504 _lt_compiler_boilerplate=`cat conftest.err`
8505 $RM conftest*
8506
8507 ac_outfile=conftest.$ac_objext
8508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8510 _lt_linker_boilerplate=`cat conftest.err`
8511 $RM -r conftest*
8512
8513
8514 ## CAVEAT EMPTOR:
8515 ## There is no encapsulation within the following macros, do not change
8516 ## the running order or otherwise move them around unless you know exactly
8517 ## what you are doing...
8518 if test -n "$compiler"; then
8519
8520 lt_prog_compiler_no_builtin_flag=
8521
8522 if test "$GCC" = yes; then
8523   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8524
8525   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8526 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8527 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8528   $as_echo_n "(cached) " >&6
8529 else
8530   lt_cv_prog_compiler_rtti_exceptions=no
8531    ac_outfile=conftest.$ac_objext
8532    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8533    lt_compiler_flag="-fno-rtti -fno-exceptions"
8534    # Insert the option either (1) after the last *FLAGS variable, or
8535    # (2) before a word containing "conftest.", or (3) at the end.
8536    # Note that $ac_compile itself does not contain backslashes and begins
8537    # with a dollar sign (not a hyphen), so the echo should work correctly.
8538    # The option is referenced via a variable to avoid confusing sed.
8539    lt_compile=`echo "$ac_compile" | $SED \
8540    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8541    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8542    -e 's:$: $lt_compiler_flag:'`
8543    (eval echo "\"\$as_me:8543: $lt_compile\"" >&5)
8544    (eval "$lt_compile" 2>conftest.err)
8545    ac_status=$?
8546    cat conftest.err >&5
8547    echo "$as_me:8547: \$? = $ac_status" >&5
8548    if (exit $ac_status) && test -s "$ac_outfile"; then
8549      # The compiler can only warn and ignore the option if not recognized
8550      # So say no if there are warnings other than the usual output.
8551      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8552      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8553      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8554        lt_cv_prog_compiler_rtti_exceptions=yes
8555      fi
8556    fi
8557    $RM conftest*
8558
8559 fi
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8561 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8562
8563 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8564     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8565 else
8566     :
8567 fi
8568
8569 fi
8570
8571
8572
8573
8574
8575
8576   lt_prog_compiler_wl=
8577 lt_prog_compiler_pic=
8578 lt_prog_compiler_static=
8579
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8581 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8582
8583   if test "$GCC" = yes; then
8584     lt_prog_compiler_wl='-Wl,'
8585     lt_prog_compiler_static='-static'
8586
8587     case $host_os in
8588       aix*)
8589       # All AIX code is PIC.
8590       if test "$host_cpu" = ia64; then
8591         # AIX 5 now supports IA64 processor
8592         lt_prog_compiler_static='-Bstatic'
8593       fi
8594       ;;
8595
8596     amigaos*)
8597       case $host_cpu in
8598       powerpc)
8599             # see comment about AmigaOS4 .so support
8600             lt_prog_compiler_pic='-fPIC'
8601         ;;
8602       m68k)
8603             # FIXME: we need at least 68020 code to build shared libraries, but
8604             # adding the `-m68020' flag to GCC prevents building anything better,
8605             # like `-m68040'.
8606             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8607         ;;
8608       esac
8609       ;;
8610
8611     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8612       # PIC is the default for these OSes.
8613       ;;
8614
8615     mingw* | cygwin* | pw32* | os2* | cegcc*)
8616       # This hack is so that the source file can tell whether it is being
8617       # built for inclusion in a dll (and should export symbols for example).
8618       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8619       # (--disable-auto-import) libraries
8620       lt_prog_compiler_pic='-DDLL_EXPORT'
8621       ;;
8622
8623     darwin* | rhapsody*)
8624       # PIC is the default on this platform
8625       # Common symbols not allowed in MH_DYLIB files
8626       lt_prog_compiler_pic='-fno-common'
8627       ;;
8628
8629     hpux*)
8630       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8631       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8632       # sets the default TLS model and affects inlining.
8633       case $host_cpu in
8634       hppa*64*)
8635         # +Z the default
8636         ;;
8637       *)
8638         lt_prog_compiler_pic='-fPIC'
8639         ;;
8640       esac
8641       ;;
8642
8643     interix[3-9]*)
8644       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8645       # Instead, we relocate shared libraries at runtime.
8646       ;;
8647
8648     msdosdjgpp*)
8649       # Just because we use GCC doesn't mean we suddenly get shared libraries
8650       # on systems that don't support them.
8651       lt_prog_compiler_can_build_shared=no
8652       enable_shared=no
8653       ;;
8654
8655     *nto* | *qnx*)
8656       # QNX uses GNU C++, but need to define -shared option too, otherwise
8657       # it will coredump.
8658       lt_prog_compiler_pic='-fPIC -shared'
8659       ;;
8660
8661     sysv4*MP*)
8662       if test -d /usr/nec; then
8663         lt_prog_compiler_pic=-Kconform_pic
8664       fi
8665       ;;
8666
8667     *)
8668       lt_prog_compiler_pic='-fPIC'
8669       ;;
8670     esac
8671   else
8672     # PORTME Check for flag to pass linker flags through the system compiler.
8673     case $host_os in
8674     aix*)
8675       lt_prog_compiler_wl='-Wl,'
8676       if test "$host_cpu" = ia64; then
8677         # AIX 5 now supports IA64 processor
8678         lt_prog_compiler_static='-Bstatic'
8679       else
8680         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8681       fi
8682       ;;
8683
8684     mingw* | cygwin* | pw32* | os2* | cegcc*)
8685       # This hack is so that the source file can tell whether it is being
8686       # built for inclusion in a dll (and should export symbols for example).
8687       lt_prog_compiler_pic='-DDLL_EXPORT'
8688       ;;
8689
8690     hpux9* | hpux10* | hpux11*)
8691       lt_prog_compiler_wl='-Wl,'
8692       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8693       # not for PA HP-UX.
8694       case $host_cpu in
8695       hppa*64*|ia64*)
8696         # +Z the default
8697         ;;
8698       *)
8699         lt_prog_compiler_pic='+Z'
8700         ;;
8701       esac
8702       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8703       lt_prog_compiler_static='${wl}-a ${wl}archive'
8704       ;;
8705
8706     irix5* | irix6* | nonstopux*)
8707       lt_prog_compiler_wl='-Wl,'
8708       # PIC (with -KPIC) is the default.
8709       lt_prog_compiler_static='-non_shared'
8710       ;;
8711
8712     linux* | k*bsd*-gnu)
8713       case $cc_basename in
8714       # old Intel for x86_64 which still supported -KPIC.
8715       ecc*)
8716         lt_prog_compiler_wl='-Wl,'
8717         lt_prog_compiler_pic='-KPIC'
8718         lt_prog_compiler_static='-static'
8719         ;;
8720       # icc used to be incompatible with GCC.
8721       # ICC 10 doesn't accept -KPIC any more.
8722       icc* | ifort*)
8723         lt_prog_compiler_wl='-Wl,'
8724         lt_prog_compiler_pic='-fPIC'
8725         lt_prog_compiler_static='-static'
8726         ;;
8727       # Lahey Fortran 8.1.
8728       lf95*)
8729         lt_prog_compiler_wl='-Wl,'
8730         lt_prog_compiler_pic='--shared'
8731         lt_prog_compiler_static='--static'
8732         ;;
8733       pgcc* | pgf77* | pgf90* | pgf95*)
8734         # Portland Group compilers (*not* the Pentium gcc compiler,
8735         # which looks to be a dead project)
8736         lt_prog_compiler_wl='-Wl,'
8737         lt_prog_compiler_pic='-fpic'
8738         lt_prog_compiler_static='-Bstatic'
8739         ;;
8740       ccc*)
8741         lt_prog_compiler_wl='-Wl,'
8742         # All Alpha code is PIC.
8743         lt_prog_compiler_static='-non_shared'
8744         ;;
8745       xl*)
8746         # IBM XL C 8.0/Fortran 10.1 on PPC
8747         lt_prog_compiler_wl='-Wl,'
8748         lt_prog_compiler_pic='-qpic'
8749         lt_prog_compiler_static='-qstaticlink'
8750         ;;
8751       *)
8752         case `$CC -V 2>&1 | sed 5q` in
8753         *Sun\ C*)
8754           # Sun C 5.9
8755           lt_prog_compiler_pic='-KPIC'
8756           lt_prog_compiler_static='-Bstatic'
8757           lt_prog_compiler_wl='-Wl,'
8758           ;;
8759         *Sun\ F*)
8760           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8761           lt_prog_compiler_pic='-KPIC'
8762           lt_prog_compiler_static='-Bstatic'
8763           lt_prog_compiler_wl=''
8764           ;;
8765         esac
8766         ;;
8767       esac
8768       ;;
8769
8770     newsos6)
8771       lt_prog_compiler_pic='-KPIC'
8772       lt_prog_compiler_static='-Bstatic'
8773       ;;
8774
8775     *nto* | *qnx*)
8776       # QNX uses GNU C++, but need to define -shared option too, otherwise
8777       # it will coredump.
8778       lt_prog_compiler_pic='-fPIC -shared'
8779       ;;
8780
8781     osf3* | osf4* | osf5*)
8782       lt_prog_compiler_wl='-Wl,'
8783       # All OSF/1 code is PIC.
8784       lt_prog_compiler_static='-non_shared'
8785       ;;
8786
8787     rdos*)
8788       lt_prog_compiler_static='-non_shared'
8789       ;;
8790
8791     solaris*)
8792       lt_prog_compiler_pic='-KPIC'
8793       lt_prog_compiler_static='-Bstatic'
8794       case $cc_basename in
8795       f77* | f90* | f95*)
8796         lt_prog_compiler_wl='-Qoption ld ';;
8797       *)
8798         lt_prog_compiler_wl='-Wl,';;
8799       esac
8800       ;;
8801
8802     sunos4*)
8803       lt_prog_compiler_wl='-Qoption ld '
8804       lt_prog_compiler_pic='-PIC'
8805       lt_prog_compiler_static='-Bstatic'
8806       ;;
8807
8808     sysv4 | sysv4.2uw2* | sysv4.3*)
8809       lt_prog_compiler_wl='-Wl,'
8810       lt_prog_compiler_pic='-KPIC'
8811       lt_prog_compiler_static='-Bstatic'
8812       ;;
8813
8814     sysv4*MP*)
8815       if test -d /usr/nec ;then
8816         lt_prog_compiler_pic='-Kconform_pic'
8817         lt_prog_compiler_static='-Bstatic'
8818       fi
8819       ;;
8820
8821     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8822       lt_prog_compiler_wl='-Wl,'
8823       lt_prog_compiler_pic='-KPIC'
8824       lt_prog_compiler_static='-Bstatic'
8825       ;;
8826
8827     unicos*)
8828       lt_prog_compiler_wl='-Wl,'
8829       lt_prog_compiler_can_build_shared=no
8830       ;;
8831
8832     uts4*)
8833       lt_prog_compiler_pic='-pic'
8834       lt_prog_compiler_static='-Bstatic'
8835       ;;
8836
8837     *)
8838       lt_prog_compiler_can_build_shared=no
8839       ;;
8840     esac
8841   fi
8842
8843 case $host_os in
8844   # For platforms which do not support PIC, -DPIC is meaningless:
8845   *djgpp*)
8846     lt_prog_compiler_pic=
8847     ;;
8848   *)
8849     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8850     ;;
8851 esac
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8853 $as_echo "$lt_prog_compiler_pic" >&6; }
8854
8855
8856
8857
8858
8859
8860 #
8861 # Check to make sure the PIC flag actually works.
8862 #
8863 if test -n "$lt_prog_compiler_pic"; then
8864   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8865 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8866 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8867   $as_echo_n "(cached) " >&6
8868 else
8869   lt_cv_prog_compiler_pic_works=no
8870    ac_outfile=conftest.$ac_objext
8871    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8872    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8873    # Insert the option either (1) after the last *FLAGS variable, or
8874    # (2) before a word containing "conftest.", or (3) at the end.
8875    # Note that $ac_compile itself does not contain backslashes and begins
8876    # with a dollar sign (not a hyphen), so the echo should work correctly.
8877    # The option is referenced via a variable to avoid confusing sed.
8878    lt_compile=`echo "$ac_compile" | $SED \
8879    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881    -e 's:$: $lt_compiler_flag:'`
8882    (eval echo "\"\$as_me:8882: $lt_compile\"" >&5)
8883    (eval "$lt_compile" 2>conftest.err)
8884    ac_status=$?
8885    cat conftest.err >&5
8886    echo "$as_me:8886: \$? = $ac_status" >&5
8887    if (exit $ac_status) && test -s "$ac_outfile"; then
8888      # The compiler can only warn and ignore the option if not recognized
8889      # So say no if there are warnings other than the usual output.
8890      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8891      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8892      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8893        lt_cv_prog_compiler_pic_works=yes
8894      fi
8895    fi
8896    $RM conftest*
8897
8898 fi
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8900 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8901
8902 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8903     case $lt_prog_compiler_pic in
8904      "" | " "*) ;;
8905      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8906      esac
8907 else
8908     lt_prog_compiler_pic=
8909      lt_prog_compiler_can_build_shared=no
8910 fi
8911
8912 fi
8913
8914
8915
8916
8917
8918
8919 #
8920 # Check to make sure the static flag actually works.
8921 #
8922 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8924 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8925 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8926   $as_echo_n "(cached) " >&6
8927 else
8928   lt_cv_prog_compiler_static_works=no
8929    save_LDFLAGS="$LDFLAGS"
8930    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8931    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8932    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8933      # The linker can only warn and ignore the option if not recognized
8934      # So say no if there are warnings
8935      if test -s conftest.err; then
8936        # Append any errors to the config.log.
8937        cat conftest.err 1>&5
8938        $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8939        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8940        if diff conftest.exp conftest.er2 >/dev/null; then
8941          lt_cv_prog_compiler_static_works=yes
8942        fi
8943      else
8944        lt_cv_prog_compiler_static_works=yes
8945      fi
8946    fi
8947    $RM -r conftest*
8948    LDFLAGS="$save_LDFLAGS"
8949
8950 fi
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8952 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8953
8954 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8955     :
8956 else
8957     lt_prog_compiler_static=
8958 fi
8959
8960
8961
8962
8963
8964
8965
8966   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8967 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8968 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8969   $as_echo_n "(cached) " >&6
8970 else
8971   lt_cv_prog_compiler_c_o=no
8972    $RM -r conftest 2>/dev/null
8973    mkdir conftest
8974    cd conftest
8975    mkdir out
8976    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8977
8978    lt_compiler_flag="-o out/conftest2.$ac_objext"
8979    # Insert the option either (1) after the last *FLAGS variable, or
8980    # (2) before a word containing "conftest.", or (3) at the end.
8981    # Note that $ac_compile itself does not contain backslashes and begins
8982    # with a dollar sign (not a hyphen), so the echo should work correctly.
8983    lt_compile=`echo "$ac_compile" | $SED \
8984    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986    -e 's:$: $lt_compiler_flag:'`
8987    (eval echo "\"\$as_me:8987: $lt_compile\"" >&5)
8988    (eval "$lt_compile" 2>out/conftest.err)
8989    ac_status=$?
8990    cat out/conftest.err >&5
8991    echo "$as_me:8991: \$? = $ac_status" >&5
8992    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8993    then
8994      # The compiler can only warn and ignore the option if not recognized
8995      # So say no if there are warnings
8996      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8997      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8998      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8999        lt_cv_prog_compiler_c_o=yes
9000      fi
9001    fi
9002    chmod u+w . 2>&5
9003    $RM conftest*
9004    # SGI C++ compiler will create directory out/ii_files/ for
9005    # template instantiation
9006    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9007    $RM out/* && rmdir out
9008    cd ..
9009    $RM -r conftest
9010    $RM conftest*
9011
9012 fi
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9014 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9015
9016
9017
9018
9019
9020
9021   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9023 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9024   $as_echo_n "(cached) " >&6
9025 else
9026   lt_cv_prog_compiler_c_o=no
9027    $RM -r conftest 2>/dev/null
9028    mkdir conftest
9029    cd conftest
9030    mkdir out
9031    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9032
9033    lt_compiler_flag="-o out/conftest2.$ac_objext"
9034    # Insert the option either (1) after the last *FLAGS variable, or
9035    # (2) before a word containing "conftest.", or (3) at the end.
9036    # Note that $ac_compile itself does not contain backslashes and begins
9037    # with a dollar sign (not a hyphen), so the echo should work correctly.
9038    lt_compile=`echo "$ac_compile" | $SED \
9039    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9040    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9041    -e 's:$: $lt_compiler_flag:'`
9042    (eval echo "\"\$as_me:9042: $lt_compile\"" >&5)
9043    (eval "$lt_compile" 2>out/conftest.err)
9044    ac_status=$?
9045    cat out/conftest.err >&5
9046    echo "$as_me:9046: \$? = $ac_status" >&5
9047    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9048    then
9049      # The compiler can only warn and ignore the option if not recognized
9050      # So say no if there are warnings
9051      $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9052      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9053      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9054        lt_cv_prog_compiler_c_o=yes
9055      fi
9056    fi
9057    chmod u+w . 2>&5
9058    $RM conftest*
9059    # SGI C++ compiler will create directory out/ii_files/ for
9060    # template instantiation
9061    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9062    $RM out/* && rmdir out
9063    cd ..
9064    $RM -r conftest
9065    $RM conftest*
9066
9067 fi
9068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9069 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9070
9071
9072
9073
9074 hard_links="nottested"
9075 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9076   # do not overwrite the value of need_locks provided by the user
9077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9078 $as_echo_n "checking if we can lock with hard links... " >&6; }
9079   hard_links=yes
9080   $RM conftest*
9081   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9082   touch conftest.a
9083   ln conftest.a conftest.b 2>&5 || hard_links=no
9084   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9086 $as_echo "$hard_links" >&6; }
9087   if test "$hard_links" = no; then
9088     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9089 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9090     need_locks=warn
9091   fi
9092 else
9093   need_locks=no
9094 fi
9095
9096
9097
9098
9099
9100
9101   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9102 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9103
9104   runpath_var=
9105   allow_undefined_flag=
9106   always_export_symbols=no
9107   archive_cmds=
9108   archive_expsym_cmds=
9109   compiler_needs_object=no
9110   enable_shared_with_static_runtimes=no
9111   export_dynamic_flag_spec=
9112   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9113   hardcode_automatic=no
9114   hardcode_direct=no
9115   hardcode_direct_absolute=no
9116   hardcode_libdir_flag_spec=
9117   hardcode_libdir_flag_spec_ld=
9118   hardcode_libdir_separator=
9119   hardcode_minus_L=no
9120   hardcode_shlibpath_var=unsupported
9121   inherit_rpath=no
9122   link_all_deplibs=unknown
9123   module_cmds=
9124   module_expsym_cmds=
9125   old_archive_from_new_cmds=
9126   old_archive_from_expsyms_cmds=
9127   thread_safe_flag_spec=
9128   whole_archive_flag_spec=
9129   # include_expsyms should be a list of space-separated symbols to be *always*
9130   # included in the symbol list
9131   include_expsyms=
9132   # exclude_expsyms can be an extended regexp of symbols to exclude
9133   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9134   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9135   # as well as any symbol that contains `d'.
9136   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9137   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9138   # platforms (ab)use it in PIC code, but their linkers get confused if
9139   # the symbol is explicitly referenced.  Since portable code cannot
9140   # rely on this symbol name, it's probably fine to never include it in
9141   # preloaded symbol tables.
9142   # Exclude shared library initialization/finalization symbols.
9143   extract_expsyms_cmds=
9144
9145   case $host_os in
9146   cygwin* | mingw* | pw32* | cegcc*)
9147     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9148     # When not using gcc, we currently assume that we are using
9149     # Microsoft Visual C++.
9150     if test "$GCC" != yes; then
9151       with_gnu_ld=no
9152     fi
9153     ;;
9154   interix*)
9155     # we just hope/assume this is gcc and not c89 (= MSVC++)
9156     with_gnu_ld=yes
9157     ;;
9158   openbsd*)
9159     with_gnu_ld=no
9160     ;;
9161   esac
9162
9163   ld_shlibs=yes
9164   if test "$with_gnu_ld" = yes; then
9165     # If archive_cmds runs LD, not CC, wlarc should be empty
9166     wlarc='${wl}'
9167
9168     # Set some defaults for GNU ld with shared library support. These
9169     # are reset later if shared libraries are not supported. Putting them
9170     # here allows them to be overridden if necessary.
9171     runpath_var=LD_RUN_PATH
9172     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173     export_dynamic_flag_spec='${wl}--export-dynamic'
9174     # ancient GNU ld didn't support --whole-archive et. al.
9175     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9176       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9177     else
9178       whole_archive_flag_spec=
9179     fi
9180     supports_anon_versioning=no
9181     case `$LD -v 2>&1` in
9182       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9183       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9184       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9185       *\ 2.11.*) ;; # other 2.11 versions
9186       *) supports_anon_versioning=yes ;;
9187     esac
9188
9189     # See if GNU ld supports shared libraries.
9190     case $host_os in
9191     aix[3-9]*)
9192       # On AIX/PPC, the GNU linker is very broken
9193       if test "$host_cpu" != ia64; then
9194         ld_shlibs=no
9195         cat <<_LT_EOF 1>&2
9196
9197 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9198 *** to be unable to reliably create shared libraries on AIX.
9199 *** Therefore, libtool is disabling shared libraries support.  If you
9200 *** really care for shared libraries, you may want to modify your PATH
9201 *** so that a non-GNU linker is found, and then restart.
9202
9203 _LT_EOF
9204       fi
9205       ;;
9206
9207     amigaos*)
9208       case $host_cpu in
9209       powerpc)
9210             # see comment about AmigaOS4 .so support
9211             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212             archive_expsym_cmds=''
9213         ;;
9214       m68k)
9215             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)'
9216             hardcode_libdir_flag_spec='-L$libdir'
9217             hardcode_minus_L=yes
9218         ;;
9219       esac
9220       ;;
9221
9222     beos*)
9223       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9224         allow_undefined_flag=unsupported
9225         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9226         # support --undefined.  This deserves some investigation.  FIXME
9227         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228       else
9229         ld_shlibs=no
9230       fi
9231       ;;
9232
9233     cygwin* | mingw* | pw32* | cegcc*)
9234       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9235       # as there is no search path for DLLs.
9236       hardcode_libdir_flag_spec='-L$libdir'
9237       allow_undefined_flag=unsupported
9238       always_export_symbols=no
9239       enable_shared_with_static_runtimes=yes
9240       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9241
9242       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9243         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9244         # If the export-symbols file already is a .def file (1st line
9245         # is EXPORTS), use it as is; otherwise, prepend...
9246         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9247           cp $export_symbols $output_objdir/$soname.def;
9248         else
9249           echo EXPORTS > $output_objdir/$soname.def;
9250           cat $export_symbols >> $output_objdir/$soname.def;
9251         fi~
9252         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9253       else
9254         ld_shlibs=no
9255       fi
9256       ;;
9257
9258     interix[3-9]*)
9259       hardcode_direct=no
9260       hardcode_shlibpath_var=no
9261       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9262       export_dynamic_flag_spec='${wl}-E'
9263       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9264       # Instead, shared libraries are loaded at an image base (0x10000000 by
9265       # default) and relocated if they conflict, which is a slow very memory
9266       # consuming and fragmenting process.  To avoid this, we pick a random,
9267       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9268       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9269       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9270       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'
9271       ;;
9272
9273     gnu* | linux* | tpf* | k*bsd*-gnu)
9274       tmp_diet=no
9275       if test "$host_os" = linux-dietlibc; then
9276         case $cc_basename in
9277           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9278         esac
9279       fi
9280       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9281          && test "$tmp_diet" = no
9282       then
9283         tmp_addflag=
9284         tmp_sharedflag='-shared'
9285         case $cc_basename,$host_cpu in
9286         pgcc*)                          # Portland Group C compiler
9287           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9288           tmp_addflag=' $pic_flag'
9289           ;;
9290         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9291           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9292           tmp_addflag=' $pic_flag -Mnomain' ;;
9293         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9294           tmp_addflag=' -i_dynamic' ;;
9295         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9296           tmp_addflag=' -i_dynamic -nofor_main' ;;
9297         ifc* | ifort*)                  # Intel Fortran compiler
9298           tmp_addflag=' -nofor_main' ;;
9299         lf95*)                          # Lahey Fortran 8.1
9300           whole_archive_flag_spec=
9301           tmp_sharedflag='--shared' ;;
9302         xl[cC]*)                        # IBM XL C 8.0 on PPC (deal with xlf below)
9303           tmp_sharedflag='-qmkshrobj'
9304           tmp_addflag= ;;
9305         esac
9306         case `$CC -V 2>&1 | sed 5q` in
9307         *Sun\ C*)                       # Sun C 5.9
9308           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9309           compiler_needs_object=yes
9310           tmp_sharedflag='-G' ;;
9311         *Sun\ F*)                       # Sun Fortran 8.3
9312           tmp_sharedflag='-G' ;;
9313         esac
9314         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315
9316         if test "x$supports_anon_versioning" = xyes; then
9317           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319             echo "local: *; };" >> $output_objdir/$libname.ver~
9320             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9321         fi
9322
9323         case $cc_basename in
9324         xlf*)
9325           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9326           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9327           hardcode_libdir_flag_spec=
9328           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9329           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9330           if test "x$supports_anon_versioning" = xyes; then
9331             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9332               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9333               echo "local: *; };" >> $output_objdir/$libname.ver~
9334               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9335           fi
9336           ;;
9337         esac
9338       else
9339         ld_shlibs=no
9340       fi
9341       ;;
9342
9343     netbsd*)
9344       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9345         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9346         wlarc=
9347       else
9348         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9349         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9350       fi
9351       ;;
9352
9353     solaris*)
9354       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9355         ld_shlibs=no
9356         cat <<_LT_EOF 1>&2
9357
9358 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9359 *** create shared libraries on Solaris systems.  Therefore, libtool
9360 *** is disabling shared libraries support.  We urge you to upgrade GNU
9361 *** binutils to release 2.9.1 or newer.  Another option is to modify
9362 *** your PATH or compiler configuration so that the native linker is
9363 *** used, and then restart.
9364
9365 _LT_EOF
9366       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9367         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9368         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9369       else
9370         ld_shlibs=no
9371       fi
9372       ;;
9373
9374     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9375       case `$LD -v 2>&1` in
9376         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9377         ld_shlibs=no
9378         cat <<_LT_EOF 1>&2
9379
9380 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9381 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9382 *** is disabling shared libraries support.  We urge you to upgrade GNU
9383 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9384 *** your PATH or compiler configuration so that the native linker is
9385 *** used, and then restart.
9386
9387 _LT_EOF
9388         ;;
9389         *)
9390           # For security reasons, it is highly recommended that you always
9391           # use absolute paths for naming shared libraries, and exclude the
9392           # DT_RUNPATH tag from executables and libraries.  But doing so
9393           # requires that you compile everything twice, which is a pain.
9394           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9395             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9396             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9397             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9398           else
9399             ld_shlibs=no
9400           fi
9401         ;;
9402       esac
9403       ;;
9404
9405     sunos4*)
9406       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9407       wlarc=
9408       hardcode_direct=yes
9409       hardcode_shlibpath_var=no
9410       ;;
9411
9412     *)
9413       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9414         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9415         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9416       else
9417         ld_shlibs=no
9418       fi
9419       ;;
9420     esac
9421
9422     if test "$ld_shlibs" = no; then
9423       runpath_var=
9424       hardcode_libdir_flag_spec=
9425       export_dynamic_flag_spec=
9426       whole_archive_flag_spec=
9427     fi
9428   else
9429     # PORTME fill in a description of your system's linker (not GNU ld)
9430     case $host_os in
9431     aix3*)
9432       allow_undefined_flag=unsupported
9433       always_export_symbols=yes
9434       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'
9435       # Note: this linker hardcodes the directories in LIBPATH if there
9436       # are no directories specified by -L.
9437       hardcode_minus_L=yes
9438       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9439         # Neither direct hardcoding nor static linking is supported with a
9440         # broken collect2.
9441         hardcode_direct=unsupported
9442       fi
9443       ;;
9444
9445     aix[4-9]*)
9446       if test "$host_cpu" = ia64; then
9447         # On IA64, the linker does run time linking by default, so we don't
9448         # have to do anything special.
9449         aix_use_runtimelinking=no
9450         exp_sym_flag='-Bexport'
9451         no_entry_flag=""
9452       else
9453         # If we're using GNU nm, then we don't want the "-C" option.
9454         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9455         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9456           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9457         else
9458           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'
9459         fi
9460         aix_use_runtimelinking=no
9461
9462         # Test if we are trying to use run time linking or normal
9463         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9464         # need to do runtime linking.
9465         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9466           for ld_flag in $LDFLAGS; do
9467           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9468             aix_use_runtimelinking=yes
9469             break
9470           fi
9471           done
9472           ;;
9473         esac
9474
9475         exp_sym_flag='-bexport'
9476         no_entry_flag='-bnoentry'
9477       fi
9478
9479       # When large executables or shared objects are built, AIX ld can
9480       # have problems creating the table of contents.  If linking a library
9481       # or program results in "error TOC overflow" add -mminimal-toc to
9482       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9483       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9484
9485       archive_cmds=''
9486       hardcode_direct=yes
9487       hardcode_direct_absolute=yes
9488       hardcode_libdir_separator=':'
9489       link_all_deplibs=yes
9490       file_list_spec='${wl}-f,'
9491
9492       if test "$GCC" = yes; then
9493         case $host_os in aix4.[012]|aix4.[012].*)
9494         # We only want to do this on AIX 4.2 and lower, the check
9495         # below for broken collect2 doesn't work under 4.3+
9496           collect2name=`${CC} -print-prog-name=collect2`
9497           if test -f "$collect2name" &&
9498            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9499           then
9500           # We have reworked collect2
9501           :
9502           else
9503           # We have old collect2
9504           hardcode_direct=unsupported
9505           # It fails to find uninstalled libraries when the uninstalled
9506           # path is not listed in the libpath.  Setting hardcode_minus_L
9507           # to unsupported forces relinking
9508           hardcode_minus_L=yes
9509           hardcode_libdir_flag_spec='-L$libdir'
9510           hardcode_libdir_separator=
9511           fi
9512           ;;
9513         esac
9514         shared_flag='-shared'
9515         if test "$aix_use_runtimelinking" = yes; then
9516           shared_flag="$shared_flag "'${wl}-G'
9517         fi
9518       else
9519         # not using gcc
9520         if test "$host_cpu" = ia64; then
9521         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9522         # chokes on -Wl,-G. The following line is correct:
9523           shared_flag='-G'
9524         else
9525           if test "$aix_use_runtimelinking" = yes; then
9526             shared_flag='${wl}-G'
9527           else
9528             shared_flag='${wl}-bM:SRE'
9529           fi
9530         fi
9531       fi
9532
9533       export_dynamic_flag_spec='${wl}-bexpall'
9534       # It seems that -bexpall does not export symbols beginning with
9535       # underscore (_), so it is better to generate a list of symbols to export.
9536       always_export_symbols=yes
9537       if test "$aix_use_runtimelinking" = yes; then
9538         # Warning - without using the other runtime loading flags (-brtl),
9539         # -berok will link without error, but may produce a broken library.
9540         allow_undefined_flag='-berok'
9541         # Determine the default libpath from the value encoded in an
9542         # empty executable.
9543         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9544 /* end confdefs.h.  */
9545
9546 int
9547 main ()
9548 {
9549
9550   ;
9551   return 0;
9552 }
9553 _ACEOF
9554 if ac_fn_c_try_link "$LINENO"; then :
9555
9556 lt_aix_libpath_sed='
9557     /Import File Strings/,/^$/ {
9558         /^0/ {
9559             s/^0  *\(.*\)$/\1/
9560             p
9561         }
9562     }'
9563 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9564 # Check for a 64-bit object if we didn't find anything.
9565 if test -z "$aix_libpath"; then
9566   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9567 fi
9568 fi
9569 rm -f core conftest.err conftest.$ac_objext \
9570     conftest$ac_exeext conftest.$ac_ext
9571 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9572
9573         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9574         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9575       else
9576         if test "$host_cpu" = ia64; then
9577           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9578           allow_undefined_flag="-z nodefs"
9579           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"
9580         else
9581          # Determine the default libpath from the value encoded in an
9582          # empty executable.
9583          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9584 /* end confdefs.h.  */
9585
9586 int
9587 main ()
9588 {
9589
9590   ;
9591   return 0;
9592 }
9593 _ACEOF
9594 if ac_fn_c_try_link "$LINENO"; then :
9595
9596 lt_aix_libpath_sed='
9597     /Import File Strings/,/^$/ {
9598         /^0/ {
9599             s/^0  *\(.*\)$/\1/
9600             p
9601         }
9602     }'
9603 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 # Check for a 64-bit object if we didn't find anything.
9605 if test -z "$aix_libpath"; then
9606   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9607 fi
9608 fi
9609 rm -f core conftest.err conftest.$ac_objext \
9610     conftest$ac_exeext conftest.$ac_ext
9611 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9612
9613          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9614           # Warning - without using the other run time loading flags,
9615           # -berok will link without error, but may produce a broken library.
9616           no_undefined_flag=' ${wl}-bernotok'
9617           allow_undefined_flag=' ${wl}-berok'
9618           # Exported symbols can be pulled into shared objects from archives
9619           whole_archive_flag_spec='$convenience'
9620           archive_cmds_need_lc=yes
9621           # This is similar to how AIX traditionally builds its shared libraries.
9622           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'
9623         fi
9624       fi
9625       ;;
9626
9627     amigaos*)
9628       case $host_cpu in
9629       powerpc)
9630             # see comment about AmigaOS4 .so support
9631             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9632             archive_expsym_cmds=''
9633         ;;
9634       m68k)
9635             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)'
9636             hardcode_libdir_flag_spec='-L$libdir'
9637             hardcode_minus_L=yes
9638         ;;
9639       esac
9640       ;;
9641
9642     bsdi[45]*)
9643       export_dynamic_flag_spec=-rdynamic
9644       ;;
9645
9646     cygwin* | mingw* | pw32* | cegcc*)
9647       # When not using gcc, we currently assume that we are using
9648       # Microsoft Visual C++.
9649       # hardcode_libdir_flag_spec is actually meaningless, as there is
9650       # no search path for DLLs.
9651       hardcode_libdir_flag_spec=' '
9652       allow_undefined_flag=unsupported
9653       # Tell ltmain to make .lib files, not .a files.
9654       libext=lib
9655       # Tell ltmain to make .dll files, not .so files.
9656       shrext_cmds=".dll"
9657       # FIXME: Setting linknames here is a bad hack.
9658       archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9659       # The linker will automatically build a .lib file if we build a DLL.
9660       old_archive_from_new_cmds='true'
9661       # FIXME: Should let the user specify the lib program.
9662       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9663       fix_srcfile_path='`cygpath -w "$srcfile"`'
9664       enable_shared_with_static_runtimes=yes
9665       ;;
9666
9667     darwin* | rhapsody*)
9668
9669
9670   archive_cmds_need_lc=no
9671   hardcode_direct=no
9672   hardcode_automatic=yes
9673   hardcode_shlibpath_var=unsupported
9674   whole_archive_flag_spec=''
9675   link_all_deplibs=yes
9676   allow_undefined_flag="$_lt_dar_allow_undefined"
9677   case $cc_basename in
9678      ifort*) _lt_dar_can_shared=yes ;;
9679      *) _lt_dar_can_shared=$GCC ;;
9680   esac
9681   if test "$_lt_dar_can_shared" = "yes"; then
9682     output_verbose_link_cmd=echo
9683     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9684     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9685     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}"
9686     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}"
9687
9688   else
9689   ld_shlibs=no
9690   fi
9691
9692       ;;
9693
9694     dgux*)
9695       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9696       hardcode_libdir_flag_spec='-L$libdir'
9697       hardcode_shlibpath_var=no
9698       ;;
9699
9700     freebsd1*)
9701       ld_shlibs=no
9702       ;;
9703
9704     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9705     # support.  Future versions do this automatically, but an explicit c++rt0.o
9706     # does not break anything, and helps significantly (at the cost of a little
9707     # extra space).
9708     freebsd2.2*)
9709       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9710       hardcode_libdir_flag_spec='-R$libdir'
9711       hardcode_direct=yes
9712       hardcode_shlibpath_var=no
9713       ;;
9714
9715     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9716     freebsd2*)
9717       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9718       hardcode_direct=yes
9719       hardcode_minus_L=yes
9720       hardcode_shlibpath_var=no
9721       ;;
9722
9723     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9724     freebsd* | dragonfly*)
9725       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9726       hardcode_libdir_flag_spec='-R$libdir'
9727       hardcode_direct=yes
9728       hardcode_shlibpath_var=no
9729       ;;
9730
9731     hpux9*)
9732       if test "$GCC" = yes; then
9733         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9734       else
9735         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'
9736       fi
9737       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9738       hardcode_libdir_separator=:
9739       hardcode_direct=yes
9740
9741       # hardcode_minus_L: Not really in the search PATH,
9742       # but as the default location of the library.
9743       hardcode_minus_L=yes
9744       export_dynamic_flag_spec='${wl}-E'
9745       ;;
9746
9747     hpux10*)
9748       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9749         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9750       else
9751         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9752       fi
9753       if test "$with_gnu_ld" = no; then
9754         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9755         hardcode_libdir_flag_spec_ld='+b $libdir'
9756         hardcode_libdir_separator=:
9757         hardcode_direct=yes
9758         hardcode_direct_absolute=yes
9759         export_dynamic_flag_spec='${wl}-E'
9760         # hardcode_minus_L: Not really in the search PATH,
9761         # but as the default location of the library.
9762         hardcode_minus_L=yes
9763       fi
9764       ;;
9765
9766     hpux11*)
9767       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9768         case $host_cpu in
9769         hppa*64*)
9770           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771           ;;
9772         ia64*)
9773           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9774           ;;
9775         *)
9776           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9777           ;;
9778         esac
9779       else
9780         case $host_cpu in
9781         hppa*64*)
9782           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9783           ;;
9784         ia64*)
9785           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9786           ;;
9787         *)
9788           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789           ;;
9790         esac
9791       fi
9792       if test "$with_gnu_ld" = no; then
9793         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9794         hardcode_libdir_separator=:
9795
9796         case $host_cpu in
9797         hppa*64*|ia64*)
9798           hardcode_direct=no
9799           hardcode_shlibpath_var=no
9800           ;;
9801         *)
9802           hardcode_direct=yes
9803           hardcode_direct_absolute=yes
9804           export_dynamic_flag_spec='${wl}-E'
9805
9806           # hardcode_minus_L: Not really in the search PATH,
9807           # but as the default location of the library.
9808           hardcode_minus_L=yes
9809           ;;
9810         esac
9811       fi
9812       ;;
9813
9814     irix5* | irix6* | nonstopux*)
9815       if test "$GCC" = yes; then
9816         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9817         # Try to use the -exported_symbol ld option, if it does not
9818         # work, assume that -exports_file does not work either and
9819         # implicitly export all symbols.
9820         save_LDFLAGS="$LDFLAGS"
9821         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9822         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h.  */
9824 int foo(void) {}
9825 _ACEOF
9826 if ac_fn_c_try_link "$LINENO"; then :
9827   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9828
9829 fi
9830 rm -f core conftest.err conftest.$ac_objext \
9831     conftest$ac_exeext conftest.$ac_ext
9832         LDFLAGS="$save_LDFLAGS"
9833       else
9834         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9835         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9836       fi
9837       archive_cmds_need_lc='no'
9838       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9839       hardcode_libdir_separator=:
9840       inherit_rpath=yes
9841       link_all_deplibs=yes
9842       ;;
9843
9844     netbsd*)
9845       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9846         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9847       else
9848         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9849       fi
9850       hardcode_libdir_flag_spec='-R$libdir'
9851       hardcode_direct=yes
9852       hardcode_shlibpath_var=no
9853       ;;
9854
9855     newsos6)
9856       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9857       hardcode_direct=yes
9858       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9859       hardcode_libdir_separator=:
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     *nto* | *qnx*)
9864       ;;
9865
9866     openbsd*)
9867       if test -f /usr/libexec/ld.so; then
9868         hardcode_direct=yes
9869         hardcode_shlibpath_var=no
9870         hardcode_direct_absolute=yes
9871         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9872           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9873           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9874           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9875           export_dynamic_flag_spec='${wl}-E'
9876         else
9877           case $host_os in
9878            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9879              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9880              hardcode_libdir_flag_spec='-R$libdir'
9881              ;;
9882            *)
9883              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9884              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9885              ;;
9886           esac
9887         fi
9888       else
9889         ld_shlibs=no
9890       fi
9891       ;;
9892
9893     os2*)
9894       hardcode_libdir_flag_spec='-L$libdir'
9895       hardcode_minus_L=yes
9896       allow_undefined_flag=unsupported
9897       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'
9898       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9899       ;;
9900
9901     osf3*)
9902       if test "$GCC" = yes; then
9903         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9904         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9905       else
9906         allow_undefined_flag=' -expect_unresolved \*'
9907         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9908       fi
9909       archive_cmds_need_lc='no'
9910       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9911       hardcode_libdir_separator=:
9912       ;;
9913
9914     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9915       if test "$GCC" = yes; then
9916         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9917         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9918         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9919       else
9920         allow_undefined_flag=' -expect_unresolved \*'
9921         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9922         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~
9923         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9924
9925         # Both c and cxx compiler support -rpath directly
9926         hardcode_libdir_flag_spec='-rpath $libdir'
9927       fi
9928       archive_cmds_need_lc='no'
9929       hardcode_libdir_separator=:
9930       ;;
9931
9932     solaris*)
9933       no_undefined_flag=' -z defs'
9934       if test "$GCC" = yes; then
9935         wlarc='${wl}'
9936         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9937         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9938           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9939       else
9940         case `$CC -V 2>&1` in
9941         *"Compilers 5.0"*)
9942           wlarc=''
9943           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9946           ;;
9947         *)
9948           wlarc='${wl}'
9949           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9950           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9951           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9952           ;;
9953         esac
9954       fi
9955       hardcode_libdir_flag_spec='-R$libdir'
9956       hardcode_shlibpath_var=no
9957       case $host_os in
9958       solaris2.[0-5] | solaris2.[0-5].*) ;;
9959       *)
9960         # The compiler driver will combine and reorder linker options,
9961         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9962         # but is careful enough not to reorder.
9963         # Supported since Solaris 2.6 (maybe 2.5.1?)
9964         if test "$GCC" = yes; then
9965           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9966         else
9967           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9968         fi
9969         ;;
9970       esac
9971       link_all_deplibs=yes
9972       ;;
9973
9974     sunos4*)
9975       if test "x$host_vendor" = xsequent; then
9976         # Use $CC to link under sequent, because it throws in some extra .o
9977         # files that make .init and .fini sections work.
9978         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9979       else
9980         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9981       fi
9982       hardcode_libdir_flag_spec='-L$libdir'
9983       hardcode_direct=yes
9984       hardcode_minus_L=yes
9985       hardcode_shlibpath_var=no
9986       ;;
9987
9988     sysv4)
9989       case $host_vendor in
9990         sni)
9991           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9992           hardcode_direct=yes # is this really true???
9993         ;;
9994         siemens)
9995           ## LD is ld it makes a PLAMLIB
9996           ## CC just makes a GrossModule.
9997           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9998           reload_cmds='$CC -r -o $output$reload_objs'
9999           hardcode_direct=no
10000         ;;
10001         motorola)
10002           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10003           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10004         ;;
10005       esac
10006       runpath_var='LD_RUN_PATH'
10007       hardcode_shlibpath_var=no
10008       ;;
10009
10010     sysv4.3*)
10011       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10012       hardcode_shlibpath_var=no
10013       export_dynamic_flag_spec='-Bexport'
10014       ;;
10015
10016     sysv4*MP*)
10017       if test -d /usr/nec; then
10018         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019         hardcode_shlibpath_var=no
10020         runpath_var=LD_RUN_PATH
10021         hardcode_runpath_var=yes
10022         ld_shlibs=yes
10023       fi
10024       ;;
10025
10026     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10027       no_undefined_flag='${wl}-z,text'
10028       archive_cmds_need_lc=no
10029       hardcode_shlibpath_var=no
10030       runpath_var='LD_RUN_PATH'
10031
10032       if test "$GCC" = yes; then
10033         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035       else
10036         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10037         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038       fi
10039       ;;
10040
10041     sysv5* | sco3.2v5* | sco5v6*)
10042       # Note: We can NOT use -z defs as we might desire, because we do not
10043       # link with -lc, and that would cause any symbols used from libc to
10044       # always be unresolved, which means just about no library would
10045       # ever link correctly.  If we're not using GNU ld we use -z text
10046       # though, which does catch some bad symbols but isn't as heavy-handed
10047       # as -z defs.
10048       no_undefined_flag='${wl}-z,text'
10049       allow_undefined_flag='${wl}-z,nodefs'
10050       archive_cmds_need_lc=no
10051       hardcode_shlibpath_var=no
10052       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10053       hardcode_libdir_separator=':'
10054       link_all_deplibs=yes
10055       export_dynamic_flag_spec='${wl}-Bexport'
10056       runpath_var='LD_RUN_PATH'
10057
10058       if test "$GCC" = yes; then
10059         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10061       else
10062         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10063         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064       fi
10065       ;;
10066
10067     uts4*)
10068       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10069       hardcode_libdir_flag_spec='-L$libdir'
10070       hardcode_shlibpath_var=no
10071       ;;
10072
10073     *)
10074       ld_shlibs=no
10075       ;;
10076     esac
10077
10078     if test x$host_vendor = xsni; then
10079       case $host in
10080       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10081         export_dynamic_flag_spec='${wl}-Blargedynsym'
10082         ;;
10083       esac
10084     fi
10085   fi
10086
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10088 $as_echo "$ld_shlibs" >&6; }
10089 test "$ld_shlibs" = no && can_build_shared=no
10090
10091 with_gnu_ld=$with_gnu_ld
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105
10106
10107 #
10108 # Do we need to explicitly link libc?
10109 #
10110 case "x$archive_cmds_need_lc" in
10111 x|xyes)
10112   # Assume -lc should be added
10113   archive_cmds_need_lc=yes
10114
10115   if test "$enable_shared" = yes && test "$GCC" = yes; then
10116     case $archive_cmds in
10117     *'~'*)
10118       # FIXME: we may have to deal with multi-command sequences.
10119       ;;
10120     '$CC '*)
10121       # Test whether the compiler implicitly links with -lc since on some
10122       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10123       # to ld, don't add -lc before -lgcc.
10124       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10125 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10126       $RM conftest*
10127       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10128
10129       if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130   (eval $ac_compile) 2>&5
10131   ac_status=$?
10132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133   test $ac_status = 0; } 2>conftest.err; then
10134         soname=conftest
10135         lib=conftest
10136         libobjs=conftest.$ac_objext
10137         deplibs=
10138         wl=$lt_prog_compiler_wl
10139         pic_flag=$lt_prog_compiler_pic
10140         compiler_flags=-v
10141         linker_flags=-v
10142         verstring=
10143         output_objdir=.
10144         libname=conftest
10145         lt_save_allow_undefined_flag=$allow_undefined_flag
10146         allow_undefined_flag=
10147         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149   ac_status=$?
10150   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151   test $ac_status = 0; }
10152         then
10153           archive_cmds_need_lc=no
10154         else
10155           archive_cmds_need_lc=yes
10156         fi
10157         allow_undefined_flag=$lt_save_allow_undefined_flag
10158       else
10159         cat conftest.err 1>&5
10160       fi
10161       $RM conftest*
10162       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10163 $as_echo "$archive_cmds_need_lc" >&6; }
10164       ;;
10165     esac
10166   fi
10167   ;;
10168 esac
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10327 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10328
10329 if test "$GCC" = yes; then
10330   case $host_os in
10331     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10332     *) lt_awk_arg="/^libraries:/" ;;
10333   esac
10334   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10335   if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10336     # if the path contains ";" then we assume it to be the separator
10337     # otherwise default to the standard path separator (i.e. ":") - it is
10338     # assumed that no part of a normal pathname contains ";" but that should
10339     # okay in the real world where ";" in dirpaths is itself problematic.
10340     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10341   else
10342     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10343   fi
10344   # Ok, now we have the path, separated by spaces, we can step through it
10345   # and add multilib dir if necessary.
10346   lt_tmp_lt_search_path_spec=
10347   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10348   for lt_sys_path in $lt_search_path_spec; do
10349     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10350       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10351     else
10352       test -d "$lt_sys_path" && \
10353         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10354     fi
10355   done
10356   lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10357 BEGIN {RS=" "; FS="/|\n";} {
10358   lt_foo="";
10359   lt_count=0;
10360   for (lt_i = NF; lt_i > 0; lt_i--) {
10361     if ($lt_i != "" && $lt_i != ".") {
10362       if ($lt_i == "..") {
10363         lt_count++;
10364       } else {
10365         if (lt_count == 0) {
10366           lt_foo="/" $lt_i lt_foo;
10367         } else {
10368           lt_count--;
10369         }
10370       }
10371     }
10372   }
10373   if (lt_foo != "") { lt_freq[lt_foo]++; }
10374   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10375 }'`
10376   sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10377 else
10378   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10379 fi
10380 library_names_spec=
10381 libname_spec='lib$name'
10382 soname_spec=
10383 shrext_cmds=".so"
10384 postinstall_cmds=
10385 postuninstall_cmds=
10386 finish_cmds=
10387 finish_eval=
10388 shlibpath_var=
10389 shlibpath_overrides_runpath=unknown
10390 version_type=none
10391 dynamic_linker="$host_os ld.so"
10392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10393 need_lib_prefix=unknown
10394 hardcode_into_libs=no
10395
10396 # when you set need_version to no, make sure it does not cause -set_version
10397 # flags to be left without arguments
10398 need_version=unknown
10399
10400 case $host_os in
10401 aix3*)
10402   version_type=linux
10403   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10404   shlibpath_var=LIBPATH
10405
10406   # AIX 3 has no versioning support, so we append a major version to the name.
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   ;;
10409
10410 aix[4-9]*)
10411   version_type=linux
10412   need_lib_prefix=no
10413   need_version=no
10414   hardcode_into_libs=yes
10415   if test "$host_cpu" = ia64; then
10416     # AIX 5 supports IA64
10417     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10418     shlibpath_var=LD_LIBRARY_PATH
10419   else
10420     # With GCC up to 2.95.x, collect2 would create an import file
10421     # for dependence libraries.  The import file would start with
10422     # the line `#! .'.  This would cause the generated library to
10423     # depend on `.', always an invalid library.  This was fixed in
10424     # development snapshots of GCC prior to 3.0.
10425     case $host_os in
10426       aix4 | aix4.[01] | aix4.[01].*)
10427       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10428            echo ' yes '
10429            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10430         :
10431       else
10432         can_build_shared=no
10433       fi
10434       ;;
10435     esac
10436     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10437     # soname into executable. Probably we can add versioning support to
10438     # collect2, so additional links can be useful in future.
10439     if test "$aix_use_runtimelinking" = yes; then
10440       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10441       # instead of lib<name>.a to let people know that these are not
10442       # typical AIX shared libraries.
10443       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444     else
10445       # We preserve .a as extension for shared libraries through AIX4.2
10446       # and later when we are not doing run time linking.
10447       library_names_spec='${libname}${release}.a $libname.a'
10448       soname_spec='${libname}${release}${shared_ext}$major'
10449     fi
10450     shlibpath_var=LIBPATH
10451   fi
10452   ;;
10453
10454 amigaos*)
10455   case $host_cpu in
10456   powerpc)
10457     # Since July 2007 AmigaOS4 officially supports .so libraries.
10458     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10459     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460     ;;
10461   m68k)
10462     library_names_spec='$libname.ixlibrary $libname.a'
10463     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10464     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10465     ;;
10466   esac
10467   ;;
10468
10469 beos*)
10470   library_names_spec='${libname}${shared_ext}'
10471   dynamic_linker="$host_os ld.so"
10472   shlibpath_var=LIBRARY_PATH
10473   ;;
10474
10475 bsdi[45]*)
10476   version_type=linux
10477   need_version=no
10478   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479   soname_spec='${libname}${release}${shared_ext}$major'
10480   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10481   shlibpath_var=LD_LIBRARY_PATH
10482   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10483   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10484   # the default ld.so.conf also contains /usr/contrib/lib and
10485   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10486   # libtool to hard-code these into programs
10487   ;;
10488
10489 cygwin* | mingw* | pw32* | cegcc*)
10490   version_type=windows
10491   shrext_cmds=".dll"
10492   need_version=no
10493   need_lib_prefix=no
10494
10495   case $GCC,$host_os in
10496   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10497     library_names_spec='$libname.dll.a'
10498     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10499     postinstall_cmds='base_file=`basename \${file}`~
10500       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10501       dldir=$destdir/`dirname \$dlpath`~
10502       test -d \$dldir || mkdir -p \$dldir~
10503       $install_prog $dir/$dlname \$dldir/$dlname~
10504       chmod a+x \$dldir/$dlname~
10505       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10506         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10507       fi'
10508     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10509       dlpath=$dir/\$dldll~
10510        $RM \$dlpath'
10511     shlibpath_overrides_runpath=yes
10512
10513     case $host_os in
10514     cygwin*)
10515       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10516       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10517       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10518       ;;
10519     mingw* | cegcc*)
10520       # MinGW DLLs use traditional 'lib' prefix
10521       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10522       sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10523       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10524         # It is most probably a Windows format PATH printed by
10525         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10526         # path with ; separators, and with drive letters. We can handle the
10527         # drive letters (cygwin fileutils understands them), so leave them,
10528         # especially as we might pass files found there to a mingw objdump,
10529         # which wouldn't understand a cygwinified path. Ahh.
10530         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10531       else
10532         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10533       fi
10534       ;;
10535     pw32*)
10536       # pw32 DLLs use 'pw' prefix rather than 'lib'
10537       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10538       ;;
10539     esac
10540     ;;
10541
10542   *)
10543     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10544     ;;
10545   esac
10546   dynamic_linker='Win32 ld.exe'
10547   # FIXME: first we should search . and the directory the executable is in
10548   shlibpath_var=PATH
10549   ;;
10550
10551 darwin* | rhapsody*)
10552   dynamic_linker="$host_os dyld"
10553   version_type=darwin
10554   need_lib_prefix=no
10555   need_version=no
10556   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10557   soname_spec='${libname}${release}${major}$shared_ext'
10558   shlibpath_overrides_runpath=yes
10559   shlibpath_var=DYLD_LIBRARY_PATH
10560   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10561
10562   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10563   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10564   ;;
10565
10566 dgux*)
10567   version_type=linux
10568   need_lib_prefix=no
10569   need_version=no
10570   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10571   soname_spec='${libname}${release}${shared_ext}$major'
10572   shlibpath_var=LD_LIBRARY_PATH
10573   ;;
10574
10575 freebsd1*)
10576   dynamic_linker=no
10577   ;;
10578
10579 freebsd* | dragonfly*)
10580   # DragonFly does not have aout.  When/if they implement a new
10581   # versioning mechanism, adjust this.
10582   if test -x /usr/bin/objformat; then
10583     objformat=`/usr/bin/objformat`
10584   else
10585     case $host_os in
10586     freebsd[123]*) objformat=aout ;;
10587     *) objformat=elf ;;
10588     esac
10589   fi
10590   version_type=freebsd-$objformat
10591   case $version_type in
10592     freebsd-elf*)
10593       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10594       need_version=no
10595       need_lib_prefix=no
10596       ;;
10597     freebsd-*)
10598       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10599       need_version=yes
10600       ;;
10601   esac
10602   shlibpath_var=LD_LIBRARY_PATH
10603   case $host_os in
10604   freebsd2*)
10605     shlibpath_overrides_runpath=yes
10606     ;;
10607   freebsd3.[01]* | freebsdelf3.[01]*)
10608     shlibpath_overrides_runpath=yes
10609     hardcode_into_libs=yes
10610     ;;
10611   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10612   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10613     shlibpath_overrides_runpath=no
10614     hardcode_into_libs=yes
10615     ;;
10616   *) # from 4.6 on, and DragonFly
10617     shlibpath_overrides_runpath=yes
10618     hardcode_into_libs=yes
10619     ;;
10620   esac
10621   ;;
10622
10623 gnu*)
10624   version_type=linux
10625   need_lib_prefix=no
10626   need_version=no
10627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10628   soname_spec='${libname}${release}${shared_ext}$major'
10629   shlibpath_var=LD_LIBRARY_PATH
10630   hardcode_into_libs=yes
10631   ;;
10632
10633 hpux9* | hpux10* | hpux11*)
10634   # Give a soname corresponding to the major version so that dld.sl refuses to
10635   # link against other versions.
10636   version_type=sunos
10637   need_lib_prefix=no
10638   need_version=no
10639   case $host_cpu in
10640   ia64*)
10641     shrext_cmds='.so'
10642     hardcode_into_libs=yes
10643     dynamic_linker="$host_os dld.so"
10644     shlibpath_var=LD_LIBRARY_PATH
10645     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     if test "X$HPUX_IA64_MODE" = X32; then
10649       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10650     else
10651       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10652     fi
10653     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10654     ;;
10655   hppa*64*)
10656     shrext_cmds='.sl'
10657     hardcode_into_libs=yes
10658     dynamic_linker="$host_os dld.sl"
10659     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10660     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10661     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10662     soname_spec='${libname}${release}${shared_ext}$major'
10663     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10664     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10665     ;;
10666   *)
10667     shrext_cmds='.sl'
10668     dynamic_linker="$host_os dld.sl"
10669     shlibpath_var=SHLIB_PATH
10670     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10672     soname_spec='${libname}${release}${shared_ext}$major'
10673     ;;
10674   esac
10675   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10676   postinstall_cmds='chmod 555 $lib'
10677   ;;
10678
10679 interix[3-9]*)
10680   version_type=linux
10681   need_lib_prefix=no
10682   need_version=no
10683   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10684   soname_spec='${libname}${release}${shared_ext}$major'
10685   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10686   shlibpath_var=LD_LIBRARY_PATH
10687   shlibpath_overrides_runpath=no
10688   hardcode_into_libs=yes
10689   ;;
10690
10691 irix5* | irix6* | nonstopux*)
10692   case $host_os in
10693     nonstopux*) version_type=nonstopux ;;
10694     *)
10695         if test "$lt_cv_prog_gnu_ld" = yes; then
10696                 version_type=linux
10697         else
10698                 version_type=irix
10699         fi ;;
10700   esac
10701   need_lib_prefix=no
10702   need_version=no
10703   soname_spec='${libname}${release}${shared_ext}$major'
10704   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10705   case $host_os in
10706   irix5* | nonstopux*)
10707     libsuff= shlibsuff=
10708     ;;
10709   *)
10710     case $LD in # libtool.m4 will add one of these switches to LD
10711     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10712       libsuff= shlibsuff= libmagic=32-bit;;
10713     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10714       libsuff=32 shlibsuff=N32 libmagic=N32;;
10715     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10716       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10717     *) libsuff= shlibsuff= libmagic=never-match;;
10718     esac
10719     ;;
10720   esac
10721   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10722   shlibpath_overrides_runpath=no
10723   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10724   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10725   hardcode_into_libs=yes
10726   ;;
10727
10728 # No shared lib support for Linux oldld, aout, or coff.
10729 linux*oldld* | linux*aout* | linux*coff*)
10730   dynamic_linker=no
10731   ;;
10732
10733 # This must be Linux ELF.
10734 linux* | k*bsd*-gnu)
10735   version_type=linux
10736   need_lib_prefix=no
10737   need_version=no
10738   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739   soname_spec='${libname}${release}${shared_ext}$major'
10740   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10741   shlibpath_var=LD_LIBRARY_PATH
10742   shlibpath_overrides_runpath=no
10743   # Some binutils ld are patched to set DT_RUNPATH
10744   save_LDFLAGS=$LDFLAGS
10745   save_libdir=$libdir
10746   eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10747        LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10748   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10749 /* end confdefs.h.  */
10750
10751 int
10752 main ()
10753 {
10754
10755   ;
10756   return 0;
10757 }
10758 _ACEOF
10759 if ac_fn_c_try_link "$LINENO"; then :
10760   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10761   shlibpath_overrides_runpath=yes
10762 fi
10763 fi
10764 rm -f core conftest.err conftest.$ac_objext \
10765     conftest$ac_exeext conftest.$ac_ext
10766   LDFLAGS=$save_LDFLAGS
10767   libdir=$save_libdir
10768
10769   # This implies no fast_install, which is unacceptable.
10770   # Some rework will be needed to allow for fast_install
10771   # before this can be enabled.
10772   hardcode_into_libs=yes
10773
10774   # Append ld.so.conf contents to the search path
10775   if test -f /etc/ld.so.conf; then
10776     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;/^$/d' | tr '\n' ' '`
10777     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10778   fi
10779
10780   # We used to test for /lib/ld.so.1 and disable shared libraries on
10781   # powerpc, because MkLinux only supported shared libraries with the
10782   # GNU dynamic linker.  Since this was broken with cross compilers,
10783   # most powerpc-linux boxes support dynamic linking these days and
10784   # people can always --disable-shared, the test was removed, and we
10785   # assume the GNU/Linux dynamic linker is in use.
10786   dynamic_linker='GNU/Linux ld.so'
10787   ;;
10788
10789 netbsd*)
10790   version_type=sunos
10791   need_lib_prefix=no
10792   need_version=no
10793   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10794     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10795     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10796     dynamic_linker='NetBSD (a.out) ld.so'
10797   else
10798     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10799     soname_spec='${libname}${release}${shared_ext}$major'
10800     dynamic_linker='NetBSD ld.elf_so'
10801   fi
10802   shlibpath_var=LD_LIBRARY_PATH
10803   shlibpath_overrides_runpath=yes
10804   hardcode_into_libs=yes
10805   ;;
10806
10807 newsos6)
10808   version_type=linux
10809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10810   shlibpath_var=LD_LIBRARY_PATH
10811   shlibpath_overrides_runpath=yes
10812   ;;
10813
10814 *nto* | *qnx*)
10815   version_type=qnx
10816   need_lib_prefix=no
10817   need_version=no
10818   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10819   soname_spec='${libname}${release}${shared_ext}$major'
10820   shlibpath_var=LD_LIBRARY_PATH
10821   shlibpath_overrides_runpath=no
10822   hardcode_into_libs=yes
10823   dynamic_linker='ldqnx.so'
10824   ;;
10825
10826 openbsd*)
10827   version_type=sunos
10828   sys_lib_dlsearch_path_spec="/usr/lib"
10829   need_lib_prefix=no
10830   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10831   case $host_os in
10832     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
10833     *)                          need_version=no  ;;
10834   esac
10835   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10836   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10837   shlibpath_var=LD_LIBRARY_PATH
10838   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10839     case $host_os in
10840       openbsd2.[89] | openbsd2.[89].*)
10841         shlibpath_overrides_runpath=no
10842         ;;
10843       *)
10844         shlibpath_overrides_runpath=yes
10845         ;;
10846       esac
10847   else
10848     shlibpath_overrides_runpath=yes
10849   fi
10850   ;;
10851
10852 os2*)
10853   libname_spec='$name'
10854   shrext_cmds=".dll"
10855   need_lib_prefix=no
10856   library_names_spec='$libname${shared_ext} $libname.a'
10857   dynamic_linker='OS/2 ld.exe'
10858   shlibpath_var=LIBPATH
10859   ;;
10860
10861 osf3* | osf4* | osf5*)
10862   version_type=osf
10863   need_lib_prefix=no
10864   need_version=no
10865   soname_spec='${libname}${release}${shared_ext}$major'
10866   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10867   shlibpath_var=LD_LIBRARY_PATH
10868   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10869   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10870   ;;
10871
10872 rdos*)
10873   dynamic_linker=no
10874   ;;
10875
10876 solaris*)
10877   version_type=linux
10878   need_lib_prefix=no
10879   need_version=no
10880   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881   soname_spec='${libname}${release}${shared_ext}$major'
10882   shlibpath_var=LD_LIBRARY_PATH
10883   shlibpath_overrides_runpath=yes
10884   hardcode_into_libs=yes
10885   # ldd complains unless libraries are executable
10886   postinstall_cmds='chmod +x $lib'
10887   ;;
10888
10889 sunos4*)
10890   version_type=sunos
10891   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10892   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10893   shlibpath_var=LD_LIBRARY_PATH
10894   shlibpath_overrides_runpath=yes
10895   if test "$with_gnu_ld" = yes; then
10896     need_lib_prefix=no
10897   fi
10898   need_version=yes
10899   ;;
10900
10901 sysv4 | sysv4.3*)
10902   version_type=linux
10903   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904   soname_spec='${libname}${release}${shared_ext}$major'
10905   shlibpath_var=LD_LIBRARY_PATH
10906   case $host_vendor in
10907     sni)
10908       shlibpath_overrides_runpath=no
10909       need_lib_prefix=no
10910       runpath_var=LD_RUN_PATH
10911       ;;
10912     siemens)
10913       need_lib_prefix=no
10914       ;;
10915     motorola)
10916       need_lib_prefix=no
10917       need_version=no
10918       shlibpath_overrides_runpath=no
10919       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10920       ;;
10921   esac
10922   ;;
10923
10924 sysv4*MP*)
10925   if test -d /usr/nec ;then
10926     version_type=linux
10927     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10928     soname_spec='$libname${shared_ext}.$major'
10929     shlibpath_var=LD_LIBRARY_PATH
10930   fi
10931   ;;
10932
10933 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10934   version_type=freebsd-elf
10935   need_lib_prefix=no
10936   need_version=no
10937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10938   soname_spec='${libname}${release}${shared_ext}$major'
10939   shlibpath_var=LD_LIBRARY_PATH
10940   shlibpath_overrides_runpath=yes
10941   hardcode_into_libs=yes
10942   if test "$with_gnu_ld" = yes; then
10943     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10944   else
10945     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10946     case $host_os in
10947       sco3.2v5*)
10948         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10949         ;;
10950     esac
10951   fi
10952   sys_lib_dlsearch_path_spec='/usr/lib'
10953   ;;
10954
10955 tpf*)
10956   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10957   version_type=linux
10958   need_lib_prefix=no
10959   need_version=no
10960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961   shlibpath_var=LD_LIBRARY_PATH
10962   shlibpath_overrides_runpath=no
10963   hardcode_into_libs=yes
10964   ;;
10965
10966 uts4*)
10967   version_type=linux
10968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10969   soname_spec='${libname}${release}${shared_ext}$major'
10970   shlibpath_var=LD_LIBRARY_PATH
10971   ;;
10972
10973 *)
10974   dynamic_linker=no
10975   ;;
10976 esac
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10978 $as_echo "$dynamic_linker" >&6; }
10979 test "$dynamic_linker" = no && can_build_shared=no
10980
10981 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10982 if test "$GCC" = yes; then
10983   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10984 fi
10985
10986 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10987   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10988 fi
10989 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10990   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10991 fi
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11080 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11081 hardcode_action=
11082 if test -n "$hardcode_libdir_flag_spec" ||
11083    test -n "$runpath_var" ||
11084    test "X$hardcode_automatic" = "Xyes" ; then
11085
11086   # We can hardcode non-existent directories.
11087   if test "$hardcode_direct" != no &&
11088      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11089      # have to relink, otherwise we might link with an installed library
11090      # when we should be linking with a yet-to-be-installed one
11091      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11092      test "$hardcode_minus_L" != no; then
11093     # Linking always hardcodes the temporary library directory.
11094     hardcode_action=relink
11095   else
11096     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11097     hardcode_action=immediate
11098   fi
11099 else
11100   # We cannot hardcode anything, or else we can only hardcode existing
11101   # directories.
11102   hardcode_action=unsupported
11103 fi
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11105 $as_echo "$hardcode_action" >&6; }
11106
11107 if test "$hardcode_action" = relink ||
11108    test "$inherit_rpath" = yes; then
11109   # Fast installation is not supported
11110   enable_fast_install=no
11111 elif test "$shlibpath_overrides_runpath" = yes ||
11112      test "$enable_shared" = no; then
11113   # Fast installation is not necessary
11114   enable_fast_install=needless
11115 fi
11116
11117
11118
11119
11120
11121
11122   if test "x$enable_dlopen" != xyes; then
11123   enable_dlopen=unknown
11124   enable_dlopen_self=unknown
11125   enable_dlopen_self_static=unknown
11126 else
11127   lt_cv_dlopen=no
11128   lt_cv_dlopen_libs=
11129
11130   case $host_os in
11131   beos*)
11132     lt_cv_dlopen="load_add_on"
11133     lt_cv_dlopen_libs=
11134     lt_cv_dlopen_self=yes
11135     ;;
11136
11137   mingw* | pw32* | cegcc*)
11138     lt_cv_dlopen="LoadLibrary"
11139     lt_cv_dlopen_libs=
11140     ;;
11141
11142   cygwin*)
11143     lt_cv_dlopen="dlopen"
11144     lt_cv_dlopen_libs=
11145     ;;
11146
11147   darwin*)
11148   # if libdl is installed we need to link against it
11149     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11151 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11152   $as_echo_n "(cached) " >&6
11153 else
11154   ac_check_lib_save_LIBS=$LIBS
11155 LIBS="-ldl  $LIBS"
11156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11157 /* end confdefs.h.  */
11158
11159 /* Override any GCC internal prototype to avoid an error.
11160    Use char because int might match the return type of a GCC
11161    builtin and then its argument prototype would still apply.  */
11162 #ifdef __cplusplus
11163 extern "C"
11164 #endif
11165 char dlopen ();
11166 int
11167 main ()
11168 {
11169 return dlopen ();
11170   ;
11171   return 0;
11172 }
11173 _ACEOF
11174 if ac_fn_c_try_link "$LINENO"; then :
11175   ac_cv_lib_dl_dlopen=yes
11176 else
11177   ac_cv_lib_dl_dlopen=no
11178 fi
11179 rm -f core conftest.err conftest.$ac_objext \
11180     conftest$ac_exeext conftest.$ac_ext
11181 LIBS=$ac_check_lib_save_LIBS
11182 fi
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11185 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11186   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11187 else
11188
11189     lt_cv_dlopen="dyld"
11190     lt_cv_dlopen_libs=
11191     lt_cv_dlopen_self=yes
11192
11193 fi
11194
11195     ;;
11196
11197   *)
11198     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11199 if test "x$ac_cv_func_shl_load" = x""yes; then :
11200   lt_cv_dlopen="shl_load"
11201 else
11202   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11203 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11204 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11205   $as_echo_n "(cached) " >&6
11206 else
11207   ac_check_lib_save_LIBS=$LIBS
11208 LIBS="-ldld  $LIBS"
11209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11210 /* end confdefs.h.  */
11211
11212 /* Override any GCC internal prototype to avoid an error.
11213    Use char because int might match the return type of a GCC
11214    builtin and then its argument prototype would still apply.  */
11215 #ifdef __cplusplus
11216 extern "C"
11217 #endif
11218 char shl_load ();
11219 int
11220 main ()
11221 {
11222 return shl_load ();
11223   ;
11224   return 0;
11225 }
11226 _ACEOF
11227 if ac_fn_c_try_link "$LINENO"; then :
11228   ac_cv_lib_dld_shl_load=yes
11229 else
11230   ac_cv_lib_dld_shl_load=no
11231 fi
11232 rm -f core conftest.err conftest.$ac_objext \
11233     conftest$ac_exeext conftest.$ac_ext
11234 LIBS=$ac_check_lib_save_LIBS
11235 fi
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11237 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11238 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11239   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11240 else
11241   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11242 if test "x$ac_cv_func_dlopen" = x""yes; then :
11243   lt_cv_dlopen="dlopen"
11244 else
11245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11246 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11247 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11248   $as_echo_n "(cached) " >&6
11249 else
11250   ac_check_lib_save_LIBS=$LIBS
11251 LIBS="-ldl  $LIBS"
11252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11253 /* end confdefs.h.  */
11254
11255 /* Override any GCC internal prototype to avoid an error.
11256    Use char because int might match the return type of a GCC
11257    builtin and then its argument prototype would still apply.  */
11258 #ifdef __cplusplus
11259 extern "C"
11260 #endif
11261 char dlopen ();
11262 int
11263 main ()
11264 {
11265 return dlopen ();
11266   ;
11267   return 0;
11268 }
11269 _ACEOF
11270 if ac_fn_c_try_link "$LINENO"; then :
11271   ac_cv_lib_dl_dlopen=yes
11272 else
11273   ac_cv_lib_dl_dlopen=no
11274 fi
11275 rm -f core conftest.err conftest.$ac_objext \
11276     conftest$ac_exeext conftest.$ac_ext
11277 LIBS=$ac_check_lib_save_LIBS
11278 fi
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11280 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11281 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11282   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11283 else
11284   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11285 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11286 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11287   $as_echo_n "(cached) " >&6
11288 else
11289   ac_check_lib_save_LIBS=$LIBS
11290 LIBS="-lsvld  $LIBS"
11291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11292 /* end confdefs.h.  */
11293
11294 /* Override any GCC internal prototype to avoid an error.
11295    Use char because int might match the return type of a GCC
11296    builtin and then its argument prototype would still apply.  */
11297 #ifdef __cplusplus
11298 extern "C"
11299 #endif
11300 char dlopen ();
11301 int
11302 main ()
11303 {
11304 return dlopen ();
11305   ;
11306   return 0;
11307 }
11308 _ACEOF
11309 if ac_fn_c_try_link "$LINENO"; then :
11310   ac_cv_lib_svld_dlopen=yes
11311 else
11312   ac_cv_lib_svld_dlopen=no
11313 fi
11314 rm -f core conftest.err conftest.$ac_objext \
11315     conftest$ac_exeext conftest.$ac_ext
11316 LIBS=$ac_check_lib_save_LIBS
11317 fi
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11319 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11320 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11321   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11322 else
11323   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11324 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11325 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11326   $as_echo_n "(cached) " >&6
11327 else
11328   ac_check_lib_save_LIBS=$LIBS
11329 LIBS="-ldld  $LIBS"
11330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11331 /* end confdefs.h.  */
11332
11333 /* Override any GCC internal prototype to avoid an error.
11334    Use char because int might match the return type of a GCC
11335    builtin and then its argument prototype would still apply.  */
11336 #ifdef __cplusplus
11337 extern "C"
11338 #endif
11339 char dld_link ();
11340 int
11341 main ()
11342 {
11343 return dld_link ();
11344   ;
11345   return 0;
11346 }
11347 _ACEOF
11348 if ac_fn_c_try_link "$LINENO"; then :
11349   ac_cv_lib_dld_dld_link=yes
11350 else
11351   ac_cv_lib_dld_dld_link=no
11352 fi
11353 rm -f core conftest.err conftest.$ac_objext \
11354     conftest$ac_exeext conftest.$ac_ext
11355 LIBS=$ac_check_lib_save_LIBS
11356 fi
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11358 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11359 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11360   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11361 fi
11362
11363
11364 fi
11365
11366
11367 fi
11368
11369
11370 fi
11371
11372
11373 fi
11374
11375
11376 fi
11377
11378     ;;
11379   esac
11380
11381   if test "x$lt_cv_dlopen" != xno; then
11382     enable_dlopen=yes
11383   else
11384     enable_dlopen=no
11385   fi
11386
11387   case $lt_cv_dlopen in
11388   dlopen)
11389     save_CPPFLAGS="$CPPFLAGS"
11390     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11391
11392     save_LDFLAGS="$LDFLAGS"
11393     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11394
11395     save_LIBS="$LIBS"
11396     LIBS="$lt_cv_dlopen_libs $LIBS"
11397
11398     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11399 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11400 if test "${lt_cv_dlopen_self+set}" = set; then :
11401   $as_echo_n "(cached) " >&6
11402 else
11403           if test "$cross_compiling" = yes; then :
11404   lt_cv_dlopen_self=cross
11405 else
11406   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11407   lt_status=$lt_dlunknown
11408   cat > conftest.$ac_ext <<_LT_EOF
11409 #line 11409 "configure"
11410 #include "confdefs.h"
11411
11412 #if HAVE_DLFCN_H
11413 #include <dlfcn.h>
11414 #endif
11415
11416 #include <stdio.h>
11417
11418 #ifdef RTLD_GLOBAL
11419 #  define LT_DLGLOBAL           RTLD_GLOBAL
11420 #else
11421 #  ifdef DL_GLOBAL
11422 #    define LT_DLGLOBAL         DL_GLOBAL
11423 #  else
11424 #    define LT_DLGLOBAL         0
11425 #  endif
11426 #endif
11427
11428 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11429    find out it does not work in some platform. */
11430 #ifndef LT_DLLAZY_OR_NOW
11431 #  ifdef RTLD_LAZY
11432 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11433 #  else
11434 #    ifdef DL_LAZY
11435 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11436 #    else
11437 #      ifdef RTLD_NOW
11438 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11439 #      else
11440 #        ifdef DL_NOW
11441 #          define LT_DLLAZY_OR_NOW      DL_NOW
11442 #        else
11443 #          define LT_DLLAZY_OR_NOW      0
11444 #        endif
11445 #      endif
11446 #    endif
11447 #  endif
11448 #endif
11449
11450 void fnord() { int i=42;}
11451 int main ()
11452 {
11453   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11454   int status = $lt_dlunknown;
11455
11456   if (self)
11457     {
11458       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11459       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11460       /* dlclose (self); */
11461     }
11462   else
11463     puts (dlerror ());
11464
11465   return status;
11466 }
11467 _LT_EOF
11468   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11469   (eval $ac_link) 2>&5
11470   ac_status=$?
11471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11472   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11473     (./conftest; exit; ) >&5 2>/dev/null
11474     lt_status=$?
11475     case x$lt_status in
11476       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11477       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11478       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11479     esac
11480   else :
11481     # compilation failed
11482     lt_cv_dlopen_self=no
11483   fi
11484 fi
11485 rm -fr conftest*
11486
11487
11488 fi
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11490 $as_echo "$lt_cv_dlopen_self" >&6; }
11491
11492     if test "x$lt_cv_dlopen_self" = xyes; then
11493       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11494       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11495 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11496 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11497   $as_echo_n "(cached) " >&6
11498 else
11499           if test "$cross_compiling" = yes; then :
11500   lt_cv_dlopen_self_static=cross
11501 else
11502   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11503   lt_status=$lt_dlunknown
11504   cat > conftest.$ac_ext <<_LT_EOF
11505 #line 11505 "configure"
11506 #include "confdefs.h"
11507
11508 #if HAVE_DLFCN_H
11509 #include <dlfcn.h>
11510 #endif
11511
11512 #include <stdio.h>
11513
11514 #ifdef RTLD_GLOBAL
11515 #  define LT_DLGLOBAL           RTLD_GLOBAL
11516 #else
11517 #  ifdef DL_GLOBAL
11518 #    define LT_DLGLOBAL         DL_GLOBAL
11519 #  else
11520 #    define LT_DLGLOBAL         0
11521 #  endif
11522 #endif
11523
11524 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11525    find out it does not work in some platform. */
11526 #ifndef LT_DLLAZY_OR_NOW
11527 #  ifdef RTLD_LAZY
11528 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11529 #  else
11530 #    ifdef DL_LAZY
11531 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11532 #    else
11533 #      ifdef RTLD_NOW
11534 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11535 #      else
11536 #        ifdef DL_NOW
11537 #          define LT_DLLAZY_OR_NOW      DL_NOW
11538 #        else
11539 #          define LT_DLLAZY_OR_NOW      0
11540 #        endif
11541 #      endif
11542 #    endif
11543 #  endif
11544 #endif
11545
11546 void fnord() { int i=42;}
11547 int main ()
11548 {
11549   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11550   int status = $lt_dlunknown;
11551
11552   if (self)
11553     {
11554       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11555       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11556       /* dlclose (self); */
11557     }
11558   else
11559     puts (dlerror ());
11560
11561   return status;
11562 }
11563 _LT_EOF
11564   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11565   (eval $ac_link) 2>&5
11566   ac_status=$?
11567   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11568   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11569     (./conftest; exit; ) >&5 2>/dev/null
11570     lt_status=$?
11571     case x$lt_status in
11572       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11573       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11574       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11575     esac
11576   else :
11577     # compilation failed
11578     lt_cv_dlopen_self_static=no
11579   fi
11580 fi
11581 rm -fr conftest*
11582
11583
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11586 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11587     fi
11588
11589     CPPFLAGS="$save_CPPFLAGS"
11590     LDFLAGS="$save_LDFLAGS"
11591     LIBS="$save_LIBS"
11592     ;;
11593   esac
11594
11595   case $lt_cv_dlopen_self in
11596   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11597   *) enable_dlopen_self=unknown ;;
11598   esac
11599
11600   case $lt_cv_dlopen_self_static in
11601   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11602   *) enable_dlopen_self_static=unknown ;;
11603   esac
11604 fi
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622 striplib=
11623 old_striplib=
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11625 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11626 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11627   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11628   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11629   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11630 $as_echo "yes" >&6; }
11631 else
11632 # FIXME - insert some real tests, host_os isn't really good enough
11633   case $host_os in
11634   darwin*)
11635     if test -n "$STRIP" ; then
11636       striplib="$STRIP -x"
11637       old_striplib="$STRIP -S"
11638       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11639 $as_echo "yes" >&6; }
11640     else
11641       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11643     fi
11644     ;;
11645   *)
11646     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11647 $as_echo "no" >&6; }
11648     ;;
11649   esac
11650 fi
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663   # Report which library types will actually be built
11664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11665 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11667 $as_echo "$can_build_shared" >&6; }
11668
11669   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11670 $as_echo_n "checking whether to build shared libraries... " >&6; }
11671   test "$can_build_shared" = "no" && enable_shared=no
11672
11673   # On AIX, shared libraries and static libraries use the same namespace, and
11674   # are all built from PIC.
11675   case $host_os in
11676   aix3*)
11677     test "$enable_shared" = yes && enable_static=no
11678     if test -n "$RANLIB"; then
11679       archive_cmds="$archive_cmds~\$RANLIB \$lib"
11680       postinstall_cmds='$RANLIB $lib'
11681     fi
11682     ;;
11683
11684   aix[4-9]*)
11685     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11686       test "$enable_shared" = yes && enable_static=no
11687     fi
11688     ;;
11689   esac
11690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11691 $as_echo "$enable_shared" >&6; }
11692
11693   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11694 $as_echo_n "checking whether to build static libraries... " >&6; }
11695   # Make sure either enable_shared or enable_static is yes.
11696   test "$enable_shared" = yes || enable_static=yes
11697   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11698 $as_echo "$enable_static" >&6; }
11699
11700
11701
11702
11703 fi
11704 ac_ext=c
11705 ac_cpp='$CPP $CPPFLAGS'
11706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11709
11710 CC="$lt_save_CC"
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724         ac_config_commands="$ac_config_commands libtool"
11725
11726
11727
11728
11729 # Only expand once:
11730
11731
11732 if test "x$CC" != xcc; then
11733   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
11734 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
11735 else
11736   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
11737 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
11738 fi
11739 set dummy $CC; ac_cc=`$as_echo "$2" |
11740                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11741 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
11742   $as_echo_n "(cached) " >&6
11743 else
11744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746
11747 int
11748 main ()
11749 {
11750
11751   ;
11752   return 0;
11753 }
11754 _ACEOF
11755 # Make sure it works both with $CC and with simple cc.
11756 # We do the test twice because some compilers refuse to overwrite an
11757 # existing .o file with -o, though they will create one.
11758 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11759 rm -f conftest2.*
11760 if { { case "(($ac_try" in
11761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11762   *) ac_try_echo=$ac_try;;
11763 esac
11764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11765 $as_echo "$ac_try_echo"; } >&5
11766   (eval "$ac_try") 2>&5
11767   ac_status=$?
11768   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11769   test $ac_status = 0; } &&
11770    test -f conftest2.$ac_objext && { { case "(($ac_try" in
11771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772   *) ac_try_echo=$ac_try;;
11773 esac
11774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11775 $as_echo "$ac_try_echo"; } >&5
11776   (eval "$ac_try") 2>&5
11777   ac_status=$?
11778   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11779   test $ac_status = 0; };
11780 then
11781   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
11782   if test "x$CC" != xcc; then
11783     # Test first that cc exists at all.
11784     if { ac_try='cc -c conftest.$ac_ext >&5'
11785   { { case "(($ac_try" in
11786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787   *) ac_try_echo=$ac_try;;
11788 esac
11789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11790 $as_echo "$ac_try_echo"; } >&5
11791   (eval "$ac_try") 2>&5
11792   ac_status=$?
11793   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11794   test $ac_status = 0; }; }; then
11795       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
11796       rm -f conftest2.*
11797       if { { case "(($ac_try" in
11798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799   *) ac_try_echo=$ac_try;;
11800 esac
11801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11802 $as_echo "$ac_try_echo"; } >&5
11803   (eval "$ac_try") 2>&5
11804   ac_status=$?
11805   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11806   test $ac_status = 0; } &&
11807          test -f conftest2.$ac_objext && { { case "(($ac_try" in
11808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809   *) ac_try_echo=$ac_try;;
11810 esac
11811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11812 $as_echo "$ac_try_echo"; } >&5
11813   (eval "$ac_try") 2>&5
11814   ac_status=$?
11815   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11816   test $ac_status = 0; };
11817       then
11818         # cc works too.
11819         :
11820       else
11821         # cc exists but doesn't like -o.
11822         eval ac_cv_prog_cc_${ac_cc}_c_o=no
11823       fi
11824     fi
11825   fi
11826 else
11827   eval ac_cv_prog_cc_${ac_cc}_c_o=no
11828 fi
11829 rm -f core conftest*
11830
11831 fi
11832 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
11833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11834 $as_echo "yes" >&6; }
11835 else
11836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11837 $as_echo "no" >&6; }
11838
11839 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
11840
11841 fi
11842
11843 # FIXME: we rely on the cache variable name because
11844 # there is no other way.
11845 set dummy $CC
11846 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
11847 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
11848 if test "$am_t" != yes; then
11849    # Losing compiler, so override with the script.
11850    # FIXME: It is wrong to rewrite CC.
11851    # But if we don't then we get into trouble of one sort or another.
11852    # A longer-term fix would be to have automake use am__CC in this case,
11853    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
11854    CC="$am_aux_dir/compile $CC"
11855 fi
11856
11857
11858
11859     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports --as-needed" >&5
11860 $as_echo_n "checking whether ld supports --as-needed... " >&6; }
11861 if test "${pam_cv_ld_as_needed+set}" = set; then :
11862   $as_echo_n "(cached) " >&6
11863 else
11864        cat > conftest.c <<EOF
11865 int main (void) { return 0; }
11866 EOF
11867      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
11868                                  -o conftest.o conftest.c
11869                                  -Wl,--as-needed 1>&5'
11870   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11874   test $ac_status = 0; }; }
11875   then
11876     pam_cv_ld_as_needed=yes
11877     LDFLAGS="$LDFLAGS -Wl,--as-needed"
11878   else
11879     pam_cv_ld_as_needed=no
11880   fi
11881   rm -f conftest*
11882 fi
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_as_needed" >&5
11884 $as_echo "$pam_cv_ld_as_needed" >&6; }
11885
11886
11887
11888
11889     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports --no-undefined" >&5
11890 $as_echo_n "checking whether ld supports --no-undefined... " >&6; }
11891 if test "${pam_cv_ld_no_undefined+set}" = set; then :
11892   $as_echo_n "(cached) " >&6
11893 else
11894        cat > conftest.c <<EOF
11895 int main (void) { return 0; }
11896 EOF
11897      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
11898                                  -o conftest.o conftest.c
11899                                  -Wl,--no-undefined 1>&5'
11900   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11901   (eval $ac_try) 2>&5
11902   ac_status=$?
11903   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11904   test $ac_status = 0; }; }
11905   then
11906     pam_cv_ld_no_undefined=yes
11907     LDFLAGS="$LDFLAGS -Wl,--no-undefined"
11908   else
11909     pam_cv_ld_no_undefined=no
11910   fi
11911   rm -f conftest*
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_no_undefined" >&5
11914 $as_echo "$pam_cv_ld_no_undefined" >&6; }
11915
11916
11917
11918
11919     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld supports -O1" >&5
11920 $as_echo_n "checking whether ld supports -O1... " >&6; }
11921 if test "${pam_cv_ld_O1+set}" = set; then :
11922   $as_echo_n "(cached) " >&6
11923 else
11924        cat > conftest.c <<EOF
11925 int main (void) { return 0; }
11926 EOF
11927      if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
11928                                  -o conftest.o conftest.c
11929                                  -Wl,-O1 1>&5'
11930   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11931   (eval $ac_try) 2>&5
11932   ac_status=$?
11933   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11934   test $ac_status = 0; }; }
11935   then
11936     pam_cv_ld_O1=yes
11937     LDFLAGS="$LDFLAGS -Wl,-O1"
11938   else
11939     pam_cv_ld_O1=no
11940   fi
11941   rm -f conftest*
11942 fi
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_cv_ld_O1" >&5
11944 $as_echo "$pam_cv_ld_O1" >&6; }
11945
11946
11947
11948
11949 # Check whether --enable-largefile was given.
11950 if test "${enable_largefile+set}" = set; then :
11951   enableval=$enable_largefile;
11952 fi
11953
11954 if test "$enable_largefile" != no; then
11955
11956   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
11957 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
11958 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
11959   $as_echo_n "(cached) " >&6
11960 else
11961   ac_cv_sys_largefile_CC=no
11962      if test "$GCC" != yes; then
11963        ac_save_CC=$CC
11964        while :; do
11965          # IRIX 6.2 and later do not support large files by default,
11966          # so use the C compiler's -n32 option if that helps.
11967          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h.  */
11969 #include <sys/types.h>
11970  /* Check that off_t can represent 2**63 - 1 correctly.
11971     We can't simply define LARGE_OFF_T to be 9223372036854775807,
11972     since some C++ compilers masquerading as C compilers
11973     incorrectly reject 9223372036854775807.  */
11974 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
11975   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
11976                        && LARGE_OFF_T % 2147483647 == 1)
11977                       ? 1 : -1];
11978 int
11979 main ()
11980 {
11981
11982   ;
11983   return 0;
11984 }
11985 _ACEOF
11986          if ac_fn_c_try_compile "$LINENO"; then :
11987   break
11988 fi
11989 rm -f core conftest.err conftest.$ac_objext
11990          CC="$CC -n32"
11991          if ac_fn_c_try_compile "$LINENO"; then :
11992   ac_cv_sys_largefile_CC=' -n32'; break
11993 fi
11994 rm -f core conftest.err conftest.$ac_objext
11995          break
11996        done
11997        CC=$ac_save_CC
11998        rm -f conftest.$ac_ext
11999     fi
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12002 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
12003   if test "$ac_cv_sys_largefile_CC" != no; then
12004     CC=$CC$ac_cv_sys_largefile_CC
12005   fi
12006
12007   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12008 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12009 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
12010   $as_echo_n "(cached) " >&6
12011 else
12012   while :; do
12013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h.  */
12015 #include <sys/types.h>
12016  /* Check that off_t can represent 2**63 - 1 correctly.
12017     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12018     since some C++ compilers masquerading as C compilers
12019     incorrectly reject 9223372036854775807.  */
12020 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12021   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12022                        && LARGE_OFF_T % 2147483647 == 1)
12023                       ? 1 : -1];
12024 int
12025 main ()
12026 {
12027
12028   ;
12029   return 0;
12030 }
12031 _ACEOF
12032 if ac_fn_c_try_compile "$LINENO"; then :
12033   ac_cv_sys_file_offset_bits=no; break
12034 fi
12035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h.  */
12038 #define _FILE_OFFSET_BITS 64
12039 #include <sys/types.h>
12040  /* Check that off_t can represent 2**63 - 1 correctly.
12041     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12042     since some C++ compilers masquerading as C compilers
12043     incorrectly reject 9223372036854775807.  */
12044 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12045   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12046                        && LARGE_OFF_T % 2147483647 == 1)
12047                       ? 1 : -1];
12048 int
12049 main ()
12050 {
12051
12052   ;
12053   return 0;
12054 }
12055 _ACEOF
12056 if ac_fn_c_try_compile "$LINENO"; then :
12057   ac_cv_sys_file_offset_bits=64; break
12058 fi
12059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12060   ac_cv_sys_file_offset_bits=unknown
12061   break
12062 done
12063 fi
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12065 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
12066 case $ac_cv_sys_file_offset_bits in #(
12067   no | unknown) ;;
12068   *)
12069 cat >>confdefs.h <<_ACEOF
12070 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
12071 _ACEOF
12072 ;;
12073 esac
12074 rm -rf conftest*
12075   if test $ac_cv_sys_file_offset_bits = unknown; then
12076     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12077 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
12078 if test "${ac_cv_sys_large_files+set}" = set; then :
12079   $as_echo_n "(cached) " >&6
12080 else
12081   while :; do
12082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12083 /* end confdefs.h.  */
12084 #include <sys/types.h>
12085  /* Check that off_t can represent 2**63 - 1 correctly.
12086     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12087     since some C++ compilers masquerading as C compilers
12088     incorrectly reject 9223372036854775807.  */
12089 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12090   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12091                        && LARGE_OFF_T % 2147483647 == 1)
12092                       ? 1 : -1];
12093 int
12094 main ()
12095 {
12096
12097   ;
12098   return 0;
12099 }
12100 _ACEOF
12101 if ac_fn_c_try_compile "$LINENO"; then :
12102   ac_cv_sys_large_files=no; break
12103 fi
12104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12105   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h.  */
12107 #define _LARGE_FILES 1
12108 #include <sys/types.h>
12109  /* Check that off_t can represent 2**63 - 1 correctly.
12110     We can't simply define LARGE_OFF_T to be 9223372036854775807,
12111     since some C++ compilers masquerading as C compilers
12112     incorrectly reject 9223372036854775807.  */
12113 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
12114   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12115                        && LARGE_OFF_T % 2147483647 == 1)
12116                       ? 1 : -1];
12117 int
12118 main ()
12119 {
12120
12121   ;
12122   return 0;
12123 }
12124 _ACEOF
12125 if ac_fn_c_try_compile "$LINENO"; then :
12126   ac_cv_sys_large_files=1; break
12127 fi
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129   ac_cv_sys_large_files=unknown
12130   break
12131 done
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12134 $as_echo "$ac_cv_sys_large_files" >&6; }
12135 case $ac_cv_sys_large_files in #(
12136   no | unknown) ;;
12137   *)
12138 cat >>confdefs.h <<_ACEOF
12139 #define _LARGE_FILES $ac_cv_sys_large_files
12140 _ACEOF
12141 ;;
12142 esac
12143 rm -rf conftest*
12144   fi
12145 fi
12146
12147
12148 if eval "test x$GCC = xyes -a $CC != icc"; then
12149   for flag in \
12150       -W \
12151       -Wall \
12152       -Wbad-function-cast \
12153       -Wcast-align \
12154       -Wcast-qual \
12155       -Wmissing-declarations \
12156       -Wmissing-prototypes \
12157       -Wpointer-arith \
12158       -Wreturn-type \
12159       -Wstrict-prototypes \
12160       -Wwrite-strings \
12161       -Winline \
12162       -Wshadow
12163   do
12164     case "$CFLAGS" in
12165 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
12166   :
12167   ;;
12168 *)
12169    CFLAGS="$CFLAGS $flag"
12170   ;;
12171 esac
12172
12173   done
12174 fi
12175 if eval "test x$CC = xicc"; then
12176   for flag in \
12177       -Wall \
12178       -Wmissing-prototypes \
12179       -Wpointer-arith \
12180       -Wreturn-type \
12181       -Wstrict-prototypes \
12182       -Wwrite-strings \
12183       -Wshadow \
12184       -Wp64 \
12185       -Wdeprecated \
12186       -Wuninitialized \
12187       -Wmain
12188   do
12189     case "$CFLAGS" in
12190 "$flag" | "$flag "* | *" $flag" | *" $flag "* )
12191   :
12192   ;;
12193 *)
12194    CFLAGS="$CFLAGS $flag"
12195   ;;
12196 esac
12197
12198   done
12199 fi
12200
12201 if test "x${CC_FOR_BUILD+set}" != "xset" ; then
12202   if test "x$cross_compiling" = "xyes" ; then
12203     for ac_prog in gcc cc
12204 do
12205   # Extract the first word of "$ac_prog", so it can be a program name with args.
12206 set dummy $ac_prog; ac_word=$2
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12208 $as_echo_n "checking for $ac_word... " >&6; }
12209 if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then :
12210   $as_echo_n "(cached) " >&6
12211 else
12212   if test -n "$CC_FOR_BUILD"; then
12213   ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
12214 else
12215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12216 for as_dir in $PATH
12217 do
12218   IFS=$as_save_IFS
12219   test -z "$as_dir" && as_dir=.
12220     for ac_exec_ext in '' $ac_executable_extensions; do
12221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12222     ac_cv_prog_CC_FOR_BUILD="$ac_prog"
12223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12224     break 2
12225   fi
12226 done
12227   done
12228 IFS=$as_save_IFS
12229
12230 fi
12231 fi
12232 CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
12233 if test -n "$CC_FOR_BUILD"; then
12234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12235 $as_echo "$CC_FOR_BUILD" >&6; }
12236 else
12237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12239 fi
12240
12241
12242   test -n "$CC_FOR_BUILD" && break
12243 done
12244
12245   else
12246     CC_FOR_BUILD=${CC}
12247   fi
12248 fi
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC_FOR_BUILD" >&5
12250 $as_echo_n "checking for CC_FOR_BUILD... " >&6; }
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
12252 $as_echo "$CC_FOR_BUILD" >&6; }
12253
12254
12255 if test "x${BUILD_CFLAGS+set}" != "xset" ; then
12256   if test "x$cross_compiling" = "xyes" ; then
12257     BUILD_CFLAGS=
12258   else
12259     BUILD_CFLAGS=${CFLAGS}
12260   fi
12261 fi
12262
12263
12264 if test "x${BUILD_LDFLAGS+set}" != "xset" ; then
12265   if test "x$cross_compiling" = "xyes" ; then
12266     BUILD_LDFLAGS=
12267   else
12268     BUILD_LDFLAGS=${LDFLAGS}
12269   fi
12270 fi
12271
12272
12273
12274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
12275 $as_echo_n "checking for __attribute__... " >&6; }
12276 if test "${ac_cv___attribute__+set}" = set; then :
12277   $as_echo_n "(cached) " >&6
12278 else
12279
12280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12281 /* end confdefs.h.  */
12282
12283 #include <stdlib.h>
12284 static void foo (void) __attribute__ ((unused));
12285
12286 static void
12287 foo (void)
12288 {
12289   exit(1);
12290 }
12291
12292 int
12293 main ()
12294 {
12295
12296   exit (0);
12297
12298   ;
12299   return 0;
12300 }
12301 _ACEOF
12302 if ac_fn_c_try_compile "$LINENO"; then :
12303   ac_cv___attribute__=yes
12304 else
12305   ac_cv___attribute__=no
12306 fi
12307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12308 fi
12309
12310 if test "$ac_cv___attribute__" = "yes"; then
12311
12312 $as_echo "#define UNUSED __attribute__ ((unused))" >>confdefs.h
12313
12314 else
12315   $as_echo "#define UNUSED /**/" >>confdefs.h
12316
12317 fi
12318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv___attribute__" >&5
12319 $as_echo "$ac_cv___attribute__" >&6; }
12320
12321
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for .symver assembler directive" >&5
12323 $as_echo_n "checking for .symver assembler directive... " >&6; }
12324 if test "${libc_cv_asm_symver_directive+set}" = set; then :
12325   $as_echo_n "(cached) " >&6
12326 else
12327   cat > conftest.s <<EOF
12328 ${libc_cv_dot_text}
12329 _sym:
12330 .symver _sym,sym@VERS
12331 EOF
12332 if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5; then
12333   libc_cv_asm_symver_directive=yes
12334 else
12335   libc_cv_asm_symver_directive=no
12336 fi
12337 rm -f conftest*
12338 fi
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_asm_symver_directive" >&5
12340 $as_echo "$libc_cv_asm_symver_directive" >&6; }
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld --version-script" >&5
12342 $as_echo_n "checking for ld --version-script... " >&6; }
12343 if test "${libc_cv_ld_version_script_option+set}" = set; then :
12344   $as_echo_n "(cached) " >&6
12345 else
12346   if test $libc_cv_asm_symver_directive = yes; then
12347   cat > conftest.s <<EOF
12348 ${libc_cv_dot_text}
12349 _sym:
12350 .symver _sym,sym@VERS
12351 EOF
12352   cat > conftest.map <<EOF
12353 VERS_1 {
12354         global: sym;
12355 };
12356
12357 VERS_2 {
12358         global: sym;
12359 } VERS_1;
12360 EOF
12361   if ${CC-cc} -c $ASFLAGS conftest.s 1>&5 2>&5;
12362 then
12363     if { ac_try='${CC-cc} $CFLAGS $LDFLAGS -shared
12364                                 -o conftest.so conftest.o
12365                                 -nostartfiles -nostdlib
12366                                 -Wl,--version-script,conftest.map
12367                        1>&5'
12368   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12369   (eval $ac_try) 2>&5
12370   ac_status=$?
12371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12372   test $ac_status = 0; }; };
12373     then
12374       libc_cv_ld_version_script_option=yes
12375     else
12376       libc_cv_ld_version_script_option=no
12377     fi
12378   else
12379     libc_cv_ld_version_script_option=no
12380   fi
12381 else
12382   libc_cv_ld_version_script_option=no
12383 fi
12384 rm -f conftest*
12385 fi
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_ld_version_script_option" >&5
12387 $as_echo "$libc_cv_ld_version_script_option" >&6; }
12388  if test "$libc_cv_ld_version_script_option" = "yes"; then
12389   HAVE_VERSIONING_TRUE=
12390   HAVE_VERSIONING_FALSE='#'
12391 else
12392   HAVE_VERSIONING_TRUE='#'
12393   HAVE_VERSIONING_FALSE=
12394 fi
12395
12396
12397 # Check whether --enable-pie was given.
12398 if test "${enable_pie+set}" = set; then :
12399   enableval=$enable_pie; USE_PIE=$enableval
12400 else
12401   USE_PIE=yes
12402 fi
12403
12404
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fpie" >&5
12406 $as_echo_n "checking for -fpie... " >&6; }
12407 if test "${libc_cv_fpie+set}" = set; then :
12408   $as_echo_n "(cached) " >&6
12409 else
12410     cat > conftest.c <<EOF
12411 int foo;
12412 main () { return 0;}
12413 EOF
12414   if test "$USE_PIE" = "yes" -a "$CC" != "icc" &&
12415         { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -pie -fpie
12416                               -o conftest conftest.c 1>&5'
12417   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12418   (eval $ac_try) 2>&5
12419   ac_status=$?
12420   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12421   test $ac_status = 0; }; }
12422   then
12423     libc_cv_fpie=yes
12424     PIE_CFLAGS="-fpie"
12425     PIE_LDFLAGS="-pie"
12426   else
12427     libc_cv_fpie=no
12428     PIE_CFLAGS=""
12429     PIE_LDFLAGS=""
12430   fi
12431   rm -f conftest*
12432 fi
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_fpie" >&5
12434 $as_echo "$libc_cv_fpie" >&6; }
12435
12436
12437
12438
12439
12440
12441 # Check whether --enable-prelude was given.
12442 if test "${enable_prelude+set}" = set; then :
12443   enableval=$enable_prelude; WITH_PRELUDE=$enableval
12444 else
12445   WITH_PRELUDE=yes
12446 fi
12447
12448 if test "$WITH_PRELUDE" == "yes" ; then
12449
12450 # Check whether --with-libprelude-prefix was given.
12451 if test "${with_libprelude_prefix+set}" = set; then :
12452   withval=$with_libprelude_prefix; libprelude_config_prefix="$withval"
12453 else
12454   libprelude_config_prefix=""
12455 fi
12456
12457
12458   if test x$libprelude_config_prefix != x ; then
12459      if test x${LIBPRELUDE_CONFIG+set} != xset ; then
12460         LIBPRELUDE_CONFIG=$libprelude_config_prefix/bin/libprelude-config
12461      fi
12462   fi
12463
12464   # Extract the first word of "libprelude-config", so it can be a program name with args.
12465 set dummy libprelude-config; ac_word=$2
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12467 $as_echo_n "checking for $ac_word... " >&6; }
12468 if test "${ac_cv_path_LIBPRELUDE_CONFIG+set}" = set; then :
12469   $as_echo_n "(cached) " >&6
12470 else
12471   case $LIBPRELUDE_CONFIG in
12472   [\\/]* | ?:[\\/]*)
12473   ac_cv_path_LIBPRELUDE_CONFIG="$LIBPRELUDE_CONFIG" # Let the user override the test with a path.
12474   ;;
12475   *)
12476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12477 for as_dir in $PATH
12478 do
12479   IFS=$as_save_IFS
12480   test -z "$as_dir" && as_dir=.
12481     for ac_exec_ext in '' $ac_executable_extensions; do
12482   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12483     ac_cv_path_LIBPRELUDE_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12485     break 2
12486   fi
12487 done
12488   done
12489 IFS=$as_save_IFS
12490
12491   test -z "$ac_cv_path_LIBPRELUDE_CONFIG" && ac_cv_path_LIBPRELUDE_CONFIG="no"
12492   ;;
12493 esac
12494 fi
12495 LIBPRELUDE_CONFIG=$ac_cv_path_LIBPRELUDE_CONFIG
12496 if test -n "$LIBPRELUDE_CONFIG"; then
12497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBPRELUDE_CONFIG" >&5
12498 $as_echo "$LIBPRELUDE_CONFIG" >&6; }
12499 else
12500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501 $as_echo "no" >&6; }
12502 fi
12503
12504
12505   min_libprelude_version=0.9.0
12506   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libprelude - version >= $min_libprelude_version" >&5
12507 $as_echo_n "checking for libprelude - version >= $min_libprelude_version... " >&6; }
12508   no_libprelude=""
12509   if test "$LIBPRELUDE_CONFIG" = "no" ; then
12510     no_libprelude=yes
12511   else
12512     LIBPRELUDE_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --cflags`
12513     LIBPRELUDE_PTHREAD_CFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --pthread-cflags`
12514     LIBPRELUDE_LDFLAGS=`$LIBPRELUDE_CONFIG $libprelude_config_args --ldflags`
12515     LIBPRELUDE_LIBS=`$LIBPRELUDE_CONFIG $libprelude_config_args --libs`
12516     LIBPRELUDE_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --prefix`
12517     LIBPRELUDE_CONFIG_PREFIX=`$LIBPRELUDE_CONFIG $libprelude_config_args --config-prefix`
12518     libprelude_config_version=`$LIBPRELUDE_CONFIG $libprelude_config_args --version`
12519
12520
12521       ac_save_CFLAGS="$CFLAGS"
12522       ac_save_LDFLAGS="$LDFLAGS"
12523       ac_save_LIBS="$LIBS"
12524       CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
12525       LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
12526       LIBS="$LIBS $LIBPRELUDE_LIBS"
12527       rm -f conf.libpreludetest
12528       if test "$cross_compiling" = yes; then :
12529   echo $ac_n "cross compiling; assumed OK... $ac_c"
12530 else
12531   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12532 /* end confdefs.h.  */
12533
12534 #include <stdio.h>
12535 #include <stdlib.h>
12536 #include <string.h>
12537 #include <libprelude/prelude.h>
12538
12539 int
12540 main ()
12541 {
12542     system ("touch conf.libpreludetest");
12543
12544     if( strcmp( prelude_check_version(NULL), "$libprelude_config_version" ) )
12545     {
12546       printf("\n*** 'libprelude-config --version' returned %s, but LIBPRELUDE (%s)\n",
12547              "$libprelude_config_version", prelude_check_version(NULL) );
12548       printf("*** was found! If libprelude-config was correct, then it is best\n");
12549       printf("*** to remove the old version of LIBPRELUDE. You may also be able to fix the error\n");
12550       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
12551       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
12552       printf("*** required on your system.\n");
12553       printf("*** If libprelude-config was wrong, set the environment variable LIBPRELUDE_CONFIG\n");
12554       printf("*** to point to the correct copy of libprelude-config, and remove the file config.cache\n");
12555       printf("*** before re-running configure\n");
12556     }
12557     else if ( strcmp(prelude_check_version(NULL), LIBPRELUDE_VERSION ) )
12558     {
12559       printf("\n*** LIBPRELUDE header file (version %s) does not match\n", LIBPRELUDE_VERSION);
12560       printf("*** library (version %s)\n", prelude_check_version(NULL) );
12561     }
12562     else
12563     {
12564       if ( prelude_check_version( "$min_libprelude_version" ) )
12565       {
12566         return 0;
12567       }
12568      else
12569       {
12570         printf("no\n*** An old version of LIBPRELUDE (%s) was found.\n",
12571                 prelude_check_version(NULL) );
12572         printf("*** You need a version of LIBPRELUDE newer than %s. The latest version of\n",
12573                "$min_libprelude_version" );
12574         printf("*** LIBPRELUDE is always available from http://www.prelude-ids.org/download/releases.\n");
12575         printf("*** \n");
12576         printf("*** If you have already installed a sufficiently new version, this error\n");
12577         printf("*** probably means that the wrong copy of the libprelude-config shell script is\n");
12578         printf("*** being found. The easiest way to fix this is to remove the old version\n");
12579         printf("*** of LIBPRELUDE, but you can also set the LIBPRELUDE_CONFIG environment to point to the\n");
12580         printf("*** correct copy of libprelude-config. (In this case, you will have to\n");
12581         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
12582         printf("*** so that the correct libraries are found at run-time))\n");
12583       }
12584     }
12585   return 1;
12586 }
12587
12588 _ACEOF
12589 if ac_fn_c_try_run "$LINENO"; then :
12590
12591 else
12592   no_libprelude=yes
12593 fi
12594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12595   conftest.$ac_objext conftest.beam conftest.$ac_ext
12596 fi
12597
12598        CFLAGS="$ac_save_CFLAGS"
12599        LIBS="$ac_save_LIBS"
12600        LDFLAGS="$ac_save_LDFLAGS"
12601   fi
12602
12603   if test "x$no_libprelude" = x ; then
12604      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12605 $as_echo "yes" >&6; }
12606      :
12607   else
12608      if test -f conf.libpreludetest ; then
12609         :
12610      else
12611         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12612 $as_echo "no" >&6; }
12613      fi
12614      if test "$LIBPRELUDE_CONFIG" = "no" ; then
12615        echo "*** The libprelude-config script installed by LIBPRELUDE could not be found"
12616        echo "*** If LIBPRELUDE was installed in PREFIX, make sure PREFIX/bin is in"
12617        echo "*** your path, or set the LIBPRELUDE_CONFIG environment variable to the"
12618        echo "*** full path to libprelude-config."
12619      else
12620        if test -f conf.libpreludetest ; then
12621         :
12622        else
12623           echo "*** Could not run libprelude test program, checking why..."
12624           CFLAGS="$CFLAGS $LIBPRELUDE_CFLAGS"
12625           LDFLAGS="$LDFLAGS $LIBPRELUDE_LDFLAGS"
12626           LIBS="$LIBS $LIBPRELUDE_LIBS"
12627           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12628 /* end confdefs.h.  */
12629
12630 #include <stdio.h>
12631 #include <stdlib.h>
12632 #include <string.h>
12633 #include <libprelude/prelude.h>
12634
12635 int
12636 main ()
12637 {
12638  return !!prelude_check_version(NULL);
12639   ;
12640   return 0;
12641 }
12642 _ACEOF
12643 if ac_fn_c_try_link "$LINENO"; then :
12644    echo "*** The test program compiled, but did not run. This usually means"
12645           echo "*** that the run-time linker is not finding LIBPRELUDE or finding the wrong"
12646           echo "*** version of LIBPRELUDE. If it is not finding LIBPRELUDE, you'll need to set your"
12647           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
12648           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
12649           echo "*** is required on your system"
12650           echo "***"
12651           echo "*** If you have an old version installed, it is best to remove it, although"
12652           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
12653           echo "***"
12654 else
12655    echo "*** The test program failed to compile or link. See the file config.log for the"
12656           echo "*** exact error that occured. This usually means LIBPRELUDE was incorrectly installed"
12657           echo "*** or that you have moved LIBPRELUDE since it was installed. In the latter case, you"
12658           echo "*** may want to edit the libprelude-config script: $LIBPRELUDE_CONFIG"
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext \
12661     conftest$ac_exeext conftest.$ac_ext
12662           CFLAGS="$ac_save_CFLAGS"
12663           LDFLAGS="$ac_save_LDFLAGS"
12664           LIBS="$ac_save_LIBS"
12665        fi
12666      fi
12667      LIBPRELUDE_CFLAGS=""
12668      LIBPRELUDE_LDFLAGS=""
12669      LIBPRELUDE_LIBS=""
12670      :
12671   fi
12672   rm -f conf.libpreludetest
12673
12674
12675
12676
12677
12678
12679
12680   if test "$LIBPRELUDE_CONFIG" != "no" ; then
12681     LIBPRELUDE_CFLAGS="$LIBPRELUDE_CFLAGS -DPRELUDE=1"
12682   fi
12683 fi
12684
12685 # Check whether --enable-debug was given.
12686 if test "${enable_debug+set}" = set; then :
12687   enableval=$enable_debug;
12688 fi
12689
12690
12691 if test x"$enable_debug" = x"yes" ; then
12692
12693 $as_echo "#define PAM_DEBUG /**/" >>confdefs.h
12694
12695 fi
12696
12697 # Check whether --enable-securedir was given.
12698 if test "${enable_securedir+set}" = set; then :
12699   enableval=$enable_securedir; SECUREDIR=$enableval
12700 else
12701   SECUREDIR=$libdir/security
12702 fi
12703
12704
12705
12706 # Check whether --enable-isadir was given.
12707 if test "${enable_isadir+set}" = set; then :
12708   enableval=$enable_isadir; ISA=$enableval
12709 else
12710   ISA=../../`basename $libdir`/security
12711 fi
12712
12713 unset mylibdirbase
12714
12715 cat >>confdefs.h <<_ACEOF
12716 #define _PAM_ISA "$ISA"
12717 _ACEOF
12718
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Defining \$ISA to \"$ISA\"" >&5
12720 $as_echo "Defining \$ISA to \"$ISA\"" >&6; }
12721
12722 # Check whether --enable-sconfigdir was given.
12723 if test "${enable_sconfigdir+set}" = set; then :
12724   enableval=$enable_sconfigdir; SCONFIGDIR=$enableval
12725 else
12726   SCONFIGDIR=$sysconfdir/security
12727 fi
12728
12729
12730
12731 # Check whether --enable-pamlocking was given.
12732 if test "${enable_pamlocking+set}" = set; then :
12733   enableval=$enable_pamlocking;
12734 fi
12735
12736
12737 if test x"$enable_pamlocking" = "xyes"; then
12738
12739 $as_echo "#define PAM_LOCKING /**/" >>confdefs.h
12740
12741 fi
12742
12743 # Check whether --enable-read-both-confs was given.
12744 if test "${enable_read_both_confs+set}" = set; then :
12745   enableval=$enable_read_both_confs;
12746 fi
12747
12748
12749 if test x"$enable_read_both_confs" = "xyes"; then
12750
12751 $as_echo "#define PAM_READ_BOTH_CONFS /**/" >>confdefs.h
12752
12753 fi
12754
12755 # Check whether --enable-lckpwdf was given.
12756 if test "${enable_lckpwdf+set}" = set; then :
12757   enableval=$enable_lckpwdf; WITH_LCKPWDF=$enableval
12758 else
12759   WITH_LCKPWDF=yes
12760 fi
12761
12762 if test "$WITH_LCKPWDF" == "yes" ; then
12763
12764 $as_echo "#define USE_LCKPWDF 1" >>confdefs.h
12765
12766 fi
12767
12768 for ac_header in paths.h
12769 do :
12770   ac_fn_c_check_header_mongrel "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
12771 if test "x$ac_cv_header_paths_h" = x""yes; then :
12772   cat >>confdefs.h <<_ACEOF
12773 #define HAVE_PATHS_H 1
12774 _ACEOF
12775
12776 fi
12777
12778 done
12779
12780
12781 # Check whether --with-mailspool was given.
12782 if test "${with_mailspool+set}" = set; then :
12783   withval=$with_mailspool; with_mailspool=${withval}
12784 fi
12785
12786 if test x$with_mailspool != x ; then
12787         pam_mail_spool="\"$with_mailspool\""
12788 else
12789         if test "$cross_compiling" = yes; then :
12790   pam_mail_spool="\"/var/spool/mail\""
12791 else
12792   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h.  */
12794
12795 #include <paths.h>
12796 int main() {
12797 #ifdef _PATH_MAILDIR
12798 exit(0);
12799 #else
12800 exit(1);
12801 #endif
12802 }
12803 _ACEOF
12804 if ac_fn_c_try_run "$LINENO"; then :
12805   pam_mail_spool="_PATH_MAILDIR"
12806 else
12807   pam_mail_spool="\"/var/spool/mail\""
12808 fi
12809 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12810   conftest.$ac_objext conftest.beam conftest.$ac_ext
12811 fi
12812
12813 fi
12814
12815 cat >>confdefs.h <<_ACEOF
12816 #define PAM_PATH_MAILDIR $pam_mail_spool
12817 _ACEOF
12818
12819
12820
12821 # Check whether --with-xauth was given.
12822 if test "${with_xauth+set}" = set; then :
12823   withval=$with_xauth; pam_xauth_path=${withval}
12824 fi
12825
12826 if test x$with_xauth == x ; then
12827         # Extract the first word of "xauth", so it can be a program name with args.
12828 set dummy xauth; ac_word=$2
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12830 $as_echo_n "checking for $ac_word... " >&6; }
12831 if test "${ac_cv_path_pam_xauth_path+set}" = set; then :
12832   $as_echo_n "(cached) " >&6
12833 else
12834   case $pam_xauth_path in
12835   [\\/]* | ?:[\\/]*)
12836   ac_cv_path_pam_xauth_path="$pam_xauth_path" # Let the user override the test with a path.
12837   ;;
12838   *)
12839   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12841 do
12842   IFS=$as_save_IFS
12843   test -z "$as_dir" && as_dir=.
12844     for ac_exec_ext in '' $ac_executable_extensions; do
12845   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12846     ac_cv_path_pam_xauth_path="$as_dir/$ac_word$ac_exec_ext"
12847     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12848     break 2
12849   fi
12850 done
12851   done
12852 IFS=$as_save_IFS
12853
12854   ;;
12855 esac
12856 fi
12857 pam_xauth_path=$ac_cv_path_pam_xauth_path
12858 if test -n "$pam_xauth_path"; then
12859   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pam_xauth_path" >&5
12860 $as_echo "$pam_xauth_path" >&6; }
12861 else
12862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12863 $as_echo "no" >&6; }
12864 fi
12865
12866
12867         if test x$pam_xauth_path == x/usr/X11R6/bin/xauth ; then
12868                 unset pam_xauth_path
12869         fi
12870 fi
12871
12872 if test x$pam_xauth_path != x ; then
12873
12874 cat >>confdefs.h <<_ACEOF
12875 #define PAM_PATH_XAUTH "$pam_xauth_path"
12876 _ACEOF
12877
12878 fi
12879
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12881 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12882 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12883   $as_echo_n "(cached) " >&6
12884 else
12885   ac_check_lib_save_LIBS=$LIBS
12886 LIBS="-ldl  $LIBS"
12887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889
12890 /* Override any GCC internal prototype to avoid an error.
12891    Use char because int might match the return type of a GCC
12892    builtin and then its argument prototype would still apply.  */
12893 #ifdef __cplusplus
12894 extern "C"
12895 #endif
12896 char dlopen ();
12897 int
12898 main ()
12899 {
12900 return dlopen ();
12901   ;
12902   return 0;
12903 }
12904 _ACEOF
12905 if ac_fn_c_try_link "$LINENO"; then :
12906   ac_cv_lib_dl_dlopen=yes
12907 else
12908   ac_cv_lib_dl_dlopen=no
12909 fi
12910 rm -f core conftest.err conftest.$ac_objext \
12911     conftest$ac_exeext conftest.$ac_ext
12912 LIBS=$ac_check_lib_save_LIBS
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12915 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12916 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12917   LIBDL="-ldl"
12918 else
12919   LIBDL=""
12920 fi
12921
12922
12923
12924 # Check for cracklib
12925 # Check whether --enable-cracklib was given.
12926 if test "${enable_cracklib+set}" = set; then :
12927   enableval=$enable_cracklib; WITH_CRACKLIB=$enableval
12928 else
12929   WITH_CRACKLIB=yes
12930 fi
12931
12932 if test x"$WITH_CRACKLIB" != xno ; then
12933         for ac_header in crack.h
12934 do :
12935   ac_fn_c_check_header_mongrel "$LINENO" "crack.h" "ac_cv_header_crack_h" "$ac_includes_default"
12936 if test "x$ac_cv_header_crack_h" = x""yes; then :
12937   cat >>confdefs.h <<_ACEOF
12938 #define HAVE_CRACK_H 1
12939 _ACEOF
12940  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FascistCheck in -lcrack" >&5
12941 $as_echo_n "checking for FascistCheck in -lcrack... " >&6; }
12942 if test "${ac_cv_lib_crack_FascistCheck+set}" = set; then :
12943   $as_echo_n "(cached) " >&6
12944 else
12945   ac_check_lib_save_LIBS=$LIBS
12946 LIBS="-lcrack  $LIBS"
12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12948 /* end confdefs.h.  */
12949
12950 /* Override any GCC internal prototype to avoid an error.
12951    Use char because int might match the return type of a GCC
12952    builtin and then its argument prototype would still apply.  */
12953 #ifdef __cplusplus
12954 extern "C"
12955 #endif
12956 char FascistCheck ();
12957 int
12958 main ()
12959 {
12960 return FascistCheck ();
12961   ;
12962   return 0;
12963 }
12964 _ACEOF
12965 if ac_fn_c_try_link "$LINENO"; then :
12966   ac_cv_lib_crack_FascistCheck=yes
12967 else
12968   ac_cv_lib_crack_FascistCheck=no
12969 fi
12970 rm -f core conftest.err conftest.$ac_objext \
12971     conftest$ac_exeext conftest.$ac_ext
12972 LIBS=$ac_check_lib_save_LIBS
12973 fi
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crack_FascistCheck" >&5
12975 $as_echo "$ac_cv_lib_crack_FascistCheck" >&6; }
12976 if test "x$ac_cv_lib_crack_FascistCheck" = x""yes; then :
12977   LIBCRACK="-lcrack"
12978 else
12979   LIBCRACK=""
12980 fi
12981
12982 fi
12983
12984 done
12985
12986 else
12987         LIBCRACK=""
12988 fi
12989 if test -n "$LIBCRACK"; then
12990
12991 $as_echo "#define HAVE_LIBCRACK 1" >>confdefs.h
12992
12993 fi
12994
12995  if test -n "$LIBCRACK"; then
12996   HAVE_LIBCRACK_TRUE=
12997   HAVE_LIBCRACK_FALSE='#'
12998 else
12999   HAVE_LIBCRACK_TRUE='#'
13000   HAVE_LIBCRACK_FALSE=
13001 fi
13002
13003
13004 # Check whether --enable-audit was given.
13005 if test "${enable_audit+set}" = set; then :
13006   enableval=$enable_audit; WITH_LIBAUDIT=$enableval
13007 else
13008   WITH_LIBAUDIT=yes
13009 fi
13010
13011 if test x"$WITH_LIBAUDIT" != xno ; then
13012         ac_fn_c_check_header_mongrel "$LINENO" "libaudit.h" "ac_cv_header_libaudit_h" "$ac_includes_default"
13013 if test "x$ac_cv_header_libaudit_h" = x""yes; then :
13014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for audit_log_acct_message in -laudit" >&5
13015 $as_echo_n "checking for audit_log_acct_message in -laudit... " >&6; }
13016 if test "${ac_cv_lib_audit_audit_log_acct_message+set}" = set; then :
13017   $as_echo_n "(cached) " >&6
13018 else
13019   ac_check_lib_save_LIBS=$LIBS
13020 LIBS="-laudit  $LIBS"
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13022 /* end confdefs.h.  */
13023
13024 /* Override any GCC internal prototype to avoid an error.
13025    Use char because int might match the return type of a GCC
13026    builtin and then its argument prototype would still apply.  */
13027 #ifdef __cplusplus
13028 extern "C"
13029 #endif
13030 char audit_log_acct_message ();
13031 int
13032 main ()
13033 {
13034 return audit_log_acct_message ();
13035   ;
13036   return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040   ac_cv_lib_audit_audit_log_acct_message=yes
13041 else
13042   ac_cv_lib_audit_audit_log_acct_message=no
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext \
13045     conftest$ac_exeext conftest.$ac_ext
13046 LIBS=$ac_check_lib_save_LIBS
13047 fi
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audit_audit_log_acct_message" >&5
13049 $as_echo "$ac_cv_lib_audit_audit_log_acct_message" >&6; }
13050 if test "x$ac_cv_lib_audit_audit_log_acct_message" = x""yes; then :
13051   LIBAUDIT=-laudit
13052 else
13053   LIBAUDIT=""
13054 fi
13055
13056                ac_fn_c_check_type "$LINENO" "struct audit_tty_status" "ac_cv_type_struct_audit_tty_status" "#include <libaudit.h>
13057 "
13058 if test "x$ac_cv_type_struct_audit_tty_status" = x""yes; then :
13059   HAVE_AUDIT_TTY_STATUS=yes
13060 else
13061   HAVE_AUDIT_TTY_STATUS=""
13062 fi
13063
13064
13065 fi
13066
13067
13068         if test ! -z "$LIBAUDIT" -a "$ac_cv_header_libaudit_h" != "no" ; then
13069
13070 $as_echo "#define HAVE_LIBAUDIT 1" >>confdefs.h
13071
13072         fi
13073         if test ! -z "$HAVE_AUDIT_TTY_STATUS" ; then
13074
13075 $as_echo "#define HAVE_AUDIT_TTY_STATUS 1" >>confdefs.h
13076
13077         fi
13078 else
13079         LIBAUDIT=""
13080 fi
13081
13082  if test "x$HAVE_AUDIT_TTY_STATUS" = xyes; then
13083   HAVE_AUDIT_TTY_STATUS_TRUE=
13084   HAVE_AUDIT_TTY_STATUS_FALSE='#'
13085 else
13086   HAVE_AUDIT_TTY_STATUS_TRUE='#'
13087   HAVE_AUDIT_TTY_STATUS_FALSE=
13088 fi
13089
13090
13091 for ac_header in xcrypt.h crypt.h
13092 do :
13093   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13094 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13095 eval as_val=\$$as_ac_Header
13096    if test "x$as_val" = x""yes; then :
13097   cat >>confdefs.h <<_ACEOF
13098 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13099 _ACEOF
13100
13101 fi
13102
13103 done
13104
13105 if test "x$ac_cv_header_xcrypt_h" = "xyes"; then :
13106   crypt_libs="xcrypt crypt"
13107 else
13108   crypt_libs="crypt"
13109 fi
13110
13111 BACKUP_LIBS=$LIBS
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13113 $as_echo_n "checking for library containing crypt... " >&6; }
13114 if test "${ac_cv_search_crypt+set}" = set; then :
13115   $as_echo_n "(cached) " >&6
13116 else
13117   ac_func_search_save_LIBS=$LIBS
13118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13119 /* end confdefs.h.  */
13120
13121 /* Override any GCC internal prototype to avoid an error.
13122    Use char because int might match the return type of a GCC
13123    builtin and then its argument prototype would still apply.  */
13124 #ifdef __cplusplus
13125 extern "C"
13126 #endif
13127 char crypt ();
13128 int
13129 main ()
13130 {
13131 return crypt ();
13132   ;
13133   return 0;
13134 }
13135 _ACEOF
13136 for ac_lib in '' $crypt_libs; do
13137   if test -z "$ac_lib"; then
13138     ac_res="none required"
13139   else
13140     ac_res=-l$ac_lib
13141     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13142   fi
13143   if ac_fn_c_try_link "$LINENO"; then :
13144   ac_cv_search_crypt=$ac_res
13145 fi
13146 rm -f core conftest.err conftest.$ac_objext \
13147     conftest$ac_exeext
13148   if test "${ac_cv_search_crypt+set}" = set; then :
13149   break
13150 fi
13151 done
13152 if test "${ac_cv_search_crypt+set}" = set; then :
13153
13154 else
13155   ac_cv_search_crypt=no
13156 fi
13157 rm conftest.$ac_ext
13158 LIBS=$ac_func_search_save_LIBS
13159 fi
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13161 $as_echo "$ac_cv_search_crypt" >&6; }
13162 ac_res=$ac_cv_search_crypt
13163 if test "$ac_res" != no; then :
13164   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13165   LIBCRYPT="-l$ac_lib"
13166 else
13167   LIBCRYPT=""
13168 fi
13169
13170 for ac_func in crypt_r crypt_gensalt_r
13171 do :
13172   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13173 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13174 eval as_val=\$$as_ac_var
13175    if test "x$as_val" = x""yes; then :
13176   cat >>confdefs.h <<_ACEOF
13177 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13178 _ACEOF
13179
13180 fi
13181 done
13182
13183 LIBS=$BACKUP_LIBS
13184
13185 if test "$LIBCRYPT" = "-lxcrypt" -a "$ac_cv_header_xcrypt_h" = "yes" ; then
13186
13187 $as_echo "#define HAVE_LIBXCRYPT 1" >>confdefs.h
13188
13189 fi
13190
13191
13192 # Check whether --with-randomdev was given.
13193 if test "${with_randomdev+set}" = set; then :
13194   withval=$with_randomdev; opt_randomdev=$withval
13195 fi
13196
13197 if test "$opt_randomdev" = yes -o -z "$opt_randomdev"; then
13198        opt_randomdev="/dev/urandom"
13199 elif test "$opt_randomdev" = no; then
13200        opt_randomdev=
13201 fi
13202 if test -n "$opt_randomdev"; then
13203
13204 cat >>confdefs.h <<_ACEOF
13205 #define PAM_PATH_RANDOMDEV "$opt_randomdev"
13206 _ACEOF
13207
13208 fi
13209
13210 # Check whether --enable-db was given.
13211 if test "${enable_db+set}" = set; then :
13212   enableval=$enable_db; WITH_DB=$enableval
13213 else
13214   WITH_DB=yes
13215 fi
13216
13217
13218 # Check whether --with-db-uniquename was given.
13219 if test "${with_db_uniquename+set}" = set; then :
13220   withval=$with_db_uniquename;
13221 fi
13222
13223 if test x"$WITH_DB" != xno ; then
13224         if test x"$WITH_DB" = xyes -o x"$WITH_DB" = xdb ; then
13225               old_libs=$LIBS
13226               LIBS="$LIBS -ldb$with_db_uniquename"
13227               for ac_func in db_create$with_db_uniquename db_create dbm_store$with_db_uniquename dbm_store
13228 do :
13229   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13231 eval as_val=\$$as_ac_var
13232    if test "x$as_val" = x""yes; then :
13233   cat >>confdefs.h <<_ACEOF
13234 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13235 _ACEOF
13236  LIBDB="-ldb$with_db_uniquename"; break
13237 fi
13238 done
13239
13240               LIBS=$old_libs
13241         fi
13242         if test -z "$LIBDB" ; then
13243             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbm_store in -lndbm" >&5
13244 $as_echo_n "checking for dbm_store in -lndbm... " >&6; }
13245 if test "${ac_cv_lib_ndbm_dbm_store+set}" = set; then :
13246   $as_echo_n "(cached) " >&6
13247 else
13248   ac_check_lib_save_LIBS=$LIBS
13249 LIBS="-lndbm  $LIBS"
13250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13251 /* end confdefs.h.  */
13252
13253 /* Override any GCC internal prototype to avoid an error.
13254    Use char because int might match the return type of a GCC
13255    builtin and then its argument prototype would still apply.  */
13256 #ifdef __cplusplus
13257 extern "C"
13258 #endif
13259 char dbm_store ();
13260 int
13261 main ()
13262 {
13263 return dbm_store ();
13264   ;
13265   return 0;
13266 }
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269   ac_cv_lib_ndbm_dbm_store=yes
13270 else
13271   ac_cv_lib_ndbm_dbm_store=no
13272 fi
13273 rm -f core conftest.err conftest.$ac_objext \
13274     conftest$ac_exeext conftest.$ac_ext
13275 LIBS=$ac_check_lib_save_LIBS
13276 fi
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ndbm_dbm_store" >&5
13278 $as_echo "$ac_cv_lib_ndbm_dbm_store" >&6; }
13279 if test "x$ac_cv_lib_ndbm_dbm_store" = x""yes; then :
13280   LIBDB="-lndbm"
13281 else
13282   LIBDB=""
13283 fi
13284
13285             if test ! -z "$LIBDB" ; then
13286                 for ac_header in ndbm.h
13287 do :
13288   ac_fn_c_check_header_mongrel "$LINENO" "ndbm.h" "ac_cv_header_ndbm_h" "$ac_includes_default"
13289 if test "x$ac_cv_header_ndbm_h" = x""yes; then :
13290   cat >>confdefs.h <<_ACEOF
13291 #define HAVE_NDBM_H 1
13292 _ACEOF
13293
13294 fi
13295
13296 done
13297
13298             fi
13299         else
13300             for ac_header in db.h
13301 do :
13302   ac_fn_c_check_header_mongrel "$LINENO" "db.h" "ac_cv_header_db_h" "$ac_includes_default"
13303 if test "x$ac_cv_header_db_h" = x""yes; then :
13304   cat >>confdefs.h <<_ACEOF
13305 #define HAVE_DB_H 1
13306 _ACEOF
13307
13308 fi
13309
13310 done
13311
13312         fi
13313 fi
13314
13315  if test ! -z "$LIBDB"; then
13316   HAVE_LIBDB_TRUE=
13317   HAVE_LIBDB_FALSE='#'
13318 else
13319   HAVE_LIBDB_TRUE='#'
13320   HAVE_LIBDB_FALSE=
13321 fi
13322
13323
13324 # Check whether --enable-nis was given.
13325 if test "${enable_nis+set}" = set; then :
13326   enableval=$enable_nis;
13327 fi
13328
13329
13330
13331
13332 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13333         if test -n "$ac_tool_prefix"; then
13334   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13335 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13337 $as_echo_n "checking for $ac_word... " >&6; }
13338 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13339   $as_echo_n "(cached) " >&6
13340 else
13341   case $PKG_CONFIG in
13342   [\\/]* | ?:[\\/]*)
13343   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13344   ;;
13345   *)
13346   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347 for as_dir in $PATH
13348 do
13349   IFS=$as_save_IFS
13350   test -z "$as_dir" && as_dir=.
13351     for ac_exec_ext in '' $ac_executable_extensions; do
13352   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13353     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13354     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355     break 2
13356   fi
13357 done
13358   done
13359 IFS=$as_save_IFS
13360
13361   ;;
13362 esac
13363 fi
13364 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13365 if test -n "$PKG_CONFIG"; then
13366   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13367 $as_echo "$PKG_CONFIG" >&6; }
13368 else
13369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372
13373
13374 fi
13375 if test -z "$ac_cv_path_PKG_CONFIG"; then
13376   ac_pt_PKG_CONFIG=$PKG_CONFIG
13377   # Extract the first word of "pkg-config", so it can be a program name with args.
13378 set dummy pkg-config; ac_word=$2
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13380 $as_echo_n "checking for $ac_word... " >&6; }
13381 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
13382   $as_echo_n "(cached) " >&6
13383 else
13384   case $ac_pt_PKG_CONFIG in
13385   [\\/]* | ?:[\\/]*)
13386   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13387   ;;
13388   *)
13389   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13390 for as_dir in $PATH
13391 do
13392   IFS=$as_save_IFS
13393   test -z "$as_dir" && as_dir=.
13394     for ac_exec_ext in '' $ac_executable_extensions; do
13395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13396     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13398     break 2
13399   fi
13400 done
13401   done
13402 IFS=$as_save_IFS
13403
13404   ;;
13405 esac
13406 fi
13407 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13408 if test -n "$ac_pt_PKG_CONFIG"; then
13409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13410 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
13411 else
13412   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13413 $as_echo "no" >&6; }
13414 fi
13415
13416   if test "x$ac_pt_PKG_CONFIG" = x; then
13417     PKG_CONFIG=""
13418   else
13419     case $cross_compiling:$ac_tool_warned in
13420 yes:)
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13423 ac_tool_warned=yes ;;
13424 esac
13425     PKG_CONFIG=$ac_pt_PKG_CONFIG
13426   fi
13427 else
13428   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13429 fi
13430
13431 fi
13432 if test -n "$PKG_CONFIG"; then
13433         _pkg_min_version=0.9.0
13434         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13435 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13436         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13437                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13438 $as_echo "yes" >&6; }
13439         else
13440                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13441 $as_echo "no" >&6; }
13442                 PKG_CONFIG=""
13443         fi
13444
13445 fi
13446 if test "x$enable_nis" != "xno"; then :
13447
13448   CFLAGS=$old_CFLAGS
13449   LIBS=$old_LIBS
13450
13451
13452 pkg_failed=no
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libtirpc" >&5
13454 $as_echo_n "checking for libtirpc... " >&6; }
13455
13456 if test -n "$libtirpc_CFLAGS"; then
13457     pkg_cv_libtirpc_CFLAGS="$libtirpc_CFLAGS"
13458  elif test -n "$PKG_CONFIG"; then
13459     if test -n "$PKG_CONFIG" && \
13460     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
13461   ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
13462   ac_status=$?
13463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13464   test $ac_status = 0; }; then
13465   pkg_cv_libtirpc_CFLAGS=`$PKG_CONFIG --cflags "libtirpc" 2>/dev/null`
13466 else
13467   pkg_failed=yes
13468 fi
13469  else
13470     pkg_failed=untried
13471 fi
13472 if test -n "$libtirpc_LIBS"; then
13473     pkg_cv_libtirpc_LIBS="$libtirpc_LIBS"
13474  elif test -n "$PKG_CONFIG"; then
13475     if test -n "$PKG_CONFIG" && \
13476     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libtirpc\""; } >&5
13477   ($PKG_CONFIG --exists --print-errors "libtirpc") 2>&5
13478   ac_status=$?
13479   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13480   test $ac_status = 0; }; then
13481   pkg_cv_libtirpc_LIBS=`$PKG_CONFIG --libs "libtirpc" 2>/dev/null`
13482 else
13483   pkg_failed=yes
13484 fi
13485  else
13486     pkg_failed=untried
13487 fi
13488
13489
13490
13491 if test $pkg_failed = yes; then
13492
13493 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13494         _pkg_short_errors_supported=yes
13495 else
13496         _pkg_short_errors_supported=no
13497 fi
13498         if test $_pkg_short_errors_supported = yes; then
13499                 libtirpc_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libtirpc" 2>&1`
13500         else
13501                 libtirpc_PKG_ERRORS=`$PKG_CONFIG --print-errors "libtirpc" 2>&1`
13502         fi
13503         # Put the nasty error message in config.log where it belongs
13504         echo "$libtirpc_PKG_ERRORS" >&5
13505
13506         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13507 $as_echo "no" >&6; }
13508                 :;
13509 elif test $pkg_failed = untried; then
13510         :;
13511 else
13512         libtirpc_CFLAGS=$pkg_cv_libtirpc_CFLAGS
13513         libtirpc_LIBS=$pkg_cv_libtirpc_LIBS
13514         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13515 $as_echo "yes" >&6; }
13516
13517     CFLAGS="$CFLAGS $libtirpc_CFLAGS"
13518     LIBS="$LIBS $libtirpc_LIBS"
13519
13520 fi
13521
13522   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing yp_get_default_domain" >&5
13523 $as_echo_n "checking for library containing yp_get_default_domain... " >&6; }
13524 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then :
13525   $as_echo_n "(cached) " >&6
13526 else
13527   ac_func_search_save_LIBS=$LIBS
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h.  */
13530
13531 /* Override any GCC internal prototype to avoid an error.
13532    Use char because int might match the return type of a GCC
13533    builtin and then its argument prototype would still apply.  */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char yp_get_default_domain ();
13538 int
13539 main ()
13540 {
13541 return yp_get_default_domain ();
13542   ;
13543   return 0;
13544 }
13545 _ACEOF
13546 for ac_lib in '' nsl; do
13547   if test -z "$ac_lib"; then
13548     ac_res="none required"
13549   else
13550     ac_res=-l$ac_lib
13551     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13552   fi
13553   if ac_fn_c_try_link "$LINENO"; then :
13554   ac_cv_search_yp_get_default_domain=$ac_res
13555 fi
13556 rm -f core conftest.err conftest.$ac_objext \
13557     conftest$ac_exeext
13558   if test "${ac_cv_search_yp_get_default_domain+set}" = set; then :
13559   break
13560 fi
13561 done
13562 if test "${ac_cv_search_yp_get_default_domain+set}" = set; then :
13563
13564 else
13565   ac_cv_search_yp_get_default_domain=no
13566 fi
13567 rm conftest.$ac_ext
13568 LIBS=$ac_func_search_save_LIBS
13569 fi
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_yp_get_default_domain" >&5
13571 $as_echo "$ac_cv_search_yp_get_default_domain" >&6; }
13572 ac_res=$ac_cv_search_yp_get_default_domain
13573 if test "$ac_res" != no; then :
13574   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13575
13576 fi
13577
13578
13579   for ac_func in yp_get_default_domain yperr_string yp_master yp_bind yp_match yp_unbind
13580 do :
13581   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13582 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13583 eval as_val=\$$as_ac_var
13584    if test "x$as_val" = x""yes; then :
13585   cat >>confdefs.h <<_ACEOF
13586 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13587 _ACEOF
13588
13589 fi
13590 done
13591
13592   for ac_header in rpc/rpc.h rpcsvc/ypclnt.h rpcsvc/yp_prot.h
13593 do :
13594   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13595 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13596 eval as_val=\$$as_ac_Header
13597    if test "x$as_val" = x""yes; then :
13598   cat >>confdefs.h <<_ACEOF
13599 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13600 _ACEOF
13601
13602 fi
13603
13604 done
13605
13606   ac_fn_c_check_decl "$LINENO" "getrpcport" "ac_cv_have_decl_getrpcport" "
13607     #if HAVE_RPC_RPC_H
13608     # include <rpc/rpc.h>
13609     #endif
13610
13611 "
13612 if test "x$ac_cv_have_decl_getrpcport" = x""yes; then :
13613   ac_have_decl=1
13614 else
13615   ac_have_decl=0
13616 fi
13617
13618 cat >>confdefs.h <<_ACEOF
13619 #define HAVE_DECL_GETRPCPORT $ac_have_decl
13620 _ACEOF
13621
13622
13623   NIS_CFLAGS="${CFLAGS%${old_CFLAGS}}"
13624   NIS_LIBS="${LIBS%${old_LIBS}}"
13625
13626   CFLAGS="$old_CFLAGS"
13627   LIBS="$old_LIBS"
13628
13629 fi
13630
13631
13632
13633
13634 # Check whether --enable-selinux was given.
13635 if test "${enable_selinux+set}" = set; then :
13636   enableval=$enable_selinux; WITH_SELINUX=$enableval
13637 else
13638   WITH_SELINUX=yes
13639 fi
13640
13641 if test "$WITH_SELINUX" == "yes" ; then
13642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfilecon in -lselinux" >&5
13643 $as_echo_n "checking for getfilecon in -lselinux... " >&6; }
13644 if test "${ac_cv_lib_selinux_getfilecon+set}" = set; then :
13645   $as_echo_n "(cached) " >&6
13646 else
13647   ac_check_lib_save_LIBS=$LIBS
13648 LIBS="-lselinux  $LIBS"
13649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13650 /* end confdefs.h.  */
13651
13652 /* Override any GCC internal prototype to avoid an error.
13653    Use char because int might match the return type of a GCC
13654    builtin and then its argument prototype would still apply.  */
13655 #ifdef __cplusplus
13656 extern "C"
13657 #endif
13658 char getfilecon ();
13659 int
13660 main ()
13661 {
13662 return getfilecon ();
13663   ;
13664   return 0;
13665 }
13666 _ACEOF
13667 if ac_fn_c_try_link "$LINENO"; then :
13668   ac_cv_lib_selinux_getfilecon=yes
13669 else
13670   ac_cv_lib_selinux_getfilecon=no
13671 fi
13672 rm -f core conftest.err conftest.$ac_objext \
13673     conftest$ac_exeext conftest.$ac_ext
13674 LIBS=$ac_check_lib_save_LIBS
13675 fi
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_getfilecon" >&5
13677 $as_echo "$ac_cv_lib_selinux_getfilecon" >&6; }
13678 if test "x$ac_cv_lib_selinux_getfilecon" = x""yes; then :
13679   LIBSELINUX="-lselinux"
13680 else
13681   LIBSELINUX=""
13682 fi
13683
13684 else
13685   LIBSELINUX=""
13686 fi
13687
13688  if test ! -z "$LIBSELINUX"; then
13689   HAVE_LIBSELINUX_TRUE=
13690   HAVE_LIBSELINUX_FALSE='#'
13691 else
13692   HAVE_LIBSELINUX_TRUE='#'
13693   HAVE_LIBSELINUX_FALSE=
13694 fi
13695
13696 if test ! -z "$LIBSELINUX" ; then
13697
13698 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
13699
13700     BACKUP_LIBS=$LIBS
13701     LIBS="$LIBS $LIBSELINUX"
13702     for ac_func in setkeycreatecon
13703 do :
13704   ac_fn_c_check_func "$LINENO" "setkeycreatecon" "ac_cv_func_setkeycreatecon"
13705 if test "x$ac_cv_func_setkeycreatecon" = x""yes; then :
13706   cat >>confdefs.h <<_ACEOF
13707 #define HAVE_SETKEYCREATECON 1
13708 _ACEOF
13709
13710 fi
13711 done
13712
13713     for ac_func in getseuser
13714 do :
13715   ac_fn_c_check_func "$LINENO" "getseuser" "ac_cv_func_getseuser"
13716 if test "x$ac_cv_func_getseuser" = x""yes; then :
13717   cat >>confdefs.h <<_ACEOF
13718 #define HAVE_GETSEUSER 1
13719 _ACEOF
13720
13721 fi
13722 done
13723
13724     LIBS=$BACKUP_LIBS
13725 fi
13726
13727 ac_header_dirent=no
13728 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13729   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13731 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
13733   $as_echo_n "(cached) " >&6
13734 else
13735   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h.  */
13737 #include <sys/types.h>
13738 #include <$ac_hdr>
13739
13740 int
13741 main ()
13742 {
13743 if ((DIR *) 0)
13744 return 0;
13745   ;
13746   return 0;
13747 }
13748 _ACEOF
13749 if ac_fn_c_try_compile "$LINENO"; then :
13750   eval "$as_ac_Header=yes"
13751 else
13752   eval "$as_ac_Header=no"
13753 fi
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 fi
13756 eval ac_res=\$$as_ac_Header
13757                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13758 $as_echo "$ac_res" >&6; }
13759 eval as_val=\$$as_ac_Header
13760    if test "x$as_val" = x""yes; then :
13761   cat >>confdefs.h <<_ACEOF
13762 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13763 _ACEOF
13764
13765 ac_header_dirent=$ac_hdr; break
13766 fi
13767
13768 done
13769 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13770 if test $ac_header_dirent = dirent.h; then
13771   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13772 $as_echo_n "checking for library containing opendir... " >&6; }
13773 if test "${ac_cv_search_opendir+set}" = set; then :
13774   $as_echo_n "(cached) " >&6
13775 else
13776   ac_func_search_save_LIBS=$LIBS
13777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13778 /* end confdefs.h.  */
13779
13780 /* Override any GCC internal prototype to avoid an error.
13781    Use char because int might match the return type of a GCC
13782    builtin and then its argument prototype would still apply.  */
13783 #ifdef __cplusplus
13784 extern "C"
13785 #endif
13786 char opendir ();
13787 int
13788 main ()
13789 {
13790 return opendir ();
13791   ;
13792   return 0;
13793 }
13794 _ACEOF
13795 for ac_lib in '' dir; do
13796   if test -z "$ac_lib"; then
13797     ac_res="none required"
13798   else
13799     ac_res=-l$ac_lib
13800     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13801   fi
13802   if ac_fn_c_try_link "$LINENO"; then :
13803   ac_cv_search_opendir=$ac_res
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext \
13806     conftest$ac_exeext
13807   if test "${ac_cv_search_opendir+set}" = set; then :
13808   break
13809 fi
13810 done
13811 if test "${ac_cv_search_opendir+set}" = set; then :
13812
13813 else
13814   ac_cv_search_opendir=no
13815 fi
13816 rm conftest.$ac_ext
13817 LIBS=$ac_func_search_save_LIBS
13818 fi
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13820 $as_echo "$ac_cv_search_opendir" >&6; }
13821 ac_res=$ac_cv_search_opendir
13822 if test "$ac_res" != no; then :
13823   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13824
13825 fi
13826
13827 else
13828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13829 $as_echo_n "checking for library containing opendir... " >&6; }
13830 if test "${ac_cv_search_opendir+set}" = set; then :
13831   $as_echo_n "(cached) " >&6
13832 else
13833   ac_func_search_save_LIBS=$LIBS
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h.  */
13836
13837 /* Override any GCC internal prototype to avoid an error.
13838    Use char because int might match the return type of a GCC
13839    builtin and then its argument prototype would still apply.  */
13840 #ifdef __cplusplus
13841 extern "C"
13842 #endif
13843 char opendir ();
13844 int
13845 main ()
13846 {
13847 return opendir ();
13848   ;
13849   return 0;
13850 }
13851 _ACEOF
13852 for ac_lib in '' x; do
13853   if test -z "$ac_lib"; then
13854     ac_res="none required"
13855   else
13856     ac_res=-l$ac_lib
13857     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13858   fi
13859   if ac_fn_c_try_link "$LINENO"; then :
13860   ac_cv_search_opendir=$ac_res
13861 fi
13862 rm -f core conftest.err conftest.$ac_objext \
13863     conftest$ac_exeext
13864   if test "${ac_cv_search_opendir+set}" = set; then :
13865   break
13866 fi
13867 done
13868 if test "${ac_cv_search_opendir+set}" = set; then :
13869
13870 else
13871   ac_cv_search_opendir=no
13872 fi
13873 rm conftest.$ac_ext
13874 LIBS=$ac_func_search_save_LIBS
13875 fi
13876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13877 $as_echo "$ac_cv_search_opendir" >&6; }
13878 ac_res=$ac_cv_search_opendir
13879 if test "$ac_res" != no; then :
13880   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13881
13882 fi
13883
13884 fi
13885
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13887 $as_echo_n "checking for ANSI C header files... " >&6; }
13888 if test "${ac_cv_header_stdc+set}" = set; then :
13889   $as_echo_n "(cached) " >&6
13890 else
13891   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13892 /* end confdefs.h.  */
13893 #include <stdlib.h>
13894 #include <stdarg.h>
13895 #include <string.h>
13896 #include <float.h>
13897
13898 int
13899 main ()
13900 {
13901
13902   ;
13903   return 0;
13904 }
13905 _ACEOF
13906 if ac_fn_c_try_compile "$LINENO"; then :
13907   ac_cv_header_stdc=yes
13908 else
13909   ac_cv_header_stdc=no
13910 fi
13911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13912
13913 if test $ac_cv_header_stdc = yes; then
13914   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h.  */
13917 #include <string.h>
13918
13919 _ACEOF
13920 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13921   $EGREP "memchr" >/dev/null 2>&1; then :
13922
13923 else
13924   ac_cv_header_stdc=no
13925 fi
13926 rm -f conftest*
13927
13928 fi
13929
13930 if test $ac_cv_header_stdc = yes; then
13931   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13932   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13933 /* end confdefs.h.  */
13934 #include <stdlib.h>
13935
13936 _ACEOF
13937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13938   $EGREP "free" >/dev/null 2>&1; then :
13939
13940 else
13941   ac_cv_header_stdc=no
13942 fi
13943 rm -f conftest*
13944
13945 fi
13946
13947 if test $ac_cv_header_stdc = yes; then
13948   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13949   if test "$cross_compiling" = yes; then :
13950   :
13951 else
13952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13953 /* end confdefs.h.  */
13954 #include <ctype.h>
13955 #include <stdlib.h>
13956 #if ((' ' & 0x0FF) == 0x020)
13957 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13958 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13959 #else
13960 # define ISLOWER(c) \
13961                    (('a' <= (c) && (c) <= 'i') \
13962                      || ('j' <= (c) && (c) <= 'r') \
13963                      || ('s' <= (c) && (c) <= 'z'))
13964 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13965 #endif
13966
13967 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13968 int
13969 main ()
13970 {
13971   int i;
13972   for (i = 0; i < 256; i++)
13973     if (XOR (islower (i), ISLOWER (i))
13974         || toupper (i) != TOUPPER (i))
13975       return 2;
13976   return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_run "$LINENO"; then :
13980
13981 else
13982   ac_cv_header_stdc=no
13983 fi
13984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13985   conftest.$ac_objext conftest.beam conftest.$ac_ext
13986 fi
13987
13988 fi
13989 fi
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13991 $as_echo "$ac_cv_header_stdc" >&6; }
13992 if test $ac_cv_header_stdc = yes; then
13993
13994 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13995
13996 fi
13997
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
13999 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
14000 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
14001   $as_echo_n "(cached) " >&6
14002 else
14003   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h.  */
14005 #include <sys/types.h>
14006 #include <sys/wait.h>
14007 #ifndef WEXITSTATUS
14008 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14009 #endif
14010 #ifndef WIFEXITED
14011 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14012 #endif
14013
14014 int
14015 main ()
14016 {
14017   int s;
14018   wait (&s);
14019   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14020   ;
14021   return 0;
14022 }
14023 _ACEOF
14024 if ac_fn_c_try_compile "$LINENO"; then :
14025   ac_cv_header_sys_wait_h=yes
14026 else
14027   ac_cv_header_sys_wait_h=no
14028 fi
14029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 fi
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
14032 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
14033 if test $ac_cv_header_sys_wait_h = yes; then
14034
14035 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
14036
14037 fi
14038
14039 for ac_header in fcntl.h limits.h malloc.h sys/file.h sys/ioctl.h sys/time.h syslog.h net/if.h termio.h unistd.h sys/fsuid.h inittypes.h
14040 do :
14041   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14042 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14043 eval as_val=\$$as_ac_Header
14044    if test "x$as_val" = x""yes; then :
14045   cat >>confdefs.h <<_ACEOF
14046 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14047 _ACEOF
14048
14049 fi
14050
14051 done
14052
14053
14054 for ac_header in lastlog.h utmp.h utmpx.h
14055 do :
14056   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14058 eval as_val=\$$as_ac_Header
14059    if test "x$as_val" = x""yes; then :
14060   cat >>confdefs.h <<_ACEOF
14061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14062 _ACEOF
14063
14064 fi
14065
14066 done
14067
14068
14069  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
14070 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
14071 if test "${ac_cv_c_bigendian+set}" = set; then :
14072   $as_echo_n "(cached) " >&6
14073 else
14074   ac_cv_c_bigendian=unknown
14075     # See if we're dealing with a universal compiler.
14076     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14077 /* end confdefs.h.  */
14078 #ifndef __APPLE_CC__
14079                not a universal capable compiler
14080              #endif
14081              typedef int dummy;
14082
14083 _ACEOF
14084 if ac_fn_c_try_compile "$LINENO"; then :
14085
14086         # Check for potential -arch flags.  It is not universal unless
14087         # there are at least two -arch flags with different values.
14088         ac_arch=
14089         ac_prev=
14090         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
14091          if test -n "$ac_prev"; then
14092            case $ac_word in
14093              i?86 | x86_64 | ppc | ppc64)
14094                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
14095                  ac_arch=$ac_word
14096                else
14097                  ac_cv_c_bigendian=universal
14098                  break
14099                fi
14100                ;;
14101            esac
14102            ac_prev=
14103          elif test "x$ac_word" = "x-arch"; then
14104            ac_prev=arch
14105          fi
14106        done
14107 fi
14108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14109     if test $ac_cv_c_bigendian = unknown; then
14110       # See if sys/param.h defines the BYTE_ORDER macro.
14111       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14112 /* end confdefs.h.  */
14113 #include <sys/types.h>
14114              #include <sys/param.h>
14115
14116 int
14117 main ()
14118 {
14119 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
14120                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
14121                      && LITTLE_ENDIAN)
14122               bogus endian macros
14123              #endif
14124
14125   ;
14126   return 0;
14127 }
14128 _ACEOF
14129 if ac_fn_c_try_compile "$LINENO"; then :
14130   # It does; now see whether it defined to BIG_ENDIAN or not.
14131          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14132 /* end confdefs.h.  */
14133 #include <sys/types.h>
14134                 #include <sys/param.h>
14135
14136 int
14137 main ()
14138 {
14139 #if BYTE_ORDER != BIG_ENDIAN
14140                  not big endian
14141                 #endif
14142
14143   ;
14144   return 0;
14145 }
14146 _ACEOF
14147 if ac_fn_c_try_compile "$LINENO"; then :
14148   ac_cv_c_bigendian=yes
14149 else
14150   ac_cv_c_bigendian=no
14151 fi
14152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14153 fi
14154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14155     fi
14156     if test $ac_cv_c_bigendian = unknown; then
14157       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
14158       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h.  */
14160 #include <limits.h>
14161
14162 int
14163 main ()
14164 {
14165 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
14166               bogus endian macros
14167              #endif
14168
14169   ;
14170   return 0;
14171 }
14172 _ACEOF
14173 if ac_fn_c_try_compile "$LINENO"; then :
14174   # It does; now see whether it defined to _BIG_ENDIAN or not.
14175          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14176 /* end confdefs.h.  */
14177 #include <limits.h>
14178
14179 int
14180 main ()
14181 {
14182 #ifndef _BIG_ENDIAN
14183                  not big endian
14184                 #endif
14185
14186   ;
14187   return 0;
14188 }
14189 _ACEOF
14190 if ac_fn_c_try_compile "$LINENO"; then :
14191   ac_cv_c_bigendian=yes
14192 else
14193   ac_cv_c_bigendian=no
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 fi
14197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14198     fi
14199     if test $ac_cv_c_bigendian = unknown; then
14200       # Compile a test program.
14201       if test "$cross_compiling" = yes; then :
14202   # Try to guess by grepping values from an object file.
14203          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h.  */
14205 short int ascii_mm[] =
14206                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14207                 short int ascii_ii[] =
14208                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14209                 int use_ascii (int i) {
14210                   return ascii_mm[i] + ascii_ii[i];
14211                 }
14212                 short int ebcdic_ii[] =
14213                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14214                 short int ebcdic_mm[] =
14215                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14216                 int use_ebcdic (int i) {
14217                   return ebcdic_mm[i] + ebcdic_ii[i];
14218                 }
14219                 extern int foo;
14220
14221 int
14222 main ()
14223 {
14224 return use_ascii (foo) == use_ebcdic (foo);
14225   ;
14226   return 0;
14227 }
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
14231               ac_cv_c_bigendian=yes
14232             fi
14233             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14234               if test "$ac_cv_c_bigendian" = unknown; then
14235                 ac_cv_c_bigendian=no
14236               else
14237                 # finding both strings is unlikely to happen, but who knows?
14238                 ac_cv_c_bigendian=unknown
14239               fi
14240             fi
14241 fi
14242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14243 else
14244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14245 /* end confdefs.h.  */
14246 $ac_includes_default
14247 int
14248 main ()
14249 {
14250
14251              /* Are we little or big endian?  From Harbison&Steele.  */
14252              union
14253              {
14254                long int l;
14255                char c[sizeof (long int)];
14256              } u;
14257              u.l = 1;
14258              return u.c[sizeof (long int) - 1] == 1;
14259
14260   ;
14261   return 0;
14262 }
14263 _ACEOF
14264 if ac_fn_c_try_run "$LINENO"; then :
14265   ac_cv_c_bigendian=no
14266 else
14267   ac_cv_c_bigendian=yes
14268 fi
14269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14270   conftest.$ac_objext conftest.beam conftest.$ac_ext
14271 fi
14272
14273     fi
14274 fi
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
14276 $as_echo "$ac_cv_c_bigendian" >&6; }
14277  case $ac_cv_c_bigendian in #(
14278    yes)
14279      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
14280 ;; #(
14281    no)
14282       ;; #(
14283    universal)
14284
14285 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
14286
14287      ;; #(
14288    *)
14289      as_fn_error "unknown endianness
14290  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
14291  esac
14292
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14294 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14295 if test "${ac_cv_c_const+set}" = set; then :
14296   $as_echo_n "(cached) " >&6
14297 else
14298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h.  */
14300
14301 int
14302 main ()
14303 {
14304 /* FIXME: Include the comments suggested by Paul. */
14305 #ifndef __cplusplus
14306   /* Ultrix mips cc rejects this.  */
14307   typedef int charset[2];
14308   const charset cs;
14309   /* SunOS 4.1.1 cc rejects this.  */
14310   char const *const *pcpcc;
14311   char **ppc;
14312   /* NEC SVR4.0.2 mips cc rejects this.  */
14313   struct point {int x, y;};
14314   static struct point const zero = {0,0};
14315   /* AIX XL C 1.02.0.0 rejects this.
14316      It does not let you subtract one const X* pointer from another in
14317      an arm of an if-expression whose if-part is not a constant
14318      expression */
14319   const char *g = "string";
14320   pcpcc = &g + (g ? g-g : 0);
14321   /* HPUX 7.0 cc rejects these. */
14322   ++pcpcc;
14323   ppc = (char**) pcpcc;
14324   pcpcc = (char const *const *) ppc;
14325   { /* SCO 3.2v4 cc rejects this.  */
14326     char *t;
14327     char const *s = 0 ? (char *) 0 : (char const *) 0;
14328
14329     *t++ = 0;
14330     if (s) return 0;
14331   }
14332   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14333     int x[] = {25, 17};
14334     const int *foo = &x[0];
14335     ++foo;
14336   }
14337   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14338     typedef const int *iptr;
14339     iptr p = 0;
14340     ++p;
14341   }
14342   { /* AIX XL C 1.02.0.0 rejects this saying
14343        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14344     struct s { int j; const int *ap[3]; };
14345     struct s *b; b->j = 5;
14346   }
14347   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14348     const int foo = 10;
14349     if (!foo) return 0;
14350   }
14351   return !cs[0] && !zero.x;
14352 #endif
14353
14354   ;
14355   return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_compile "$LINENO"; then :
14359   ac_cv_c_const=yes
14360 else
14361   ac_cv_c_const=no
14362 fi
14363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14364 fi
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14366 $as_echo "$ac_cv_c_const" >&6; }
14367 if test $ac_cv_c_const = no; then
14368
14369 $as_echo "#define const /**/" >>confdefs.h
14370
14371 fi
14372
14373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
14374 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
14375 if test "${ac_cv_type_uid_t+set}" = set; then :
14376   $as_echo_n "(cached) " >&6
14377 else
14378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14379 /* end confdefs.h.  */
14380 #include <sys/types.h>
14381
14382 _ACEOF
14383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14384   $EGREP "uid_t" >/dev/null 2>&1; then :
14385   ac_cv_type_uid_t=yes
14386 else
14387   ac_cv_type_uid_t=no
14388 fi
14389 rm -f conftest*
14390
14391 fi
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
14393 $as_echo "$ac_cv_type_uid_t" >&6; }
14394 if test $ac_cv_type_uid_t = no; then
14395
14396 $as_echo "#define uid_t int" >>confdefs.h
14397
14398
14399 $as_echo "#define gid_t int" >>confdefs.h
14400
14401 fi
14402
14403 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
14404 if test "x$ac_cv_type_off_t" = x""yes; then :
14405
14406 else
14407
14408 cat >>confdefs.h <<_ACEOF
14409 #define off_t long int
14410 _ACEOF
14411
14412 fi
14413
14414 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14415 if test "x$ac_cv_type_pid_t" = x""yes; then :
14416
14417 else
14418
14419 cat >>confdefs.h <<_ACEOF
14420 #define pid_t int
14421 _ACEOF
14422
14423 fi
14424
14425 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
14426 if test "x$ac_cv_type_size_t" = x""yes; then :
14427
14428 else
14429
14430 cat >>confdefs.h <<_ACEOF
14431 #define size_t unsigned int
14432 _ACEOF
14433
14434 fi
14435
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14437 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14438 if test "${ac_cv_header_time+set}" = set; then :
14439   $as_echo_n "(cached) " >&6
14440 else
14441   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14442 /* end confdefs.h.  */
14443 #include <sys/types.h>
14444 #include <sys/time.h>
14445 #include <time.h>
14446
14447 int
14448 main ()
14449 {
14450 if ((struct tm *) 0)
14451 return 0;
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 if ac_fn_c_try_compile "$LINENO"; then :
14457   ac_cv_header_time=yes
14458 else
14459   ac_cv_header_time=no
14460 fi
14461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14462 fi
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14464 $as_echo "$ac_cv_header_time" >&6; }
14465 if test $ac_cv_header_time = yes; then
14466
14467 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14468
14469 fi
14470
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
14472 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14473 if test "${ac_cv_struct_tm+set}" = set; then :
14474   $as_echo_n "(cached) " >&6
14475 else
14476   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h.  */
14478 #include <sys/types.h>
14479 #include <time.h>
14480
14481 int
14482 main ()
14483 {
14484 struct tm tm;
14485                                      int *p = &tm.tm_sec;
14486                                      return !p;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 if ac_fn_c_try_compile "$LINENO"; then :
14492   ac_cv_struct_tm=time.h
14493 else
14494   ac_cv_struct_tm=sys/time.h
14495 fi
14496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14497 fi
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
14499 $as_echo "$ac_cv_struct_tm" >&6; }
14500 if test $ac_cv_struct_tm = sys/time.h; then
14501
14502 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
14503
14504 fi
14505
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of array argument to getgroups" >&5
14508 $as_echo_n "checking type of array argument to getgroups... " >&6; }
14509 if test "${ac_cv_type_getgroups+set}" = set; then :
14510   $as_echo_n "(cached) " >&6
14511 else
14512   if test "$cross_compiling" = yes; then :
14513   ac_cv_type_getgroups=cross
14514 else
14515   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h.  */
14517 /* Thanks to Mike Rendell for this test.  */
14518 $ac_includes_default
14519 #define NGID 256
14520 #undef MAX
14521 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14522
14523 int
14524 main ()
14525 {
14526   gid_t gidset[NGID];
14527   int i, n;
14528   union { gid_t gval; long int lval; }  val;
14529
14530   val.lval = -1;
14531   for (i = 0; i < NGID; i++)
14532     gidset[i] = val.gval;
14533   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14534                  gidset);
14535   /* Exit non-zero if getgroups seems to require an array of ints.  This
14536      happens when gid_t is short int but getgroups modifies an array
14537      of ints.  */
14538   return n > 0 && gidset[n] != val.gval;
14539 }
14540 _ACEOF
14541 if ac_fn_c_try_run "$LINENO"; then :
14542   ac_cv_type_getgroups=gid_t
14543 else
14544   ac_cv_type_getgroups=int
14545 fi
14546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14547   conftest.$ac_objext conftest.beam conftest.$ac_ext
14548 fi
14549
14550 if test $ac_cv_type_getgroups = cross; then
14551         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h.  */
14553 #include <unistd.h>
14554
14555 _ACEOF
14556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14557   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then :
14558   ac_cv_type_getgroups=gid_t
14559 else
14560   ac_cv_type_getgroups=int
14561 fi
14562 rm -f conftest*
14563
14564 fi
14565 fi
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_getgroups" >&5
14567 $as_echo "$ac_cv_type_getgroups" >&6; }
14568
14569 cat >>confdefs.h <<_ACEOF
14570 #define GETGROUPS_T $ac_cv_type_getgroups
14571 _ACEOF
14572
14573
14574 if test $ac_cv_c_compiler_gnu = yes; then
14575     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
14576 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
14577 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
14578   $as_echo_n "(cached) " >&6
14579 else
14580     ac_pattern="Autoconf.*'x'"
14581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14582 /* end confdefs.h.  */
14583 #include <sgtty.h>
14584 Autoconf TIOCGETP
14585 _ACEOF
14586 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14587   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14588   ac_cv_prog_gcc_traditional=yes
14589 else
14590   ac_cv_prog_gcc_traditional=no
14591 fi
14592 rm -f conftest*
14593
14594
14595   if test $ac_cv_prog_gcc_traditional = no; then
14596     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14597 /* end confdefs.h.  */
14598 #include <termio.h>
14599 Autoconf TCGETA
14600 _ACEOF
14601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14602   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
14603   ac_cv_prog_gcc_traditional=yes
14604 fi
14605 rm -f conftest*
14606
14607   fi
14608 fi
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
14610 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
14611   if test $ac_cv_prog_gcc_traditional = yes; then
14612     CC="$CC -traditional"
14613   fi
14614 fi
14615
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
14617 $as_echo_n "checking for working memcmp... " >&6; }
14618 if test "${ac_cv_func_memcmp_working+set}" = set; then :
14619   $as_echo_n "(cached) " >&6
14620 else
14621   if test "$cross_compiling" = yes; then :
14622   ac_cv_func_memcmp_working=no
14623 else
14624   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h.  */
14626 $ac_includes_default
14627 int
14628 main ()
14629 {
14630
14631   /* Some versions of memcmp are not 8-bit clean.  */
14632   char c0 = '\100', c1 = '\200', c2 = '\201';
14633   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
14634     return 1;
14635
14636   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
14637      or more and with at least one buffer not starting on a 4-byte boundary.
14638      William Lewis provided this test program.   */
14639   {
14640     char foo[21];
14641     char bar[21];
14642     int i;
14643     for (i = 0; i < 4; i++)
14644       {
14645         char *a = foo + i;
14646         char *b = bar + i;
14647         strcpy (a, "--------01111111");
14648         strcpy (b, "--------10000000");
14649         if (memcmp (a, b, 16) >= 0)
14650           return 1;
14651       }
14652     return 0;
14653   }
14654
14655   ;
14656   return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_run "$LINENO"; then :
14660   ac_cv_func_memcmp_working=yes
14661 else
14662   ac_cv_func_memcmp_working=no
14663 fi
14664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14665   conftest.$ac_objext conftest.beam conftest.$ac_ext
14666 fi
14667
14668 fi
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
14670 $as_echo "$ac_cv_func_memcmp_working" >&6; }
14671 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
14672   *" memcmp.$ac_objext "* ) ;;
14673   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
14674  ;;
14675 esac
14676
14677
14678 for ac_func in vprintf
14679 do :
14680   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14681 if test "x$ac_cv_func_vprintf" = x""yes; then :
14682   cat >>confdefs.h <<_ACEOF
14683 #define HAVE_VPRINTF 1
14684 _ACEOF
14685
14686 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14687 if test "x$ac_cv_func__doprnt" = x""yes; then :
14688
14689 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14690
14691 fi
14692
14693 fi
14694 done
14695
14696
14697 for ac_func in fseeko getdomainname gethostname gettimeofday lckpwdf mkdir select
14698 do :
14699   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14701 eval as_val=\$$as_ac_var
14702    if test "x$as_val" = x""yes; then :
14703   cat >>confdefs.h <<_ACEOF
14704 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14705 _ACEOF
14706
14707 fi
14708 done
14709
14710 for ac_func in strcspn strdup strspn strstr strtol uname
14711 do :
14712   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14713 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14714 eval as_val=\$$as_ac_var
14715    if test "x$as_val" = x""yes; then :
14716   cat >>confdefs.h <<_ACEOF
14717 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14718 _ACEOF
14719
14720 fi
14721 done
14722
14723 for ac_func in getutent_r getpwnam_r getpwuid_r getgrnam_r getgrgid_r getspnam_r
14724 do :
14725   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14726 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14727 eval as_val=\$$as_ac_var
14728    if test "x$as_val" = x""yes; then :
14729   cat >>confdefs.h <<_ACEOF
14730 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14731 _ACEOF
14732
14733 fi
14734 done
14735
14736 for ac_func in getgrouplist getline getdelim
14737 do :
14738   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14739 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14740 eval as_val=\$$as_ac_var
14741    if test "x$as_val" = x""yes; then :
14742   cat >>confdefs.h <<_ACEOF
14743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14744 _ACEOF
14745
14746 fi
14747 done
14748
14749 for ac_func in inet_ntop inet_pton innetgr ruserok_af
14750 do :
14751   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14752 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14753 eval as_val=\$$as_ac_var
14754    if test "x$as_val" = x""yes; then :
14755   cat >>confdefs.h <<_ACEOF
14756 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14757 _ACEOF
14758
14759 fi
14760 done
14761
14762
14763 for ac_func in unshare
14764 do :
14765   ac_fn_c_check_func "$LINENO" "unshare" "ac_cv_func_unshare"
14766 if test "x$ac_cv_func_unshare" = x""yes; then :
14767   cat >>confdefs.h <<_ACEOF
14768 #define HAVE_UNSHARE 1
14769 _ACEOF
14770  UNSHARE=yes
14771 else
14772   UNSHARE=no
14773 fi
14774 done
14775
14776  if test "$UNSHARE" = yes; then
14777   HAVE_UNSHARE_TRUE=
14778   HAVE_UNSHARE_FALSE='#'
14779 else
14780   HAVE_UNSHARE_TRUE='#'
14781   HAVE_UNSHARE_FALSE=
14782 fi
14783
14784
14785 # Check whether --enable-regenerate-docu was given.
14786 if test "${enable_regenerate_docu+set}" = set; then :
14787   enableval=$enable_regenerate_docu; enable_docu=$enableval
14788 else
14789   enable_docu=yes
14790 fi
14791
14792 # Extract the first word of "xsltproc", so it can be a program name with args.
14793 set dummy xsltproc; ac_word=$2
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14795 $as_echo_n "checking for $ac_word... " >&6; }
14796 if test "${ac_cv_path_XSLTPROC+set}" = set; then :
14797   $as_echo_n "(cached) " >&6
14798 else
14799   case $XSLTPROC in
14800   [\\/]* | ?:[\\/]*)
14801   ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14802   ;;
14803   *)
14804   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14805 for as_dir in $PATH
14806 do
14807   IFS=$as_save_IFS
14808   test -z "$as_dir" && as_dir=.
14809     for ac_exec_ext in '' $ac_executable_extensions; do
14810   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14811     ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
14812     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14813     break 2
14814   fi
14815 done
14816   done
14817 IFS=$as_save_IFS
14818
14819   ;;
14820 esac
14821 fi
14822 XSLTPROC=$ac_cv_path_XSLTPROC
14823 if test -n "$XSLTPROC"; then
14824   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
14825 $as_echo "$XSLTPROC" >&6; }
14826 else
14827   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14828 $as_echo "no" >&6; }
14829 fi
14830
14831
14832 if test -z "$XSLTPROC"; then
14833      enable_docu=no
14834 fi
14835 # Extract the first word of "xmllint", so it can be a program name with args.
14836 set dummy xmllint; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14838 $as_echo_n "checking for $ac_word... " >&6; }
14839 if test "${ac_cv_path_XMLLINT+set}" = set; then :
14840   $as_echo_n "(cached) " >&6
14841 else
14842   case $XMLLINT in
14843   [\\/]* | ?:[\\/]*)
14844   ac_cv_path_XMLLINT="$XMLLINT" # Let the user override the test with a path.
14845   ;;
14846   *)
14847   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14849 do
14850   IFS=$as_save_IFS
14851   test -z "$as_dir" && as_dir=.
14852     for ac_exec_ext in '' $ac_executable_extensions; do
14853   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14854     ac_cv_path_XMLLINT="$as_dir/$ac_word$ac_exec_ext"
14855     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14856     break 2
14857   fi
14858 done
14859   done
14860 IFS=$as_save_IFS
14861
14862   test -z "$ac_cv_path_XMLLINT" && ac_cv_path_XMLLINT="/bin/true"
14863   ;;
14864 esac
14865 fi
14866 XMLLINT=$ac_cv_path_XMLLINT
14867 if test -n "$XMLLINT"; then
14868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLLINT" >&5
14869 $as_echo "$XMLLINT" >&6; }
14870 else
14871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14872 $as_echo "no" >&6; }
14873 fi
14874
14875
14876
14877   # check for the presence of the XML catalog
14878
14879 # Check whether --with-xml-catalog was given.
14880 if test "${with_xml_catalog+set}" = set; then :
14881   withval=$with_xml_catalog;
14882 else
14883   with_xml_catalog=/etc/xml/catalog
14884 fi
14885
14886   jh_found_xmlcatalog=true
14887   XML_CATALOG_FILE="$with_xml_catalog"
14888
14889   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML catalog ($XML_CATALOG_FILE)" >&5
14890 $as_echo_n "checking for XML catalog ($XML_CATALOG_FILE)... " >&6; }
14891   if test -f "$XML_CATALOG_FILE"; then
14892     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14893 $as_echo "found" >&6; }
14894   else
14895     jh_found_xmlcatalog=false
14896     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14897 $as_echo "not found" >&6; }
14898   fi
14899
14900   # check for the xmlcatalog program
14901   # Extract the first word of "xmlcatalog", so it can be a program name with args.
14902 set dummy xmlcatalog; ac_word=$2
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14904 $as_echo_n "checking for $ac_word... " >&6; }
14905 if test "${ac_cv_path_XMLCATALOG+set}" = set; then :
14906   $as_echo_n "(cached) " >&6
14907 else
14908   case $XMLCATALOG in
14909   [\\/]* | ?:[\\/]*)
14910   ac_cv_path_XMLCATALOG="$XMLCATALOG" # Let the user override the test with a path.
14911   ;;
14912   *)
14913   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14914 for as_dir in $PATH
14915 do
14916   IFS=$as_save_IFS
14917   test -z "$as_dir" && as_dir=.
14918     for ac_exec_ext in '' $ac_executable_extensions; do
14919   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14920     ac_cv_path_XMLCATALOG="$as_dir/$ac_word$ac_exec_ext"
14921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14922     break 2
14923   fi
14924 done
14925   done
14926 IFS=$as_save_IFS
14927
14928   test -z "$ac_cv_path_XMLCATALOG" && ac_cv_path_XMLCATALOG="no"
14929   ;;
14930 esac
14931 fi
14932 XMLCATALOG=$ac_cv_path_XMLCATALOG
14933 if test -n "$XMLCATALOG"; then
14934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLCATALOG" >&5
14935 $as_echo "$XMLCATALOG" >&6; }
14936 else
14937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14938 $as_echo "no" >&6; }
14939 fi
14940
14941
14942   if test "x$XMLCATALOG" = xno; then
14943     jh_found_xmlcatalog=false
14944   fi
14945
14946   if $jh_found_xmlcatalog; then
14947     :
14948   else
14949     :
14950   fi
14951
14952
14953     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XML DTD V4.4 in XML catalog" >&5
14954 $as_echo_n "checking for DocBook XML DTD V4.4 in XML catalog... " >&6; }
14955   if $jh_found_xmlcatalog && \
14956      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"-//OASIS//DTD DocBook XML V4.4//EN\" >&2"; } >&5
14957   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "-//OASIS//DTD DocBook XML V4.4//EN" >&2) 2>&5
14958   ac_status=$?
14959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14960   test $ac_status = 0; }; then
14961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14962 $as_echo "found" >&6; }
14963       else
14964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14965 $as_echo "not found" >&6; }
14966     enable_docu=no
14967   fi
14968
14969
14970     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DocBook XSL Stylesheets in XML catalog" >&5
14971 $as_echo_n "checking for DocBook XSL Stylesheets in XML catalog... " >&6; }
14972   if $jh_found_xmlcatalog && \
14973      { { $as_echo "$as_me:${as_lineno-$LINENO}: \$XMLCATALOG --noout \"\$XML_CATALOG_FILE\" \"http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl\" >&2"; } >&5
14974   ($XMLCATALOG --noout "$XML_CATALOG_FILE" "http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl" >&2) 2>&5
14975   ac_status=$?
14976   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977   test $ac_status = 0; }; then
14978     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14979 $as_echo "found" >&6; }
14980       else
14981     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14982 $as_echo "not found" >&6; }
14983     enable_docu=no
14984   fi
14985
14986
14987 # Extract the first word of "w3m", so it can be a program name with args.
14988 set dummy w3m; ac_word=$2
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14990 $as_echo_n "checking for $ac_word... " >&6; }
14991 if test "${ac_cv_path_BROWSER+set}" = set; then :
14992   $as_echo_n "(cached) " >&6
14993 else
14994   case $BROWSER in
14995   [\\/]* | ?:[\\/]*)
14996   ac_cv_path_BROWSER="$BROWSER" # Let the user override the test with a path.
14997   ;;
14998   *)
14999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15000 for as_dir in $PATH
15001 do
15002   IFS=$as_save_IFS
15003   test -z "$as_dir" && as_dir=.
15004     for ac_exec_ext in '' $ac_executable_extensions; do
15005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15006     ac_cv_path_BROWSER="$as_dir/$ac_word$ac_exec_ext"
15007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15008     break 2
15009   fi
15010 done
15011   done
15012 IFS=$as_save_IFS
15013
15014   ;;
15015 esac
15016 fi
15017 BROWSER=$ac_cv_path_BROWSER
15018 if test -n "$BROWSER"; then
15019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BROWSER" >&5
15020 $as_echo "$BROWSER" >&6; }
15021 else
15022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15023 $as_echo "no" >&6; }
15024 fi
15025
15026
15027 if test ! -z "$BROWSER"; then
15028      BROWSER="$BROWSER -T text/html -dump"
15029 else
15030      enable_docu=no
15031 fi
15032
15033 # Extract the first word of "fop", so it can be a program name with args.
15034 set dummy fop; ac_word=$2
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15036 $as_echo_n "checking for $ac_word... " >&6; }
15037 if test "${ac_cv_path_FO2PDF+set}" = set; then :
15038   $as_echo_n "(cached) " >&6
15039 else
15040   case $FO2PDF in
15041   [\\/]* | ?:[\\/]*)
15042   ac_cv_path_FO2PDF="$FO2PDF" # Let the user override the test with a path.
15043   ;;
15044   *)
15045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15046 for as_dir in $PATH
15047 do
15048   IFS=$as_save_IFS
15049   test -z "$as_dir" && as_dir=.
15050     for ac_exec_ext in '' $ac_executable_extensions; do
15051   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15052     ac_cv_path_FO2PDF="$as_dir/$ac_word$ac_exec_ext"
15053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15054     break 2
15055   fi
15056 done
15057   done
15058 IFS=$as_save_IFS
15059
15060   ;;
15061 esac
15062 fi
15063 FO2PDF=$ac_cv_path_FO2PDF
15064 if test -n "$FO2PDF"; then
15065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FO2PDF" >&5
15066 $as_echo "$FO2PDF" >&6; }
15067 else
15068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15070 fi
15071
15072
15073
15074  if test x$enable_docu != xno; then
15075   ENABLE_REGENERATE_MAN_TRUE=
15076   ENABLE_REGENERATE_MAN_FALSE='#'
15077 else
15078   ENABLE_REGENERATE_MAN_TRUE='#'
15079   ENABLE_REGENERATE_MAN_FALSE=
15080 fi
15081
15082  if test ! -z "$FO2PDF"; then
15083   ENABLE_GENERATE_PDF_TRUE=
15084   ENABLE_GENERATE_PDF_FALSE='#'
15085 else
15086   ENABLE_GENERATE_PDF_TRUE='#'
15087   ENABLE_GENERATE_PDF_FALSE=
15088 fi
15089
15090
15091
15092
15093
15094   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
15095 $as_echo_n "checking whether NLS is requested... " >&6; }
15096     # Check whether --enable-nls was given.
15097 if test "${enable_nls+set}" = set; then :
15098   enableval=$enable_nls; USE_NLS=$enableval
15099 else
15100   USE_NLS=yes
15101 fi
15102
15103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
15104 $as_echo "$USE_NLS" >&6; }
15105
15106
15107
15108
15109
15110
15111 # Prepare PATH_SEPARATOR.
15112 # The user is always right.
15113 if test "${PATH_SEPARATOR+set}" != set; then
15114   echo "#! /bin/sh" >conf$$.sh
15115   echo  "exit 0"   >>conf$$.sh
15116   chmod +x conf$$.sh
15117   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15118     PATH_SEPARATOR=';'
15119   else
15120     PATH_SEPARATOR=:
15121   fi
15122   rm -f conf$$.sh
15123 fi
15124
15125 # Find out how to test for executable files. Don't use a zero-byte file,
15126 # as systems may use methods other than mode bits to determine executability.
15127 cat >conf$$.file <<_ASEOF
15128 #! /bin/sh
15129 exit 0
15130 _ASEOF
15131 chmod +x conf$$.file
15132 if test -x conf$$.file >/dev/null 2>&1; then
15133   ac_executable_p="test -x"
15134 else
15135   ac_executable_p="test -f"
15136 fi
15137 rm -f conf$$.file
15138
15139 # Extract the first word of "msgfmt", so it can be a program name with args.
15140 set dummy msgfmt; ac_word=$2
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15142 $as_echo_n "checking for $ac_word... " >&6; }
15143 if test "${ac_cv_path_MSGFMT+set}" = set; then :
15144   $as_echo_n "(cached) " >&6
15145 else
15146   case "$MSGFMT" in
15147   [\\/]* | ?:[\\/]*)
15148     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15149     ;;
15150   *)
15151     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15152     for ac_dir in $PATH; do
15153       IFS="$ac_save_IFS"
15154       test -z "$ac_dir" && ac_dir=.
15155       for ac_exec_ext in '' $ac_executable_extensions; do
15156         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15157           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15158           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
15159      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15160             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
15161             break 2
15162           fi
15163         fi
15164       done
15165     done
15166     IFS="$ac_save_IFS"
15167   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
15168     ;;
15169 esac
15170 fi
15171 MSGFMT="$ac_cv_path_MSGFMT"
15172 if test "$MSGFMT" != ":"; then
15173   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15174 $as_echo "$MSGFMT" >&6; }
15175 else
15176   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15177 $as_echo "no" >&6; }
15178 fi
15179
15180   # Extract the first word of "gmsgfmt", so it can be a program name with args.
15181 set dummy gmsgfmt; ac_word=$2
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15183 $as_echo_n "checking for $ac_word... " >&6; }
15184 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
15185   $as_echo_n "(cached) " >&6
15186 else
15187   case $GMSGFMT in
15188   [\\/]* | ?:[\\/]*)
15189   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
15190   ;;
15191   *)
15192   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15193 for as_dir in $PATH
15194 do
15195   IFS=$as_save_IFS
15196   test -z "$as_dir" && as_dir=.
15197     for ac_exec_ext in '' $ac_executable_extensions; do
15198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15199     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
15200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15201     break 2
15202   fi
15203 done
15204   done
15205 IFS=$as_save_IFS
15206
15207   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
15208   ;;
15209 esac
15210 fi
15211 GMSGFMT=$ac_cv_path_GMSGFMT
15212 if test -n "$GMSGFMT"; then
15213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
15214 $as_echo "$GMSGFMT" >&6; }
15215 else
15216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15218 fi
15219
15220
15221
15222     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15223     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
15224     *) MSGFMT_015=$MSGFMT ;;
15225   esac
15226
15227   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15228     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
15229     *) GMSGFMT_015=$GMSGFMT ;;
15230   esac
15231
15232
15233
15234 # Prepare PATH_SEPARATOR.
15235 # The user is always right.
15236 if test "${PATH_SEPARATOR+set}" != set; then
15237   echo "#! /bin/sh" >conf$$.sh
15238   echo  "exit 0"   >>conf$$.sh
15239   chmod +x conf$$.sh
15240   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15241     PATH_SEPARATOR=';'
15242   else
15243     PATH_SEPARATOR=:
15244   fi
15245   rm -f conf$$.sh
15246 fi
15247
15248 # Find out how to test for executable files. Don't use a zero-byte file,
15249 # as systems may use methods other than mode bits to determine executability.
15250 cat >conf$$.file <<_ASEOF
15251 #! /bin/sh
15252 exit 0
15253 _ASEOF
15254 chmod +x conf$$.file
15255 if test -x conf$$.file >/dev/null 2>&1; then
15256   ac_executable_p="test -x"
15257 else
15258   ac_executable_p="test -f"
15259 fi
15260 rm -f conf$$.file
15261
15262 # Extract the first word of "xgettext", so it can be a program name with args.
15263 set dummy xgettext; ac_word=$2
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15265 $as_echo_n "checking for $ac_word... " >&6; }
15266 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
15267   $as_echo_n "(cached) " >&6
15268 else
15269   case "$XGETTEXT" in
15270   [\\/]* | ?:[\\/]*)
15271     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
15272     ;;
15273   *)
15274     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15275     for ac_dir in $PATH; do
15276       IFS="$ac_save_IFS"
15277       test -z "$ac_dir" && ac_dir=.
15278       for ac_exec_ext in '' $ac_executable_extensions; do
15279         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15280           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15281           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
15282      (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
15283             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
15284             break 2
15285           fi
15286         fi
15287       done
15288     done
15289     IFS="$ac_save_IFS"
15290   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
15291     ;;
15292 esac
15293 fi
15294 XGETTEXT="$ac_cv_path_XGETTEXT"
15295 if test "$XGETTEXT" != ":"; then
15296   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
15297 $as_echo "$XGETTEXT" >&6; }
15298 else
15299   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15300 $as_echo "no" >&6; }
15301 fi
15302
15303     rm -f messages.po
15304
15305     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
15306     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
15307     *) XGETTEXT_015=$XGETTEXT ;;
15308   esac
15309
15310
15311
15312 # Prepare PATH_SEPARATOR.
15313 # The user is always right.
15314 if test "${PATH_SEPARATOR+set}" != set; then
15315   echo "#! /bin/sh" >conf$$.sh
15316   echo  "exit 0"   >>conf$$.sh
15317   chmod +x conf$$.sh
15318   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15319     PATH_SEPARATOR=';'
15320   else
15321     PATH_SEPARATOR=:
15322   fi
15323   rm -f conf$$.sh
15324 fi
15325
15326 # Find out how to test for executable files. Don't use a zero-byte file,
15327 # as systems may use methods other than mode bits to determine executability.
15328 cat >conf$$.file <<_ASEOF
15329 #! /bin/sh
15330 exit 0
15331 _ASEOF
15332 chmod +x conf$$.file
15333 if test -x conf$$.file >/dev/null 2>&1; then
15334   ac_executable_p="test -x"
15335 else
15336   ac_executable_p="test -f"
15337 fi
15338 rm -f conf$$.file
15339
15340 # Extract the first word of "msgmerge", so it can be a program name with args.
15341 set dummy msgmerge; ac_word=$2
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15343 $as_echo_n "checking for $ac_word... " >&6; }
15344 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
15345   $as_echo_n "(cached) " >&6
15346 else
15347   case "$MSGMERGE" in
15348   [\\/]* | ?:[\\/]*)
15349     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
15350     ;;
15351   *)
15352     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
15353     for ac_dir in $PATH; do
15354       IFS="$ac_save_IFS"
15355       test -z "$ac_dir" && ac_dir=.
15356       for ac_exec_ext in '' $ac_executable_extensions; do
15357         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
15358           echo "$as_me: trying $ac_dir/$ac_word..." >&5
15359           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
15360             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
15361             break 2
15362           fi
15363         fi
15364       done
15365     done
15366     IFS="$ac_save_IFS"
15367   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
15368     ;;
15369 esac
15370 fi
15371 MSGMERGE="$ac_cv_path_MSGMERGE"
15372 if test "$MSGMERGE" != ":"; then
15373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
15374 $as_echo "$MSGMERGE" >&6; }
15375 else
15376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15377 $as_echo "no" >&6; }
15378 fi
15379
15380
15381         test -n "$localedir" || localedir='${datadir}/locale'
15382
15383
15384   ac_config_commands="$ac_config_commands po-directories"
15385
15386
15387
15388       if test "X$prefix" = "XNONE"; then
15389     acl_final_prefix="$ac_default_prefix"
15390   else
15391     acl_final_prefix="$prefix"
15392   fi
15393   if test "X$exec_prefix" = "XNONE"; then
15394     acl_final_exec_prefix='${prefix}'
15395   else
15396     acl_final_exec_prefix="$exec_prefix"
15397   fi
15398   acl_save_prefix="$prefix"
15399   prefix="$acl_final_prefix"
15400   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
15401   prefix="$acl_save_prefix"
15402
15403
15404 # Check whether --with-gnu-ld was given.
15405 if test "${with_gnu_ld+set}" = set; then :
15406   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15407 else
15408   with_gnu_ld=no
15409 fi
15410
15411 # Prepare PATH_SEPARATOR.
15412 # The user is always right.
15413 if test "${PATH_SEPARATOR+set}" != set; then
15414   echo "#! /bin/sh" >conf$$.sh
15415   echo  "exit 0"   >>conf$$.sh
15416   chmod +x conf$$.sh
15417   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15418     PATH_SEPARATOR=';'
15419   else
15420     PATH_SEPARATOR=:
15421   fi
15422   rm -f conf$$.sh
15423 fi
15424 ac_prog=ld
15425 if test "$GCC" = yes; then
15426   # Check if gcc -print-prog-name=ld gives a path.
15427   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
15428 $as_echo_n "checking for ld used by GCC... " >&6; }
15429   case $host in
15430   *-*-mingw*)
15431     # gcc leaves a trailing carriage return which upsets mingw
15432     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15433   *)
15434     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15435   esac
15436   case $ac_prog in
15437     # Accept absolute paths.
15438     [\\/]* | [A-Za-z]:[\\/]*)
15439       re_direlt='/[^/][^/]*/\.\./'
15440       # Canonicalize the path of ld
15441       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
15442       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15443         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
15444       done
15445       test -z "$LD" && LD="$ac_prog"
15446       ;;
15447   "")
15448     # If it fails, then pretend we aren't using GCC.
15449     ac_prog=ld
15450     ;;
15451   *)
15452     # If it is relative, then search for the first ld in PATH.
15453     with_gnu_ld=unknown
15454     ;;
15455   esac
15456 elif test "$with_gnu_ld" = yes; then
15457   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15458 $as_echo_n "checking for GNU ld... " >&6; }
15459 else
15460   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15461 $as_echo_n "checking for non-GNU ld... " >&6; }
15462 fi
15463 if test "${acl_cv_path_LD+set}" = set; then :
15464   $as_echo_n "(cached) " >&6
15465 else
15466   if test -z "$LD"; then
15467   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
15468   for ac_dir in $PATH; do
15469     test -z "$ac_dir" && ac_dir=.
15470     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15471       acl_cv_path_LD="$ac_dir/$ac_prog"
15472       # Check to see if the program is GNU ld.  I'd rather use --version,
15473       # but apparently some GNU ld's only accept -v.
15474       # Break only if it was the GNU/non-GNU ld that we prefer.
15475       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
15476       *GNU* | *'with BFD'*)
15477         test "$with_gnu_ld" != no && break ;;
15478       *)
15479         test "$with_gnu_ld" != yes && break ;;
15480       esac
15481     fi
15482   done
15483   IFS="$ac_save_ifs"
15484 else
15485   acl_cv_path_LD="$LD" # Let the user override the test with a path.
15486 fi
15487 fi
15488
15489 LD="$acl_cv_path_LD"
15490 if test -n "$LD"; then
15491   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15492 $as_echo "$LD" >&6; }
15493 else
15494   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15495 $as_echo "no" >&6; }
15496 fi
15497 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15499 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15500 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
15501   $as_echo_n "(cached) " >&6
15502 else
15503   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15504 case `$LD -v 2>&1 </dev/null` in
15505 *GNU* | *'with BFD'*)
15506   acl_cv_prog_gnu_ld=yes ;;
15507 *)
15508   acl_cv_prog_gnu_ld=no ;;
15509 esac
15510 fi
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
15512 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
15513 with_gnu_ld=$acl_cv_prog_gnu_ld
15514
15515
15516
15517
15518                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
15519 $as_echo_n "checking for shared library run path origin... " >&6; }
15520 if test "${acl_cv_rpath+set}" = set; then :
15521   $as_echo_n "(cached) " >&6
15522 else
15523
15524     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
15525     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
15526     . ./conftest.sh
15527     rm -f ./conftest.sh
15528     acl_cv_rpath=done
15529
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
15532 $as_echo "$acl_cv_rpath" >&6; }
15533   wl="$acl_cv_wl"
15534   libext="$acl_cv_libext"
15535   shlibext="$acl_cv_shlibext"
15536   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
15537   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
15538   hardcode_direct="$acl_cv_hardcode_direct"
15539   hardcode_minus_L="$acl_cv_hardcode_minus_L"
15540     # Check whether --enable-rpath was given.
15541 if test "${enable_rpath+set}" = set; then :
15542   enableval=$enable_rpath; :
15543 else
15544   enable_rpath=yes
15545 fi
15546
15547
15548
15549                   acl_libdirstem=lib
15550   searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
15551   if test -n "$searchpath"; then
15552     acl_save_IFS="${IFS=        }"; IFS=":"
15553     for searchdir in $searchpath; do
15554       if test -d "$searchdir"; then
15555         case "$searchdir" in
15556           */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
15557           *) searchdir=`cd "$searchdir" && pwd`
15558              case "$searchdir" in
15559                */lib64 ) acl_libdirstem=lib64 ;;
15560              esac ;;
15561         esac
15562       fi
15563     done
15564     IFS="$acl_save_IFS"
15565   fi
15566
15567
15568
15569
15570
15571
15572
15573
15574     use_additional=yes
15575
15576   acl_save_prefix="$prefix"
15577   prefix="$acl_final_prefix"
15578   acl_save_exec_prefix="$exec_prefix"
15579   exec_prefix="$acl_final_exec_prefix"
15580
15581     eval additional_includedir=\"$includedir\"
15582     eval additional_libdir=\"$libdir\"
15583
15584   exec_prefix="$acl_save_exec_prefix"
15585   prefix="$acl_save_prefix"
15586
15587
15588 # Check whether --with-libiconv-prefix was given.
15589 if test "${with_libiconv_prefix+set}" = set; then :
15590   withval=$with_libiconv_prefix;
15591     if test "X$withval" = "Xno"; then
15592       use_additional=no
15593     else
15594       if test "X$withval" = "X"; then
15595
15596   acl_save_prefix="$prefix"
15597   prefix="$acl_final_prefix"
15598   acl_save_exec_prefix="$exec_prefix"
15599   exec_prefix="$acl_final_exec_prefix"
15600
15601           eval additional_includedir=\"$includedir\"
15602           eval additional_libdir=\"$libdir\"
15603
15604   exec_prefix="$acl_save_exec_prefix"
15605   prefix="$acl_save_prefix"
15606
15607       else
15608         additional_includedir="$withval/include"
15609         additional_libdir="$withval/$acl_libdirstem"
15610       fi
15611     fi
15612
15613 fi
15614
15615       LIBICONV=
15616   LTLIBICONV=
15617   INCICONV=
15618   rpathdirs=
15619   ltrpathdirs=
15620   names_already_handled=
15621   names_next_round='iconv '
15622   while test -n "$names_next_round"; do
15623     names_this_round="$names_next_round"
15624     names_next_round=
15625     for name in $names_this_round; do
15626       already_handled=
15627       for n in $names_already_handled; do
15628         if test "$n" = "$name"; then
15629           already_handled=yes
15630           break
15631         fi
15632       done
15633       if test -z "$already_handled"; then
15634         names_already_handled="$names_already_handled $name"
15635                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
15636         eval value=\"\$HAVE_LIB$uppername\"
15637         if test -n "$value"; then
15638           if test "$value" = yes; then
15639             eval value=\"\$LIB$uppername\"
15640             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
15641             eval value=\"\$LTLIB$uppername\"
15642             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
15643           else
15644                                     :
15645           fi
15646         else
15647                               found_dir=
15648           found_la=
15649           found_so=
15650           found_a=
15651           if test $use_additional = yes; then
15652             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
15653               found_dir="$additional_libdir"
15654               found_so="$additional_libdir/lib$name.$shlibext"
15655               if test -f "$additional_libdir/lib$name.la"; then
15656                 found_la="$additional_libdir/lib$name.la"
15657               fi
15658             else
15659               if test -f "$additional_libdir/lib$name.$libext"; then
15660                 found_dir="$additional_libdir"
15661                 found_a="$additional_libdir/lib$name.$libext"
15662                 if test -f "$additional_libdir/lib$name.la"; then
15663                   found_la="$additional_libdir/lib$name.la"
15664                 fi
15665               fi
15666             fi
15667           fi
15668           if test "X$found_dir" = "X"; then
15669             for x in $LDFLAGS $LTLIBICONV; do
15670
15671   acl_save_prefix="$prefix"
15672   prefix="$acl_final_prefix"
15673   acl_save_exec_prefix="$exec_prefix"
15674   exec_prefix="$acl_final_exec_prefix"
15675   eval x=\"$x\"
15676   exec_prefix="$acl_save_exec_prefix"
15677   prefix="$acl_save_prefix"
15678
15679               case "$x" in
15680                 -L*)
15681                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15682                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
15683                     found_dir="$dir"
15684                     found_so="$dir/lib$name.$shlibext"
15685                     if test -f "$dir/lib$name.la"; then
15686                       found_la="$dir/lib$name.la"
15687                     fi
15688                   else
15689                     if test -f "$dir/lib$name.$libext"; then
15690                       found_dir="$dir"
15691                       found_a="$dir/lib$name.$libext"
15692                       if test -f "$dir/lib$name.la"; then
15693                         found_la="$dir/lib$name.la"
15694                       fi
15695                     fi
15696                   fi
15697                   ;;
15698               esac
15699               if test "X$found_dir" != "X"; then
15700                 break
15701               fi
15702             done
15703           fi
15704           if test "X$found_dir" != "X"; then
15705                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
15706             if test "X$found_so" != "X"; then
15707                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
15708                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15709               else
15710                                                                                 haveit=
15711                 for x in $ltrpathdirs; do
15712                   if test "X$x" = "X$found_dir"; then
15713                     haveit=yes
15714                     break
15715                   fi
15716                 done
15717                 if test -z "$haveit"; then
15718                   ltrpathdirs="$ltrpathdirs $found_dir"
15719                 fi
15720                                 if test "$hardcode_direct" = yes; then
15721                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15722                 else
15723                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
15724                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15725                                                             haveit=
15726                     for x in $rpathdirs; do
15727                       if test "X$x" = "X$found_dir"; then
15728                         haveit=yes
15729                         break
15730                       fi
15731                     done
15732                     if test -z "$haveit"; then
15733                       rpathdirs="$rpathdirs $found_dir"
15734                     fi
15735                   else
15736                                                                                 haveit=
15737                     for x in $LDFLAGS $LIBICONV; do
15738
15739   acl_save_prefix="$prefix"
15740   prefix="$acl_final_prefix"
15741   acl_save_exec_prefix="$exec_prefix"
15742   exec_prefix="$acl_final_exec_prefix"
15743   eval x=\"$x\"
15744   exec_prefix="$acl_save_exec_prefix"
15745   prefix="$acl_save_prefix"
15746
15747                       if test "X$x" = "X-L$found_dir"; then
15748                         haveit=yes
15749                         break
15750                       fi
15751                     done
15752                     if test -z "$haveit"; then
15753                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
15754                     fi
15755                     if test "$hardcode_minus_L" != no; then
15756                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
15757                     else
15758                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15759                     fi
15760                   fi
15761                 fi
15762               fi
15763             else
15764               if test "X$found_a" != "X"; then
15765                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
15766               else
15767                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
15768               fi
15769             fi
15770                         additional_includedir=
15771             case "$found_dir" in
15772               */$acl_libdirstem | */$acl_libdirstem/)
15773                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15774                 additional_includedir="$basedir/include"
15775                 ;;
15776             esac
15777             if test "X$additional_includedir" != "X"; then
15778                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15779                 haveit=
15780                 if test "X$additional_includedir" = "X/usr/local/include"; then
15781                   if test -n "$GCC"; then
15782                     case $host_os in
15783                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15784                     esac
15785                   fi
15786                 fi
15787                 if test -z "$haveit"; then
15788                   for x in $CPPFLAGS $INCICONV; do
15789
15790   acl_save_prefix="$prefix"
15791   prefix="$acl_final_prefix"
15792   acl_save_exec_prefix="$exec_prefix"
15793   exec_prefix="$acl_final_exec_prefix"
15794   eval x=\"$x\"
15795   exec_prefix="$acl_save_exec_prefix"
15796   prefix="$acl_save_prefix"
15797
15798                     if test "X$x" = "X-I$additional_includedir"; then
15799                       haveit=yes
15800                       break
15801                     fi
15802                   done
15803                   if test -z "$haveit"; then
15804                     if test -d "$additional_includedir"; then
15805                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
15806                     fi
15807                   fi
15808                 fi
15809               fi
15810             fi
15811                         if test -n "$found_la"; then
15812                                                         save_libdir="$libdir"
15813               case "$found_la" in
15814                 */* | *\\*) . "$found_la" ;;
15815                 *) . "./$found_la" ;;
15816               esac
15817               libdir="$save_libdir"
15818                             for dep in $dependency_libs; do
15819                 case "$dep" in
15820                   -L*)
15821                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15822                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
15823                       haveit=
15824                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
15825                         if test -n "$GCC"; then
15826                           case $host_os in
15827                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15828                           esac
15829                         fi
15830                       fi
15831                       if test -z "$haveit"; then
15832                         haveit=
15833                         for x in $LDFLAGS $LIBICONV; do
15834
15835   acl_save_prefix="$prefix"
15836   prefix="$acl_final_prefix"
15837   acl_save_exec_prefix="$exec_prefix"
15838   exec_prefix="$acl_final_exec_prefix"
15839   eval x=\"$x\"
15840   exec_prefix="$acl_save_exec_prefix"
15841   prefix="$acl_save_prefix"
15842
15843                           if test "X$x" = "X-L$additional_libdir"; then
15844                             haveit=yes
15845                             break
15846                           fi
15847                         done
15848                         if test -z "$haveit"; then
15849                           if test -d "$additional_libdir"; then
15850                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
15851                           fi
15852                         fi
15853                         haveit=
15854                         for x in $LDFLAGS $LTLIBICONV; do
15855
15856   acl_save_prefix="$prefix"
15857   prefix="$acl_final_prefix"
15858   acl_save_exec_prefix="$exec_prefix"
15859   exec_prefix="$acl_final_exec_prefix"
15860   eval x=\"$x\"
15861   exec_prefix="$acl_save_exec_prefix"
15862   prefix="$acl_save_prefix"
15863
15864                           if test "X$x" = "X-L$additional_libdir"; then
15865                             haveit=yes
15866                             break
15867                           fi
15868                         done
15869                         if test -z "$haveit"; then
15870                           if test -d "$additional_libdir"; then
15871                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
15872                           fi
15873                         fi
15874                       fi
15875                     fi
15876                     ;;
15877                   -R*)
15878                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15879                     if test "$enable_rpath" != no; then
15880                                                                   haveit=
15881                       for x in $rpathdirs; do
15882                         if test "X$x" = "X$dir"; then
15883                           haveit=yes
15884                           break
15885                         fi
15886                       done
15887                       if test -z "$haveit"; then
15888                         rpathdirs="$rpathdirs $dir"
15889                       fi
15890                                                                   haveit=
15891                       for x in $ltrpathdirs; do
15892                         if test "X$x" = "X$dir"; then
15893                           haveit=yes
15894                           break
15895                         fi
15896                       done
15897                       if test -z "$haveit"; then
15898                         ltrpathdirs="$ltrpathdirs $dir"
15899                       fi
15900                     fi
15901                     ;;
15902                   -l*)
15903                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15904                     ;;
15905                   *.la)
15906                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15907                     ;;
15908                   *)
15909                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
15910                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
15911                     ;;
15912                 esac
15913               done
15914             fi
15915           else
15916                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
15917             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
15918           fi
15919         fi
15920       fi
15921     done
15922   done
15923   if test "X$rpathdirs" != "X"; then
15924     if test -n "$hardcode_libdir_separator"; then
15925                         alldirs=
15926       for found_dir in $rpathdirs; do
15927         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
15928       done
15929             acl_save_libdir="$libdir"
15930       libdir="$alldirs"
15931       eval flag=\"$hardcode_libdir_flag_spec\"
15932       libdir="$acl_save_libdir"
15933       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15934     else
15935             for found_dir in $rpathdirs; do
15936         acl_save_libdir="$libdir"
15937         libdir="$found_dir"
15938         eval flag=\"$hardcode_libdir_flag_spec\"
15939         libdir="$acl_save_libdir"
15940         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
15941       done
15942     fi
15943   fi
15944   if test "X$ltrpathdirs" != "X"; then
15945             for found_dir in $ltrpathdirs; do
15946       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
15947     done
15948   fi
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
15968 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
15969 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
15970   $as_echo_n "(cached) " >&6
15971 else
15972   gt_save_LIBS="$LIBS"
15973      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
15974      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15975 /* end confdefs.h.  */
15976 #include <CoreFoundation/CFPreferences.h>
15977 int
15978 main ()
15979 {
15980 CFPreferencesCopyAppValue(NULL, NULL)
15981   ;
15982   return 0;
15983 }
15984 _ACEOF
15985 if ac_fn_c_try_link "$LINENO"; then :
15986   gt_cv_func_CFPreferencesCopyAppValue=yes
15987 else
15988   gt_cv_func_CFPreferencesCopyAppValue=no
15989 fi
15990 rm -f core conftest.err conftest.$ac_objext \
15991     conftest$ac_exeext conftest.$ac_ext
15992      LIBS="$gt_save_LIBS"
15993 fi
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
15995 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
15996   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
15997
15998 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
15999
16000   fi
16001     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
16002 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
16003 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
16004   $as_echo_n "(cached) " >&6
16005 else
16006   gt_save_LIBS="$LIBS"
16007      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
16008      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16009 /* end confdefs.h.  */
16010 #include <CoreFoundation/CFLocale.h>
16011 int
16012 main ()
16013 {
16014 CFLocaleCopyCurrent();
16015   ;
16016   return 0;
16017 }
16018 _ACEOF
16019 if ac_fn_c_try_link "$LINENO"; then :
16020   gt_cv_func_CFLocaleCopyCurrent=yes
16021 else
16022   gt_cv_func_CFLocaleCopyCurrent=no
16023 fi
16024 rm -f core conftest.err conftest.$ac_objext \
16025     conftest$ac_exeext conftest.$ac_ext
16026      LIBS="$gt_save_LIBS"
16027 fi
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
16029 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
16030   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16031
16032 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
16033
16034   fi
16035   INTL_MACOSX_LIBS=
16036   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
16037     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
16038   fi
16039
16040
16041
16042
16043
16044
16045   LIBINTL=
16046   LTLIBINTL=
16047   POSUB=
16048
16049     if test "$USE_NLS" = "yes"; then
16050     gt_use_preinstalled_gnugettext=no
16051
16052
16053
16054
16055
16056
16057         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
16058 $as_echo_n "checking for GNU gettext in libc... " >&6; }
16059 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
16060   $as_echo_n "(cached) " >&6
16061 else
16062   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16063 /* end confdefs.h.  */
16064 #include <libintl.h>
16065 extern int _nl_msg_cat_cntr;
16066 extern int *_nl_domain_bindings;
16067 int
16068 main ()
16069 {
16070 bindtextdomain ("", "");
16071 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
16072   ;
16073   return 0;
16074 }
16075 _ACEOF
16076 if ac_fn_c_try_link "$LINENO"; then :
16077   gt_cv_func_gnugettext1_libc=yes
16078 else
16079   gt_cv_func_gnugettext1_libc=no
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext \
16082     conftest$ac_exeext conftest.$ac_ext
16083 fi
16084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
16085 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
16086
16087         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
16088
16089
16090
16091
16092
16093           am_save_CPPFLAGS="$CPPFLAGS"
16094
16095   for element in $INCICONV; do
16096     haveit=
16097     for x in $CPPFLAGS; do
16098
16099   acl_save_prefix="$prefix"
16100   prefix="$acl_final_prefix"
16101   acl_save_exec_prefix="$exec_prefix"
16102   exec_prefix="$acl_final_exec_prefix"
16103   eval x=\"$x\"
16104   exec_prefix="$acl_save_exec_prefix"
16105   prefix="$acl_save_prefix"
16106
16107       if test "X$x" = "X$element"; then
16108         haveit=yes
16109         break
16110       fi
16111     done
16112     if test -z "$haveit"; then
16113       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16114     fi
16115   done
16116
16117
16118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
16119 $as_echo_n "checking for iconv... " >&6; }
16120 if test "${am_cv_func_iconv+set}" = set; then :
16121   $as_echo_n "(cached) " >&6
16122 else
16123
16124     am_cv_func_iconv="no, consider installing GNU libiconv"
16125     am_cv_lib_iconv=no
16126     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16127 /* end confdefs.h.  */
16128 #include <stdlib.h>
16129 #include <iconv.h>
16130 int
16131 main ()
16132 {
16133 iconv_t cd = iconv_open("","");
16134        iconv(cd,NULL,NULL,NULL,NULL);
16135        iconv_close(cd);
16136   ;
16137   return 0;
16138 }
16139 _ACEOF
16140 if ac_fn_c_try_link "$LINENO"; then :
16141   am_cv_func_iconv=yes
16142 fi
16143 rm -f core conftest.err conftest.$ac_objext \
16144     conftest$ac_exeext conftest.$ac_ext
16145     if test "$am_cv_func_iconv" != yes; then
16146       am_save_LIBS="$LIBS"
16147       LIBS="$LIBS $LIBICONV"
16148       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16149 /* end confdefs.h.  */
16150 #include <stdlib.h>
16151 #include <iconv.h>
16152 int
16153 main ()
16154 {
16155 iconv_t cd = iconv_open("","");
16156          iconv(cd,NULL,NULL,NULL,NULL);
16157          iconv_close(cd);
16158   ;
16159   return 0;
16160 }
16161 _ACEOF
16162 if ac_fn_c_try_link "$LINENO"; then :
16163   am_cv_lib_iconv=yes
16164         am_cv_func_iconv=yes
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext \
16167     conftest$ac_exeext conftest.$ac_ext
16168       LIBS="$am_save_LIBS"
16169     fi
16170
16171 fi
16172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
16173 $as_echo "$am_cv_func_iconv" >&6; }
16174   if test "$am_cv_func_iconv" = yes; then
16175
16176 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
16177
16178   fi
16179   if test "$am_cv_lib_iconv" = yes; then
16180     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
16181 $as_echo_n "checking how to link with libiconv... " >&6; }
16182     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
16183 $as_echo "$LIBICONV" >&6; }
16184   else
16185             CPPFLAGS="$am_save_CPPFLAGS"
16186     LIBICONV=
16187     LTLIBICONV=
16188   fi
16189
16190
16191
16192
16193
16194
16195
16196     use_additional=yes
16197
16198   acl_save_prefix="$prefix"
16199   prefix="$acl_final_prefix"
16200   acl_save_exec_prefix="$exec_prefix"
16201   exec_prefix="$acl_final_exec_prefix"
16202
16203     eval additional_includedir=\"$includedir\"
16204     eval additional_libdir=\"$libdir\"
16205
16206   exec_prefix="$acl_save_exec_prefix"
16207   prefix="$acl_save_prefix"
16208
16209
16210 # Check whether --with-libintl-prefix was given.
16211 if test "${with_libintl_prefix+set}" = set; then :
16212   withval=$with_libintl_prefix;
16213     if test "X$withval" = "Xno"; then
16214       use_additional=no
16215     else
16216       if test "X$withval" = "X"; then
16217
16218   acl_save_prefix="$prefix"
16219   prefix="$acl_final_prefix"
16220   acl_save_exec_prefix="$exec_prefix"
16221   exec_prefix="$acl_final_exec_prefix"
16222
16223           eval additional_includedir=\"$includedir\"
16224           eval additional_libdir=\"$libdir\"
16225
16226   exec_prefix="$acl_save_exec_prefix"
16227   prefix="$acl_save_prefix"
16228
16229       else
16230         additional_includedir="$withval/include"
16231         additional_libdir="$withval/$acl_libdirstem"
16232       fi
16233     fi
16234
16235 fi
16236
16237       LIBINTL=
16238   LTLIBINTL=
16239   INCINTL=
16240   rpathdirs=
16241   ltrpathdirs=
16242   names_already_handled=
16243   names_next_round='intl '
16244   while test -n "$names_next_round"; do
16245     names_this_round="$names_next_round"
16246     names_next_round=
16247     for name in $names_this_round; do
16248       already_handled=
16249       for n in $names_already_handled; do
16250         if test "$n" = "$name"; then
16251           already_handled=yes
16252           break
16253         fi
16254       done
16255       if test -z "$already_handled"; then
16256         names_already_handled="$names_already_handled $name"
16257                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
16258         eval value=\"\$HAVE_LIB$uppername\"
16259         if test -n "$value"; then
16260           if test "$value" = yes; then
16261             eval value=\"\$LIB$uppername\"
16262             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
16263             eval value=\"\$LTLIB$uppername\"
16264             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
16265           else
16266                                     :
16267           fi
16268         else
16269                               found_dir=
16270           found_la=
16271           found_so=
16272           found_a=
16273           if test $use_additional = yes; then
16274             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
16275               found_dir="$additional_libdir"
16276               found_so="$additional_libdir/lib$name.$shlibext"
16277               if test -f "$additional_libdir/lib$name.la"; then
16278                 found_la="$additional_libdir/lib$name.la"
16279               fi
16280             else
16281               if test -f "$additional_libdir/lib$name.$libext"; then
16282                 found_dir="$additional_libdir"
16283                 found_a="$additional_libdir/lib$name.$libext"
16284                 if test -f "$additional_libdir/lib$name.la"; then
16285                   found_la="$additional_libdir/lib$name.la"
16286                 fi
16287               fi
16288             fi
16289           fi
16290           if test "X$found_dir" = "X"; then
16291             for x in $LDFLAGS $LTLIBINTL; do
16292
16293   acl_save_prefix="$prefix"
16294   prefix="$acl_final_prefix"
16295   acl_save_exec_prefix="$exec_prefix"
16296   exec_prefix="$acl_final_exec_prefix"
16297   eval x=\"$x\"
16298   exec_prefix="$acl_save_exec_prefix"
16299   prefix="$acl_save_prefix"
16300
16301               case "$x" in
16302                 -L*)
16303                   dir=`echo "X$x" | sed -e 's/^X-L//'`
16304                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
16305                     found_dir="$dir"
16306                     found_so="$dir/lib$name.$shlibext"
16307                     if test -f "$dir/lib$name.la"; then
16308                       found_la="$dir/lib$name.la"
16309                     fi
16310                   else
16311                     if test -f "$dir/lib$name.$libext"; then
16312                       found_dir="$dir"
16313                       found_a="$dir/lib$name.$libext"
16314                       if test -f "$dir/lib$name.la"; then
16315                         found_la="$dir/lib$name.la"
16316                       fi
16317                     fi
16318                   fi
16319                   ;;
16320               esac
16321               if test "X$found_dir" != "X"; then
16322                 break
16323               fi
16324             done
16325           fi
16326           if test "X$found_dir" != "X"; then
16327                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
16328             if test "X$found_so" != "X"; then
16329                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
16330                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16331               else
16332                                                                                 haveit=
16333                 for x in $ltrpathdirs; do
16334                   if test "X$x" = "X$found_dir"; then
16335                     haveit=yes
16336                     break
16337                   fi
16338                 done
16339                 if test -z "$haveit"; then
16340                   ltrpathdirs="$ltrpathdirs $found_dir"
16341                 fi
16342                                 if test "$hardcode_direct" = yes; then
16343                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16344                 else
16345                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
16346                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16347                                                             haveit=
16348                     for x in $rpathdirs; do
16349                       if test "X$x" = "X$found_dir"; then
16350                         haveit=yes
16351                         break
16352                       fi
16353                     done
16354                     if test -z "$haveit"; then
16355                       rpathdirs="$rpathdirs $found_dir"
16356                     fi
16357                   else
16358                                                                                 haveit=
16359                     for x in $LDFLAGS $LIBINTL; do
16360
16361   acl_save_prefix="$prefix"
16362   prefix="$acl_final_prefix"
16363   acl_save_exec_prefix="$exec_prefix"
16364   exec_prefix="$acl_final_exec_prefix"
16365   eval x=\"$x\"
16366   exec_prefix="$acl_save_exec_prefix"
16367   prefix="$acl_save_prefix"
16368
16369                       if test "X$x" = "X-L$found_dir"; then
16370                         haveit=yes
16371                         break
16372                       fi
16373                     done
16374                     if test -z "$haveit"; then
16375                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
16376                     fi
16377                     if test "$hardcode_minus_L" != no; then
16378                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
16379                     else
16380                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16381                     fi
16382                   fi
16383                 fi
16384               fi
16385             else
16386               if test "X$found_a" != "X"; then
16387                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
16388               else
16389                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
16390               fi
16391             fi
16392                         additional_includedir=
16393             case "$found_dir" in
16394               */$acl_libdirstem | */$acl_libdirstem/)
16395                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
16396                 additional_includedir="$basedir/include"
16397                 ;;
16398             esac
16399             if test "X$additional_includedir" != "X"; then
16400                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
16401                 haveit=
16402                 if test "X$additional_includedir" = "X/usr/local/include"; then
16403                   if test -n "$GCC"; then
16404                     case $host_os in
16405                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16406                     esac
16407                   fi
16408                 fi
16409                 if test -z "$haveit"; then
16410                   for x in $CPPFLAGS $INCINTL; do
16411
16412   acl_save_prefix="$prefix"
16413   prefix="$acl_final_prefix"
16414   acl_save_exec_prefix="$exec_prefix"
16415   exec_prefix="$acl_final_exec_prefix"
16416   eval x=\"$x\"
16417   exec_prefix="$acl_save_exec_prefix"
16418   prefix="$acl_save_prefix"
16419
16420                     if test "X$x" = "X-I$additional_includedir"; then
16421                       haveit=yes
16422                       break
16423                     fi
16424                   done
16425                   if test -z "$haveit"; then
16426                     if test -d "$additional_includedir"; then
16427                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
16428                     fi
16429                   fi
16430                 fi
16431               fi
16432             fi
16433                         if test -n "$found_la"; then
16434                                                         save_libdir="$libdir"
16435               case "$found_la" in
16436                 */* | *\\*) . "$found_la" ;;
16437                 *) . "./$found_la" ;;
16438               esac
16439               libdir="$save_libdir"
16440                             for dep in $dependency_libs; do
16441                 case "$dep" in
16442                   -L*)
16443                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
16444                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
16445                       haveit=
16446                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
16447                         if test -n "$GCC"; then
16448                           case $host_os in
16449                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
16450                           esac
16451                         fi
16452                       fi
16453                       if test -z "$haveit"; then
16454                         haveit=
16455                         for x in $LDFLAGS $LIBINTL; do
16456
16457   acl_save_prefix="$prefix"
16458   prefix="$acl_final_prefix"
16459   acl_save_exec_prefix="$exec_prefix"
16460   exec_prefix="$acl_final_exec_prefix"
16461   eval x=\"$x\"
16462   exec_prefix="$acl_save_exec_prefix"
16463   prefix="$acl_save_prefix"
16464
16465                           if test "X$x" = "X-L$additional_libdir"; then
16466                             haveit=yes
16467                             break
16468                           fi
16469                         done
16470                         if test -z "$haveit"; then
16471                           if test -d "$additional_libdir"; then
16472                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
16473                           fi
16474                         fi
16475                         haveit=
16476                         for x in $LDFLAGS $LTLIBINTL; do
16477
16478   acl_save_prefix="$prefix"
16479   prefix="$acl_final_prefix"
16480   acl_save_exec_prefix="$exec_prefix"
16481   exec_prefix="$acl_final_exec_prefix"
16482   eval x=\"$x\"
16483   exec_prefix="$acl_save_exec_prefix"
16484   prefix="$acl_save_prefix"
16485
16486                           if test "X$x" = "X-L$additional_libdir"; then
16487                             haveit=yes
16488                             break
16489                           fi
16490                         done
16491                         if test -z "$haveit"; then
16492                           if test -d "$additional_libdir"; then
16493                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
16494                           fi
16495                         fi
16496                       fi
16497                     fi
16498                     ;;
16499                   -R*)
16500                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
16501                     if test "$enable_rpath" != no; then
16502                                                                   haveit=
16503                       for x in $rpathdirs; do
16504                         if test "X$x" = "X$dir"; then
16505                           haveit=yes
16506                           break
16507                         fi
16508                       done
16509                       if test -z "$haveit"; then
16510                         rpathdirs="$rpathdirs $dir"
16511                       fi
16512                                                                   haveit=
16513                       for x in $ltrpathdirs; do
16514                         if test "X$x" = "X$dir"; then
16515                           haveit=yes
16516                           break
16517                         fi
16518                       done
16519                       if test -z "$haveit"; then
16520                         ltrpathdirs="$ltrpathdirs $dir"
16521                       fi
16522                     fi
16523                     ;;
16524                   -l*)
16525                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
16526                     ;;
16527                   *.la)
16528                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
16529                     ;;
16530                   *)
16531                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
16532                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
16533                     ;;
16534                 esac
16535               done
16536             fi
16537           else
16538                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
16539             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
16540           fi
16541         fi
16542       fi
16543     done
16544   done
16545   if test "X$rpathdirs" != "X"; then
16546     if test -n "$hardcode_libdir_separator"; then
16547                         alldirs=
16548       for found_dir in $rpathdirs; do
16549         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
16550       done
16551             acl_save_libdir="$libdir"
16552       libdir="$alldirs"
16553       eval flag=\"$hardcode_libdir_flag_spec\"
16554       libdir="$acl_save_libdir"
16555       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16556     else
16557             for found_dir in $rpathdirs; do
16558         acl_save_libdir="$libdir"
16559         libdir="$found_dir"
16560         eval flag=\"$hardcode_libdir_flag_spec\"
16561         libdir="$acl_save_libdir"
16562         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
16563       done
16564     fi
16565   fi
16566   if test "X$ltrpathdirs" != "X"; then
16567             for found_dir in $ltrpathdirs; do
16568       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
16569     done
16570   fi
16571
16572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
16573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
16574 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
16575   $as_echo_n "(cached) " >&6
16576 else
16577   gt_save_CPPFLAGS="$CPPFLAGS"
16578             CPPFLAGS="$CPPFLAGS $INCINTL"
16579             gt_save_LIBS="$LIBS"
16580             LIBS="$LIBS $LIBINTL"
16581                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16582 /* end confdefs.h.  */
16583 #include <libintl.h>
16584 extern int _nl_msg_cat_cntr;
16585 extern
16586 #ifdef __cplusplus
16587 "C"
16588 #endif
16589 const char *_nl_expand_alias (const char *);
16590 int
16591 main ()
16592 {
16593 bindtextdomain ("", "");
16594 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16595   ;
16596   return 0;
16597 }
16598 _ACEOF
16599 if ac_fn_c_try_link "$LINENO"; then :
16600   gt_cv_func_gnugettext1_libintl=yes
16601 else
16602   gt_cv_func_gnugettext1_libintl=no
16603 fi
16604 rm -f core conftest.err conftest.$ac_objext \
16605     conftest$ac_exeext conftest.$ac_ext
16606                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
16607               LIBS="$LIBS $LIBICONV"
16608               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16609 /* end confdefs.h.  */
16610 #include <libintl.h>
16611 extern int _nl_msg_cat_cntr;
16612 extern
16613 #ifdef __cplusplus
16614 "C"
16615 #endif
16616 const char *_nl_expand_alias (const char *);
16617 int
16618 main ()
16619 {
16620 bindtextdomain ("", "");
16621 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
16622   ;
16623   return 0;
16624 }
16625 _ACEOF
16626 if ac_fn_c_try_link "$LINENO"; then :
16627   LIBINTL="$LIBINTL $LIBICONV"
16628                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
16629                 gt_cv_func_gnugettext1_libintl=yes
16630
16631 fi
16632 rm -f core conftest.err conftest.$ac_objext \
16633     conftest$ac_exeext conftest.$ac_ext
16634             fi
16635             CPPFLAGS="$gt_save_CPPFLAGS"
16636             LIBS="$gt_save_LIBS"
16637 fi
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
16639 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
16640         fi
16641
16642                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
16643            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
16644                 && test "$PACKAGE" != gettext-runtime \
16645                 && test "$PACKAGE" != gettext-tools; }; then
16646           gt_use_preinstalled_gnugettext=yes
16647         else
16648                     LIBINTL=
16649           LTLIBINTL=
16650           INCINTL=
16651         fi
16652
16653
16654
16655     if test -n "$INTL_MACOSX_LIBS"; then
16656       if test "$gt_use_preinstalled_gnugettext" = "yes" \
16657          || test "$nls_cv_use_gnu_gettext" = "yes"; then
16658                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
16659         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
16660       fi
16661     fi
16662
16663     if test "$gt_use_preinstalled_gnugettext" = "yes" \
16664        || test "$nls_cv_use_gnu_gettext" = "yes"; then
16665
16666 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
16667
16668     else
16669       USE_NLS=no
16670     fi
16671   fi
16672
16673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
16674 $as_echo_n "checking whether to use NLS... " >&6; }
16675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16676 $as_echo "$USE_NLS" >&6; }
16677   if test "$USE_NLS" = "yes"; then
16678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
16679 $as_echo_n "checking where the gettext function comes from... " >&6; }
16680     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16681       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16682         gt_source="external libintl"
16683       else
16684         gt_source="libc"
16685       fi
16686     else
16687       gt_source="included intl directory"
16688     fi
16689     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
16690 $as_echo "$gt_source" >&6; }
16691   fi
16692
16693   if test "$USE_NLS" = "yes"; then
16694
16695     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
16696       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
16697         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
16698 $as_echo_n "checking how to link with libintl... " >&6; }
16699         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
16700 $as_echo "$LIBINTL" >&6; }
16701
16702   for element in $INCINTL; do
16703     haveit=
16704     for x in $CPPFLAGS; do
16705
16706   acl_save_prefix="$prefix"
16707   prefix="$acl_final_prefix"
16708   acl_save_exec_prefix="$exec_prefix"
16709   exec_prefix="$acl_final_exec_prefix"
16710   eval x=\"$x\"
16711   exec_prefix="$acl_save_exec_prefix"
16712   prefix="$acl_save_prefix"
16713
16714       if test "X$x" = "X$element"; then
16715         haveit=yes
16716         break
16717       fi
16718     done
16719     if test -z "$haveit"; then
16720       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
16721     fi
16722   done
16723
16724       fi
16725
16726
16727 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
16728
16729
16730 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
16731
16732     fi
16733
16734         POSUB=po
16735   fi
16736
16737
16738
16739     INTLLIBS="$LIBINTL"
16740
16741
16742
16743
16744
16745
16746 for ac_func in dngettext
16747 do :
16748   ac_fn_c_check_func "$LINENO" "dngettext" "ac_cv_func_dngettext"
16749 if test "x$ac_cv_func_dngettext" = x""yes; then :
16750   cat >>confdefs.h <<_ACEOF
16751 #define HAVE_DNGETTEXT 1
16752 _ACEOF
16753
16754 fi
16755 done
16756
16757
16758
16759
16760 ac_fn_c_check_decl "$LINENO" "__NR_keyctl" "ac_cv_have_decl___NR_keyctl" "#include <sys/syscall.h>
16761 "
16762 if test "x$ac_cv_have_decl___NR_keyctl" = x""yes; then :
16763   have_key_syscalls=1
16764 else
16765   have_key_syscalls=0
16766 fi
16767
16768 ac_fn_c_check_decl "$LINENO" "ENOKEY" "ac_cv_have_decl_ENOKEY" "#include <errno.h>
16769 "
16770 if test "x$ac_cv_have_decl_ENOKEY" = x""yes; then :
16771   have_key_errors=1
16772 else
16773   have_key_errors=0
16774 fi
16775
16776
16777 HAVE_KEY_MANAGEMENT=0
16778 if test $have_key_syscalls$have_key_errors = 11
16779 then
16780         HAVE_KEY_MANAGEMENT=1
16781 fi
16782
16783 if test $HAVE_KEY_MANAGEMENT = 1; then
16784
16785 $as_echo "#define HAVE_KEY_MANAGEMENT 1" >>confdefs.h
16786
16787 fi
16788 HAVE_KEY_MANAGEMENT=$HAVE_KEY_MANAGEMENT
16789
16790
16791  if test "$have_key_syscalls" = 1; then
16792   HAVE_KEY_MANAGEMENT_TRUE=
16793   HAVE_KEY_MANAGEMENT_FALSE='#'
16794 else
16795   HAVE_KEY_MANAGEMENT_TRUE='#'
16796   HAVE_KEY_MANAGEMENT_FALSE=
16797 fi
16798
16799
16800 ac_config_files="$ac_config_files Makefile libpam/Makefile libpamc/Makefile libpamc/test/Makefile libpam_misc/Makefile conf/Makefile conf/pam_conv1/Makefile po/Makefile.in modules/Makefile modules/pam_access/Makefile modules/pam_cracklib/Makefile modules/pam_debug/Makefile modules/pam_deny/Makefile modules/pam_echo/Makefile modules/pam_env/Makefile modules/pam_faildelay/Makefile modules/pam_filter/Makefile modules/pam_filter/upperLOWER/Makefile modules/pam_ftp/Makefile modules/pam_group/Makefile modules/pam_issue/Makefile modules/pam_keyinit/Makefile modules/pam_lastlog/Makefile modules/pam_limits/Makefile modules/pam_listfile/Makefile modules/pam_localuser/Makefile modules/pam_loginuid/Makefile modules/pam_mail/Makefile modules/pam_mkhomedir/Makefile modules/pam_motd/Makefile modules/pam_namespace/Makefile modules/pam_nologin/Makefile modules/pam_permit/Makefile modules/pam_pwhistory/Makefile modules/pam_rhosts/Makefile modules/pam_rootok/Makefile modules/pam_exec/Makefile modules/pam_securetty/Makefile modules/pam_selinux/Makefile modules/pam_sepermit/Makefile modules/pam_shells/Makefile modules/pam_stress/Makefile modules/pam_succeed_if/Makefile modules/pam_tally/Makefile modules/pam_tally2/Makefile modules/pam_time/Makefile modules/pam_timestamp/Makefile modules/pam_tty_audit/Makefile modules/pam_umask/Makefile modules/pam_unix/Makefile modules/pam_userdb/Makefile modules/pam_warn/Makefile modules/pam_wheel/Makefile modules/pam_xauth/Makefile doc/Makefile doc/specs/Makefile doc/man/Makefile doc/sag/Makefile doc/adg/Makefile doc/mwg/Makefile examples/Makefile tests/Makefile xtests/Makefile"
16801
16802 cat >confcache <<\_ACEOF
16803 # This file is a shell script that caches the results of configure
16804 # tests run on this system so they can be shared between configure
16805 # scripts and configure runs, see configure's option --config-cache.
16806 # It is not useful on other systems.  If it contains results you don't
16807 # want to keep, you may remove or edit it.
16808 #
16809 # config.status only pays attention to the cache file if you give it
16810 # the --recheck option to rerun configure.
16811 #
16812 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16813 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16814 # following values.
16815
16816 _ACEOF
16817
16818 # The following way of writing the cache mishandles newlines in values,
16819 # but we know of no workaround that is simple, portable, and efficient.
16820 # So, we kill variables containing newlines.
16821 # Ultrix sh set writes to stderr and can't be redirected directly,
16822 # and sets the high bit in the cache file unless we assign to the vars.
16823 (
16824   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16825     eval ac_val=\$$ac_var
16826     case $ac_val in #(
16827     *${as_nl}*)
16828       case $ac_var in #(
16829       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16830 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16831       esac
16832       case $ac_var in #(
16833       _ | IFS | as_nl) ;; #(
16834       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16835       *) { eval $ac_var=; unset $ac_var;} ;;
16836       esac ;;
16837     esac
16838   done
16839
16840   (set) 2>&1 |
16841     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16842     *${as_nl}ac_space=\ *)
16843       # `set' does not quote correctly, so add quotes: double-quote
16844       # substitution turns \\\\ into \\, and sed turns \\ into \.
16845       sed -n \
16846         "s/'/'\\\\''/g;
16847           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16848       ;; #(
16849     *)
16850       # `set' quotes correctly as required by POSIX, so do not add quotes.
16851       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16852       ;;
16853     esac |
16854     sort
16855 ) |
16856   sed '
16857      /^ac_cv_env_/b end
16858      t clear
16859      :clear
16860      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16861      t end
16862      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16863      :end' >>confcache
16864 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16865   if test -w "$cache_file"; then
16866     test "x$cache_file" != "x/dev/null" &&
16867       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16868 $as_echo "$as_me: updating cache $cache_file" >&6;}
16869     cat confcache >$cache_file
16870   else
16871     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16872 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16873   fi
16874 fi
16875 rm -f confcache
16876
16877 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16878 # Let make expand exec_prefix.
16879 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16880
16881 DEFS=-DHAVE_CONFIG_H
16882
16883 ac_libobjs=
16884 ac_ltlibobjs=
16885 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16886   # 1. Remove the extension, and $U if already installed.
16887   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16888   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16889   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16890   #    will be set to the directory where LIBOBJS objects are built.
16891   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16892   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16893 done
16894 LIBOBJS=$ac_libobjs
16895
16896 LTLIBOBJS=$ac_ltlibobjs
16897
16898
16899  if test -n "$EXEEXT"; then
16900   am__EXEEXT_TRUE=
16901   am__EXEEXT_FALSE='#'
16902 else
16903   am__EXEEXT_TRUE='#'
16904   am__EXEEXT_FALSE=
16905 fi
16906
16907 if test -z "${STATIC_MODULES_TRUE}" && test -z "${STATIC_MODULES_FALSE}"; then
16908   as_fn_error "conditional \"STATIC_MODULES\" was never defined.
16909 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16910 fi
16911 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16912   as_fn_error "conditional \"AMDEP\" was never defined.
16913 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16914 fi
16915 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16916   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16917 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16918 fi
16919 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16920   as_fn_error "conditional \"am__fastdepCC\" was never defined.
16921 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16922 fi
16923 if test -z "${HAVE_VERSIONING_TRUE}" && test -z "${HAVE_VERSIONING_FALSE}"; then
16924   as_fn_error "conditional \"HAVE_VERSIONING\" was never defined.
16925 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16926 fi
16927 if test -z "${HAVE_LIBCRACK_TRUE}" && test -z "${HAVE_LIBCRACK_FALSE}"; then
16928   as_fn_error "conditional \"HAVE_LIBCRACK\" was never defined.
16929 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16930 fi
16931 if test -z "${HAVE_AUDIT_TTY_STATUS_TRUE}" && test -z "${HAVE_AUDIT_TTY_STATUS_FALSE}"; then
16932   as_fn_error "conditional \"HAVE_AUDIT_TTY_STATUS\" was never defined.
16933 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16934 fi
16935 if test -z "${HAVE_LIBDB_TRUE}" && test -z "${HAVE_LIBDB_FALSE}"; then
16936   as_fn_error "conditional \"HAVE_LIBDB\" was never defined.
16937 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16938 fi
16939 if test -z "${HAVE_LIBSELINUX_TRUE}" && test -z "${HAVE_LIBSELINUX_FALSE}"; then
16940   as_fn_error "conditional \"HAVE_LIBSELINUX\" was never defined.
16941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16942 fi
16943
16944 if test -z "${HAVE_UNSHARE_TRUE}" && test -z "${HAVE_UNSHARE_FALSE}"; then
16945   as_fn_error "conditional \"HAVE_UNSHARE\" was never defined.
16946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16947 fi
16948 if test -z "${ENABLE_REGENERATE_MAN_TRUE}" && test -z "${ENABLE_REGENERATE_MAN_FALSE}"; then
16949   as_fn_error "conditional \"ENABLE_REGENERATE_MAN\" was never defined.
16950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16951 fi
16952 if test -z "${ENABLE_GENERATE_PDF_TRUE}" && test -z "${ENABLE_GENERATE_PDF_FALSE}"; then
16953   as_fn_error "conditional \"ENABLE_GENERATE_PDF\" was never defined.
16954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16955 fi
16956 if test -z "${HAVE_KEY_MANAGEMENT_TRUE}" && test -z "${HAVE_KEY_MANAGEMENT_FALSE}"; then
16957   as_fn_error "conditional \"HAVE_KEY_MANAGEMENT\" was never defined.
16958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16959 fi
16960
16961 : ${CONFIG_STATUS=./config.status}
16962 ac_write_fail=0
16963 ac_clean_files_save=$ac_clean_files
16964 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16966 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16967 as_write_fail=0
16968 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16969 #! $SHELL
16970 # Generated by $as_me.
16971 # Run this file to recreate the current configuration.
16972 # Compiler output produced by configure, useful for debugging
16973 # configure, is in config.log if it exists.
16974
16975 debug=false
16976 ac_cs_recheck=false
16977 ac_cs_silent=false
16978
16979 SHELL=\${CONFIG_SHELL-$SHELL}
16980 export SHELL
16981 _ASEOF
16982 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16983 ## -------------------- ##
16984 ## M4sh Initialization. ##
16985 ## -------------------- ##
16986
16987 # Be more Bourne compatible
16988 DUALCASE=1; export DUALCASE # for MKS sh
16989 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16990   emulate sh
16991   NULLCMD=:
16992   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16993   # is contrary to our usage.  Disable this feature.
16994   alias -g '${1+"$@"}'='"$@"'
16995   setopt NO_GLOB_SUBST
16996 else
16997   case `(set -o) 2>/dev/null` in #(
16998   *posix*) :
16999     set -o posix ;; #(
17000   *) :
17001      ;;
17002 esac
17003 fi
17004
17005
17006 as_nl='
17007 '
17008 export as_nl
17009 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17010 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17011 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17012 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17013 # Prefer a ksh shell builtin over an external printf program on Solaris,
17014 # but without wasting forks for bash or zsh.
17015 if test -z "$BASH_VERSION$ZSH_VERSION" \
17016     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17017   as_echo='print -r --'
17018   as_echo_n='print -rn --'
17019 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17020   as_echo='printf %s\n'
17021   as_echo_n='printf %s'
17022 else
17023   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17024     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17025     as_echo_n='/usr/ucb/echo -n'
17026   else
17027     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17028     as_echo_n_body='eval
17029       arg=$1;
17030       case $arg in #(
17031       *"$as_nl"*)
17032         expr "X$arg" : "X\\(.*\\)$as_nl";
17033         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17034       esac;
17035       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17036     '
17037     export as_echo_n_body
17038     as_echo_n='sh -c $as_echo_n_body as_echo'
17039   fi
17040   export as_echo_body
17041   as_echo='sh -c $as_echo_body as_echo'
17042 fi
17043
17044 # The user is always right.
17045 if test "${PATH_SEPARATOR+set}" != set; then
17046   PATH_SEPARATOR=:
17047   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17048     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17049       PATH_SEPARATOR=';'
17050   }
17051 fi
17052
17053
17054 # IFS
17055 # We need space, tab and new line, in precisely that order.  Quoting is
17056 # there to prevent editors from complaining about space-tab.
17057 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17058 # splitting by setting IFS to empty value.)
17059 IFS=" ""        $as_nl"
17060
17061 # Find who we are.  Look in the path if we contain no directory separator.
17062 case $0 in #((
17063   *[\\/]* ) as_myself=$0 ;;
17064   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17065 for as_dir in $PATH
17066 do
17067   IFS=$as_save_IFS
17068   test -z "$as_dir" && as_dir=.
17069     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17070   done
17071 IFS=$as_save_IFS
17072
17073      ;;
17074 esac
17075 # We did not find ourselves, most probably we were run as `sh COMMAND'
17076 # in which case we are not to be found in the path.
17077 if test "x$as_myself" = x; then
17078   as_myself=$0
17079 fi
17080 if test ! -f "$as_myself"; then
17081   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17082   exit 1
17083 fi
17084
17085 # Unset variables that we do not need and which cause bugs (e.g. in
17086 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17087 # suppresses any "Segmentation fault" message there.  '((' could
17088 # trigger a bug in pdksh 5.2.14.
17089 for as_var in BASH_ENV ENV MAIL MAILPATH
17090 do eval test x\${$as_var+set} = xset \
17091   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17092 done
17093 PS1='$ '
17094 PS2='> '
17095 PS4='+ '
17096
17097 # NLS nuisances.
17098 LC_ALL=C
17099 export LC_ALL
17100 LANGUAGE=C
17101 export LANGUAGE
17102
17103 # CDPATH.
17104 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17105
17106
17107 # as_fn_error ERROR [LINENO LOG_FD]
17108 # ---------------------------------
17109 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17110 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17111 # script with status $?, using 1 if that was 0.
17112 as_fn_error ()
17113 {
17114   as_status=$?; test $as_status -eq 0 && as_status=1
17115   if test "$3"; then
17116     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17117     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
17118   fi
17119   $as_echo "$as_me: error: $1" >&2
17120   as_fn_exit $as_status
17121 } # as_fn_error
17122
17123
17124 # as_fn_set_status STATUS
17125 # -----------------------
17126 # Set $? to STATUS, without forking.
17127 as_fn_set_status ()
17128 {
17129   return $1
17130 } # as_fn_set_status
17131
17132 # as_fn_exit STATUS
17133 # -----------------
17134 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17135 as_fn_exit ()
17136 {
17137   set +e
17138   as_fn_set_status $1
17139   exit $1
17140 } # as_fn_exit
17141
17142 # as_fn_unset VAR
17143 # ---------------
17144 # Portably unset VAR.
17145 as_fn_unset ()
17146 {
17147   { eval $1=; unset $1;}
17148 }
17149 as_unset=as_fn_unset
17150 # as_fn_append VAR VALUE
17151 # ----------------------
17152 # Append the text in VALUE to the end of the definition contained in VAR. Take
17153 # advantage of any shell optimizations that allow amortized linear growth over
17154 # repeated appends, instead of the typical quadratic growth present in naive
17155 # implementations.
17156 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17157   eval 'as_fn_append ()
17158   {
17159     eval $1+=\$2
17160   }'
17161 else
17162   as_fn_append ()
17163   {
17164     eval $1=\$$1\$2
17165   }
17166 fi # as_fn_append
17167
17168 # as_fn_arith ARG...
17169 # ------------------
17170 # Perform arithmetic evaluation on the ARGs, and store the result in the
17171 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17172 # must be portable across $(()) and expr.
17173 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17174   eval 'as_fn_arith ()
17175   {
17176     as_val=$(( $* ))
17177   }'
17178 else
17179   as_fn_arith ()
17180   {
17181     as_val=`expr "$@" || test $? -eq 1`
17182   }
17183 fi # as_fn_arith
17184
17185
17186 if expr a : '\(a\)' >/dev/null 2>&1 &&
17187    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17188   as_expr=expr
17189 else
17190   as_expr=false
17191 fi
17192
17193 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17194   as_basename=basename
17195 else
17196   as_basename=false
17197 fi
17198
17199 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17200   as_dirname=dirname
17201 else
17202   as_dirname=false
17203 fi
17204
17205 as_me=`$as_basename -- "$0" ||
17206 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17207          X"$0" : 'X\(//\)$' \| \
17208          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17209 $as_echo X/"$0" |
17210     sed '/^.*\/\([^/][^/]*\)\/*$/{
17211             s//\1/
17212             q
17213           }
17214           /^X\/\(\/\/\)$/{
17215             s//\1/
17216             q
17217           }
17218           /^X\/\(\/\).*/{
17219             s//\1/
17220             q
17221           }
17222           s/.*/./; q'`
17223
17224 # Avoid depending upon Character Ranges.
17225 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17226 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17227 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17228 as_cr_digits='0123456789'
17229 as_cr_alnum=$as_cr_Letters$as_cr_digits
17230
17231 ECHO_C= ECHO_N= ECHO_T=
17232 case `echo -n x` in #(((((
17233 -n*)
17234   case `echo 'xy\c'` in
17235   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17236   xy)  ECHO_C='\c';;
17237   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17238        ECHO_T=' ';;
17239   esac;;
17240 *)
17241   ECHO_N='-n';;
17242 esac
17243
17244 rm -f conf$$ conf$$.exe conf$$.file
17245 if test -d conf$$.dir; then
17246   rm -f conf$$.dir/conf$$.file
17247 else
17248   rm -f conf$$.dir
17249   mkdir conf$$.dir 2>/dev/null
17250 fi
17251 if (echo >conf$$.file) 2>/dev/null; then
17252   if ln -s conf$$.file conf$$ 2>/dev/null; then
17253     as_ln_s='ln -s'
17254     # ... but there are two gotchas:
17255     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17256     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17257     # In both cases, we have to default to `cp -p'.
17258     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17259       as_ln_s='cp -p'
17260   elif ln conf$$.file conf$$ 2>/dev/null; then
17261     as_ln_s=ln
17262   else
17263     as_ln_s='cp -p'
17264   fi
17265 else
17266   as_ln_s='cp -p'
17267 fi
17268 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17269 rmdir conf$$.dir 2>/dev/null
17270
17271
17272 # as_fn_mkdir_p
17273 # -------------
17274 # Create "$as_dir" as a directory, including parents if necessary.
17275 as_fn_mkdir_p ()
17276 {
17277
17278   case $as_dir in #(
17279   -*) as_dir=./$as_dir;;
17280   esac
17281   test -d "$as_dir" || eval $as_mkdir_p || {
17282     as_dirs=
17283     while :; do
17284       case $as_dir in #(
17285       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17286       *) as_qdir=$as_dir;;
17287       esac
17288       as_dirs="'$as_qdir' $as_dirs"
17289       as_dir=`$as_dirname -- "$as_dir" ||
17290 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17291          X"$as_dir" : 'X\(//\)[^/]' \| \
17292          X"$as_dir" : 'X\(//\)$' \| \
17293          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17294 $as_echo X"$as_dir" |
17295     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17296             s//\1/
17297             q
17298           }
17299           /^X\(\/\/\)[^/].*/{
17300             s//\1/
17301             q
17302           }
17303           /^X\(\/\/\)$/{
17304             s//\1/
17305             q
17306           }
17307           /^X\(\/\).*/{
17308             s//\1/
17309             q
17310           }
17311           s/.*/./; q'`
17312       test -d "$as_dir" && break
17313     done
17314     test -z "$as_dirs" || eval "mkdir $as_dirs"
17315   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
17316
17317
17318 } # as_fn_mkdir_p
17319 if mkdir -p . 2>/dev/null; then
17320   as_mkdir_p='mkdir -p "$as_dir"'
17321 else
17322   test -d ./-p && rmdir ./-p
17323   as_mkdir_p=false
17324 fi
17325
17326 if test -x / >/dev/null 2>&1; then
17327   as_test_x='test -x'
17328 else
17329   if ls -dL / >/dev/null 2>&1; then
17330     as_ls_L_option=L
17331   else
17332     as_ls_L_option=
17333   fi
17334   as_test_x='
17335     eval sh -c '\''
17336       if test -d "$1"; then
17337         test -d "$1/.";
17338       else
17339         case $1 in #(
17340         -*)set "./$1";;
17341         esac;
17342         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
17343         ???[sx]*):;;*)false;;esac;fi
17344     '\'' sh
17345   '
17346 fi
17347 as_executable_p=$as_test_x
17348
17349 # Sed expression to map a string onto a valid CPP name.
17350 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17351
17352 # Sed expression to map a string onto a valid variable name.
17353 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17354
17355
17356 exec 6>&1
17357 ## ----------------------------------- ##
17358 ## Main body of $CONFIG_STATUS script. ##
17359 ## ----------------------------------- ##
17360 _ASEOF
17361 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17362
17363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17364 # Save the log message, to keep $0 and so on meaningful, and to
17365 # report actual input values of CONFIG_FILES etc. instead of their
17366 # values after options handling.
17367 ac_log="
17368 This file was extended by $as_me, which was
17369 generated by GNU Autoconf 2.65.  Invocation command line was
17370
17371   CONFIG_FILES    = $CONFIG_FILES
17372   CONFIG_HEADERS  = $CONFIG_HEADERS
17373   CONFIG_LINKS    = $CONFIG_LINKS
17374   CONFIG_COMMANDS = $CONFIG_COMMANDS
17375   $ $0 $@
17376
17377 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17378 "
17379
17380 _ACEOF
17381
17382 case $ac_config_files in *"
17383 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17384 esac
17385
17386 case $ac_config_headers in *"
17387 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17388 esac
17389
17390
17391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17392 # Files that config.status was made for.
17393 config_files="$ac_config_files"
17394 config_headers="$ac_config_headers"
17395 config_commands="$ac_config_commands"
17396
17397 _ACEOF
17398
17399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17400 ac_cs_usage="\
17401 \`$as_me' instantiates files and other configuration actions
17402 from templates according to the current configuration.  Unless the files
17403 and actions are specified as TAGs, all are instantiated by default.
17404
17405 Usage: $0 [OPTION]... [TAG]...
17406
17407   -h, --help       print this help, then exit
17408   -V, --version    print version number and configuration settings, then exit
17409       --config     print configuration, then exit
17410   -q, --quiet, --silent
17411                    do not print progress messages
17412   -d, --debug      don't remove temporary files
17413       --recheck    update $as_me by reconfiguring in the same conditions
17414       --file=FILE[:TEMPLATE]
17415                    instantiate the configuration file FILE
17416       --header=FILE[:TEMPLATE]
17417                    instantiate the configuration header FILE
17418
17419 Configuration files:
17420 $config_files
17421
17422 Configuration headers:
17423 $config_headers
17424
17425 Configuration commands:
17426 $config_commands
17427
17428 Report bugs to the package provider."
17429
17430 _ACEOF
17431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17432 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17433 ac_cs_version="\\
17434 config.status
17435 configured by $0, generated by GNU Autoconf 2.65,
17436   with options \\"\$ac_cs_config\\"
17437
17438 Copyright (C) 2009 Free Software Foundation, Inc.
17439 This config.status script is free software; the Free Software Foundation
17440 gives unlimited permission to copy, distribute and modify it."
17441
17442 ac_pwd='$ac_pwd'
17443 srcdir='$srcdir'
17444 INSTALL='$INSTALL'
17445 MKDIR_P='$MKDIR_P'
17446 AWK='$AWK'
17447 test -n "\$AWK" || AWK=awk
17448 _ACEOF
17449
17450 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17451 # The default lists apply if the user does not specify any file.
17452 ac_need_defaults=:
17453 while test $# != 0
17454 do
17455   case $1 in
17456   --*=*)
17457     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17458     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17459     ac_shift=:
17460     ;;
17461   *)
17462     ac_option=$1
17463     ac_optarg=$2
17464     ac_shift=shift
17465     ;;
17466   esac
17467
17468   case $ac_option in
17469   # Handling of the options.
17470   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17471     ac_cs_recheck=: ;;
17472   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17473     $as_echo "$ac_cs_version"; exit ;;
17474   --config | --confi | --conf | --con | --co | --c )
17475     $as_echo "$ac_cs_config"; exit ;;
17476   --debug | --debu | --deb | --de | --d | -d )
17477     debug=: ;;
17478   --file | --fil | --fi | --f )
17479     $ac_shift
17480     case $ac_optarg in
17481     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17482     esac
17483     as_fn_append CONFIG_FILES " '$ac_optarg'"
17484     ac_need_defaults=false;;
17485   --header | --heade | --head | --hea )
17486     $ac_shift
17487     case $ac_optarg in
17488     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17489     esac
17490     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17491     ac_need_defaults=false;;
17492   --he | --h)
17493     # Conflict between --help and --header
17494     as_fn_error "ambiguous option: \`$1'
17495 Try \`$0 --help' for more information.";;
17496   --help | --hel | -h )
17497     $as_echo "$ac_cs_usage"; exit ;;
17498   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17499   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17500     ac_cs_silent=: ;;
17501
17502   # This is an error.
17503   -*) as_fn_error "unrecognized option: \`$1'
17504 Try \`$0 --help' for more information." ;;
17505
17506   *) as_fn_append ac_config_targets " $1"
17507      ac_need_defaults=false ;;
17508
17509   esac
17510   shift
17511 done
17512
17513 ac_configure_extra_args=
17514
17515 if $ac_cs_silent; then
17516   exec 6>/dev/null
17517   ac_configure_extra_args="$ac_configure_extra_args --silent"
17518 fi
17519
17520 _ACEOF
17521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17522 if \$ac_cs_recheck; then
17523   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17524   shift
17525   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17526   CONFIG_SHELL='$SHELL'
17527   export CONFIG_SHELL
17528   exec "\$@"
17529 fi
17530
17531 _ACEOF
17532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17533 exec 5>>config.log
17534 {
17535   echo
17536   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17537 ## Running $as_me. ##
17538 _ASBOX
17539   $as_echo "$ac_log"
17540 } >&5
17541
17542 _ACEOF
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 #
17545 # INIT-COMMANDS
17546 #
17547 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17548
17549
17550 # The HP-UX ksh and POSIX shell print the target directory to stdout
17551 # if CDPATH is set.
17552 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17553
17554 sed_quote_subst='$sed_quote_subst'
17555 double_quote_subst='$double_quote_subst'
17556 delay_variable_subst='$delay_variable_subst'
17557 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
17558 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
17559 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
17560 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
17561 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
17562 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
17563 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
17564 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
17565 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
17566 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
17567 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
17568 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
17569 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
17570 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
17571 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
17572 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
17573 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
17574 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
17575 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
17576 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
17577 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
17578 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
17579 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
17580 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
17581 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
17582 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
17583 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
17584 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17585 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
17586 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
17587 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
17588 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
17589 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17590 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
17591 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
17592 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17593 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17594 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17595 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
17596 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
17597 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
17598 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
17599 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
17600 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
17601 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
17602 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17603 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
17604 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
17605 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
17606 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
17607 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
17608 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
17609 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
17610 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
17611 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
17612 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
17613 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
17614 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
17615 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
17616 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
17617 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
17618 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
17619 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17620 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17621 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
17622 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
17623 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17624 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17625 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
17626 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17627 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17628 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17629 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17630 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17631 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17632 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
17633 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17634 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
17635 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
17636 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
17637 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
17638 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
17639 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
17640 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
17641 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17642 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
17643 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
17644 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
17645 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
17646 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
17647 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17648 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17649 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
17650 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17651 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
17652 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
17653 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
17654 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
17655 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
17656 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17657 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
17658 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
17659 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17660 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
17661 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
17662 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17663 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17664 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
17665 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
17666 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
17667 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17668 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
17669 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
17670 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
17671 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
17672 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
17673 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
17674 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
17675
17676 LTCC='$LTCC'
17677 LTCFLAGS='$LTCFLAGS'
17678 compiler='$compiler_DEFAULT'
17679
17680 # Quote evaled strings.
17681 for var in SED \
17682 GREP \
17683 EGREP \
17684 FGREP \
17685 LD \
17686 NM \
17687 LN_S \
17688 lt_SP2NL \
17689 lt_NL2SP \
17690 reload_flag \
17691 OBJDUMP \
17692 deplibs_check_method \
17693 file_magic_cmd \
17694 AR \
17695 AR_FLAGS \
17696 STRIP \
17697 RANLIB \
17698 CC \
17699 CFLAGS \
17700 compiler \
17701 lt_cv_sys_global_symbol_pipe \
17702 lt_cv_sys_global_symbol_to_cdecl \
17703 lt_cv_sys_global_symbol_to_c_name_address \
17704 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17705 SHELL \
17706 ECHO \
17707 lt_prog_compiler_no_builtin_flag \
17708 lt_prog_compiler_wl \
17709 lt_prog_compiler_pic \
17710 lt_prog_compiler_static \
17711 lt_cv_prog_compiler_c_o \
17712 need_locks \
17713 DSYMUTIL \
17714 NMEDIT \
17715 LIPO \
17716 OTOOL \
17717 OTOOL64 \
17718 shrext_cmds \
17719 export_dynamic_flag_spec \
17720 whole_archive_flag_spec \
17721 compiler_needs_object \
17722 with_gnu_ld \
17723 allow_undefined_flag \
17724 no_undefined_flag \
17725 hardcode_libdir_flag_spec \
17726 hardcode_libdir_flag_spec_ld \
17727 hardcode_libdir_separator \
17728 fix_srcfile_path \
17729 exclude_expsyms \
17730 include_expsyms \
17731 file_list_spec \
17732 variables_saved_for_relink \
17733 libname_spec \
17734 library_names_spec \
17735 soname_spec \
17736 finish_eval \
17737 old_striplib \
17738 striplib; do
17739     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17740     *[\\\\\\\`\\"\\\$]*)
17741       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
17742       ;;
17743     *)
17744       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17745       ;;
17746     esac
17747 done
17748
17749 # Double-quote double-evaled strings.
17750 for var in reload_cmds \
17751 old_postinstall_cmds \
17752 old_postuninstall_cmds \
17753 old_archive_cmds \
17754 extract_expsyms_cmds \
17755 old_archive_from_new_cmds \
17756 old_archive_from_expsyms_cmds \
17757 archive_cmds \
17758 archive_expsym_cmds \
17759 module_cmds \
17760 module_expsym_cmds \
17761 export_symbols_cmds \
17762 prelink_cmds \
17763 postinstall_cmds \
17764 postuninstall_cmds \
17765 finish_cmds \
17766 sys_lib_search_path_spec \
17767 sys_lib_dlsearch_path_spec; do
17768     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
17769     *[\\\\\\\`\\"\\\$]*)
17770       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
17771       ;;
17772     *)
17773       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17774       ;;
17775     esac
17776 done
17777
17778 # Fix-up fallback echo if it was mangled by the above quoting rules.
17779 case \$lt_ECHO in
17780 *'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
17781   ;;
17782 esac
17783
17784 ac_aux_dir='$ac_aux_dir'
17785 xsi_shell='$xsi_shell'
17786 lt_shell_append='$lt_shell_append'
17787
17788 # See if we are running on zsh, and set the options which allow our
17789 # commands through without removal of \ escapes INIT.
17790 if test -n "\${ZSH_VERSION+set}" ; then
17791    setopt NO_GLOB_SUBST
17792 fi
17793
17794
17795     PACKAGE='$PACKAGE'
17796     VERSION='$VERSION'
17797     TIMESTAMP='$TIMESTAMP'
17798     RM='$RM'
17799     ofile='$ofile'
17800
17801
17802
17803 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
17804     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
17805     # from automake < 1.5.
17806     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
17807     # Capture the value of LINGUAS because we need it to compute CATALOGS.
17808     LINGUAS="${LINGUAS-%UNSET%}"
17809
17810
17811 _ACEOF
17812
17813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17814
17815 # Handling of arguments.
17816 for ac_config_target in $ac_config_targets
17817 do
17818   case $ac_config_target in
17819     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17820     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17821     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17822     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
17823     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17824     "libpam/Makefile") CONFIG_FILES="$CONFIG_FILES libpam/Makefile" ;;
17825     "libpamc/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/Makefile" ;;
17826     "libpamc/test/Makefile") CONFIG_FILES="$CONFIG_FILES libpamc/test/Makefile" ;;
17827     "libpam_misc/Makefile") CONFIG_FILES="$CONFIG_FILES libpam_misc/Makefile" ;;
17828     "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
17829     "conf/pam_conv1/Makefile") CONFIG_FILES="$CONFIG_FILES conf/pam_conv1/Makefile" ;;
17830     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
17831     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
17832     "modules/pam_access/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_access/Makefile" ;;
17833     "modules/pam_cracklib/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_cracklib/Makefile" ;;
17834     "modules/pam_debug/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_debug/Makefile" ;;
17835     "modules/pam_deny/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
17836     "modules/pam_echo/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_echo/Makefile" ;;
17837     "modules/pam_env/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_env/Makefile" ;;
17838     "modules/pam_faildelay/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_faildelay/Makefile" ;;
17839     "modules/pam_filter/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/Makefile" ;;
17840     "modules/pam_filter/upperLOWER/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_filter/upperLOWER/Makefile" ;;
17841     "modules/pam_ftp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_ftp/Makefile" ;;
17842     "modules/pam_group/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_group/Makefile" ;;
17843     "modules/pam_issue/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_issue/Makefile" ;;
17844     "modules/pam_keyinit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_keyinit/Makefile" ;;
17845     "modules/pam_lastlog/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_lastlog/Makefile" ;;
17846     "modules/pam_limits/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_limits/Makefile" ;;
17847     "modules/pam_listfile/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_listfile/Makefile" ;;
17848     "modules/pam_localuser/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_localuser/Makefile" ;;
17849     "modules/pam_loginuid/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_loginuid/Makefile" ;;
17850     "modules/pam_mail/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mail/Makefile" ;;
17851     "modules/pam_mkhomedir/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_mkhomedir/Makefile" ;;
17852     "modules/pam_motd/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_motd/Makefile" ;;
17853     "modules/pam_namespace/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_namespace/Makefile" ;;
17854     "modules/pam_nologin/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_nologin/Makefile" ;;
17855     "modules/pam_permit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
17856     "modules/pam_pwhistory/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_pwhistory/Makefile" ;;
17857     "modules/pam_rhosts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rhosts/Makefile" ;;
17858     "modules/pam_rootok/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_rootok/Makefile" ;;
17859     "modules/pam_exec/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_exec/Makefile" ;;
17860     "modules/pam_securetty/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_securetty/Makefile" ;;
17861     "modules/pam_selinux/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_selinux/Makefile" ;;
17862     "modules/pam_sepermit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_sepermit/Makefile" ;;
17863     "modules/pam_shells/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_shells/Makefile" ;;
17864     "modules/pam_stress/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_stress/Makefile" ;;
17865     "modules/pam_succeed_if/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_succeed_if/Makefile" ;;
17866     "modules/pam_tally/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally/Makefile" ;;
17867     "modules/pam_tally2/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tally2/Makefile" ;;
17868     "modules/pam_time/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_time/Makefile" ;;
17869     "modules/pam_timestamp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_timestamp/Makefile" ;;
17870     "modules/pam_tty_audit/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_tty_audit/Makefile" ;;
17871     "modules/pam_umask/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_umask/Makefile" ;;
17872     "modules/pam_unix/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
17873     "modules/pam_userdb/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_userdb/Makefile" ;;
17874     "modules/pam_warn/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_warn/Makefile" ;;
17875     "modules/pam_wheel/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_wheel/Makefile" ;;
17876     "modules/pam_xauth/Makefile") CONFIG_FILES="$CONFIG_FILES modules/pam_xauth/Makefile" ;;
17877     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17878     "doc/specs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/specs/Makefile" ;;
17879     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
17880     "doc/sag/Makefile") CONFIG_FILES="$CONFIG_FILES doc/sag/Makefile" ;;
17881     "doc/adg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/adg/Makefile" ;;
17882     "doc/mwg/Makefile") CONFIG_FILES="$CONFIG_FILES doc/mwg/Makefile" ;;
17883     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
17884     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
17885     "xtests/Makefile") CONFIG_FILES="$CONFIG_FILES xtests/Makefile" ;;
17886
17887   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17888   esac
17889 done
17890
17891
17892 # If the user did not use the arguments to specify the items to instantiate,
17893 # then the envvar interface is used.  Set only those that are not.
17894 # We use the long form for the default assignment because of an extremely
17895 # bizarre bug on SunOS 4.1.3.
17896 if $ac_need_defaults; then
17897   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17898   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17899   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17900 fi
17901
17902 # Have a temporary directory for convenience.  Make it in the build tree
17903 # simply because there is no reason against having it here, and in addition,
17904 # creating and moving files from /tmp can sometimes cause problems.
17905 # Hook for its removal unless debugging.
17906 # Note that there is a small window in which the directory will not be cleaned:
17907 # after its creation but before its name has been assigned to `$tmp'.
17908 $debug ||
17909 {
17910   tmp=
17911   trap 'exit_status=$?
17912   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
17913 ' 0
17914   trap 'as_fn_exit 1' 1 2 13 15
17915 }
17916 # Create a (secure) tmp directory for tmp files.
17917
17918 {
17919   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17920   test -n "$tmp" && test -d "$tmp"
17921 }  ||
17922 {
17923   tmp=./conf$$-$RANDOM
17924   (umask 077 && mkdir "$tmp")
17925 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
17926
17927 # Set up the scripts for CONFIG_FILES section.
17928 # No need to generate them if there are no CONFIG_FILES.
17929 # This happens for instance with `./config.status config.h'.
17930 if test -n "$CONFIG_FILES"; then
17931
17932
17933 ac_cr=`echo X | tr X '\015'`
17934 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17935 # But we know of no other shell where ac_cr would be empty at this
17936 # point, so we can use a bashism as a fallback.
17937 if test "x$ac_cr" = x; then
17938   eval ac_cr=\$\'\\r\'
17939 fi
17940 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17941 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17942   ac_cs_awk_cr='\r'
17943 else
17944   ac_cs_awk_cr=$ac_cr
17945 fi
17946
17947 echo 'BEGIN {' >"$tmp/subs1.awk" &&
17948 _ACEOF
17949
17950
17951 {
17952   echo "cat >conf$$subs.awk <<_ACEOF" &&
17953   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17954   echo "_ACEOF"
17955 } >conf$$subs.sh ||
17956   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17957 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
17958 ac_delim='%!_!# '
17959 for ac_last_try in false false false false false :; do
17960   . ./conf$$subs.sh ||
17961     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17962
17963   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17964   if test $ac_delim_n = $ac_delim_num; then
17965     break
17966   elif $ac_last_try; then
17967     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
17968   else
17969     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17970   fi
17971 done
17972 rm -f conf$$subs.sh
17973
17974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17975 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
17976 _ACEOF
17977 sed -n '
17978 h
17979 s/^/S["/; s/!.*/"]=/
17980 p
17981 g
17982 s/^[^!]*!//
17983 :repl
17984 t repl
17985 s/'"$ac_delim"'$//
17986 t delim
17987 :nl
17988 h
17989 s/\(.\{148\}\)..*/\1/
17990 t more1
17991 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17992 p
17993 n
17994 b repl
17995 :more1
17996 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17997 p
17998 g
17999 s/.\{148\}//
18000 t nl
18001 :delim
18002 h
18003 s/\(.\{148\}\)..*/\1/
18004 t more2
18005 s/["\\]/\\&/g; s/^/"/; s/$/"/
18006 p
18007 b
18008 :more2
18009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18010 p
18011 g
18012 s/.\{148\}//
18013 t delim
18014 ' <conf$$subs.awk | sed '
18015 /^[^""]/{
18016   N
18017   s/\n//
18018 }
18019 ' >>$CONFIG_STATUS || ac_write_fail=1
18020 rm -f conf$$subs.awk
18021 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18022 _ACAWK
18023 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
18024   for (key in S) S_is_set[key] = 1
18025   FS = "\a"
18026
18027 }
18028 {
18029   line = $ 0
18030   nfields = split(line, field, "@")
18031   substed = 0
18032   len = length(field[1])
18033   for (i = 2; i < nfields; i++) {
18034     key = field[i]
18035     keylen = length(key)
18036     if (S_is_set[key]) {
18037       value = S[key]
18038       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18039       len += length(value) + length(field[++i])
18040       substed = 1
18041     } else
18042       len += 1 + keylen
18043   }
18044
18045   print line
18046 }
18047
18048 _ACAWK
18049 _ACEOF
18050 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18051 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18052   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18053 else
18054   cat
18055 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
18056   || as_fn_error "could not setup config files machinery" "$LINENO" 5
18057 _ACEOF
18058
18059 # VPATH may cause trouble with some makes, so we remove $(srcdir),
18060 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
18061 # trailing colons and then remove the whole line if VPATH becomes empty
18062 # (actually we leave an empty line to preserve line numbers).
18063 if test "x$srcdir" = x.; then
18064   ac_vpsub='/^[  ]*VPATH[        ]*=/{
18065 s/:*\$(srcdir):*/:/
18066 s/:*\${srcdir}:*/:/
18067 s/:*@srcdir@:*/:/
18068 s/^\([^=]*=[     ]*\):*/\1/
18069 s/:*$//
18070 s/^[^=]*=[       ]*$//
18071 }'
18072 fi
18073
18074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18075 fi # test -n "$CONFIG_FILES"
18076
18077 # Set up the scripts for CONFIG_HEADERS section.
18078 # No need to generate them if there are no CONFIG_HEADERS.
18079 # This happens for instance with `./config.status Makefile'.
18080 if test -n "$CONFIG_HEADERS"; then
18081 cat >"$tmp/defines.awk" <<\_ACAWK ||
18082 BEGIN {
18083 _ACEOF
18084
18085 # Transform confdefs.h into an awk script `defines.awk', embedded as
18086 # here-document in config.status, that substitutes the proper values into
18087 # config.h.in to produce config.h.
18088
18089 # Create a delimiter string that does not exist in confdefs.h, to ease
18090 # handling of long lines.
18091 ac_delim='%!_!# '
18092 for ac_last_try in false false :; do
18093   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
18094   if test -z "$ac_t"; then
18095     break
18096   elif $ac_last_try; then
18097     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
18098   else
18099     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18100   fi
18101 done
18102
18103 # For the awk script, D is an array of macro values keyed by name,
18104 # likewise P contains macro parameters if any.  Preserve backslash
18105 # newline sequences.
18106
18107 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18108 sed -n '
18109 s/.\{148\}/&'"$ac_delim"'/g
18110 t rset
18111 :rset
18112 s/^[     ]*#[    ]*define[       ][      ]*/ /
18113 t def
18114 d
18115 :def
18116 s/\\$//
18117 t bsnl
18118 s/["\\]/\\&/g
18119 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18120 D["\1"]=" \3"/p
18121 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18122 d
18123 :bsnl
18124 s/["\\]/\\&/g
18125 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18126 D["\1"]=" \3\\\\\\n"\\/p
18127 t cont
18128 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18129 t cont
18130 d
18131 :cont
18132 n
18133 s/.\{148\}/&'"$ac_delim"'/g
18134 t clear
18135 :clear
18136 s/\\$//
18137 t bsnlc
18138 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18139 d
18140 :bsnlc
18141 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18142 b cont
18143 ' <confdefs.h | sed '
18144 s/'"$ac_delim"'/"\\\
18145 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18146
18147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18148   for (key in D) D_is_set[key] = 1
18149   FS = "\a"
18150 }
18151 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18152   line = \$ 0
18153   split(line, arg, " ")
18154   if (arg[1] == "#") {
18155     defundef = arg[2]
18156     mac1 = arg[3]
18157   } else {
18158     defundef = substr(arg[1], 2)
18159     mac1 = arg[2]
18160   }
18161   split(mac1, mac2, "(") #)
18162   macro = mac2[1]
18163   prefix = substr(line, 1, index(line, defundef) - 1)
18164   if (D_is_set[macro]) {
18165     # Preserve the white space surrounding the "#".
18166     print prefix "define", macro P[macro] D[macro]
18167     next
18168   } else {
18169     # Replace #undef with comments.  This is necessary, for example,
18170     # in the case of _POSIX_SOURCE, which is predefined and required
18171     # on some systems where configure will not decide to define it.
18172     if (defundef == "undef") {
18173       print "/*", prefix defundef, macro, "*/"
18174       next
18175     }
18176   }
18177 }
18178 { print }
18179 _ACAWK
18180 _ACEOF
18181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18182   as_fn_error "could not setup config headers machinery" "$LINENO" 5
18183 fi # test -n "$CONFIG_HEADERS"
18184
18185
18186 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18187 shift
18188 for ac_tag
18189 do
18190   case $ac_tag in
18191   :[FHLC]) ac_mode=$ac_tag; continue;;
18192   esac
18193   case $ac_mode$ac_tag in
18194   :[FHL]*:*);;
18195   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
18196   :[FH]-) ac_tag=-:-;;
18197   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18198   esac
18199   ac_save_IFS=$IFS
18200   IFS=:
18201   set x $ac_tag
18202   IFS=$ac_save_IFS
18203   shift
18204   ac_file=$1
18205   shift
18206
18207   case $ac_mode in
18208   :L) ac_source=$1;;
18209   :[FH])
18210     ac_file_inputs=
18211     for ac_f
18212     do
18213       case $ac_f in
18214       -) ac_f="$tmp/stdin";;
18215       *) # Look for the file first in the build tree, then in the source tree
18216          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18217          # because $ac_f cannot contain `:'.
18218          test -f "$ac_f" ||
18219            case $ac_f in
18220            [\\/$]*) false;;
18221            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18222            esac ||
18223            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18224       esac
18225       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18226       as_fn_append ac_file_inputs " '$ac_f'"
18227     done
18228
18229     # Let's still pretend it is `configure' which instantiates (i.e., don't
18230     # use $as_me), people would be surprised to read:
18231     #    /* config.h.  Generated by config.status.  */
18232     configure_input='Generated from '`
18233           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18234         `' by configure.'
18235     if test x"$ac_file" != x-; then
18236       configure_input="$ac_file.  $configure_input"
18237       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18238 $as_echo "$as_me: creating $ac_file" >&6;}
18239     fi
18240     # Neutralize special characters interpreted by sed in replacement strings.
18241     case $configure_input in #(
18242     *\&* | *\|* | *\\* )
18243        ac_sed_conf_input=`$as_echo "$configure_input" |
18244        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18245     *) ac_sed_conf_input=$configure_input;;
18246     esac
18247
18248     case $ac_tag in
18249     *:-:* | *:-) cat >"$tmp/stdin" \
18250       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
18251     esac
18252     ;;
18253   esac
18254
18255   ac_dir=`$as_dirname -- "$ac_file" ||
18256 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18257          X"$ac_file" : 'X\(//\)[^/]' \| \
18258          X"$ac_file" : 'X\(//\)$' \| \
18259          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18260 $as_echo X"$ac_file" |
18261     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18262             s//\1/
18263             q
18264           }
18265           /^X\(\/\/\)[^/].*/{
18266             s//\1/
18267             q
18268           }
18269           /^X\(\/\/\)$/{
18270             s//\1/
18271             q
18272           }
18273           /^X\(\/\).*/{
18274             s//\1/
18275             q
18276           }
18277           s/.*/./; q'`
18278   as_dir="$ac_dir"; as_fn_mkdir_p
18279   ac_builddir=.
18280
18281 case "$ac_dir" in
18282 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18283 *)
18284   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18285   # A ".." for each directory in $ac_dir_suffix.
18286   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18287   case $ac_top_builddir_sub in
18288   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18289   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18290   esac ;;
18291 esac
18292 ac_abs_top_builddir=$ac_pwd
18293 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18294 # for backward compatibility:
18295 ac_top_builddir=$ac_top_build_prefix
18296
18297 case $srcdir in
18298   .)  # We are building in place.
18299     ac_srcdir=.
18300     ac_top_srcdir=$ac_top_builddir_sub
18301     ac_abs_top_srcdir=$ac_pwd ;;
18302   [\\/]* | ?:[\\/]* )  # Absolute name.
18303     ac_srcdir=$srcdir$ac_dir_suffix;
18304     ac_top_srcdir=$srcdir
18305     ac_abs_top_srcdir=$srcdir ;;
18306   *) # Relative name.
18307     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18308     ac_top_srcdir=$ac_top_build_prefix$srcdir
18309     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18310 esac
18311 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18312
18313
18314   case $ac_mode in
18315   :F)
18316   #
18317   # CONFIG_FILE
18318   #
18319
18320   case $INSTALL in
18321   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18322   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18323   esac
18324   ac_MKDIR_P=$MKDIR_P
18325   case $MKDIR_P in
18326   [\\/$]* | ?:[\\/]* ) ;;
18327   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18328   esac
18329 _ACEOF
18330
18331 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18332 # If the template does not know about datarootdir, expand it.
18333 # FIXME: This hack should be removed a few years after 2.60.
18334 ac_datarootdir_hack=; ac_datarootdir_seen=
18335 ac_sed_dataroot='
18336 /datarootdir/ {
18337   p
18338   q
18339 }
18340 /@datadir@/p
18341 /@docdir@/p
18342 /@infodir@/p
18343 /@localedir@/p
18344 /@mandir@/p'
18345 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18346 *datarootdir*) ac_datarootdir_seen=yes;;
18347 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18348   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18349 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18350 _ACEOF
18351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18352   ac_datarootdir_hack='
18353   s&@datadir@&$datadir&g
18354   s&@docdir@&$docdir&g
18355   s&@infodir@&$infodir&g
18356   s&@localedir@&$localedir&g
18357   s&@mandir@&$mandir&g
18358   s&\\\${datarootdir}&$datarootdir&g' ;;
18359 esac
18360 _ACEOF
18361
18362 # Neutralize VPATH when `$srcdir' = `.'.
18363 # Shell code in configure.ac might set extrasub.
18364 # FIXME: do we really want to maintain this feature?
18365 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18366 ac_sed_extra="$ac_vpsub
18367 $extrasub
18368 _ACEOF
18369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18370 :t
18371 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18372 s|@configure_input@|$ac_sed_conf_input|;t t
18373 s&@top_builddir@&$ac_top_builddir_sub&;t t
18374 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18375 s&@srcdir@&$ac_srcdir&;t t
18376 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18377 s&@top_srcdir@&$ac_top_srcdir&;t t
18378 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18379 s&@builddir@&$ac_builddir&;t t
18380 s&@abs_builddir@&$ac_abs_builddir&;t t
18381 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18382 s&@INSTALL@&$ac_INSTALL&;t t
18383 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18384 $ac_datarootdir_hack
18385 "
18386 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
18387   || as_fn_error "could not create $ac_file" "$LINENO" 5
18388
18389 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18390   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
18391   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
18392   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18393 which seems to be undefined.  Please make sure it is defined." >&5
18394 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18395 which seems to be undefined.  Please make sure it is defined." >&2;}
18396
18397   rm -f "$tmp/stdin"
18398   case $ac_file in
18399   -) cat "$tmp/out" && rm -f "$tmp/out";;
18400   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
18401   esac \
18402   || as_fn_error "could not create $ac_file" "$LINENO" 5
18403  ;;
18404   :H)
18405   #
18406   # CONFIG_HEADER
18407   #
18408   if test x"$ac_file" != x-; then
18409     {
18410       $as_echo "/* $configure_input  */" \
18411       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
18412     } >"$tmp/config.h" \
18413       || as_fn_error "could not create $ac_file" "$LINENO" 5
18414     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
18415       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18416 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18417     else
18418       rm -f "$ac_file"
18419       mv "$tmp/config.h" "$ac_file" \
18420         || as_fn_error "could not create $ac_file" "$LINENO" 5
18421     fi
18422   else
18423     $as_echo "/* $configure_input  */" \
18424       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
18425       || as_fn_error "could not create -" "$LINENO" 5
18426   fi
18427 # Compute "$ac_file"'s index in $config_headers.
18428 _am_arg="$ac_file"
18429 _am_stamp_count=1
18430 for _am_header in $config_headers :; do
18431   case $_am_header in
18432     $_am_arg | $_am_arg:* )
18433       break ;;
18434     * )
18435       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18436   esac
18437 done
18438 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18439 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18440          X"$_am_arg" : 'X\(//\)[^/]' \| \
18441          X"$_am_arg" : 'X\(//\)$' \| \
18442          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18443 $as_echo X"$_am_arg" |
18444     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18445             s//\1/
18446             q
18447           }
18448           /^X\(\/\/\)[^/].*/{
18449             s//\1/
18450             q
18451           }
18452           /^X\(\/\/\)$/{
18453             s//\1/
18454             q
18455           }
18456           /^X\(\/\).*/{
18457             s//\1/
18458             q
18459           }
18460           s/.*/./; q'`/stamp-h$_am_stamp_count
18461  ;;
18462
18463   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18464 $as_echo "$as_me: executing $ac_file commands" >&6;}
18465  ;;
18466   esac
18467
18468
18469   case $ac_file$ac_mode in
18470     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18471   # Autoconf 2.62 quotes --file arguments for eval, but not when files
18472   # are listed without --file.  Let's play safe and only enable the eval
18473   # if we detect the quoting.
18474   case $CONFIG_FILES in
18475   *\'*) eval set x "$CONFIG_FILES" ;;
18476   *)   set x $CONFIG_FILES ;;
18477   esac
18478   shift
18479   for mf
18480   do
18481     # Strip MF so we end up with the name of the file.
18482     mf=`echo "$mf" | sed -e 's/:.*$//'`
18483     # Check whether this is an Automake generated Makefile or not.
18484     # We used to match only the files named `Makefile.in', but
18485     # some people rename them; so instead we look at the file content.
18486     # Grep'ing the first line is not enough: some people post-process
18487     # each Makefile.in and add a new line on top of each file to say so.
18488     # Grep'ing the whole file is not good either: AIX grep has a line
18489     # limit of 2048, but all sed's we know have understand at least 4000.
18490     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18491       dirpart=`$as_dirname -- "$mf" ||
18492 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18493          X"$mf" : 'X\(//\)[^/]' \| \
18494          X"$mf" : 'X\(//\)$' \| \
18495          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18496 $as_echo X"$mf" |
18497     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18498             s//\1/
18499             q
18500           }
18501           /^X\(\/\/\)[^/].*/{
18502             s//\1/
18503             q
18504           }
18505           /^X\(\/\/\)$/{
18506             s//\1/
18507             q
18508           }
18509           /^X\(\/\).*/{
18510             s//\1/
18511             q
18512           }
18513           s/.*/./; q'`
18514     else
18515       continue
18516     fi
18517     # Extract the definition of DEPDIR, am__include, and am__quote
18518     # from the Makefile without running `make'.
18519     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18520     test -z "$DEPDIR" && continue
18521     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18522     test -z "am__include" && continue
18523     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18524     # When using ansi2knr, U may be empty or an underscore; expand it
18525     U=`sed -n 's/^U = //p' < "$mf"`
18526     # Find all dependency output files, they are included files with
18527     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18528     # simplest approach to changing $(DEPDIR) to its actual value in the
18529     # expansion.
18530     for file in `sed -n "
18531       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18532          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
18533       # Make sure the directory exists.
18534       test -f "$dirpart/$file" && continue
18535       fdir=`$as_dirname -- "$file" ||
18536 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18537          X"$file" : 'X\(//\)[^/]' \| \
18538          X"$file" : 'X\(//\)$' \| \
18539          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18540 $as_echo X"$file" |
18541     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18542             s//\1/
18543             q
18544           }
18545           /^X\(\/\/\)[^/].*/{
18546             s//\1/
18547             q
18548           }
18549           /^X\(\/\/\)$/{
18550             s//\1/
18551             q
18552           }
18553           /^X\(\/\).*/{
18554             s//\1/
18555             q
18556           }
18557           s/.*/./; q'`
18558       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18559       # echo "creating $dirpart/$file"
18560       echo '# dummy' > "$dirpart/$file"
18561     done
18562   done
18563 }
18564  ;;
18565     "libtool":C)
18566
18567     # See if we are running on zsh, and set the options which allow our
18568     # commands through without removal of \ escapes.
18569     if test -n "${ZSH_VERSION+set}" ; then
18570       setopt NO_GLOB_SUBST
18571     fi
18572
18573     cfgfile="${ofile}T"
18574     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18575     $RM "$cfgfile"
18576
18577     cat <<_LT_EOF >> "$cfgfile"
18578 #! $SHELL
18579
18580 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18581 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18583 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18584 #
18585 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18586 #                 2006, 2007, 2008 Free Software Foundation, Inc.
18587 #   Written by Gordon Matzigkeit, 1996
18588 #
18589 #   This file is part of GNU Libtool.
18590 #
18591 # GNU Libtool is free software; you can redistribute it and/or
18592 # modify it under the terms of the GNU General Public License as
18593 # published by the Free Software Foundation; either version 2 of
18594 # the License, or (at your option) any later version.
18595 #
18596 # As a special exception to the GNU General Public License,
18597 # if you distribute this file as part of a program or library that
18598 # is built using GNU Libtool, you may include this file under the
18599 # same distribution terms that you use for the rest of that program.
18600 #
18601 # GNU Libtool is distributed in the hope that it will be useful,
18602 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18603 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18604 # GNU General Public License for more details.
18605 #
18606 # You should have received a copy of the GNU General Public License
18607 # along with GNU Libtool; see the file COPYING.  If not, a copy
18608 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18609 # obtained by writing to the Free Software Foundation, Inc.,
18610 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18611
18612
18613 # The names of the tagged configurations supported by this script.
18614 available_tags=""
18615
18616 # ### BEGIN LIBTOOL CONFIG
18617
18618 # Whether or not to build static libraries.
18619 build_old_libs=$enable_static
18620
18621 # Whether or not to build shared libraries.
18622 build_libtool_libs=$enable_shared
18623
18624 # Which release of libtool.m4 was used?
18625 macro_version=$macro_version
18626 macro_revision=$macro_revision
18627
18628 # What type of objects to build.
18629 pic_mode=$pic_mode
18630
18631 # Whether or not to optimize for fast installation.
18632 fast_install=$enable_fast_install
18633
18634 # The host system.
18635 host_alias=$host_alias
18636 host=$host
18637 host_os=$host_os
18638
18639 # The build system.
18640 build_alias=$build_alias
18641 build=$build
18642 build_os=$build_os
18643
18644 # A sed program that does not truncate output.
18645 SED=$lt_SED
18646
18647 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18648 Xsed="\$SED -e 1s/^X//"
18649
18650 # A grep program that handles long lines.
18651 GREP=$lt_GREP
18652
18653 # An ERE matcher.
18654 EGREP=$lt_EGREP
18655
18656 # A literal string matcher.
18657 FGREP=$lt_FGREP
18658
18659 # A BSD- or MS-compatible name lister.
18660 NM=$lt_NM
18661
18662 # Whether we need soft or hard links.
18663 LN_S=$lt_LN_S
18664
18665 # What is the maximum length of a command?
18666 max_cmd_len=$max_cmd_len
18667
18668 # Object file suffix (normally "o").
18669 objext=$ac_objext
18670
18671 # Executable file suffix (normally "").
18672 exeext=$exeext
18673
18674 # whether the shell understands "unset".
18675 lt_unset=$lt_unset
18676
18677 # turn spaces into newlines.
18678 SP2NL=$lt_lt_SP2NL
18679
18680 # turn newlines into spaces.
18681 NL2SP=$lt_lt_NL2SP
18682
18683 # How to create reloadable object files.
18684 reload_flag=$lt_reload_flag
18685 reload_cmds=$lt_reload_cmds
18686
18687 # An object symbol dumper.
18688 OBJDUMP=$lt_OBJDUMP
18689
18690 # Method to check whether dependent libraries are shared objects.
18691 deplibs_check_method=$lt_deplibs_check_method
18692
18693 # Command to use when deplibs_check_method == "file_magic".
18694 file_magic_cmd=$lt_file_magic_cmd
18695
18696 # The archiver.
18697 AR=$lt_AR
18698 AR_FLAGS=$lt_AR_FLAGS
18699
18700 # A symbol stripping program.
18701 STRIP=$lt_STRIP
18702
18703 # Commands used to install an old-style archive.
18704 RANLIB=$lt_RANLIB
18705 old_postinstall_cmds=$lt_old_postinstall_cmds
18706 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18707
18708 # A C compiler.
18709 LTCC=$lt_CC
18710
18711 # LTCC compiler flags.
18712 LTCFLAGS=$lt_CFLAGS
18713
18714 # Take the output of nm and produce a listing of raw symbols and C names.
18715 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18716
18717 # Transform the output of nm in a proper C declaration.
18718 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18719
18720 # Transform the output of nm in a C name address pair.
18721 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18722
18723 # Transform the output of nm in a C name address pair when lib prefix is needed.
18724 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18725
18726 # The name of the directory that contains temporary libtool files.
18727 objdir=$objdir
18728
18729 # Shell to use when invoking shell scripts.
18730 SHELL=$lt_SHELL
18731
18732 # An echo program that does not interpret backslashes.
18733 ECHO=$lt_ECHO
18734
18735 # Used to examine libraries when file_magic_cmd begins with "file".
18736 MAGIC_CMD=$MAGIC_CMD
18737
18738 # Must we lock files when doing compilation?
18739 need_locks=$lt_need_locks
18740
18741 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18742 DSYMUTIL=$lt_DSYMUTIL
18743
18744 # Tool to change global to local symbols on Mac OS X.
18745 NMEDIT=$lt_NMEDIT
18746
18747 # Tool to manipulate fat objects and archives on Mac OS X.
18748 LIPO=$lt_LIPO
18749
18750 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18751 OTOOL=$lt_OTOOL
18752
18753 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18754 OTOOL64=$lt_OTOOL64
18755
18756 # Old archive suffix (normally "a").
18757 libext=$libext
18758
18759 # Shared library suffix (normally ".so").
18760 shrext_cmds=$lt_shrext_cmds
18761
18762 # The commands to extract the exported symbol list from a shared archive.
18763 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18764
18765 # Variables whose values should be saved in libtool wrapper scripts and
18766 # restored at link time.
18767 variables_saved_for_relink=$lt_variables_saved_for_relink
18768
18769 # Do we need the "lib" prefix for modules?
18770 need_lib_prefix=$need_lib_prefix
18771
18772 # Do we need a version for libraries?
18773 need_version=$need_version
18774
18775 # Library versioning type.
18776 version_type=$version_type
18777
18778 # Shared library runtime path variable.
18779 runpath_var=$runpath_var
18780
18781 # Shared library path variable.
18782 shlibpath_var=$shlibpath_var
18783
18784 # Is shlibpath searched before the hard-coded library search path?
18785 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18786
18787 # Format of library name prefix.
18788 libname_spec=$lt_libname_spec
18789
18790 # List of archive names.  First name is the real one, the rest are links.
18791 # The last name is the one that the linker finds with -lNAME
18792 library_names_spec=$lt_library_names_spec
18793
18794 # The coded name of the library, if different from the real name.
18795 soname_spec=$lt_soname_spec
18796
18797 # Command to use after installation of a shared archive.
18798 postinstall_cmds=$lt_postinstall_cmds
18799
18800 # Command to use after uninstallation of a shared archive.
18801 postuninstall_cmds=$lt_postuninstall_cmds
18802
18803 # Commands used to finish a libtool library installation in a directory.
18804 finish_cmds=$lt_finish_cmds
18805
18806 # As "finish_cmds", except a single script fragment to be evaled but
18807 # not shown.
18808 finish_eval=$lt_finish_eval
18809
18810 # Whether we should hardcode library paths into libraries.
18811 hardcode_into_libs=$hardcode_into_libs
18812
18813 # Compile-time system search path for libraries.
18814 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18815
18816 # Run-time system search path for libraries.
18817 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18818
18819 # Whether dlopen is supported.
18820 dlopen_support=$enable_dlopen
18821
18822 # Whether dlopen of programs is supported.
18823 dlopen_self=$enable_dlopen_self
18824
18825 # Whether dlopen of statically linked programs is supported.
18826 dlopen_self_static=$enable_dlopen_self_static
18827
18828 # Commands to strip libraries.
18829 old_striplib=$lt_old_striplib
18830 striplib=$lt_striplib
18831
18832
18833 # The linker used to build libraries.
18834 LD=$lt_LD
18835
18836 # Commands used to build an old-style archive.
18837 old_archive_cmds=$lt_old_archive_cmds
18838
18839 # A language specific compiler.
18840 CC=$lt_compiler
18841
18842 # Is the compiler the GNU compiler?
18843 with_gcc=$GCC
18844
18845 # Compiler flag to turn off builtin functions.
18846 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18847
18848 # How to pass a linker flag through the compiler.
18849 wl=$lt_lt_prog_compiler_wl
18850
18851 # Additional compiler flags for building library objects.
18852 pic_flag=$lt_lt_prog_compiler_pic
18853
18854 # Compiler flag to prevent dynamic linking.
18855 link_static_flag=$lt_lt_prog_compiler_static
18856
18857 # Does compiler simultaneously support -c and -o options?
18858 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18859
18860 # Whether or not to add -lc for building shared libraries.
18861 build_libtool_need_lc=$archive_cmds_need_lc
18862
18863 # Whether or not to disallow shared libs when runtime libs are static.
18864 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18865
18866 # Compiler flag to allow reflexive dlopens.
18867 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18868
18869 # Compiler flag to generate shared objects directly from archives.
18870 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18871
18872 # Whether the compiler copes with passing no objects directly.
18873 compiler_needs_object=$lt_compiler_needs_object
18874
18875 # Create an old-style archive from a shared archive.
18876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18877
18878 # Create a temporary old-style archive to link instead of a shared archive.
18879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18880
18881 # Commands used to build a shared archive.
18882 archive_cmds=$lt_archive_cmds
18883 archive_expsym_cmds=$lt_archive_expsym_cmds
18884
18885 # Commands used to build a loadable module if different from building
18886 # a shared archive.
18887 module_cmds=$lt_module_cmds
18888 module_expsym_cmds=$lt_module_expsym_cmds
18889
18890 # Whether we are building with GNU ld or not.
18891 with_gnu_ld=$lt_with_gnu_ld
18892
18893 # Flag that allows shared libraries with undefined symbols to be built.
18894 allow_undefined_flag=$lt_allow_undefined_flag
18895
18896 # Flag that enforces no undefined symbols.
18897 no_undefined_flag=$lt_no_undefined_flag
18898
18899 # Flag to hardcode \$libdir into a binary during linking.
18900 # This must work even if \$libdir does not exist
18901 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18902
18903 # If ld is used when linking, flag to hardcode \$libdir into a binary
18904 # during linking.  This must work even if \$libdir does not exist.
18905 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
18906
18907 # Whether we need a single "-rpath" flag with a separated argument.
18908 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18909
18910 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18911 # DIR into the resulting binary.
18912 hardcode_direct=$hardcode_direct
18913
18914 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18915 # DIR into the resulting binary and the resulting library dependency is
18916 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18917 # library is relocated.
18918 hardcode_direct_absolute=$hardcode_direct_absolute
18919
18920 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18921 # into the resulting binary.
18922 hardcode_minus_L=$hardcode_minus_L
18923
18924 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18925 # into the resulting binary.
18926 hardcode_shlibpath_var=$hardcode_shlibpath_var
18927
18928 # Set to "yes" if building a shared library automatically hardcodes DIR
18929 # into the library and all subsequent libraries and executables linked
18930 # against it.
18931 hardcode_automatic=$hardcode_automatic
18932
18933 # Set to yes if linker adds runtime paths of dependent libraries
18934 # to runtime path list.
18935 inherit_rpath=$inherit_rpath
18936
18937 # Whether libtool must link a program against all its dependency libraries.
18938 link_all_deplibs=$link_all_deplibs
18939
18940 # Fix the shell variable \$srcfile for the compiler.
18941 fix_srcfile_path=$lt_fix_srcfile_path
18942
18943 # Set to "yes" if exported symbols are required.
18944 always_export_symbols=$always_export_symbols
18945
18946 # The commands to list exported symbols.
18947 export_symbols_cmds=$lt_export_symbols_cmds
18948
18949 # Symbols that should not be listed in the preloaded symbols.
18950 exclude_expsyms=$lt_exclude_expsyms
18951
18952 # Symbols that must always be exported.
18953 include_expsyms=$lt_include_expsyms
18954
18955 # Commands necessary for linking programs (against libraries) with templates.
18956 prelink_cmds=$lt_prelink_cmds
18957
18958 # Specify filename containing input files.
18959 file_list_spec=$lt_file_list_spec
18960
18961 # How to hardcode a shared library path into an executable.
18962 hardcode_action=$hardcode_action
18963
18964 # ### END LIBTOOL CONFIG
18965
18966 _LT_EOF
18967
18968   case $host_os in
18969   aix3*)
18970     cat <<\_LT_EOF >> "$cfgfile"
18971 # AIX sometimes has problems with the GCC collect2 program.  For some
18972 # reason, if we set the COLLECT_NAMES environment variable, the problems
18973 # vanish in a puff of smoke.
18974 if test "X${COLLECT_NAMES+set}" != Xset; then
18975   COLLECT_NAMES=
18976   export COLLECT_NAMES
18977 fi
18978 _LT_EOF
18979     ;;
18980   esac
18981
18982
18983 ltmain="$ac_aux_dir/ltmain.sh"
18984
18985
18986   # We use sed instead of cat because bash on DJGPP gets confused if
18987   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
18988   # text mode, it properly converts lines to CR/LF.  This bash problem
18989   # is reportedly fixed, but why not run on old versions too?
18990   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
18991     || (rm -f "$cfgfile"; exit 1)
18992
18993   case $xsi_shell in
18994   yes)
18995     cat << \_LT_EOF >> "$cfgfile"
18996
18997 # func_dirname file append nondir_replacement
18998 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
18999 # otherwise set result to NONDIR_REPLACEMENT.
19000 func_dirname ()
19001 {
19002   case ${1} in
19003     */*) func_dirname_result="${1%/*}${2}" ;;
19004     *  ) func_dirname_result="${3}" ;;
19005   esac
19006 }
19007
19008 # func_basename file
19009 func_basename ()
19010 {
19011   func_basename_result="${1##*/}"
19012 }
19013
19014 # func_dirname_and_basename file append nondir_replacement
19015 # perform func_basename and func_dirname in a single function
19016 # call:
19017 #   dirname:  Compute the dirname of FILE.  If nonempty,
19018 #             add APPEND to the result, otherwise set result
19019 #             to NONDIR_REPLACEMENT.
19020 #             value returned in "$func_dirname_result"
19021 #   basename: Compute filename of FILE.
19022 #             value retuned in "$func_basename_result"
19023 # Implementation must be kept synchronized with func_dirname
19024 # and func_basename. For efficiency, we do not delegate to
19025 # those functions but instead duplicate the functionality here.
19026 func_dirname_and_basename ()
19027 {
19028   case ${1} in
19029     */*) func_dirname_result="${1%/*}${2}" ;;
19030     *  ) func_dirname_result="${3}" ;;
19031   esac
19032   func_basename_result="${1##*/}"
19033 }
19034
19035 # func_stripname prefix suffix name
19036 # strip PREFIX and SUFFIX off of NAME.
19037 # PREFIX and SUFFIX must not contain globbing or regex special
19038 # characters, hashes, percent signs, but SUFFIX may contain a leading
19039 # dot (in which case that matches only a dot).
19040 func_stripname ()
19041 {
19042   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19043   # positional parameters, so assign one to ordinary parameter first.
19044   func_stripname_result=${3}
19045   func_stripname_result=${func_stripname_result#"${1}"}
19046   func_stripname_result=${func_stripname_result%"${2}"}
19047 }
19048
19049 # func_opt_split
19050 func_opt_split ()
19051 {
19052   func_opt_split_opt=${1%%=*}
19053   func_opt_split_arg=${1#*=}
19054 }
19055
19056 # func_lo2o object
19057 func_lo2o ()
19058 {
19059   case ${1} in
19060     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19061     *)    func_lo2o_result=${1} ;;
19062   esac
19063 }
19064
19065 # func_xform libobj-or-source
19066 func_xform ()
19067 {
19068   func_xform_result=${1%.*}.lo
19069 }
19070
19071 # func_arith arithmetic-term...
19072 func_arith ()
19073 {
19074   func_arith_result=$(( $* ))
19075 }
19076
19077 # func_len string
19078 # STRING may not start with a hyphen.
19079 func_len ()
19080 {
19081   func_len_result=${#1}
19082 }
19083
19084 _LT_EOF
19085     ;;
19086   *) # Bourne compatible functions.
19087     cat << \_LT_EOF >> "$cfgfile"
19088
19089 # func_dirname file append nondir_replacement
19090 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
19091 # otherwise set result to NONDIR_REPLACEMENT.
19092 func_dirname ()
19093 {
19094   # Extract subdirectory from the argument.
19095   func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
19096   if test "X$func_dirname_result" = "X${1}"; then
19097     func_dirname_result="${3}"
19098   else
19099     func_dirname_result="$func_dirname_result${2}"
19100   fi
19101 }
19102
19103 # func_basename file
19104 func_basename ()
19105 {
19106   func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
19107 }
19108
19109
19110 # func_stripname prefix suffix name
19111 # strip PREFIX and SUFFIX off of NAME.
19112 # PREFIX and SUFFIX must not contain globbing or regex special
19113 # characters, hashes, percent signs, but SUFFIX may contain a leading
19114 # dot (in which case that matches only a dot).
19115 # func_strip_suffix prefix name
19116 func_stripname ()
19117 {
19118   case ${2} in
19119     .*) func_stripname_result=`$ECHO "X${3}" \
19120            | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
19121     *)  func_stripname_result=`$ECHO "X${3}" \
19122            | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
19123   esac
19124 }
19125
19126 # sed scripts:
19127 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19128 my_sed_long_arg='1s/^-[^=]*=//'
19129
19130 # func_opt_split
19131 func_opt_split ()
19132 {
19133   func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
19134   func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
19135 }
19136
19137 # func_lo2o object
19138 func_lo2o ()
19139 {
19140   func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
19141 }
19142
19143 # func_xform libobj-or-source
19144 func_xform ()
19145 {
19146   func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
19147 }
19148
19149 # func_arith arithmetic-term...
19150 func_arith ()
19151 {
19152   func_arith_result=`expr "$@"`
19153 }
19154
19155 # func_len string
19156 # STRING may not start with a hyphen.
19157 func_len ()
19158 {
19159   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19160 }
19161
19162 _LT_EOF
19163 esac
19164
19165 case $lt_shell_append in
19166   yes)
19167     cat << \_LT_EOF >> "$cfgfile"
19168
19169 # func_append var value
19170 # Append VALUE to the end of shell variable VAR.
19171 func_append ()
19172 {
19173   eval "$1+=\$2"
19174 }
19175 _LT_EOF
19176     ;;
19177   *)
19178     cat << \_LT_EOF >> "$cfgfile"
19179
19180 # func_append var value
19181 # Append VALUE to the end of shell variable VAR.
19182 func_append ()
19183 {
19184   eval "$1=\$$1\$2"
19185 }
19186
19187 _LT_EOF
19188     ;;
19189   esac
19190
19191
19192   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19193     || (rm -f "$cfgfile"; exit 1)
19194
19195   mv -f "$cfgfile" "$ofile" ||
19196     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19197   chmod +x "$ofile"
19198
19199  ;;
19200     "po-directories":C)
19201     for ac_file in $CONFIG_FILES; do
19202       # Support "outfile[:infile[:infile...]]"
19203       case "$ac_file" in
19204         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
19205       esac
19206       # PO directories have a Makefile.in generated from Makefile.in.in.
19207       case "$ac_file" in */Makefile.in)
19208         # Adjust a relative srcdir.
19209         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
19210         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
19211         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
19212         # In autoconf-2.13 it is called $ac_given_srcdir.
19213         # In autoconf-2.50 it is called $srcdir.
19214         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
19215         case "$ac_given_srcdir" in
19216           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
19217           /*) top_srcdir="$ac_given_srcdir" ;;
19218           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
19219         esac
19220         # Treat a directory as a PO directory if and only if it has a
19221         # POTFILES.in file. This allows packages to have multiple PO
19222         # directories under different names or in different locations.
19223         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
19224           rm -f "$ac_dir/POTFILES"
19225           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
19226           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
19227           POMAKEFILEDEPS="POTFILES.in"
19228           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
19229           # on $ac_dir but don't depend on user-specified configuration
19230           # parameters.
19231           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
19232             # The LINGUAS file contains the set of available languages.
19233             if test -n "$OBSOLETE_ALL_LINGUAS"; then
19234               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
19235             fi
19236             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
19237             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19238             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
19239             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
19240           else
19241             # The set of available languages was given in configure.in.
19242             # Hide the ALL_LINGUAS assigment from automake < 1.5.
19243             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
19244           fi
19245           # Compute POFILES
19246           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
19247           # Compute UPDATEPOFILES
19248           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
19249           # Compute DUMMYPOFILES
19250           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
19251           # Compute GMOFILES
19252           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
19253           case "$ac_given_srcdir" in
19254             .) srcdirpre= ;;
19255             *) srcdirpre='$(srcdir)/' ;;
19256           esac
19257           POFILES=
19258           UPDATEPOFILES=
19259           DUMMYPOFILES=
19260           GMOFILES=
19261           for lang in $ALL_LINGUAS; do
19262             POFILES="$POFILES $srcdirpre$lang.po"
19263             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
19264             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
19265             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
19266           done
19267           # CATALOGS depends on both $ac_dir and the user's LINGUAS
19268           # environment variable.
19269           INST_LINGUAS=
19270           if test -n "$ALL_LINGUAS"; then
19271             for presentlang in $ALL_LINGUAS; do
19272               useit=no
19273               if test "%UNSET%" != "$LINGUAS"; then
19274                 desiredlanguages="$LINGUAS"
19275               else
19276                 desiredlanguages="$ALL_LINGUAS"
19277               fi
19278               for desiredlang in $desiredlanguages; do
19279                 # Use the presentlang catalog if desiredlang is
19280                 #   a. equal to presentlang, or
19281                 #   b. a variant of presentlang (because in this case,
19282                 #      presentlang can be used as a fallback for messages
19283                 #      which are not translated in the desiredlang catalog).
19284                 case "$desiredlang" in
19285                   "$presentlang"*) useit=yes;;
19286                 esac
19287               done
19288               if test $useit = yes; then
19289                 INST_LINGUAS="$INST_LINGUAS $presentlang"
19290               fi
19291             done
19292           fi
19293           CATALOGS=
19294           if test -n "$INST_LINGUAS"; then
19295             for lang in $INST_LINGUAS; do
19296               CATALOGS="$CATALOGS $lang.gmo"
19297             done
19298           fi
19299           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
19300           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
19301           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
19302             if test -f "$f"; then
19303               case "$f" in
19304                 *.orig | *.bak | *~) ;;
19305                 *) cat "$f" >> "$ac_dir/Makefile" ;;
19306               esac
19307             fi
19308           done
19309         fi
19310         ;;
19311       esac
19312     done ;;
19313
19314   esac
19315 done # for ac_tag
19316
19317
19318 as_fn_exit 0
19319 _ACEOF
19320 ac_clean_files=$ac_clean_files_save
19321
19322 test $ac_write_fail = 0 ||
19323   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
19324
19325
19326 # configure is writing to config.log, and then calls config.status.
19327 # config.status does its own redirection, appending to config.log.
19328 # Unfortunately, on DOS this fails, as config.log is still kept open
19329 # by configure, so config.status won't be able to write to it; its
19330 # output is simply discarded.  So we exec the FD to /dev/null,
19331 # effectively closing config.log, so it can be properly (re)opened and
19332 # appended to by config.status.  When coming back to configure, we
19333 # need to make the FD available again.
19334 if test "$no_create" != yes; then
19335   ac_cs_success=:
19336   ac_config_status_args=
19337   test "$silent" = yes &&
19338     ac_config_status_args="$ac_config_status_args --quiet"
19339   exec 5>/dev/null
19340   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19341   exec 5>>config.log
19342   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19343   # would make configure fail if this is the last instruction.
19344   $ac_cs_success || as_fn_exit $?
19345 fi
19346 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19347   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19348 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19349 fi
19350