]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak update configure
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for bacula 5.2.0.
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
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
243   fi
244   exit 1
245 fi
246 fi
247 fi
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
253
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
261 {
262   { eval $1=; unset $1;}
263 }
264 as_unset=as_fn_unset
265
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
270 {
271   return $1
272 } # as_fn_set_status
273
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
278 {
279   set +e
280   as_fn_set_status $1
281   exit $1
282 } # as_fn_exit
283
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
288 {
289
290   case $as_dir in #(
291   -*) as_dir=./$as_dir;;
292   esac
293   test -d "$as_dir" || eval $as_mkdir_p || {
294     as_dirs=
295     while :; do
296       case $as_dir in #(
297       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298       *) as_qdir=$as_dir;;
299       esac
300       as_dirs="'$as_qdir' $as_dirs"
301       as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303          X"$as_dir" : 'X\(//\)[^/]' \| \
304          X"$as_dir" : 'X\(//\)$' \| \
305          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308             s//\1/
309             q
310           }
311           /^X\(\/\/\)[^/].*/{
312             s//\1/
313             q
314           }
315           /^X\(\/\/\)$/{
316             s//\1/
317             q
318           }
319           /^X\(\/\).*/{
320             s//\1/
321             q
322           }
323           s/.*/./; q'`
324       test -d "$as_dir" && break
325     done
326     test -z "$as_dirs" || eval "mkdir $as_dirs"
327   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328
329
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338   eval 'as_fn_append ()
339   {
340     eval $1+=\$2
341   }'
342 else
343   as_fn_append ()
344   {
345     eval $1=\$$1\$2
346   }
347 fi # as_fn_append
348
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355   eval 'as_fn_arith ()
356   {
357     as_val=$(( $* ))
358   }'
359 else
360   as_fn_arith ()
361   {
362     as_val=`expr "$@" || test $? -eq 1`
363   }
364 fi # as_fn_arith
365
366
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
373 {
374   as_status=$?; test $as_status -eq 0 && as_status=1
375   if test "$3"; then
376     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
378   fi
379   $as_echo "$as_me: error: $1" >&2
380   as_fn_exit $as_status
381 } # as_fn_error
382
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384    test "X`expr 00001 : '.*\(...\)'`" = X001; then
385   as_expr=expr
386 else
387   as_expr=false
388 fi
389
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391   as_basename=basename
392 else
393   as_basename=false
394 fi
395
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397   as_dirname=dirname
398 else
399   as_dirname=false
400 fi
401
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404          X"$0" : 'X\(//\)$' \| \
405          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407     sed '/^.*\/\([^/][^/]*\)\/*$/{
408             s//\1/
409             q
410           }
411           /^X\/\(\/\/\)$/{
412             s//\1/
413             q
414           }
415           /^X\/\(\/\).*/{
416             s//\1/
417             q
418           }
419           s/.*/./; q'`
420
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429   as_lineno_1=$LINENO as_lineno_1a=$LINENO
430   as_lineno_2=$LINENO as_lineno_2a=$LINENO
431   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434   sed -n '
435     p
436     /[$]LINENO/=
437   ' <$as_myself |
438     sed '
439       s/[$]LINENO.*/&-/
440       t lineno
441       b
442       :lineno
443       N
444       :loop
445       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446       t loop
447       s/-\n.*//
448     ' >$as_me.lineno &&
449   chmod +x "$as_me.lineno" ||
450     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452   # Don't try to exec as it changes $[0], causing all sort of problems
453   # (the dirname of $[0] is not the place where we might find the
454   # original and so on.  Autoconf is especially sensitive to this).
455   . "./$as_me.lineno"
456   # Exit status is that of the last command.
457   exit
458 }
459
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463   case `echo 'xy\c'` in
464   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
465   xy)  ECHO_C='\c';;
466   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467        ECHO_T=' ';;
468   esac;;
469 *)
470   ECHO_N='-n';;
471 esac
472
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475   rm -f conf$$.dir/conf$$.file
476 else
477   rm -f conf$$.dir
478   mkdir conf$$.dir 2>/dev/null
479 fi
480 if (echo >conf$$.file) 2>/dev/null; then
481   if ln -s conf$$.file conf$$ 2>/dev/null; then
482     as_ln_s='ln -s'
483     # ... but there are two gotchas:
484     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486     # In both cases, we have to default to `cp -p'.
487     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488       as_ln_s='cp -p'
489   elif ln conf$$.file conf$$ 2>/dev/null; then
490     as_ln_s=ln
491   else
492     as_ln_s='cp -p'
493   fi
494 else
495   as_ln_s='cp -p'
496 fi
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
499
500 if mkdir -p . 2>/dev/null; then
501   as_mkdir_p='mkdir -p "$as_dir"'
502 else
503   test -d ./-p && rmdir ./-p
504   as_mkdir_p=false
505 fi
506
507 if test -x / >/dev/null 2>&1; then
508   as_test_x='test -x'
509 else
510   if ls -dL / >/dev/null 2>&1; then
511     as_ls_L_option=L
512   else
513     as_ls_L_option=
514   fi
515   as_test_x='
516     eval sh -c '\''
517       if test -d "$1"; then
518         test -d "$1/.";
519       else
520         case $1 in #(
521         -*)set "./$1";;
522         esac;
523         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524         ???[sx]*):;;*)false;;esac;fi
525     '\'' sh
526   '
527 fi
528 as_executable_p=$as_test_x
529
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536 SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539 test -n "$DJDIR" || exec 7<&0 </dev/null
540 exec 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='bacula'
561 PACKAGE_TARNAME='bacula'
562 PACKAGE_VERSION='5.2.0'
563 PACKAGE_STRING='bacula 5.2.0'
564 PACKAGE_BUGREPORT=''
565 PACKAGE_URL=''
566
567 ac_unique_file="src/version.h"
568 # Factoring default headers for most tests.
569 ac_includes_default="\
570 #include <stdio.h>
571 #ifdef HAVE_SYS_TYPES_H
572 # include <sys/types.h>
573 #endif
574 #ifdef HAVE_SYS_STAT_H
575 # include <sys/stat.h>
576 #endif
577 #ifdef STDC_HEADERS
578 # include <stdlib.h>
579 # include <stddef.h>
580 #else
581 # ifdef HAVE_STDLIB_H
582 #  include <stdlib.h>
583 # endif
584 #endif
585 #ifdef HAVE_STRING_H
586 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #  include <memory.h>
588 # endif
589 # include <string.h>
590 #endif
591 #ifdef HAVE_STRINGS_H
592 # include <strings.h>
593 #endif
594 #ifdef HAVE_INTTYPES_H
595 # include <inttypes.h>
596 #endif
597 #ifdef HAVE_STDINT_H
598 # include <stdint.h>
599 #endif
600 #ifdef HAVE_UNISTD_H
601 # include <unistd.h>
602 #endif"
603
604 ac_header_list=
605 ac_subst_vars='LTLIBOBJS
606 COMPRESS_MANPAGES
607 DISTVER
608 DISTNAME
609 MACOSX
610 WIN32
611 PSCMD
612 TAPEDRIVE
613 OBJLIST
614 WRAPLIBS
615 WLDFLAGS
616 WCFLAGS
617 DLIB
618 DINCLUDE
619 DEBUG
620 FDLIBS
621 CAP_LIBS
622 LZOLIBS
623 ZLIBS
624 LIBOBJS
625 X_EXTRA_LIBS
626 X_LIBS
627 X_PRE_LIBS
628 X_CFLAGS
629 XMKMF
630 GETCONF
631 uncomment_dbi
632 SHARED_CATALOG_TARGETS
633 DEFAULT_DB_TYPE
634 DB_LIBS
635 DB_BACKENDS
636 SQLITE_BINDIR
637 SQLITE_INCLUDE
638 SQLITE_LIBS
639 MYSQL_BINDIR
640 MYSQL_INCLUDE
641 MYSQL_LIBS
642 POSTGRESQL_BINDIR
643 POSTGRESQL_INCLUDE
644 POSTGRESQL_LIBS
645 SBINPERM
646 fd_group
647 fd_user
648 sd_group
649 sd_user
650 dir_group
651 dir_user
652 db_port
653 db_password
654 db_user
655 db_name
656 mon_sd_password
657 mon_fd_password
658 mon_dir_password
659 sd_password
660 fd_password
661 dir_password
662 sd_port
663 fd_port
664 dir_port
665 baseport
666 subsysdir
667 piddir
668 smtp_host
669 job_email
670 dump_email
671 plugindir
672 logdir
673 bsrdir
674 scriptdir
675 hostname
676 basename
677 archivedir
678 working_dir
679 OPENSSL_INC
680 OPENSSL_LIBS
681 PYTHON_INCDIR
682 PYTHON_LIBS
683 READLINE_SRC
684 CONS_LDFLAGS
685 CONS_LIBS
686 CONS_SRC
687 CONS_OBJ
688 CONS_INC
689 STORED_DIR
690 DIR_TOOLS
691 DIRD_DIR
692 ALL_DIRS
693 STATIC_WX_CONS
694 STATIC_GNOME_CONS
695 STATIC_CONS
696 STATIC_DIR
697 STATIC_SD
698 STATIC_FD
699 TTOOL_LDFLAGS
700 TRAY_MONITOR_DIR
701 TRAY_MONITOR_LDFLAGS
702 TRAY_MONITOR_CPPFLAGS
703 WX_DIR
704 WXCONS_LDFLAGS
705 WXCONS_CPPFLAGS
706 QWT
707 QWT_LIB
708 QWT_LDFLAGS
709 QWT_INC
710 BAT_DIR
711 INTL_LIBTOOL_SUFFIX_PREFIX
712 INTLOBJS
713 GENCAT
714 INSTOBJEXT
715 DATADIRNAME
716 CATOBJEXT
717 USE_INCLUDED_LIBINTL
718 BUILD_INCLUDED_LIBINTL
719 INTLBISON
720 HAVE_WPRINTF
721 HAVE_SNPRINTF
722 HAVE_ASPRINTF
723 HAVE_POSIX_PRINTF
724 GLIBC21
725 ALLOCA
726 GLIBC2
727 POSUB
728 LTLIBINTL
729 LIBINTL
730 INTLLIBS
731 LTLIBICONV
732 LIBICONV
733 INTL_MACOSX_LIBS
734 MSGMERGE
735 XGETTEXT
736 GMSGFMT
737 MSGFMT
738 USE_NLS
739 MKINSTALLDIRS
740 SET_MAKE
741 HAVE_DARWIN_OS_FALSE
742 HAVE_DARWIN_OS_TRUE
743 HAVE_IRIX_OS_FALSE
744 HAVE_IRIX_OS_TRUE
745 HAVE_SGI_OS_FALSE
746 HAVE_SGI_OS_TRUE
747 HAVE_BSDI_OS_FALSE
748 HAVE_BSDI_OS_TRUE
749 HAVE_OPENBSD_OS_FALSE
750 HAVE_OPENBSD_OS_TRUE
751 HAVE_NETBSD_OS_FALSE
752 HAVE_NETBSD_OS_TRUE
753 HAVE_FREEBSD_OS_FALSE
754 HAVE_FREEBSD_OS_TRUE
755 HAVE_LINUX_OS_FALSE
756 HAVE_LINUX_OS_TRUE
757 HAVE_HPUX_OS_FALSE
758 HAVE_HPUX_OS_TRUE
759 HAVE_AIX_OS_FALSE
760 HAVE_AIX_OS_TRUE
761 HAVE_OSF1_OS_FALSE
762 HAVE_OSF1_OS_TRUE
763 HAVE_SUN_OS_FALSE
764 HAVE_SUN_OS_TRUE
765 INCLUDE_UNINSTALL_TARGET
766 INCLUDE_INSTALL_TARGET
767 FD_PLUGIN_DIR
768 QMAKE_LIBTOOL
769 LIBTOOL_CLEAN_TARGET
770 LIBTOOL_UNINSTALL_TARGET
771 LIBTOOL_INSTALL_TARGET
772 DEFAULT_SHARED_OBJECT_TYPE
773 DEFAULT_ARCHIVE_TYPE
774 DEFAULT_OBJECT_TYPE
775 CXXCPP
776 OTOOL64
777 OTOOL
778 LIPO
779 NMEDIT
780 DSYMUTIL
781 MANIFEST_TOOL
782 RANLIB
783 STRIP
784 ac_ct_AR
785 DLLTOOL
786 OBJDUMP
787 LN_S
788 NM
789 ac_ct_DUMPBIN
790 DUMPBIN
791 LD
792 FGREP
793 host_os
794 host_vendor
795 host_cpu
796 host
797 build_os
798 build_vendor
799 build_cpu
800 build
801 LIBTOOL
802 LOCAL_DEFS
803 LOCAL_LDFLAGS
804 LOCAL_CFLAGS
805 LOCAL_LIBS
806 MAKE_SHELL
807 ARFLAGS
808 AWK
809 PIDOF
810 CDRECORD
811 WXFLAGS
812 WXCONFIG
813 GMAKE
814 QMAKE
815 PKGCONFIG
816 DVDRWFORMAT
817 DVDRWMEDIAINFO
818 GROWISOFS
819 PYTHON
820 MKISOFS
821 DD
822 MTX
823 OPENSSL
824 AR
825 TBL
826 CMP
827 ECHO
828 SED
829 CP
830 REMOVE
831 MV
832 INSTALL_DATA
833 INSTALL_SCRIPT
834 INSTALL_PROGRAM
835 EGREP
836 GREP
837 CPP
838 ac_ct_CXX
839 CXXFLAGS
840 CXX
841 OBJEXT
842 EXEEXT
843 ac_ct_CC
844 CPPFLAGS
845 LDFLAGS
846 CFLAGS
847 CC
848 LIBBACFIND_LT_RELEASE
849 LIBBACCATS_LT_RELEASE
850 LIBBACSQL_LT_RELEASE
851 LIBBACPY_LT_RELEASE
852 LIBBACCFG_LT_RELEASE
853 LIBBAC_LT_RELEASE
854 BDB_VERSION
855 post_host
856 BACULA
857 LSMDATE
858 DATE
859 VERSION
860 FALSEPRG
861 TRUEPRG
862 WIN32TOPDIR
863 WIN32MAINDIR
864 WIN32BUILDDIR
865 TOP_DIR
866 BUILD_DIR
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_URL
898 PACKAGE_BUGREPORT
899 PACKAGE_STRING
900 PACKAGE_VERSION
901 PACKAGE_TARNAME
902 PACKAGE_NAME
903 PATH_SEPARATOR
904 SHELL'
905 ac_subst_files='MCOMMON'
906 ac_user_opts='
907 enable_option_checking
908 enable_libtool
909 enable_shared
910 enable_static
911 with_pic
912 enable_fast_install
913 with_gnu_ld
914 with_sysroot
915 enable_libtool_lock
916 enable_includes
917 enable_nls
918 enable_rpath
919 with_libiconv_prefix
920 with_libintl_prefix
921 with_included_gettext
922 enable_gnome
923 enable_bat
924 enable_bwx_console
925 enable_tray_monitor
926 enable_smartalloc
927 enable_lockmgr
928 enable_static_tools
929 enable_static_fd
930 enable_static_sd
931 enable_static_dir
932 enable_static_cons
933 enable_client_only
934 enable_build_dird
935 enable_build_stored
936 enable_conio
937 enable_ipv6
938 enable_readline
939 with_readline
940 with_python
941 with_tcp_wrappers
942 with_openssl
943 with_working_dir
944 with_archivedir
945 with_basename
946 with_hostname
947 with_scriptdir
948 with_bsrdir
949 with_logdir
950 with_plugindir
951 with_dump_email
952 with_job_email
953 with_smtp_host
954 with_pid_dir
955 with_subsys_dir
956 with_baseport
957 with_dir_password
958 with_fd_password
959 with_sd_password
960 with_mon_dir_password
961 with_mon_fd_password
962 with_mon_sd_password
963 with_db_name
964 with_db_user
965 with_db_password
966 with_db_port
967 with_dir_user
968 with_dir_group
969 with_sd_user
970 with_sd_group
971 with_fd_user
972 with_fd_group
973 with_sbin_perm
974 with_postgresql
975 with_mysql
976 with_embedded_mysql
977 with_sqlite3
978 enable_batch_insert
979 enable_largefile
980 with_x
981 enable_acl
982 enable_xattr
983 '
984       ac_precious_vars='build_alias
985 host_alias
986 target_alias
987 CC
988 CFLAGS
989 LDFLAGS
990 LIBS
991 CPPFLAGS
992 CXX
993 CXXFLAGS
994 CCC
995 CPP
996 WXCONFIG
997 WXFLAGS
998 CXXCPP
999 XMKMF'
1000
1001
1002 # Initialize some variables set by options.
1003 ac_init_help=
1004 ac_init_version=false
1005 ac_unrecognized_opts=
1006 ac_unrecognized_sep=
1007 # The variables have the same names as the options, with
1008 # dashes changed to underlines.
1009 cache_file=/dev/null
1010 exec_prefix=NONE
1011 no_create=
1012 no_recursion=
1013 prefix=NONE
1014 program_prefix=NONE
1015 program_suffix=NONE
1016 program_transform_name=s,x,x,
1017 silent=
1018 site=
1019 srcdir=
1020 verbose=
1021 x_includes=NONE
1022 x_libraries=NONE
1023
1024 # Installation directory options.
1025 # These are left unexpanded so users can "make install exec_prefix=/foo"
1026 # and all the variables that are supposed to be based on exec_prefix
1027 # by default will actually change.
1028 # Use braces instead of parens because sh, perl, etc. also accept them.
1029 # (The list follows the same order as the GNU Coding Standards.)
1030 bindir='${exec_prefix}/bin'
1031 sbindir='${exec_prefix}/sbin'
1032 libexecdir='${exec_prefix}/libexec'
1033 datarootdir='${prefix}/share'
1034 datadir='${datarootdir}'
1035 sysconfdir='${prefix}/etc'
1036 sharedstatedir='${prefix}/com'
1037 localstatedir='${prefix}/var'
1038 includedir='${prefix}/include'
1039 oldincludedir='/usr/include'
1040 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1041 infodir='${datarootdir}/info'
1042 htmldir='${docdir}'
1043 dvidir='${docdir}'
1044 pdfdir='${docdir}'
1045 psdir='${docdir}'
1046 libdir='${exec_prefix}/lib'
1047 localedir='${datarootdir}/locale'
1048 mandir='${datarootdir}/man'
1049
1050 ac_prev=
1051 ac_dashdash=
1052 for ac_option
1053 do
1054   # If the previous option needs an argument, assign it.
1055   if test -n "$ac_prev"; then
1056     eval $ac_prev=\$ac_option
1057     ac_prev=
1058     continue
1059   fi
1060
1061   case $ac_option in
1062   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1063   *)    ac_optarg=yes ;;
1064   esac
1065
1066   # Accept the important Cygnus configure options, so we can diagnose typos.
1067
1068   case $ac_dashdash$ac_option in
1069   --)
1070     ac_dashdash=yes ;;
1071
1072   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1073     ac_prev=bindir ;;
1074   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1075     bindir=$ac_optarg ;;
1076
1077   -build | --build | --buil | --bui | --bu)
1078     ac_prev=build_alias ;;
1079   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1080     build_alias=$ac_optarg ;;
1081
1082   -cache-file | --cache-file | --cache-fil | --cache-fi \
1083   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1084     ac_prev=cache_file ;;
1085   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1086   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1087     cache_file=$ac_optarg ;;
1088
1089   --config-cache | -C)
1090     cache_file=config.cache ;;
1091
1092   -datadir | --datadir | --datadi | --datad)
1093     ac_prev=datadir ;;
1094   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1095     datadir=$ac_optarg ;;
1096
1097   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1098   | --dataroo | --dataro | --datar)
1099     ac_prev=datarootdir ;;
1100   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1101   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1102     datarootdir=$ac_optarg ;;
1103
1104   -disable-* | --disable-*)
1105     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1106     # Reject names that are not valid shell variable names.
1107     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1108       as_fn_error "invalid feature name: $ac_useropt"
1109     ac_useropt_orig=$ac_useropt
1110     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1111     case $ac_user_opts in
1112       *"
1113 "enable_$ac_useropt"
1114 "*) ;;
1115       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1116          ac_unrecognized_sep=', ';;
1117     esac
1118     eval enable_$ac_useropt=no ;;
1119
1120   -docdir | --docdir | --docdi | --doc | --do)
1121     ac_prev=docdir ;;
1122   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1123     docdir=$ac_optarg ;;
1124
1125   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1126     ac_prev=dvidir ;;
1127   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1128     dvidir=$ac_optarg ;;
1129
1130   -enable-* | --enable-*)
1131     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1132     # Reject names that are not valid shell variable names.
1133     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1134       as_fn_error "invalid feature name: $ac_useropt"
1135     ac_useropt_orig=$ac_useropt
1136     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1137     case $ac_user_opts in
1138       *"
1139 "enable_$ac_useropt"
1140 "*) ;;
1141       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1142          ac_unrecognized_sep=', ';;
1143     esac
1144     eval enable_$ac_useropt=\$ac_optarg ;;
1145
1146   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1147   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1148   | --exec | --exe | --ex)
1149     ac_prev=exec_prefix ;;
1150   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1151   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1152   | --exec=* | --exe=* | --ex=*)
1153     exec_prefix=$ac_optarg ;;
1154
1155   -gas | --gas | --ga | --g)
1156     # Obsolete; use --with-gas.
1157     with_gas=yes ;;
1158
1159   -help | --help | --hel | --he | -h)
1160     ac_init_help=long ;;
1161   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1162     ac_init_help=recursive ;;
1163   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1164     ac_init_help=short ;;
1165
1166   -host | --host | --hos | --ho)
1167     ac_prev=host_alias ;;
1168   -host=* | --host=* | --hos=* | --ho=*)
1169     host_alias=$ac_optarg ;;
1170
1171   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1172     ac_prev=htmldir ;;
1173   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1174   | --ht=*)
1175     htmldir=$ac_optarg ;;
1176
1177   -includedir | --includedir | --includedi | --included | --include \
1178   | --includ | --inclu | --incl | --inc)
1179     ac_prev=includedir ;;
1180   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1181   | --includ=* | --inclu=* | --incl=* | --inc=*)
1182     includedir=$ac_optarg ;;
1183
1184   -infodir | --infodir | --infodi | --infod | --info | --inf)
1185     ac_prev=infodir ;;
1186   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1187     infodir=$ac_optarg ;;
1188
1189   -libdir | --libdir | --libdi | --libd)
1190     ac_prev=libdir ;;
1191   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1192     libdir=$ac_optarg ;;
1193
1194   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1195   | --libexe | --libex | --libe)
1196     ac_prev=libexecdir ;;
1197   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1198   | --libexe=* | --libex=* | --libe=*)
1199     libexecdir=$ac_optarg ;;
1200
1201   -localedir | --localedir | --localedi | --localed | --locale)
1202     ac_prev=localedir ;;
1203   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1204     localedir=$ac_optarg ;;
1205
1206   -localstatedir | --localstatedir | --localstatedi | --localstated \
1207   | --localstate | --localstat | --localsta | --localst | --locals)
1208     ac_prev=localstatedir ;;
1209   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1210   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1211     localstatedir=$ac_optarg ;;
1212
1213   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1214     ac_prev=mandir ;;
1215   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1216     mandir=$ac_optarg ;;
1217
1218   -nfp | --nfp | --nf)
1219     # Obsolete; use --without-fp.
1220     with_fp=no ;;
1221
1222   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1223   | --no-cr | --no-c | -n)
1224     no_create=yes ;;
1225
1226   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1227   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1228     no_recursion=yes ;;
1229
1230   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1231   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1232   | --oldin | --oldi | --old | --ol | --o)
1233     ac_prev=oldincludedir ;;
1234   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1235   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1236   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1237     oldincludedir=$ac_optarg ;;
1238
1239   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1240     ac_prev=prefix ;;
1241   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1242     prefix=$ac_optarg ;;
1243
1244   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1245   | --program-pre | --program-pr | --program-p)
1246     ac_prev=program_prefix ;;
1247   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1248   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1249     program_prefix=$ac_optarg ;;
1250
1251   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1252   | --program-suf | --program-su | --program-s)
1253     ac_prev=program_suffix ;;
1254   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1255   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1256     program_suffix=$ac_optarg ;;
1257
1258   -program-transform-name | --program-transform-name \
1259   | --program-transform-nam | --program-transform-na \
1260   | --program-transform-n | --program-transform- \
1261   | --program-transform | --program-transfor \
1262   | --program-transfo | --program-transf \
1263   | --program-trans | --program-tran \
1264   | --progr-tra | --program-tr | --program-t)
1265     ac_prev=program_transform_name ;;
1266   -program-transform-name=* | --program-transform-name=* \
1267   | --program-transform-nam=* | --program-transform-na=* \
1268   | --program-transform-n=* | --program-transform-=* \
1269   | --program-transform=* | --program-transfor=* \
1270   | --program-transfo=* | --program-transf=* \
1271   | --program-trans=* | --program-tran=* \
1272   | --progr-tra=* | --program-tr=* | --program-t=*)
1273     program_transform_name=$ac_optarg ;;
1274
1275   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1276     ac_prev=pdfdir ;;
1277   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1278     pdfdir=$ac_optarg ;;
1279
1280   -psdir | --psdir | --psdi | --psd | --ps)
1281     ac_prev=psdir ;;
1282   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1283     psdir=$ac_optarg ;;
1284
1285   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1286   | -silent | --silent | --silen | --sile | --sil)
1287     silent=yes ;;
1288
1289   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1290     ac_prev=sbindir ;;
1291   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1292   | --sbi=* | --sb=*)
1293     sbindir=$ac_optarg ;;
1294
1295   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1296   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1297   | --sharedst | --shareds | --shared | --share | --shar \
1298   | --sha | --sh)
1299     ac_prev=sharedstatedir ;;
1300   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1301   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1302   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1303   | --sha=* | --sh=*)
1304     sharedstatedir=$ac_optarg ;;
1305
1306   -site | --site | --sit)
1307     ac_prev=site ;;
1308   -site=* | --site=* | --sit=*)
1309     site=$ac_optarg ;;
1310
1311   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1312     ac_prev=srcdir ;;
1313   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1314     srcdir=$ac_optarg ;;
1315
1316   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1317   | --syscon | --sysco | --sysc | --sys | --sy)
1318     ac_prev=sysconfdir ;;
1319   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1320   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1321     sysconfdir=$ac_optarg ;;
1322
1323   -target | --target | --targe | --targ | --tar | --ta | --t)
1324     ac_prev=target_alias ;;
1325   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1326     target_alias=$ac_optarg ;;
1327
1328   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1329     verbose=yes ;;
1330
1331   -version | --version | --versio | --versi | --vers | -V)
1332     ac_init_version=: ;;
1333
1334   -with-* | --with-*)
1335     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1336     # Reject names that are not valid shell variable names.
1337     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1338       as_fn_error "invalid package name: $ac_useropt"
1339     ac_useropt_orig=$ac_useropt
1340     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1341     case $ac_user_opts in
1342       *"
1343 "with_$ac_useropt"
1344 "*) ;;
1345       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1346          ac_unrecognized_sep=', ';;
1347     esac
1348     eval with_$ac_useropt=\$ac_optarg ;;
1349
1350   -without-* | --without-*)
1351     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1352     # Reject names that are not valid shell variable names.
1353     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1354       as_fn_error "invalid package name: $ac_useropt"
1355     ac_useropt_orig=$ac_useropt
1356     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1357     case $ac_user_opts in
1358       *"
1359 "with_$ac_useropt"
1360 "*) ;;
1361       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1362          ac_unrecognized_sep=', ';;
1363     esac
1364     eval with_$ac_useropt=no ;;
1365
1366   --x)
1367     # Obsolete; use --with-x.
1368     with_x=yes ;;
1369
1370   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1371   | --x-incl | --x-inc | --x-in | --x-i)
1372     ac_prev=x_includes ;;
1373   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1374   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1375     x_includes=$ac_optarg ;;
1376
1377   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1378   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1379     ac_prev=x_libraries ;;
1380   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1381   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1382     x_libraries=$ac_optarg ;;
1383
1384   -*) as_fn_error "unrecognized option: \`$ac_option'
1385 Try \`$0 --help' for more information."
1386     ;;
1387
1388   *=*)
1389     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1390     # Reject names that are not valid shell variable names.
1391     case $ac_envvar in #(
1392       '' | [0-9]* | *[!_$as_cr_alnum]* )
1393       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1394     esac
1395     eval $ac_envvar=\$ac_optarg
1396     export $ac_envvar ;;
1397
1398   *)
1399     # FIXME: should be removed in autoconf 3.0.
1400     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1401     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1402       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1403     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1404     ;;
1405
1406   esac
1407 done
1408
1409 if test -n "$ac_prev"; then
1410   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1411   as_fn_error "missing argument to $ac_option"
1412 fi
1413
1414 if test -n "$ac_unrecognized_opts"; then
1415   case $enable_option_checking in
1416     no) ;;
1417     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1418     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1419   esac
1420 fi
1421
1422 # Check all directory arguments for consistency.
1423 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1424                 datadir sysconfdir sharedstatedir localstatedir includedir \
1425                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1426                 libdir localedir mandir
1427 do
1428   eval ac_val=\$$ac_var
1429   # Remove trailing slashes.
1430   case $ac_val in
1431     */ )
1432       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1433       eval $ac_var=\$ac_val;;
1434   esac
1435   # Be sure to have absolute directory names.
1436   case $ac_val in
1437     [\\/$]* | ?:[\\/]* )  continue;;
1438     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1439   esac
1440   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1441 done
1442
1443 # There might be people who depend on the old broken behavior: `$host'
1444 # used to hold the argument of --host etc.
1445 # FIXME: To remove some day.
1446 build=$build_alias
1447 host=$host_alias
1448 target=$target_alias
1449
1450 # FIXME: To remove some day.
1451 if test "x$host_alias" != x; then
1452   if test "x$build_alias" = x; then
1453     cross_compiling=maybe
1454     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1455     If a cross compiler is detected then cross compile mode will be used." >&2
1456   elif test "x$build_alias" != "x$host_alias"; then
1457     cross_compiling=yes
1458   fi
1459 fi
1460
1461 ac_tool_prefix=
1462 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1463
1464 test "$silent" = yes && exec 6>/dev/null
1465
1466
1467 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1468 ac_ls_di=`ls -di .` &&
1469 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1470   as_fn_error "working directory cannot be determined"
1471 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1472   as_fn_error "pwd does not report name of working directory"
1473
1474
1475 # Find the source files, if location was not specified.
1476 if test -z "$srcdir"; then
1477   ac_srcdir_defaulted=yes
1478   # Try the directory containing this script, then the parent directory.
1479   ac_confdir=`$as_dirname -- "$as_myself" ||
1480 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1481          X"$as_myself" : 'X\(//\)[^/]' \| \
1482          X"$as_myself" : 'X\(//\)$' \| \
1483          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1484 $as_echo X"$as_myself" |
1485     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1486             s//\1/
1487             q
1488           }
1489           /^X\(\/\/\)[^/].*/{
1490             s//\1/
1491             q
1492           }
1493           /^X\(\/\/\)$/{
1494             s//\1/
1495             q
1496           }
1497           /^X\(\/\).*/{
1498             s//\1/
1499             q
1500           }
1501           s/.*/./; q'`
1502   srcdir=$ac_confdir
1503   if test ! -r "$srcdir/$ac_unique_file"; then
1504     srcdir=..
1505   fi
1506 else
1507   ac_srcdir_defaulted=no
1508 fi
1509 if test ! -r "$srcdir/$ac_unique_file"; then
1510   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1511   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1512 fi
1513 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1514 ac_abs_confdir=`(
1515         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1516         pwd)`
1517 # When building in place, set srcdir=.
1518 if test "$ac_abs_confdir" = "$ac_pwd"; then
1519   srcdir=.
1520 fi
1521 # Remove unnecessary trailing slashes from srcdir.
1522 # Double slashes in file names in object file debugging info
1523 # mess up M-x gdb in Emacs.
1524 case $srcdir in
1525 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1526 esac
1527 for ac_var in $ac_precious_vars; do
1528   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1529   eval ac_env_${ac_var}_value=\$${ac_var}
1530   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1531   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1532 done
1533
1534 #
1535 # Report the --help message.
1536 #
1537 if test "$ac_init_help" = "long"; then
1538   # Omit some internal or obsolete options to make the list less imposing.
1539   # This message is too long to be a string in the A/UX 3.1 sh.
1540   cat <<_ACEOF
1541 \`configure' configures bacula 5.2.0 to adapt to many kinds of systems.
1542
1543 Usage: $0 [OPTION]... [VAR=VALUE]...
1544
1545 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1546 VAR=VALUE.  See below for descriptions of some of the useful variables.
1547
1548 Defaults for the options are specified in brackets.
1549
1550 Configuration:
1551   -h, --help              display this help and exit
1552       --help=short        display options specific to this package
1553       --help=recursive    display the short help of all the included packages
1554   -V, --version           display version information and exit
1555   -q, --quiet, --silent   do not print \`checking...' messages
1556       --cache-file=FILE   cache test results in FILE [disabled]
1557   -C, --config-cache      alias for \`--cache-file=config.cache'
1558   -n, --no-create         do not create output files
1559       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1560
1561 Installation directories:
1562   --prefix=PREFIX         install architecture-independent files in PREFIX
1563                           [$ac_default_prefix]
1564   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1565                           [PREFIX]
1566
1567 By default, \`make install' will install all the files in
1568 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1569 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1570 for instance \`--prefix=\$HOME'.
1571
1572 For better control, use the options below.
1573
1574 Fine tuning of the installation directories:
1575   --bindir=DIR            user executables [EPREFIX/bin]
1576   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1577   --libexecdir=DIR        program executables [EPREFIX/libexec]
1578   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1579   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1580   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1581   --libdir=DIR            object code libraries [EPREFIX/lib]
1582   --includedir=DIR        C header files [PREFIX/include]
1583   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1584   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1585   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1586   --infodir=DIR           info documentation [DATAROOTDIR/info]
1587   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1588   --mandir=DIR            man documentation [DATAROOTDIR/man]
1589   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1590   --htmldir=DIR           html documentation [DOCDIR]
1591   --dvidir=DIR            dvi documentation [DOCDIR]
1592   --pdfdir=DIR            pdf documentation [DOCDIR]
1593   --psdir=DIR             ps documentation [DOCDIR]
1594 _ACEOF
1595
1596   cat <<\_ACEOF
1597
1598 X features:
1599   --x-includes=DIR    X include files are in DIR
1600   --x-libraries=DIR   X library files are in DIR
1601
1602 System types:
1603   --build=BUILD     configure for building on BUILD [guessed]
1604   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1605 _ACEOF
1606 fi
1607
1608 if test -n "$ac_init_help"; then
1609   case $ac_init_help in
1610      short | recursive ) echo "Configuration of bacula 5.2.0:";;
1611    esac
1612   cat <<\_ACEOF
1613
1614 Optional Features:
1615   --disable-option-checking  ignore unrecognized --enable/--with options
1616   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1617   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1618   --enable-libtool        enable building using GNU libtool [default=yes]
1619   --enable-shared[=PKGS]  build shared libraries [default=yes]
1620   --enable-static[=PKGS]  build static libraries [default=no]
1621   --enable-fast-install[=PKGS]
1622                           optimize for fast installation [default=yes]
1623   --disable-libtool-lock  avoid locking (might break parallel builds)
1624   --enable-includes       enable installing of include files [default=no]
1625   --disable-nls           do not use Native Language Support
1626   --disable-rpath         do not hardcode runtime library paths
1627   --enable-gnome          enable build of bgnome-console GUI [default=no]
1628   --enable-bat            enable build of bat Qt4 GUI [default=no]
1629   --enable-bwx-console    enable build of wxWidgets console [default=no]
1630   --enable-tray-monitor   enable build of Gnome tray monitor (compatible with
1631                           KDE [default=no]
1632   --enable-smartalloc     enable smartalloc debugging support [default=no]
1633   --enable-lockmgr        enable lock manager support [default=no]
1634   --enable-static-tools   enable static tape tools [default=no]
1635   --enable-static-fd      enable static File daemon [default=no]
1636   --enable-static-sd      enable static Storage daemon [default=no]
1637   --enable-static-dir     enable static Director [default=no]
1638   --enable-static-cons    enable static Console [default=no]
1639   --enable-client-only    build client (File daemon) only [default=no]
1640   --enable-build-dird     enable building of dird (Director) [default=yes]
1641   --enable-build-stored   enable building of stored (Storage daemon)
1642                           [default=yes]
1643   --disable-conio         disable conio support [default=no]
1644   --enable-ipv6           enable ipv6 support [default=yes]
1645   --disable-readline      disable readline support [default=yes]
1646   --enable-batch-insert   enable the DB batch insert code [default=yes]
1647   --disable-largefile     omit support for large files
1648   --disable-acl           disable acl support [default=auto]
1649   --disable-xattr         disable xattr support [default=auto]
1650
1651 Optional Packages:
1652   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1653   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1654   --with-pic              try to use only PIC/non-PIC objects [default=use
1655                           both]
1656   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1657   --with-sysroot=DIR Search for dependent libraries within DIR
1658                         (or the compiler's sysroot if not specified).
1659   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1660   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1661   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1662   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1663   --without-libintl-prefix     don't search for libintl in includedir and libdir
1664   --with-included-gettext use the GNU gettext library included here
1665   --with-readline[=DIR]   specify readline library directory
1666   --with-python[=DIR]     Include Python support. DIR is the Python base
1667                           install directory, default is to search through a
1668                           number of common places for the Python files.
1669   --with-tcp-wrappers[=DIR]
1670                           enable tcpwrappers support
1671   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1672   --with-working-dir=PATH specify path of Bacula working directory
1673   --with-archivedir=PATH  specify path of SD archive directory
1674   --with-basename=RESNAME specify base resource name for daemons
1675   --with-hostname=RESNAME specify host name for daemons
1676   --with-scriptdir=PATH   specify path of Bacula scripts directory
1677   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1678   --with-logdir=PATH      specify path of Bacula logs directory
1679   --with-plugindir=PATH   specify path of Bacula plugins directory
1680   --with-dump-email=EMAIL dump email address
1681   --with-job-email=EMAIL  job output email address
1682   --with-smtp-host=HOST   SMTP mail host address
1683   --with-pid-dir=PATH     specify location of Bacula pid files
1684   --with-subsys-dir=PATH  specify location of Bacula subsys file
1685   --with-baseport=PORT    specify base port address for daemons
1686   --with-dir-password=PASSWORD
1687                           specify Director's password
1688   --with-fd-password=PASSWORD
1689                           specify Client's password
1690   --with-sd-password=PASSWORD
1691                           specify Storage daemon's password
1692   --with-mon-dir-password=PASSWORD
1693                           specify Director's password used by the monitor
1694   --with-mon-fd-password=PASSWORD
1695                           specify Client's password used by the monitor
1696   --with-mon-sd-password=PASSWORD
1697                           specify Storage daemon's password used by the
1698                           monitor
1699   --with-db-name=DBNAME   specify database name [default=bacula]
1700   --with-db-user=UNAME    specify database user [default=bacula]
1701   --with-db-password=PWD  specify database password [default=*none*]
1702   --with-db-port=DBPORT   specify a database port [default=null]
1703   --with-dir-user=USER    specify user for Director daemon
1704   --with-dir-group=GROUP  specify group for Director daemon
1705   --with-sd-user=USER     specify user for Storage daemon
1706   --with-sd-group=GROUP   specify group for Storage daemon
1707   --with-fd-user=USER     specify user for File daemon
1708   --with-fd-group=GROUP   specify group for File daemon
1709   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1710   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1711                           base install directory, [default=/usr/local/pgsql]
1712   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1713                           directory, default is to search through a number of
1714                           common places for the MySQL files.
1715   --with-embedded-mysql[=DIR]
1716                           Include MySQL support. DIR is the MySQL base install
1717                           directory, default is to search through a number of
1718                           common places for the MySQL files.
1719   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1720                           install directory, default is to search through a
1721                           number of common places for the SQLite3 files.
1722   --with-x                use the X Window System
1723
1724 Some influential environment variables:
1725   CC          C compiler command
1726   CFLAGS      C compiler flags
1727   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1728               nonstandard directory <lib dir>
1729   LIBS        libraries to pass to the linker, e.g. -l<library>
1730   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1731               you have headers in a nonstandard directory <include dir>
1732   CXX         C++ compiler command
1733   CXXFLAGS    C++ compiler flags
1734   CPP         C preprocessor
1735   WXCONFIG    wx-config command. On some systems, you must set it to
1736               wx-config-2.6 to use wxWidgets 2.6.
1737   WXFLAGS     Parameters to pass to wx-config (e.g. --unicode=no).
1738   CXXCPP      C++ preprocessor
1739   XMKMF       Path to xmkmf, Makefile generator for X Window System
1740
1741 Use these variables to override the choices made by `configure' or to help
1742 it to find libraries and programs with nonstandard names/locations.
1743
1744 Report bugs to the package provider.
1745 _ACEOF
1746 ac_status=$?
1747 fi
1748
1749 if test "$ac_init_help" = "recursive"; then
1750   # If there are subdirs, report their specific --help.
1751   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1752     test -d "$ac_dir" ||
1753       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1754       continue
1755     ac_builddir=.
1756
1757 case "$ac_dir" in
1758 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1759 *)
1760   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1761   # A ".." for each directory in $ac_dir_suffix.
1762   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1763   case $ac_top_builddir_sub in
1764   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1765   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1766   esac ;;
1767 esac
1768 ac_abs_top_builddir=$ac_pwd
1769 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1770 # for backward compatibility:
1771 ac_top_builddir=$ac_top_build_prefix
1772
1773 case $srcdir in
1774   .)  # We are building in place.
1775     ac_srcdir=.
1776     ac_top_srcdir=$ac_top_builddir_sub
1777     ac_abs_top_srcdir=$ac_pwd ;;
1778   [\\/]* | ?:[\\/]* )  # Absolute name.
1779     ac_srcdir=$srcdir$ac_dir_suffix;
1780     ac_top_srcdir=$srcdir
1781     ac_abs_top_srcdir=$srcdir ;;
1782   *) # Relative name.
1783     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1784     ac_top_srcdir=$ac_top_build_prefix$srcdir
1785     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1786 esac
1787 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1788
1789     cd "$ac_dir" || { ac_status=$?; continue; }
1790     # Check for guested configure.
1791     if test -f "$ac_srcdir/configure.gnu"; then
1792       echo &&
1793       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1794     elif test -f "$ac_srcdir/configure"; then
1795       echo &&
1796       $SHELL "$ac_srcdir/configure" --help=recursive
1797     else
1798       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1799     fi || ac_status=$?
1800     cd "$ac_pwd" || { ac_status=$?; break; }
1801   done
1802 fi
1803
1804 test -n "$ac_init_help" && exit $ac_status
1805 if $ac_init_version; then
1806   cat <<\_ACEOF
1807 bacula configure 5.2.0
1808 generated by GNU Autoconf 2.65
1809
1810 Copyright (C) 2009 Free Software Foundation, Inc.
1811 This configure script is free software; the Free Software Foundation
1812 gives unlimited permission to copy, distribute and modify it.
1813 _ACEOF
1814   exit
1815 fi
1816
1817 ## ------------------------ ##
1818 ## Autoconf initialization. ##
1819 ## ------------------------ ##
1820
1821 # ac_fn_c_try_compile LINENO
1822 # --------------------------
1823 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1824 ac_fn_c_try_compile ()
1825 {
1826   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827   rm -f conftest.$ac_objext
1828   if { { ac_try="$ac_compile"
1829 case "(($ac_try" in
1830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831   *) ac_try_echo=$ac_try;;
1832 esac
1833 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835   (eval "$ac_compile") 2>conftest.err
1836   ac_status=$?
1837   if test -s conftest.err; then
1838     grep -v '^ *+' conftest.err >conftest.er1
1839     cat conftest.er1 >&5
1840     mv -f conftest.er1 conftest.err
1841   fi
1842   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843   test $ac_status = 0; } && {
1844          test -z "$ac_c_werror_flag" ||
1845          test ! -s conftest.err
1846        } && test -s conftest.$ac_objext; then :
1847   ac_retval=0
1848 else
1849   $as_echo "$as_me: failed program was:" >&5
1850 sed 's/^/| /' conftest.$ac_ext >&5
1851
1852         ac_retval=1
1853 fi
1854   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1855   as_fn_set_status $ac_retval
1856
1857 } # ac_fn_c_try_compile
1858
1859 # ac_fn_cxx_try_compile LINENO
1860 # ----------------------------
1861 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1862 ac_fn_cxx_try_compile ()
1863 {
1864   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865   rm -f conftest.$ac_objext
1866   if { { ac_try="$ac_compile"
1867 case "(($ac_try" in
1868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1869   *) ac_try_echo=$ac_try;;
1870 esac
1871 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1872 $as_echo "$ac_try_echo"; } >&5
1873   (eval "$ac_compile") 2>conftest.err
1874   ac_status=$?
1875   if test -s conftest.err; then
1876     grep -v '^ *+' conftest.err >conftest.er1
1877     cat conftest.er1 >&5
1878     mv -f conftest.er1 conftest.err
1879   fi
1880   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881   test $ac_status = 0; } && {
1882          test -z "$ac_cxx_werror_flag" ||
1883          test ! -s conftest.err
1884        } && test -s conftest.$ac_objext; then :
1885   ac_retval=0
1886 else
1887   $as_echo "$as_me: failed program was:" >&5
1888 sed 's/^/| /' conftest.$ac_ext >&5
1889
1890         ac_retval=1
1891 fi
1892   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893   as_fn_set_status $ac_retval
1894
1895 } # ac_fn_cxx_try_compile
1896
1897 # ac_fn_c_try_cpp LINENO
1898 # ----------------------
1899 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1900 ac_fn_c_try_cpp ()
1901 {
1902   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903   if { { ac_try="$ac_cpp conftest.$ac_ext"
1904 case "(($ac_try" in
1905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906   *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1911   ac_status=$?
1912   if test -s conftest.err; then
1913     grep -v '^ *+' conftest.err >conftest.er1
1914     cat conftest.er1 >&5
1915     mv -f conftest.er1 conftest.err
1916   fi
1917   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918   test $ac_status = 0; } >/dev/null && {
1919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1920          test ! -s conftest.err
1921        }; then :
1922   ac_retval=0
1923 else
1924   $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1926
1927     ac_retval=1
1928 fi
1929   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1930   as_fn_set_status $ac_retval
1931
1932 } # ac_fn_c_try_cpp
1933
1934 # ac_fn_c_try_link LINENO
1935 # -----------------------
1936 # Try to link conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_link ()
1938 {
1939   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940   rm -f conftest.$ac_objext conftest$ac_exeext
1941   if { { ac_try="$ac_link"
1942 case "(($ac_try" in
1943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944   *) ac_try_echo=$ac_try;;
1945 esac
1946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947 $as_echo "$ac_try_echo"; } >&5
1948   (eval "$ac_link") 2>conftest.err
1949   ac_status=$?
1950   if test -s conftest.err; then
1951     grep -v '^ *+' conftest.err >conftest.er1
1952     cat conftest.er1 >&5
1953     mv -f conftest.er1 conftest.err
1954   fi
1955   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1956   test $ac_status = 0; } && {
1957          test -z "$ac_c_werror_flag" ||
1958          test ! -s conftest.err
1959        } && test -s conftest$ac_exeext && {
1960          test "$cross_compiling" = yes ||
1961          $as_test_x conftest$ac_exeext
1962        }; then :
1963   ac_retval=0
1964 else
1965   $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.$ac_ext >&5
1967
1968         ac_retval=1
1969 fi
1970   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1971   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1972   # interfere with the next link command; also delete a directory that is
1973   # left behind by Apple's compiler.  We do this before executing the actions.
1974   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1975   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1976   as_fn_set_status $ac_retval
1977
1978 } # ac_fn_c_try_link
1979
1980 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1981 # -------------------------------------------------------
1982 # Tests whether HEADER exists and can be compiled using the include files in
1983 # INCLUDES, setting the cache variable VAR accordingly.
1984 ac_fn_c_check_header_compile ()
1985 {
1986   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1988 $as_echo_n "checking for $2... " >&6; }
1989 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1990   $as_echo_n "(cached) " >&6
1991 else
1992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h.  */
1994 $4
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998   eval "$3=yes"
1999 else
2000   eval "$3=no"
2001 fi
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 fi
2004 eval ac_res=\$$3
2005                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2008
2009 } # ac_fn_c_check_header_compile
2010
2011 # ac_fn_c_try_run LINENO
2012 # ----------------------
2013 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2014 # that executables *can* be run.
2015 ac_fn_c_try_run ()
2016 {
2017   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018   if { { ac_try="$ac_link"
2019 case "(($ac_try" in
2020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021   *) ac_try_echo=$ac_try;;
2022 esac
2023 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024 $as_echo "$ac_try_echo"; } >&5
2025   (eval "$ac_link") 2>&5
2026   ac_status=$?
2027   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2028   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2029   { { case "(($ac_try" in
2030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2031   *) ac_try_echo=$ac_try;;
2032 esac
2033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2034 $as_echo "$ac_try_echo"; } >&5
2035   (eval "$ac_try") 2>&5
2036   ac_status=$?
2037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038   test $ac_status = 0; }; }; then :
2039   ac_retval=0
2040 else
2041   $as_echo "$as_me: program exited with status $ac_status" >&5
2042        $as_echo "$as_me: failed program was:" >&5
2043 sed 's/^/| /' conftest.$ac_ext >&5
2044
2045        ac_retval=$ac_status
2046 fi
2047   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2048   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2049   as_fn_set_status $ac_retval
2050
2051 } # ac_fn_c_try_run
2052
2053 # ac_fn_c_check_func LINENO FUNC VAR
2054 # ----------------------------------
2055 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2056 ac_fn_c_check_func ()
2057 {
2058   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2062   $as_echo_n "(cached) " >&6
2063 else
2064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h.  */
2066 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2067    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2068 #define $2 innocuous_$2
2069
2070 /* System header to define __stub macros and hopefully few prototypes,
2071     which can conflict with char $2 (); below.
2072     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2073     <limits.h> exists even on freestanding compilers.  */
2074
2075 #ifdef __STDC__
2076 # include <limits.h>
2077 #else
2078 # include <assert.h>
2079 #endif
2080
2081 #undef $2
2082
2083 /* Override any GCC internal prototype to avoid an error.
2084    Use char because int might match the return type of a GCC
2085    builtin and then its argument prototype would still apply.  */
2086 #ifdef __cplusplus
2087 extern "C"
2088 #endif
2089 char $2 ();
2090 /* The GNU C library defines this for functions which it implements
2091     to always fail with ENOSYS.  Some functions are actually named
2092     something starting with __ and the normal name is an alias.  */
2093 #if defined __stub_$2 || defined __stub___$2
2094 choke me
2095 #endif
2096
2097 int
2098 main ()
2099 {
2100 return $2 ();
2101   ;
2102   return 0;
2103 }
2104 _ACEOF
2105 if ac_fn_c_try_link "$LINENO"; then :
2106   eval "$3=yes"
2107 else
2108   eval "$3=no"
2109 fi
2110 rm -f core conftest.err conftest.$ac_objext \
2111     conftest$ac_exeext conftest.$ac_ext
2112 fi
2113 eval ac_res=\$$3
2114                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2115 $as_echo "$ac_res" >&6; }
2116   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2117
2118 } # ac_fn_c_check_func
2119
2120 # ac_fn_cxx_try_cpp LINENO
2121 # ------------------------
2122 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_cpp ()
2124 {
2125   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126   if { { ac_try="$ac_cpp conftest.$ac_ext"
2127 case "(($ac_try" in
2128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2129   *) ac_try_echo=$ac_try;;
2130 esac
2131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2132 $as_echo "$ac_try_echo"; } >&5
2133   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2134   ac_status=$?
2135   if test -s conftest.err; then
2136     grep -v '^ *+' conftest.err >conftest.er1
2137     cat conftest.er1 >&5
2138     mv -f conftest.er1 conftest.err
2139   fi
2140   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2141   test $ac_status = 0; } >/dev/null && {
2142          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2143          test ! -s conftest.err
2144        }; then :
2145   ac_retval=0
2146 else
2147   $as_echo "$as_me: failed program was:" >&5
2148 sed 's/^/| /' conftest.$ac_ext >&5
2149
2150     ac_retval=1
2151 fi
2152   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153   as_fn_set_status $ac_retval
2154
2155 } # ac_fn_cxx_try_cpp
2156
2157 # ac_fn_cxx_try_link LINENO
2158 # -------------------------
2159 # Try to link conftest.$ac_ext, and return whether this succeeded.
2160 ac_fn_cxx_try_link ()
2161 {
2162   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2163   rm -f conftest.$ac_objext conftest$ac_exeext
2164   if { { ac_try="$ac_link"
2165 case "(($ac_try" in
2166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2167   *) ac_try_echo=$ac_try;;
2168 esac
2169 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2170 $as_echo "$ac_try_echo"; } >&5
2171   (eval "$ac_link") 2>conftest.err
2172   ac_status=$?
2173   if test -s conftest.err; then
2174     grep -v '^ *+' conftest.err >conftest.er1
2175     cat conftest.er1 >&5
2176     mv -f conftest.er1 conftest.err
2177   fi
2178   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2179   test $ac_status = 0; } && {
2180          test -z "$ac_cxx_werror_flag" ||
2181          test ! -s conftest.err
2182        } && test -s conftest$ac_exeext && {
2183          test "$cross_compiling" = yes ||
2184          $as_test_x conftest$ac_exeext
2185        }; then :
2186   ac_retval=0
2187 else
2188   $as_echo "$as_me: failed program was:" >&5
2189 sed 's/^/| /' conftest.$ac_ext >&5
2190
2191         ac_retval=1
2192 fi
2193   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2194   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2195   # interfere with the next link command; also delete a directory that is
2196   # left behind by Apple's compiler.  We do this before executing the actions.
2197   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2198   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2199   as_fn_set_status $ac_retval
2200
2201 } # ac_fn_cxx_try_link
2202
2203 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2204 # -------------------------------------------
2205 # Tests whether TYPE exists after having included INCLUDES, setting cache
2206 # variable VAR accordingly.
2207 ac_fn_c_check_type ()
2208 {
2209   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2211 $as_echo_n "checking for $2... " >&6; }
2212 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2213   $as_echo_n "(cached) " >&6
2214 else
2215   eval "$3=no"
2216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h.  */
2218 $4
2219 int
2220 main ()
2221 {
2222 if (sizeof ($2))
2223          return 0;
2224   ;
2225   return 0;
2226 }
2227 _ACEOF
2228 if ac_fn_c_try_compile "$LINENO"; then :
2229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2230 /* end confdefs.h.  */
2231 $4
2232 int
2233 main ()
2234 {
2235 if (sizeof (($2)))
2236             return 0;
2237   ;
2238   return 0;
2239 }
2240 _ACEOF
2241 if ac_fn_c_try_compile "$LINENO"; then :
2242
2243 else
2244   eval "$3=yes"
2245 fi
2246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 fi
2248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 fi
2250 eval ac_res=\$$3
2251                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2252 $as_echo "$ac_res" >&6; }
2253   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254
2255 } # ac_fn_c_check_type
2256
2257 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2258 # -------------------------------------------------------
2259 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2260 # the include files in INCLUDES and setting the cache variable VAR
2261 # accordingly.
2262 ac_fn_c_check_header_mongrel ()
2263 {
2264   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2266   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2267 $as_echo_n "checking for $2... " >&6; }
2268 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2269   $as_echo_n "(cached) " >&6
2270 fi
2271 eval ac_res=\$$3
2272                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273 $as_echo "$ac_res" >&6; }
2274 else
2275   # Is the header compilable?
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2277 $as_echo_n "checking $2 usability... " >&6; }
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h.  */
2280 $4
2281 #include <$2>
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   ac_header_compiler=yes
2285 else
2286   ac_header_compiler=no
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2290 $as_echo "$ac_header_compiler" >&6; }
2291
2292 # Is the header present?
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2294 $as_echo_n "checking $2 presence... " >&6; }
2295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2296 /* end confdefs.h.  */
2297 #include <$2>
2298 _ACEOF
2299 if ac_fn_c_try_cpp "$LINENO"; then :
2300   ac_header_preproc=yes
2301 else
2302   ac_header_preproc=no
2303 fi
2304 rm -f conftest.err conftest.$ac_ext
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2306 $as_echo "$ac_header_preproc" >&6; }
2307
2308 # So?  What about this header?
2309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2310   yes:no: )
2311     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2312 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2313     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2314 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2315     ;;
2316   no:yes:* )
2317     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2318 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2319     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2320 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2322 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2323     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2324 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2326 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2327     ;;
2328 esac
2329   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2330 $as_echo_n "checking for $2... " >&6; }
2331 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2332   $as_echo_n "(cached) " >&6
2333 else
2334   eval "$3=\$ac_header_compiler"
2335 fi
2336 eval ac_res=\$$3
2337                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2338 $as_echo "$ac_res" >&6; }
2339 fi
2340   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2341
2342 } # ac_fn_c_check_header_mongrel
2343
2344 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2345 # --------------------------------------------
2346 # Tries to find the compile-time value of EXPR in a program that includes
2347 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2348 # computed
2349 ac_fn_c_compute_int ()
2350 {
2351   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2352   if test "$cross_compiling" = yes; then
2353     # Depending upon the size, compute the lo and hi bounds.
2354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2355 /* end confdefs.h.  */
2356 $4
2357 int
2358 main ()
2359 {
2360 static int test_array [1 - 2 * !(($2) >= 0)];
2361 test_array [0] = 0
2362
2363   ;
2364   return 0;
2365 }
2366 _ACEOF
2367 if ac_fn_c_try_compile "$LINENO"; then :
2368   ac_lo=0 ac_mid=0
2369   while :; do
2370     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2371 /* end confdefs.h.  */
2372 $4
2373 int
2374 main ()
2375 {
2376 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2377 test_array [0] = 0
2378
2379   ;
2380   return 0;
2381 }
2382 _ACEOF
2383 if ac_fn_c_try_compile "$LINENO"; then :
2384   ac_hi=$ac_mid; break
2385 else
2386   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2387                         if test $ac_lo -le $ac_mid; then
2388                           ac_lo= ac_hi=
2389                           break
2390                         fi
2391                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2392 fi
2393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394   done
2395 else
2396   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2397 /* end confdefs.h.  */
2398 $4
2399 int
2400 main ()
2401 {
2402 static int test_array [1 - 2 * !(($2) < 0)];
2403 test_array [0] = 0
2404
2405   ;
2406   return 0;
2407 }
2408 _ACEOF
2409 if ac_fn_c_try_compile "$LINENO"; then :
2410   ac_hi=-1 ac_mid=-1
2411   while :; do
2412     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2413 /* end confdefs.h.  */
2414 $4
2415 int
2416 main ()
2417 {
2418 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2419 test_array [0] = 0
2420
2421   ;
2422   return 0;
2423 }
2424 _ACEOF
2425 if ac_fn_c_try_compile "$LINENO"; then :
2426   ac_lo=$ac_mid; break
2427 else
2428   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2429                         if test $ac_mid -le $ac_hi; then
2430                           ac_lo= ac_hi=
2431                           break
2432                         fi
2433                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2434 fi
2435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2436   done
2437 else
2438   ac_lo= ac_hi=
2439 fi
2440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2441 fi
2442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2443 # Binary search between lo and hi bounds.
2444 while test "x$ac_lo" != "x$ac_hi"; do
2445   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2447 /* end confdefs.h.  */
2448 $4
2449 int
2450 main ()
2451 {
2452 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2453 test_array [0] = 0
2454
2455   ;
2456   return 0;
2457 }
2458 _ACEOF
2459 if ac_fn_c_try_compile "$LINENO"; then :
2460   ac_hi=$ac_mid
2461 else
2462   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2463 fi
2464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2465 done
2466 case $ac_lo in #((
2467 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2468 '') ac_retval=1 ;;
2469 esac
2470   else
2471     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h.  */
2473 $4
2474 static long int longval () { return $2; }
2475 static unsigned long int ulongval () { return $2; }
2476 #include <stdio.h>
2477 #include <stdlib.h>
2478 int
2479 main ()
2480 {
2481
2482   FILE *f = fopen ("conftest.val", "w");
2483   if (! f)
2484     return 1;
2485   if (($2) < 0)
2486     {
2487       long int i = longval ();
2488       if (i != ($2))
2489         return 1;
2490       fprintf (f, "%ld", i);
2491     }
2492   else
2493     {
2494       unsigned long int i = ulongval ();
2495       if (i != ($2))
2496         return 1;
2497       fprintf (f, "%lu", i);
2498     }
2499   /* Do not output a trailing newline, as this causes \r\n confusion
2500      on some platforms.  */
2501   return ferror (f) || fclose (f) != 0;
2502
2503   ;
2504   return 0;
2505 }
2506 _ACEOF
2507 if ac_fn_c_try_run "$LINENO"; then :
2508   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2509 else
2510   ac_retval=1
2511 fi
2512 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2513   conftest.$ac_objext conftest.beam conftest.$ac_ext
2514 rm -f conftest.val
2515
2516   fi
2517   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2518   as_fn_set_status $ac_retval
2519
2520 } # ac_fn_c_compute_int
2521
2522 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2523 # ----------------------------------------------------
2524 # Tries to find if the field MEMBER exists in type AGGR, after including
2525 # INCLUDES, setting cache variable VAR accordingly.
2526 ac_fn_c_check_member ()
2527 {
2528   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2529   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2530 $as_echo_n "checking for $2.$3... " >&6; }
2531 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2532   $as_echo_n "(cached) " >&6
2533 else
2534   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2535 /* end confdefs.h.  */
2536 $5
2537 int
2538 main ()
2539 {
2540 static $2 ac_aggr;
2541 if (ac_aggr.$3)
2542 return 0;
2543   ;
2544   return 0;
2545 }
2546 _ACEOF
2547 if ac_fn_c_try_compile "$LINENO"; then :
2548   eval "$4=yes"
2549 else
2550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2551 /* end confdefs.h.  */
2552 $5
2553 int
2554 main ()
2555 {
2556 static $2 ac_aggr;
2557 if (sizeof ac_aggr.$3)
2558 return 0;
2559   ;
2560   return 0;
2561 }
2562 _ACEOF
2563 if ac_fn_c_try_compile "$LINENO"; then :
2564   eval "$4=yes"
2565 else
2566   eval "$4=no"
2567 fi
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569 fi
2570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 fi
2572 eval ac_res=\$$4
2573                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574 $as_echo "$ac_res" >&6; }
2575   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2576
2577 } # ac_fn_c_check_member
2578
2579 # ac_fn_c_check_decl LINENO SYMBOL VAR
2580 # ------------------------------------
2581 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2582 ac_fn_c_check_decl ()
2583 {
2584   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2585   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2586 $as_echo_n "checking whether $2 is declared... " >&6; }
2587 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2588   $as_echo_n "(cached) " >&6
2589 else
2590   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2591 /* end confdefs.h.  */
2592 $4
2593 int
2594 main ()
2595 {
2596 #ifndef $2
2597   (void) $2;
2598 #endif
2599
2600   ;
2601   return 0;
2602 }
2603 _ACEOF
2604 if ac_fn_c_try_compile "$LINENO"; then :
2605   eval "$3=yes"
2606 else
2607   eval "$3=no"
2608 fi
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 fi
2611 eval ac_res=\$$3
2612                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2613 $as_echo "$ac_res" >&6; }
2614   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2615
2616 } # ac_fn_c_check_decl
2617
2618 # ac_fn_cxx_try_run LINENO
2619 # ------------------------
2620 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2621 # that executables *can* be run.
2622 ac_fn_cxx_try_run ()
2623 {
2624   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2625   if { { ac_try="$ac_link"
2626 case "(($ac_try" in
2627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2628   *) ac_try_echo=$ac_try;;
2629 esac
2630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2631 $as_echo "$ac_try_echo"; } >&5
2632   (eval "$ac_link") 2>&5
2633   ac_status=$?
2634   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2635   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2636   { { case "(($ac_try" in
2637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2638   *) ac_try_echo=$ac_try;;
2639 esac
2640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2641 $as_echo "$ac_try_echo"; } >&5
2642   (eval "$ac_try") 2>&5
2643   ac_status=$?
2644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2645   test $ac_status = 0; }; }; then :
2646   ac_retval=0
2647 else
2648   $as_echo "$as_me: program exited with status $ac_status" >&5
2649        $as_echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2651
2652        ac_retval=$ac_status
2653 fi
2654   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2655   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2656   as_fn_set_status $ac_retval
2657
2658 } # ac_fn_cxx_try_run
2659
2660 # ac_fn_cxx_check_func LINENO FUNC VAR
2661 # ------------------------------------
2662 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2663 ac_fn_cxx_check_func ()
2664 {
2665   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 $as_echo_n "checking for $2... " >&6; }
2668 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2669   $as_echo_n "(cached) " >&6
2670 else
2671   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2672 /* end confdefs.h.  */
2673 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2674    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2675 #define $2 innocuous_$2
2676
2677 /* System header to define __stub macros and hopefully few prototypes,
2678     which can conflict with char $2 (); below.
2679     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2680     <limits.h> exists even on freestanding compilers.  */
2681
2682 #ifdef __STDC__
2683 # include <limits.h>
2684 #else
2685 # include <assert.h>
2686 #endif
2687
2688 #undef $2
2689
2690 /* Override any GCC internal prototype to avoid an error.
2691    Use char because int might match the return type of a GCC
2692    builtin and then its argument prototype would still apply.  */
2693 #ifdef __cplusplus
2694 extern "C"
2695 #endif
2696 char $2 ();
2697 /* The GNU C library defines this for functions which it implements
2698     to always fail with ENOSYS.  Some functions are actually named
2699     something starting with __ and the normal name is an alias.  */
2700 #if defined __stub_$2 || defined __stub___$2
2701 choke me
2702 #endif
2703
2704 int
2705 main ()
2706 {
2707 return $2 ();
2708   ;
2709   return 0;
2710 }
2711 _ACEOF
2712 if ac_fn_cxx_try_link "$LINENO"; then :
2713   eval "$3=yes"
2714 else
2715   eval "$3=no"
2716 fi
2717 rm -f core conftest.err conftest.$ac_objext \
2718     conftest$ac_exeext conftest.$ac_ext
2719 fi
2720 eval ac_res=\$$3
2721                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2722 $as_echo "$ac_res" >&6; }
2723   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2724
2725 } # ac_fn_cxx_check_func
2726 cat >config.log <<_ACEOF
2727 This file contains any messages produced by compilers while
2728 running configure, to aid debugging if configure makes a mistake.
2729
2730 It was created by bacula $as_me 5.2.0, which was
2731 generated by GNU Autoconf 2.65.  Invocation command line was
2732
2733   $ $0 $@
2734
2735 _ACEOF
2736 exec 5>>config.log
2737 {
2738 cat <<_ASUNAME
2739 ## --------- ##
2740 ## Platform. ##
2741 ## --------- ##
2742
2743 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2744 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2745 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2746 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2747 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2748
2749 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2750 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2751
2752 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2753 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2754 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2755 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2756 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2757 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2758 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2759
2760 _ASUNAME
2761
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765   IFS=$as_save_IFS
2766   test -z "$as_dir" && as_dir=.
2767     $as_echo "PATH: $as_dir"
2768   done
2769 IFS=$as_save_IFS
2770
2771 } >&5
2772
2773 cat >&5 <<_ACEOF
2774
2775
2776 ## ----------- ##
2777 ## Core tests. ##
2778 ## ----------- ##
2779
2780 _ACEOF
2781
2782
2783 # Keep a trace of the command line.
2784 # Strip out --no-create and --no-recursion so they do not pile up.
2785 # Strip out --silent because we don't want to record it for future runs.
2786 # Also quote any args containing shell meta-characters.
2787 # Make two passes to allow for proper duplicate-argument suppression.
2788 ac_configure_args=
2789 ac_configure_args0=
2790 ac_configure_args1=
2791 ac_must_keep_next=false
2792 for ac_pass in 1 2
2793 do
2794   for ac_arg
2795   do
2796     case $ac_arg in
2797     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2798     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2799     | -silent | --silent | --silen | --sile | --sil)
2800       continue ;;
2801     *\'*)
2802       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2803     esac
2804     case $ac_pass in
2805     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2806     2)
2807       as_fn_append ac_configure_args1 " '$ac_arg'"
2808       if test $ac_must_keep_next = true; then
2809         ac_must_keep_next=false # Got value, back to normal.
2810       else
2811         case $ac_arg in
2812           *=* | --config-cache | -C | -disable-* | --disable-* \
2813           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2814           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2815           | -with-* | --with-* | -without-* | --without-* | --x)
2816             case "$ac_configure_args0 " in
2817               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2818             esac
2819             ;;
2820           -* ) ac_must_keep_next=true ;;
2821         esac
2822       fi
2823       as_fn_append ac_configure_args " '$ac_arg'"
2824       ;;
2825     esac
2826   done
2827 done
2828 { ac_configure_args0=; unset ac_configure_args0;}
2829 { ac_configure_args1=; unset ac_configure_args1;}
2830
2831 # When interrupted or exit'd, cleanup temporary files, and complete
2832 # config.log.  We remove comments because anyway the quotes in there
2833 # would cause problems or look ugly.
2834 # WARNING: Use '\'' to represent an apostrophe within the trap.
2835 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2836 trap 'exit_status=$?
2837   # Save into config.log some information that might help in debugging.
2838   {
2839     echo
2840
2841     cat <<\_ASBOX
2842 ## ---------------- ##
2843 ## Cache variables. ##
2844 ## ---------------- ##
2845 _ASBOX
2846     echo
2847     # The following way of writing the cache mishandles newlines in values,
2848 (
2849   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2850     eval ac_val=\$$ac_var
2851     case $ac_val in #(
2852     *${as_nl}*)
2853       case $ac_var in #(
2854       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2855 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2856       esac
2857       case $ac_var in #(
2858       _ | IFS | as_nl) ;; #(
2859       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2860       *) { eval $ac_var=; unset $ac_var;} ;;
2861       esac ;;
2862     esac
2863   done
2864   (set) 2>&1 |
2865     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2866     *${as_nl}ac_space=\ *)
2867       sed -n \
2868         "s/'\''/'\''\\\\'\'''\''/g;
2869           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2870       ;; #(
2871     *)
2872       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2873       ;;
2874     esac |
2875     sort
2876 )
2877     echo
2878
2879     cat <<\_ASBOX
2880 ## ----------------- ##
2881 ## Output variables. ##
2882 ## ----------------- ##
2883 _ASBOX
2884     echo
2885     for ac_var in $ac_subst_vars
2886     do
2887       eval ac_val=\$$ac_var
2888       case $ac_val in
2889       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2890       esac
2891       $as_echo "$ac_var='\''$ac_val'\''"
2892     done | sort
2893     echo
2894
2895     if test -n "$ac_subst_files"; then
2896       cat <<\_ASBOX
2897 ## ------------------- ##
2898 ## File substitutions. ##
2899 ## ------------------- ##
2900 _ASBOX
2901       echo
2902       for ac_var in $ac_subst_files
2903       do
2904         eval ac_val=\$$ac_var
2905         case $ac_val in
2906         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2907         esac
2908         $as_echo "$ac_var='\''$ac_val'\''"
2909       done | sort
2910       echo
2911     fi
2912
2913     if test -s confdefs.h; then
2914       cat <<\_ASBOX
2915 ## ----------- ##
2916 ## confdefs.h. ##
2917 ## ----------- ##
2918 _ASBOX
2919       echo
2920       cat confdefs.h
2921       echo
2922     fi
2923     test "$ac_signal" != 0 &&
2924       $as_echo "$as_me: caught signal $ac_signal"
2925     $as_echo "$as_me: exit $exit_status"
2926   } >&5
2927   rm -f core *.core core.conftest.* &&
2928     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2929     exit $exit_status
2930 ' 0
2931 for ac_signal in 1 2 13 15; do
2932   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2933 done
2934 ac_signal=0
2935
2936 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2937 rm -f -r conftest* confdefs.h
2938
2939 $as_echo "/* confdefs.h */" > confdefs.h
2940
2941 # Predefined preprocessor variables.
2942
2943 cat >>confdefs.h <<_ACEOF
2944 #define PACKAGE_NAME "$PACKAGE_NAME"
2945 _ACEOF
2946
2947 cat >>confdefs.h <<_ACEOF
2948 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2949 _ACEOF
2950
2951 cat >>confdefs.h <<_ACEOF
2952 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2953 _ACEOF
2954
2955 cat >>confdefs.h <<_ACEOF
2956 #define PACKAGE_STRING "$PACKAGE_STRING"
2957 _ACEOF
2958
2959 cat >>confdefs.h <<_ACEOF
2960 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2961 _ACEOF
2962
2963 cat >>confdefs.h <<_ACEOF
2964 #define PACKAGE_URL "$PACKAGE_URL"
2965 _ACEOF
2966
2967
2968 # Let the site file select an alternate cache file if it wants to.
2969 # Prefer an explicitly selected file to automatically selected ones.
2970 ac_site_file1=NONE
2971 ac_site_file2=NONE
2972 if test -n "$CONFIG_SITE"; then
2973   ac_site_file1=$CONFIG_SITE
2974 elif test "x$prefix" != xNONE; then
2975   ac_site_file1=$prefix/share/config.site
2976   ac_site_file2=$prefix/etc/config.site
2977 else
2978   ac_site_file1=$ac_default_prefix/share/config.site
2979   ac_site_file2=$ac_default_prefix/etc/config.site
2980 fi
2981 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2982 do
2983   test "x$ac_site_file" = xNONE && continue
2984   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2985     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2986 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2987     sed 's/^/| /' "$ac_site_file" >&5
2988     . "$ac_site_file"
2989   fi
2990 done
2991
2992 if test -r "$cache_file"; then
2993   # Some versions of bash will fail to source /dev/null (special files
2994   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2995   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2996     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2997 $as_echo "$as_me: loading cache $cache_file" >&6;}
2998     case $cache_file in
2999       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3000       *)                      . "./$cache_file";;
3001     esac
3002   fi
3003 else
3004   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3005 $as_echo "$as_me: creating cache $cache_file" >&6;}
3006   >$cache_file
3007 fi
3008
3009 as_fn_append ac_header_list " stdlib.h"
3010 as_fn_append ac_header_list " unistd.h"
3011 as_fn_append ac_header_list " sys/param.h"
3012 # Check that the precious variables saved in the cache have kept the same
3013 # value.
3014 ac_cache_corrupted=false
3015 for ac_var in $ac_precious_vars; do
3016   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3017   eval ac_new_set=\$ac_env_${ac_var}_set
3018   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3019   eval ac_new_val=\$ac_env_${ac_var}_value
3020   case $ac_old_set,$ac_new_set in
3021     set,)
3022       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3023 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3024       ac_cache_corrupted=: ;;
3025     ,set)
3026       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3027 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3028       ac_cache_corrupted=: ;;
3029     ,);;
3030     *)
3031       if test "x$ac_old_val" != "x$ac_new_val"; then
3032         # differences in whitespace do not lead to failure.
3033         ac_old_val_w=`echo x $ac_old_val`
3034         ac_new_val_w=`echo x $ac_new_val`
3035         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3036           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3037 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3038           ac_cache_corrupted=:
3039         else
3040           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3041 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3042           eval $ac_var=\$ac_old_val
3043         fi
3044         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3045 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3046         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3047 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3048       fi;;
3049   esac
3050   # Pass precious variables to config.status.
3051   if test "$ac_new_set" = set; then
3052     case $ac_new_val in
3053     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3054     *) ac_arg=$ac_var=$ac_new_val ;;
3055     esac
3056     case " $ac_configure_args " in
3057       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3058       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3059     esac
3060   fi
3061 done
3062 if $ac_cache_corrupted; then
3063   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3066 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3067   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3068 fi
3069 ## -------------------- ##
3070 ## Main body of script. ##
3071 ## -------------------- ##
3072
3073 ac_ext=c
3074 ac_cpp='$CPP $CPPFLAGS'
3075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3078
3079
3080
3081
3082 BUILD_DIR=`pwd`
3083 cd ..
3084 TOP_DIR=`pwd`
3085 cd ${BUILD_DIR}
3086
3087
3088 ac_aux_dir=
3089 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3090   for ac_t in install-sh install.sh shtool; do
3091     if test -f "$ac_dir/$ac_t"; then
3092       ac_aux_dir=$ac_dir
3093       ac_install_sh="$ac_aux_dir/$ac_t -c"
3094       break 2
3095     fi
3096   done
3097 done
3098 if test -z "$ac_aux_dir"; then
3099   as_fn_error "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3100 fi
3101
3102 # These three variables are undocumented and unsupported,
3103 # and are intended to be withdrawn in a future Autoconf release.
3104 # They can cause serious problems if a builder's source tree is in a directory
3105 # whose full name contains unusual characters.
3106 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3107 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3108 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3109
3110
3111 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3112
3113
3114 WIN32BUILDDIR=${BUILD_DIR}/src/win32
3115 WIN32MAINDIR=${BUILD_DIR}
3116 WIN32TOPDIR=${TOP_DIR}
3117
3118
3119
3120
3121 for ac_prog in true
3122 do
3123   # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy $ac_prog; ac_word=$2
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126 $as_echo_n "checking for $ac_word... " >&6; }
3127 if test "${ac_cv_path_TRUEPRG+set}" = set; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   case $TRUEPRG in
3131   [\\/]* | ?:[\\/]*)
3132   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3133   ;;
3134   *)
3135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 for as_dir in $PATH
3137 do
3138   IFS=$as_save_IFS
3139   test -z "$as_dir" && as_dir=.
3140     for ac_exec_ext in '' $ac_executable_extensions; do
3141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3142     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3143     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3144     break 2
3145   fi
3146 done
3147   done
3148 IFS=$as_save_IFS
3149
3150   ;;
3151 esac
3152 fi
3153 TRUEPRG=$ac_cv_path_TRUEPRG
3154 if test -n "$TRUEPRG"; then
3155   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3156 $as_echo "$TRUEPRG" >&6; }
3157 else
3158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163   test -n "$TRUEPRG" && break
3164 done
3165 test -n "$TRUEPRG" || TRUEPRG=":"
3166
3167 for ac_prog in false
3168 do
3169   # Extract the first word of "$ac_prog", so it can be a program name with args.
3170 set dummy $ac_prog; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if test "${ac_cv_path_FALSEPRG+set}" = set; then :
3174   $as_echo_n "(cached) " >&6
3175 else
3176   case $FALSEPRG in
3177   [\\/]* | ?:[\\/]*)
3178   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3179   ;;
3180   *)
3181   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3182 for as_dir in $PATH
3183 do
3184   IFS=$as_save_IFS
3185   test -z "$as_dir" && as_dir=.
3186     for ac_exec_ext in '' $ac_executable_extensions; do
3187   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3188     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3189     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190     break 2
3191   fi
3192 done
3193   done
3194 IFS=$as_save_IFS
3195
3196   ;;
3197 esac
3198 fi
3199 FALSEPRG=$ac_cv_path_FALSEPRG
3200 if test -n "$FALSEPRG"; then
3201   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3202 $as_echo "$FALSEPRG" >&6; }
3203 else
3204   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205 $as_echo "no" >&6; }
3206 fi
3207
3208
3209   test -n "$FALSEPRG" && break
3210 done
3211 test -n "$FALSEPRG" || FALSEPRG=":"
3212
3213
3214
3215 post_host=
3216 if test "x$BACULA" != x; then
3217    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3218 fi
3219 BACULA=${BACULA:-Bacula}
3220 VERSION=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3221 DATE=`sed -n -e 's/^.* \t*BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3222 LSMDATE=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3223 BDB_VERSION=`sed -n -e 's/^.*BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3224
3225 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3226 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3227 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3228
3229 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3230 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3231 LIBBACPY_LT_RELEASE=${LIBBACPY_LT_RELEASE:-$VERSION}
3232
3233
3234 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3235 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3236
3237 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3238 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3239
3240
3241 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3242
3243 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3244
3245
3246 echo "configuring for ${BACULA} $VERSION ($DATE)"
3247
3248
3249
3250 ac_ext=c
3251 ac_cpp='$CPP $CPPFLAGS'
3252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3255 if test -n "$ac_tool_prefix"; then
3256   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if test "${ac_cv_prog_CC+set}" = set; then :
3261   $as_echo_n "(cached) " >&6
3262 else
3263   if test -n "$CC"; then
3264   ac_cv_prog_CC="$CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269   IFS=$as_save_IFS
3270   test -z "$as_dir" && as_dir=.
3271     for ac_exec_ext in '' $ac_executable_extensions; do
3272   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3274     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275     break 2
3276   fi
3277 done
3278   done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 CC=$ac_cv_prog_CC
3284 if test -n "$CC"; then
3285   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3286 $as_echo "$CC" >&6; }
3287 else
3288   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292
3293 fi
3294 if test -z "$ac_cv_prog_CC"; then
3295   ac_ct_CC=$CC
3296   # Extract the first word of "gcc", so it can be a program name with args.
3297 set dummy gcc; ac_word=$2
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3299 $as_echo_n "checking for $ac_word... " >&6; }
3300 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3301   $as_echo_n "(cached) " >&6
3302 else
3303   if test -n "$ac_ct_CC"; then
3304   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3305 else
3306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3307 for as_dir in $PATH
3308 do
3309   IFS=$as_save_IFS
3310   test -z "$as_dir" && as_dir=.
3311     for ac_exec_ext in '' $ac_executable_extensions; do
3312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3313     ac_cv_prog_ac_ct_CC="gcc"
3314     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3315     break 2
3316   fi
3317 done
3318   done
3319 IFS=$as_save_IFS
3320
3321 fi
3322 fi
3323 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3324 if test -n "$ac_ct_CC"; then
3325   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3326 $as_echo "$ac_ct_CC" >&6; }
3327 else
3328   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 fi
3331
3332   if test "x$ac_ct_CC" = x; then
3333     CC=""
3334   else
3335     case $cross_compiling:$ac_tool_warned in
3336 yes:)
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3338 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3339 ac_tool_warned=yes ;;
3340 esac
3341     CC=$ac_ct_CC
3342   fi
3343 else
3344   CC="$ac_cv_prog_CC"
3345 fi
3346
3347 if test -z "$CC"; then
3348           if test -n "$ac_tool_prefix"; then
3349     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3350 set dummy ${ac_tool_prefix}cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if test "${ac_cv_prog_CC+set}" = set; then :
3354   $as_echo_n "(cached) " >&6
3355 else
3356   if test -n "$CC"; then
3357   ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3360 for as_dir in $PATH
3361 do
3362   IFS=$as_save_IFS
3363   test -z "$as_dir" && as_dir=.
3364     for ac_exec_ext in '' $ac_executable_extensions; do
3365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3366     ac_cv_prog_CC="${ac_tool_prefix}cc"
3367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3368     break 2
3369   fi
3370 done
3371   done
3372 IFS=$as_save_IFS
3373
3374 fi
3375 fi
3376 CC=$ac_cv_prog_CC
3377 if test -n "$CC"; then
3378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3379 $as_echo "$CC" >&6; }
3380 else
3381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3383 fi
3384
3385
3386   fi
3387 fi
3388 if test -z "$CC"; then
3389   # Extract the first word of "cc", so it can be a program name with args.
3390 set dummy cc; ac_word=$2
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3392 $as_echo_n "checking for $ac_word... " >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then :
3394   $as_echo_n "(cached) " >&6
3395 else
3396   if test -n "$CC"; then
3397   ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399   ac_prog_rejected=no
3400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3401 for as_dir in $PATH
3402 do
3403   IFS=$as_save_IFS
3404   test -z "$as_dir" && as_dir=.
3405     for ac_exec_ext in '' $ac_executable_extensions; do
3406   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3407     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3408        ac_prog_rejected=yes
3409        continue
3410      fi
3411     ac_cv_prog_CC="cc"
3412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416   done
3417 IFS=$as_save_IFS
3418
3419 if test $ac_prog_rejected = yes; then
3420   # We found a bogon in the path, so make sure we never use it.
3421   set dummy $ac_cv_prog_CC
3422   shift
3423   if test $# != 0; then
3424     # We chose a different compiler from the bogus one.
3425     # However, it has the same basename, so the bogon will be chosen
3426     # first if we set CC to just the basename; use the full file name.
3427     shift
3428     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3429   fi
3430 fi
3431 fi
3432 fi
3433 CC=$ac_cv_prog_CC
3434 if test -n "$CC"; then
3435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436 $as_echo "$CC" >&6; }
3437 else
3438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 fi
3441
3442
3443 fi
3444 if test -z "$CC"; then
3445   if test -n "$ac_tool_prefix"; then
3446   for ac_prog in cl.exe
3447   do
3448     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3449 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451 $as_echo_n "checking for $ac_word... " >&6; }
3452 if test "${ac_cv_prog_CC+set}" = set; then :
3453   $as_echo_n "(cached) " >&6
3454 else
3455   if test -n "$CC"; then
3456   ac_cv_prog_CC="$CC" # Let the user override the test.
3457 else
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459 for as_dir in $PATH
3460 do
3461   IFS=$as_save_IFS
3462   test -z "$as_dir" && as_dir=.
3463     for ac_exec_ext in '' $ac_executable_extensions; do
3464   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3465     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3466     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467     break 2
3468   fi
3469 done
3470   done
3471 IFS=$as_save_IFS
3472
3473 fi
3474 fi
3475 CC=$ac_cv_prog_CC
3476 if test -n "$CC"; then
3477   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478 $as_echo "$CC" >&6; }
3479 else
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481 $as_echo "no" >&6; }
3482 fi
3483
3484
3485     test -n "$CC" && break
3486   done
3487 fi
3488 if test -z "$CC"; then
3489   ac_ct_CC=$CC
3490   for ac_prog in cl.exe
3491 do
3492   # Extract the first word of "$ac_prog", so it can be a program name with args.
3493 set dummy $ac_prog; ac_word=$2
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3495 $as_echo_n "checking for $ac_word... " >&6; }
3496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3497   $as_echo_n "(cached) " >&6
3498 else
3499   if test -n "$ac_ct_CC"; then
3500   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3501 else
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3503 for as_dir in $PATH
3504 do
3505   IFS=$as_save_IFS
3506   test -z "$as_dir" && as_dir=.
3507     for ac_exec_ext in '' $ac_executable_extensions; do
3508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509     ac_cv_prog_ac_ct_CC="$ac_prog"
3510     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3511     break 2
3512   fi
3513 done
3514   done
3515 IFS=$as_save_IFS
3516
3517 fi
3518 fi
3519 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3520 if test -n "$ac_ct_CC"; then
3521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3522 $as_echo "$ac_ct_CC" >&6; }
3523 else
3524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 fi
3527
3528
3529   test -n "$ac_ct_CC" && break
3530 done
3531
3532   if test "x$ac_ct_CC" = x; then
3533     CC=""
3534   else
3535     case $cross_compiling:$ac_tool_warned in
3536 yes:)
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3539 ac_tool_warned=yes ;;
3540 esac
3541     CC=$ac_ct_CC
3542   fi
3543 fi
3544
3545 fi
3546
3547
3548 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3550 as_fn_error "no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." "$LINENO" 5; }
3552
3553 # Provide some information about the compiler.
3554 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 set X $ac_compile
3556 ac_compiler=$2
3557 for ac_option in --version -v -V -qversion; do
3558   { { ac_try="$ac_compiler $ac_option >&5"
3559 case "(($ac_try" in
3560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3561   *) ac_try_echo=$ac_try;;
3562 esac
3563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3564 $as_echo "$ac_try_echo"; } >&5
3565   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3566   ac_status=$?
3567   if test -s conftest.err; then
3568     sed '10a\
3569 ... rest of stderr output deleted ...
3570          10q' conftest.err >conftest.er1
3571     cat conftest.er1 >&5
3572   fi
3573   rm -f conftest.er1 conftest.err
3574   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3575   test $ac_status = 0; }
3576 done
3577
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h.  */
3580
3581 int
3582 main ()
3583 {
3584
3585   ;
3586   return 0;
3587 }
3588 _ACEOF
3589 ac_clean_files_save=$ac_clean_files
3590 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3591 # Try to create an executable without -o first, disregard a.out.
3592 # It will help us diagnose broken compilers, and finding out an intuition
3593 # of exeext.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3595 $as_echo_n "checking whether the C compiler works... " >&6; }
3596 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3597
3598 # The possible output files:
3599 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600
3601 ac_rmfiles=
3602 for ac_file in $ac_files
3603 do
3604   case $ac_file in
3605     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3606     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3607   esac
3608 done
3609 rm -f $ac_rmfiles
3610
3611 if { { ac_try="$ac_link_default"
3612 case "(($ac_try" in
3613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614   *) ac_try_echo=$ac_try;;
3615 esac
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618   (eval "$ac_link_default") 2>&5
3619   ac_status=$?
3620   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3621   test $ac_status = 0; }; then :
3622   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3623 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3624 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3625 # so that the user can short-circuit this test for compilers unknown to
3626 # Autoconf.
3627 for ac_file in $ac_files ''
3628 do
3629   test -f "$ac_file" || continue
3630   case $ac_file in
3631     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3632         ;;
3633     [ab].out )
3634         # We found the default executable, but exeext='' is most
3635         # certainly right.
3636         break;;
3637     *.* )
3638         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3639         then :; else
3640            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3641         fi
3642         # We set ac_cv_exeext here because the later test for it is not
3643         # safe: cross compilers may not add the suffix if given an `-o'
3644         # argument, so we may need to know it at that point already.
3645         # Even if this section looks crufty: it has the advantage of
3646         # actually working.
3647         break;;
3648     * )
3649         break;;
3650   esac
3651 done
3652 test "$ac_cv_exeext" = no && ac_cv_exeext=
3653
3654 else
3655   ac_file=''
3656 fi
3657 if test -z "$ac_file"; then :
3658   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3659 $as_echo "no" >&6; }
3660 $as_echo "$as_me: failed program was:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3662
3663 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3664 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3665 { as_fn_set_status 77
3666 as_fn_error "C compiler cannot create executables
3667 See \`config.log' for more details." "$LINENO" 5; }; }
3668 else
3669   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685   *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689   (eval "$ac_link") 2>&5
3690   ac_status=$?
3691   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692   test $ac_status = 0; }; then :
3693   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698   test -f "$ac_file" || continue
3699   case $ac_file in
3700     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702           break;;
3703     * ) break;;
3704   esac
3705 done
3706 else
3707   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details." "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h.  */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726  return ferror (f) || fclose (f) != 0;
3727
3728   ;
3729   return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run.  If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738   { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741   *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745   (eval "$ac_link") 2>&5
3746   ac_status=$?
3747   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748   test $ac_status = 0; }
3749   if { ac_try='./conftest$ac_cv_exeext'
3750   { { case "(($ac_try" in
3751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752   *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756   (eval "$ac_try") 2>&5
3757   ac_status=$?
3758   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759   test $ac_status = 0; }; }; then
3760     cross_compiling=no
3761   else
3762     if test "$cross_compiling" = maybe; then
3763         cross_compiling=yes
3764     else
3765         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details." "$LINENO" 5; }
3770     fi
3771   fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if test "${ac_cv_objext+set}" = set; then :
3781   $as_echo_n "(cached) " >&6
3782 else
3783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h.  */
3785
3786 int
3787 main ()
3788 {
3789
3790   ;
3791   return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798   *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802   (eval "$ac_compile") 2>&5
3803   ac_status=$?
3804   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805   test $ac_status = 0; }; then :
3806   for ac_file in conftest.o conftest.obj conftest.*; do
3807   test -f "$ac_file" || continue;
3808   case $ac_file in
3809     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811        break;;
3812   esac
3813 done
3814 else
3815   $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details." "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3832   $as_echo_n "(cached) " >&6
3833 else
3834   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h.  */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841        choke me
3842 #endif
3843
3844   ;
3845   return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849   ac_compiler_gnu=yes
3850 else
3851   ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860   GCC=yes
3861 else
3862   GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if test "${ac_cv_prog_cc_g+set}" = set; then :
3869   $as_echo_n "(cached) " >&6
3870 else
3871   ac_save_c_werror_flag=$ac_c_werror_flag
3872    ac_c_werror_flag=yes
3873    ac_cv_prog_cc_g=no
3874    CFLAGS="-g"
3875    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h.  */
3877
3878 int
3879 main ()
3880 {
3881
3882   ;
3883   return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887   ac_cv_prog_cc_g=yes
3888 else
3889   CFLAGS=""
3890       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h.  */
3892
3893 int
3894 main ()
3895 {
3896
3897   ;
3898   return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904   ac_c_werror_flag=$ac_save_c_werror_flag
3905          CFLAGS="-g"
3906          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h.  */
3908
3909 int
3910 main ()
3911 {
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918   ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925    ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930   CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932   if test "$GCC" = yes; then
3933     CFLAGS="-g -O2"
3934   else
3935     CFLAGS="-g"
3936   fi
3937 else
3938   if test "$GCC" = yes; then
3939     CFLAGS="-O2"
3940   else
3941     CFLAGS=
3942   fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3947   $as_echo_n "(cached) " >&6
3948 else
3949   ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h.  */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 #include <sys/types.h>
3956 #include <sys/stat.h>
3957 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3958 struct buf { int x; };
3959 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3960 static char *e (p, i)
3961      char **p;
3962      int i;
3963 {
3964   return p[i];
3965 }
3966 static char *f (char * (*g) (char **, int), char **p, ...)
3967 {
3968   char *s;
3969   va_list v;
3970   va_start (v,p);
3971   s = g (p, va_arg (v,int));
3972   va_end (v);
3973   return s;
3974 }
3975
3976 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3977    function prototypes and stuff, but not '\xHH' hex character constants.
3978    These don't provoke an error unfortunately, instead are silently treated
3979    as 'x'.  The following induces an error, until -std is added to get
3980    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3981    array size at least.  It's necessary to write '\x00'==0 to get something
3982    that's true only with -std.  */
3983 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3984
3985 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3986    inside strings and character constants.  */
3987 #define FOO(x) 'x'
3988 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3989
3990 int test (int i, double x);
3991 struct s1 {int (*f) (int a);};
3992 struct s2 {int (*f) (double a);};
3993 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3994 int argc;
3995 char **argv;
3996 int
3997 main ()
3998 {
3999 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4000   ;
4001   return 0;
4002 }
4003 _ACEOF
4004 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4005         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4006 do
4007   CC="$ac_save_CC $ac_arg"
4008   if ac_fn_c_try_compile "$LINENO"; then :
4009   ac_cv_prog_cc_c89=$ac_arg
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext
4012   test "x$ac_cv_prog_cc_c89" != "xno" && break
4013 done
4014 rm -f conftest.$ac_ext
4015 CC=$ac_save_CC
4016
4017 fi
4018 # AC_CACHE_VAL
4019 case "x$ac_cv_prog_cc_c89" in
4020   x)
4021     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4022 $as_echo "none needed" >&6; } ;;
4023   xno)
4024     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4025 $as_echo "unsupported" >&6; } ;;
4026   *)
4027     CC="$CC $ac_cv_prog_cc_c89"
4028     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4029 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4030 esac
4031 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032
4033 fi
4034
4035 ac_ext=c
4036 ac_cpp='$CPP $CPPFLAGS'
4037 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4038 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4039 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4040
4041 ac_ext=cpp
4042 ac_cpp='$CXXCPP $CPPFLAGS'
4043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4046 if test -z "$CXX"; then
4047   if test -n "$CCC"; then
4048     CXX=$CCC
4049   else
4050     if test -n "$ac_tool_prefix"; then
4051   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4052   do
4053     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4054 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4056 $as_echo_n "checking for $ac_word... " >&6; }
4057 if test "${ac_cv_prog_CXX+set}" = set; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   if test -n "$CXX"; then
4061   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4062 else
4063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4064 for as_dir in $PATH
4065 do
4066   IFS=$as_save_IFS
4067   test -z "$as_dir" && as_dir=.
4068     for ac_exec_ext in '' $ac_executable_extensions; do
4069   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4070     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4071     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4072     break 2
4073   fi
4074 done
4075   done
4076 IFS=$as_save_IFS
4077
4078 fi
4079 fi
4080 CXX=$ac_cv_prog_CXX
4081 if test -n "$CXX"; then
4082   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4083 $as_echo "$CXX" >&6; }
4084 else
4085   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086 $as_echo "no" >&6; }
4087 fi
4088
4089
4090     test -n "$CXX" && break
4091   done
4092 fi
4093 if test -z "$CXX"; then
4094   ac_ct_CXX=$CXX
4095   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4096 do
4097   # Extract the first word of "$ac_prog", so it can be a program name with args.
4098 set dummy $ac_prog; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4102   $as_echo_n "(cached) " >&6
4103 else
4104   if test -n "$ac_ct_CXX"; then
4105   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4106 else
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108 for as_dir in $PATH
4109 do
4110   IFS=$as_save_IFS
4111   test -z "$as_dir" && as_dir=.
4112     for ac_exec_ext in '' $ac_executable_extensions; do
4113   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4114     ac_cv_prog_ac_ct_CXX="$ac_prog"
4115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4116     break 2
4117   fi
4118 done
4119   done
4120 IFS=$as_save_IFS
4121
4122 fi
4123 fi
4124 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4125 if test -n "$ac_ct_CXX"; then
4126   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4127 $as_echo "$ac_ct_CXX" >&6; }
4128 else
4129   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4131 fi
4132
4133
4134   test -n "$ac_ct_CXX" && break
4135 done
4136
4137   if test "x$ac_ct_CXX" = x; then
4138     CXX="g++"
4139   else
4140     case $cross_compiling:$ac_tool_warned in
4141 yes:)
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4144 ac_tool_warned=yes ;;
4145 esac
4146     CXX=$ac_ct_CXX
4147   fi
4148 fi
4149
4150   fi
4151 fi
4152 # Provide some information about the compiler.
4153 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4154 set X $ac_compile
4155 ac_compiler=$2
4156 for ac_option in --version -v -V -qversion; do
4157   { { ac_try="$ac_compiler $ac_option >&5"
4158 case "(($ac_try" in
4159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4160   *) ac_try_echo=$ac_try;;
4161 esac
4162 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4163 $as_echo "$ac_try_echo"; } >&5
4164   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4165   ac_status=$?
4166   if test -s conftest.err; then
4167     sed '10a\
4168 ... rest of stderr output deleted ...
4169          10q' conftest.err >conftest.er1
4170     cat conftest.er1 >&5
4171   fi
4172   rm -f conftest.er1 conftest.err
4173   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4174   test $ac_status = 0; }
4175 done
4176
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4178 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4179 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4180   $as_echo_n "(cached) " >&6
4181 else
4182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4183 /* end confdefs.h.  */
4184
4185 int
4186 main ()
4187 {
4188 #ifndef __GNUC__
4189        choke me
4190 #endif
4191
4192   ;
4193   return 0;
4194 }
4195 _ACEOF
4196 if ac_fn_cxx_try_compile "$LINENO"; then :
4197   ac_compiler_gnu=yes
4198 else
4199   ac_compiler_gnu=no
4200 fi
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4203
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4206 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4207 if test $ac_compiler_gnu = yes; then
4208   GXX=yes
4209 else
4210   GXX=
4211 fi
4212 ac_test_CXXFLAGS=${CXXFLAGS+set}
4213 ac_save_CXXFLAGS=$CXXFLAGS
4214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4215 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4216 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4217   $as_echo_n "(cached) " >&6
4218 else
4219   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4220    ac_cxx_werror_flag=yes
4221    ac_cv_prog_cxx_g=no
4222    CXXFLAGS="-g"
4223    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h.  */
4225
4226 int
4227 main ()
4228 {
4229
4230   ;
4231   return 0;
4232 }
4233 _ACEOF
4234 if ac_fn_cxx_try_compile "$LINENO"; then :
4235   ac_cv_prog_cxx_g=yes
4236 else
4237   CXXFLAGS=""
4238       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h.  */
4240
4241 int
4242 main ()
4243 {
4244
4245   ;
4246   return 0;
4247 }
4248 _ACEOF
4249 if ac_fn_cxx_try_compile "$LINENO"; then :
4250
4251 else
4252   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4253          CXXFLAGS="-g"
4254          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h.  */
4256
4257 int
4258 main ()
4259 {
4260
4261   ;
4262   return 0;
4263 }
4264 _ACEOF
4265 if ac_fn_cxx_try_compile "$LINENO"; then :
4266   ac_cv_prog_cxx_g=yes
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 fi
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4273    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4274 fi
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4276 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4277 if test "$ac_test_CXXFLAGS" = set; then
4278   CXXFLAGS=$ac_save_CXXFLAGS
4279 elif test $ac_cv_prog_cxx_g = yes; then
4280   if test "$GXX" = yes; then
4281     CXXFLAGS="-g -O2"
4282   else
4283     CXXFLAGS="-g"
4284   fi
4285 else
4286   if test "$GXX" = yes; then
4287     CXXFLAGS="-O2"
4288   else
4289     CXXFLAGS=
4290   fi
4291 fi
4292 ac_ext=c
4293 ac_cpp='$CPP $CPPFLAGS'
4294 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4295 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4296 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4297
4298 if test "x$CC" != xcc; then
4299   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4300 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4301 else
4302   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4303 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4304 fi
4305 set dummy $CC; ac_cc=`$as_echo "$2" |
4306                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4307 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4308   $as_echo_n "(cached) " >&6
4309 else
4310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h.  */
4312
4313 int
4314 main ()
4315 {
4316
4317   ;
4318   return 0;
4319 }
4320 _ACEOF
4321 # Make sure it works both with $CC and with simple cc.
4322 # We do the test twice because some compilers refuse to overwrite an
4323 # existing .o file with -o, though they will create one.
4324 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4325 rm -f conftest2.*
4326 if { { case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332   (eval "$ac_try") 2>&5
4333   ac_status=$?
4334   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335   test $ac_status = 0; } &&
4336    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338   *) ac_try_echo=$ac_try;;
4339 esac
4340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4341 $as_echo "$ac_try_echo"; } >&5
4342   (eval "$ac_try") 2>&5
4343   ac_status=$?
4344   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4345   test $ac_status = 0; };
4346 then
4347   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4348   if test "x$CC" != xcc; then
4349     # Test first that cc exists at all.
4350     if { ac_try='cc -c conftest.$ac_ext >&5'
4351   { { case "(($ac_try" in
4352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353   *) ac_try_echo=$ac_try;;
4354 esac
4355 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4356 $as_echo "$ac_try_echo"; } >&5
4357   (eval "$ac_try") 2>&5
4358   ac_status=$?
4359   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4360   test $ac_status = 0; }; }; then
4361       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4362       rm -f conftest2.*
4363       if { { case "(($ac_try" in
4364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4365   *) ac_try_echo=$ac_try;;
4366 esac
4367 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4368 $as_echo "$ac_try_echo"; } >&5
4369   (eval "$ac_try") 2>&5
4370   ac_status=$?
4371   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4372   test $ac_status = 0; } &&
4373          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4375   *) ac_try_echo=$ac_try;;
4376 esac
4377 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4378 $as_echo "$ac_try_echo"; } >&5
4379   (eval "$ac_try") 2>&5
4380   ac_status=$?
4381   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4382   test $ac_status = 0; };
4383       then
4384         # cc works too.
4385         :
4386       else
4387         # cc exists but doesn't like -o.
4388         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4389       fi
4390     fi
4391   fi
4392 else
4393   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4394 fi
4395 rm -f core conftest*
4396
4397 fi
4398 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4399   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4400 $as_echo "yes" >&6; }
4401 else
4402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4404
4405 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4406
4407 fi
4408
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4415 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4416 # On Suns, sometimes $CPP names a directory.
4417 if test -n "$CPP" && test -d "$CPP"; then
4418   CPP=
4419 fi
4420 if test -z "$CPP"; then
4421   if test "${ac_cv_prog_CPP+set}" = set; then :
4422   $as_echo_n "(cached) " >&6
4423 else
4424       # Double quotes because CPP needs to be expanded
4425     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4426     do
4427       ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430   # Use a header file that comes with gcc, so configuring glibc
4431   # with a fresh cross-compiler works.
4432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433   # <limits.h> exists even on freestanding compilers.
4434   # On the NeXT, cc -E runs the code through the compiler's parser,
4435   # not just through cpp. "Syntax error" is here to catch this case.
4436   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4437 /* end confdefs.h.  */
4438 #ifdef __STDC__
4439 # include <limits.h>
4440 #else
4441 # include <assert.h>
4442 #endif
4443                      Syntax error
4444 _ACEOF
4445 if ac_fn_c_try_cpp "$LINENO"; then :
4446
4447 else
4448   # Broken: fails on valid input.
4449 continue
4450 fi
4451 rm -f conftest.err conftest.$ac_ext
4452
4453   # OK, works on sane cases.  Now check whether nonexistent headers
4454   # can be detected and how.
4455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4456 /* end confdefs.h.  */
4457 #include <ac_nonexistent.h>
4458 _ACEOF
4459 if ac_fn_c_try_cpp "$LINENO"; then :
4460   # Broken: success on invalid input.
4461 continue
4462 else
4463   # Passes both tests.
4464 ac_preproc_ok=:
4465 break
4466 fi
4467 rm -f conftest.err conftest.$ac_ext
4468
4469 done
4470 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4471 rm -f conftest.err conftest.$ac_ext
4472 if $ac_preproc_ok; then :
4473   break
4474 fi
4475
4476     done
4477     ac_cv_prog_CPP=$CPP
4478
4479 fi
4480   CPP=$ac_cv_prog_CPP
4481 else
4482   ac_cv_prog_CPP=$CPP
4483 fi
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4485 $as_echo "$CPP" >&6; }
4486 ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4488 do
4489   # Use a header file that comes with gcc, so configuring glibc
4490   # with a fresh cross-compiler works.
4491   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492   # <limits.h> exists even on freestanding compilers.
4493   # On the NeXT, cc -E runs the code through the compiler's parser,
4494   # not just through cpp. "Syntax error" is here to catch this case.
4495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h.  */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502                      Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4505
4506 else
4507   # Broken: fails on valid input.
4508 continue
4509 fi
4510 rm -f conftest.err conftest.$ac_ext
4511
4512   # OK, works on sane cases.  Now check whether nonexistent headers
4513   # can be detected and how.
4514   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h.  */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519   # Broken: success on invalid input.
4520 continue
4521 else
4522   # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4525 fi
4526 rm -f conftest.err conftest.$ac_ext
4527
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532
4533 else
4534   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4537 See \`config.log' for more details." "$LINENO" 5; }
4538 fi
4539
4540 ac_ext=c
4541 ac_cpp='$CPP $CPPFLAGS'
4542 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4543 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4544 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4545
4546
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4548 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4549 if test "${ac_cv_path_GREP+set}" = set; then :
4550   $as_echo_n "(cached) " >&6
4551 else
4552   if test -z "$GREP"; then
4553   ac_path_GREP_found=false
4554   # Loop through the user's path and test for each of PROGNAME-LIST
4555   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4557 do
4558   IFS=$as_save_IFS
4559   test -z "$as_dir" && as_dir=.
4560     for ac_prog in grep ggrep; do
4561     for ac_exec_ext in '' $ac_executable_extensions; do
4562       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4563       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4564 # Check for GNU ac_path_GREP and select it if it is found.
4565   # Check for GNU $ac_path_GREP
4566 case `"$ac_path_GREP" --version 2>&1` in
4567 *GNU*)
4568   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4569 *)
4570   ac_count=0
4571   $as_echo_n 0123456789 >"conftest.in"
4572   while :
4573   do
4574     cat "conftest.in" "conftest.in" >"conftest.tmp"
4575     mv "conftest.tmp" "conftest.in"
4576     cp "conftest.in" "conftest.nl"
4577     $as_echo 'GREP' >> "conftest.nl"
4578     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4579     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4580     as_fn_arith $ac_count + 1 && ac_count=$as_val
4581     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4582       # Best one so far, save it but keep looking for a better one
4583       ac_cv_path_GREP="$ac_path_GREP"
4584       ac_path_GREP_max=$ac_count
4585     fi
4586     # 10*(2^10) chars as input seems more than enough
4587     test $ac_count -gt 10 && break
4588   done
4589   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4590 esac
4591
4592       $ac_path_GREP_found && break 3
4593     done
4594   done
4595   done
4596 IFS=$as_save_IFS
4597   if test -z "$ac_cv_path_GREP"; then
4598     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4599   fi
4600 else
4601   ac_cv_path_GREP=$GREP
4602 fi
4603
4604 fi
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4606 $as_echo "$ac_cv_path_GREP" >&6; }
4607  GREP="$ac_cv_path_GREP"
4608
4609
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4611 $as_echo_n "checking for egrep... " >&6; }
4612 if test "${ac_cv_path_EGREP+set}" = set; then :
4613   $as_echo_n "(cached) " >&6
4614 else
4615   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4616    then ac_cv_path_EGREP="$GREP -E"
4617    else
4618      if test -z "$EGREP"; then
4619   ac_path_EGREP_found=false
4620   # Loop through the user's path and test for each of PROGNAME-LIST
4621   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 do
4624   IFS=$as_save_IFS
4625   test -z "$as_dir" && as_dir=.
4626     for ac_prog in egrep; do
4627     for ac_exec_ext in '' $ac_executable_extensions; do
4628       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4629       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4630 # Check for GNU ac_path_EGREP and select it if it is found.
4631   # Check for GNU $ac_path_EGREP
4632 case `"$ac_path_EGREP" --version 2>&1` in
4633 *GNU*)
4634   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4635 *)
4636   ac_count=0
4637   $as_echo_n 0123456789 >"conftest.in"
4638   while :
4639   do
4640     cat "conftest.in" "conftest.in" >"conftest.tmp"
4641     mv "conftest.tmp" "conftest.in"
4642     cp "conftest.in" "conftest.nl"
4643     $as_echo 'EGREP' >> "conftest.nl"
4644     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4645     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4646     as_fn_arith $ac_count + 1 && ac_count=$as_val
4647     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4648       # Best one so far, save it but keep looking for a better one
4649       ac_cv_path_EGREP="$ac_path_EGREP"
4650       ac_path_EGREP_max=$ac_count
4651     fi
4652     # 10*(2^10) chars as input seems more than enough
4653     test $ac_count -gt 10 && break
4654   done
4655   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4656 esac
4657
4658       $ac_path_EGREP_found && break 3
4659     done
4660   done
4661   done
4662 IFS=$as_save_IFS
4663   if test -z "$ac_cv_path_EGREP"; then
4664     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665   fi
4666 else
4667   ac_cv_path_EGREP=$EGREP
4668 fi
4669
4670    fi
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4673 $as_echo "$ac_cv_path_EGREP" >&6; }
4674  EGREP="$ac_cv_path_EGREP"
4675
4676
4677 if test $ac_cv_c_compiler_gnu = yes; then
4678     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4679 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4680 if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
4681   $as_echo_n "(cached) " >&6
4682 else
4683     ac_pattern="Autoconf.*'x'"
4684   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685 /* end confdefs.h.  */
4686 #include <sgtty.h>
4687 Autoconf TIOCGETP
4688 _ACEOF
4689 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4690   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4691   ac_cv_prog_gcc_traditional=yes
4692 else
4693   ac_cv_prog_gcc_traditional=no
4694 fi
4695 rm -f conftest*
4696
4697
4698   if test $ac_cv_prog_gcc_traditional = no; then
4699     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <termio.h>
4702 Autoconf TCGETA
4703 _ACEOF
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4706   ac_cv_prog_gcc_traditional=yes
4707 fi
4708 rm -f conftest*
4709
4710   fi
4711 fi
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4713 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4714   if test $ac_cv_prog_gcc_traditional = yes; then
4715     CC="$CC -traditional"
4716   fi
4717 fi
4718
4719 BASECC=`basename $CC`
4720 have_gcc=no
4721 if test "x$BASECC" = xgcc; then
4722    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4723
4724    have_gcc=yes
4725 fi
4726 # Extract the first word of "$CXX", so it can be a program name with args.
4727 set dummy $CXX; ac_word=$2
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4729 $as_echo_n "checking for $ac_word... " >&6; }
4730 if test "${ac_cv_path_CXX+set}" = set; then :
4731   $as_echo_n "(cached) " >&6
4732 else
4733   case $CXX in
4734   [\\/]* | ?:[\\/]*)
4735   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4736   ;;
4737   *)
4738   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4739 for as_dir in $PATH
4740 do
4741   IFS=$as_save_IFS
4742   test -z "$as_dir" && as_dir=.
4743     for ac_exec_ext in '' $ac_executable_extensions; do
4744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4745     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4747     break 2
4748   fi
4749 done
4750   done
4751 IFS=$as_save_IFS
4752
4753   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4754   ;;
4755 esac
4756 fi
4757 CXX=$ac_cv_path_CXX
4758 if test -n "$CXX"; then
4759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4760 $as_echo "$CXX" >&6; }
4761 else
4762   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4763 $as_echo "no" >&6; }
4764 fi
4765
4766
4767 if test ! -e $CXX; then
4768    as_fn_error "Unable to find C++ compiler" "$LINENO" 5
4769 fi
4770
4771 # Find a good install program.  We prefer a C program (faster),
4772 # so one script is as good as another.  But avoid the broken or
4773 # incompatible versions:
4774 # SysV /etc/install, /usr/sbin/install
4775 # SunOS /usr/etc/install
4776 # IRIX /sbin/install
4777 # AIX /bin/install
4778 # AmigaOS /C/install, which installs bootblocks on floppy discs
4779 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4780 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4781 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4782 # OS/2's system install, which has a completely different semantic
4783 # ./install, which can be erroneously created by make from ./install.sh.
4784 # Reject install programs that cannot install multiple files.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4786 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4787 if test -z "$INSTALL"; then
4788 if test "${ac_cv_path_install+set}" = set; then :
4789   $as_echo_n "(cached) " >&6
4790 else
4791   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4792 for as_dir in $PATH
4793 do
4794   IFS=$as_save_IFS
4795   test -z "$as_dir" && as_dir=.
4796     # Account for people who put trailing slashes in PATH elements.
4797 case $as_dir/ in #((
4798   ./ | .// | /[cC]/* | \
4799   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4800   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4801   /usr/ucb/* ) ;;
4802   *)
4803     # OSF1 and SCO ODT 3.0 have their own names for install.
4804     # Don't use installbsd from OSF since it installs stuff as root
4805     # by default.
4806     for ac_prog in ginstall scoinst install; do
4807       for ac_exec_ext in '' $ac_executable_extensions; do
4808         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4809           if test $ac_prog = install &&
4810             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4811             # AIX install.  It has an incompatible calling convention.
4812             :
4813           elif test $ac_prog = install &&
4814             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4815             # program-specific install script used by HP pwplus--don't use.
4816             :
4817           else
4818             rm -rf conftest.one conftest.two conftest.dir
4819             echo one > conftest.one
4820             echo two > conftest.two
4821             mkdir conftest.dir
4822             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4823               test -s conftest.one && test -s conftest.two &&
4824               test -s conftest.dir/conftest.one &&
4825               test -s conftest.dir/conftest.two
4826             then
4827               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4828               break 3
4829             fi
4830           fi
4831         fi
4832       done
4833     done
4834     ;;
4835 esac
4836
4837   done
4838 IFS=$as_save_IFS
4839
4840 rm -rf conftest.one conftest.two conftest.dir
4841
4842 fi
4843   if test "${ac_cv_path_install+set}" = set; then
4844     INSTALL=$ac_cv_path_install
4845   else
4846     # As a last resort, use the slow shell script.  Don't cache a
4847     # value for INSTALL within a source directory, because that will
4848     # break other packages using the cache if that directory is
4849     # removed, or if the value is a relative name.
4850     INSTALL=$ac_install_sh
4851   fi
4852 fi
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4854 $as_echo "$INSTALL" >&6; }
4855
4856 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4857 # It thinks the first close brace ends the variable substitution.
4858 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4859
4860 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4861
4862 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4863
4864 # Extract the first word of "mv", so it can be a program name with args.
4865 set dummy mv; ac_word=$2
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4867 $as_echo_n "checking for $ac_word... " >&6; }
4868 if test "${ac_cv_path_MV+set}" = set; then :
4869   $as_echo_n "(cached) " >&6
4870 else
4871   case $MV in
4872   [\\/]* | ?:[\\/]*)
4873   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4874   ;;
4875   *)
4876   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877 for as_dir in $PATH
4878 do
4879   IFS=$as_save_IFS
4880   test -z "$as_dir" && as_dir=.
4881     for ac_exec_ext in '' $ac_executable_extensions; do
4882   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4883     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4884     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4885     break 2
4886   fi
4887 done
4888   done
4889 IFS=$as_save_IFS
4890
4891   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4892   ;;
4893 esac
4894 fi
4895 MV=$ac_cv_path_MV
4896 if test -n "$MV"; then
4897   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4898 $as_echo "$MV" >&6; }
4899 else
4900   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4901 $as_echo "no" >&6; }
4902 fi
4903
4904
4905 # Extract the first word of "rm", so it can be a program name with args.
4906 set dummy rm; ac_word=$2
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4908 $as_echo_n "checking for $ac_word... " >&6; }
4909 if test "${ac_cv_path_REMOVE+set}" = set; then :
4910   $as_echo_n "(cached) " >&6
4911 else
4912   case $REMOVE in
4913   [\\/]* | ?:[\\/]*)
4914   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4915   ;;
4916   *)
4917   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4919 do
4920   IFS=$as_save_IFS
4921   test -z "$as_dir" && as_dir=.
4922     for ac_exec_ext in '' $ac_executable_extensions; do
4923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4925     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926     break 2
4927   fi
4928 done
4929   done
4930 IFS=$as_save_IFS
4931
4932   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4933   ;;
4934 esac
4935 fi
4936 REMOVE=$ac_cv_path_REMOVE
4937 if test -n "$REMOVE"; then
4938   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4939 $as_echo "$REMOVE" >&6; }
4940 else
4941   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942 $as_echo "no" >&6; }
4943 fi
4944
4945
4946 # Extract the first word of "cp", so it can be a program name with args.
4947 set dummy cp; ac_word=$2
4948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4949 $as_echo_n "checking for $ac_word... " >&6; }
4950 if test "${ac_cv_path_CP+set}" = set; then :
4951   $as_echo_n "(cached) " >&6
4952 else
4953   case $CP in
4954   [\\/]* | ?:[\\/]*)
4955   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4956   ;;
4957   *)
4958   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4959 for as_dir in $PATH
4960 do
4961   IFS=$as_save_IFS
4962   test -z "$as_dir" && as_dir=.
4963     for ac_exec_ext in '' $ac_executable_extensions; do
4964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4965     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4966     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4967     break 2
4968   fi
4969 done
4970   done
4971 IFS=$as_save_IFS
4972
4973   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4974   ;;
4975 esac
4976 fi
4977 CP=$ac_cv_path_CP
4978 if test -n "$CP"; then
4979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
4980 $as_echo "$CP" >&6; }
4981 else
4982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4985
4986
4987 # Extract the first word of "sed", so it can be a program name with args.
4988 set dummy sed; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_path_SED+set}" = set; then :
4992   $as_echo_n "(cached) " >&6
4993 else
4994   case $SED in
4995   [\\/]* | ?:[\\/]*)
4996   ac_cv_path_SED="$SED" # Let the user override the test with a path.
4997   ;;
4998   *)
4999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000 for as_dir in $PATH
5001 do
5002   IFS=$as_save_IFS
5003   test -z "$as_dir" && as_dir=.
5004     for ac_exec_ext in '' $ac_executable_extensions; do
5005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5007     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5008     break 2
5009   fi
5010 done
5011   done
5012 IFS=$as_save_IFS
5013
5014   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5015   ;;
5016 esac
5017 fi
5018 SED=$ac_cv_path_SED
5019 if test -n "$SED"; then
5020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5021 $as_echo "$SED" >&6; }
5022 else
5023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 # Extract the first word of "echo", so it can be a program name with args.
5029 set dummy echo; ac_word=$2
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031 $as_echo_n "checking for $ac_word... " >&6; }
5032 if test "${ac_cv_path_ECHO+set}" = set; then :
5033   $as_echo_n "(cached) " >&6
5034 else
5035   case $ECHO in
5036   [\\/]* | ?:[\\/]*)
5037   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5038   ;;
5039   *)
5040   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5041 for as_dir in $PATH
5042 do
5043   IFS=$as_save_IFS
5044   test -z "$as_dir" && as_dir=.
5045     for ac_exec_ext in '' $ac_executable_extensions; do
5046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5047     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5049     break 2
5050   fi
5051 done
5052   done
5053 IFS=$as_save_IFS
5054
5055   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5056   ;;
5057 esac
5058 fi
5059 ECHO=$ac_cv_path_ECHO
5060 if test -n "$ECHO"; then
5061   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5062 $as_echo "$ECHO" >&6; }
5063 else
5064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 # Extract the first word of "cmp", so it can be a program name with args.
5070 set dummy cmp; ac_word=$2
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5072 $as_echo_n "checking for $ac_word... " >&6; }
5073 if test "${ac_cv_path_CMP+set}" = set; then :
5074   $as_echo_n "(cached) " >&6
5075 else
5076   case $CMP in
5077   [\\/]* | ?:[\\/]*)
5078   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5079   ;;
5080   *)
5081   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in $PATH
5083 do
5084   IFS=$as_save_IFS
5085   test -z "$as_dir" && as_dir=.
5086     for ac_exec_ext in '' $ac_executable_extensions; do
5087   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5089     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090     break 2
5091   fi
5092 done
5093   done
5094 IFS=$as_save_IFS
5095
5096   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5097   ;;
5098 esac
5099 fi
5100 CMP=$ac_cv_path_CMP
5101 if test -n "$CMP"; then
5102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5103 $as_echo "$CMP" >&6; }
5104 else
5105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5106 $as_echo "no" >&6; }
5107 fi
5108
5109
5110 # Extract the first word of "tbl", so it can be a program name with args.
5111 set dummy tbl; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if test "${ac_cv_path_TBL+set}" = set; then :
5115   $as_echo_n "(cached) " >&6
5116 else
5117   case $TBL in
5118   [\\/]* | ?:[\\/]*)
5119   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5120   ;;
5121   *)
5122   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5123 for as_dir in $PATH
5124 do
5125   IFS=$as_save_IFS
5126   test -z "$as_dir" && as_dir=.
5127     for ac_exec_ext in '' $ac_executable_extensions; do
5128   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5129     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5130     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131     break 2
5132   fi
5133 done
5134   done
5135 IFS=$as_save_IFS
5136
5137   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5138   ;;
5139 esac
5140 fi
5141 TBL=$ac_cv_path_TBL
5142 if test -n "$TBL"; then
5143   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5144 $as_echo "$TBL" >&6; }
5145 else
5146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149
5150
5151 # Extract the first word of "ar", so it can be a program name with args.
5152 set dummy ar; ac_word=$2
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5154 $as_echo_n "checking for $ac_word... " >&6; }
5155 if test "${ac_cv_path_AR+set}" = set; then :
5156   $as_echo_n "(cached) " >&6
5157 else
5158   case $AR in
5159   [\\/]* | ?:[\\/]*)
5160   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5161   ;;
5162   *)
5163   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166   IFS=$as_save_IFS
5167   test -z "$as_dir" && as_dir=.
5168     for ac_exec_ext in '' $ac_executable_extensions; do
5169   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5171     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5172     break 2
5173   fi
5174 done
5175   done
5176 IFS=$as_save_IFS
5177
5178   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5179   ;;
5180 esac
5181 fi
5182 AR=$ac_cv_path_AR
5183 if test -n "$AR"; then
5184   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5185 $as_echo "$AR" >&6; }
5186 else
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5188 $as_echo "no" >&6; }
5189 fi
5190
5191
5192 # Extract the first word of "openssl", so it can be a program name with args.
5193 set dummy openssl; ac_word=$2
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5195 $as_echo_n "checking for $ac_word... " >&6; }
5196 if test "${ac_cv_path_OPENSSL+set}" = set; then :
5197   $as_echo_n "(cached) " >&6
5198 else
5199   case $OPENSSL in
5200   [\\/]* | ?:[\\/]*)
5201   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5202   ;;
5203   *)
5204   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207   IFS=$as_save_IFS
5208   test -z "$as_dir" && as_dir=.
5209     for ac_exec_ext in '' $ac_executable_extensions; do
5210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5211     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213     break 2
5214   fi
5215 done
5216   done
5217 IFS=$as_save_IFS
5218
5219   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5220   ;;
5221 esac
5222 fi
5223 OPENSSL=$ac_cv_path_OPENSSL
5224 if test -n "$OPENSSL"; then
5225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5226 $as_echo "$OPENSSL" >&6; }
5227 else
5228   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5229 $as_echo "no" >&6; }
5230 fi
5231
5232
5233 # Extract the first word of "mtx", so it can be a program name with args.
5234 set dummy mtx; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_path_MTX+set}" = set; then :
5238   $as_echo_n "(cached) " >&6
5239 else
5240   case $MTX in
5241   [\\/]* | ?:[\\/]*)
5242   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5243   ;;
5244   *)
5245   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in $PATH
5247 do
5248   IFS=$as_save_IFS
5249   test -z "$as_dir" && as_dir=.
5250     for ac_exec_ext in '' $ac_executable_extensions; do
5251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5254     break 2
5255   fi
5256 done
5257   done
5258 IFS=$as_save_IFS
5259
5260   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5261   ;;
5262 esac
5263 fi
5264 MTX=$ac_cv_path_MTX
5265 if test -n "$MTX"; then
5266   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5267 $as_echo "$MTX" >&6; }
5268 else
5269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5270 $as_echo "no" >&6; }
5271 fi
5272
5273
5274 # Extract the first word of "dd", so it can be a program name with args.
5275 set dummy dd; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_DD+set}" = set; then :
5279   $as_echo_n "(cached) " >&6
5280 else
5281   case $DD in
5282   [\\/]* | ?:[\\/]*)
5283   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5284   ;;
5285   *)
5286   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH
5288 do
5289   IFS=$as_save_IFS
5290   test -z "$as_dir" && as_dir=.
5291     for ac_exec_ext in '' $ac_executable_extensions; do
5292   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5295     break 2
5296   fi
5297 done
5298   done
5299 IFS=$as_save_IFS
5300
5301   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5302   ;;
5303 esac
5304 fi
5305 DD=$ac_cv_path_DD
5306 if test -n "$DD"; then
5307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5308 $as_echo "$DD" >&6; }
5309 else
5310   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5311 $as_echo "no" >&6; }
5312 fi
5313
5314
5315 # Extract the first word of "mkisofs", so it can be a program name with args.
5316 set dummy mkisofs; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if test "${ac_cv_path_MKISOFS+set}" = set; then :
5320   $as_echo_n "(cached) " >&6
5321 else
5322   case $MKISOFS in
5323   [\\/]* | ?:[\\/]*)
5324   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5325   ;;
5326   *)
5327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330   IFS=$as_save_IFS
5331   test -z "$as_dir" && as_dir=.
5332     for ac_exec_ext in '' $ac_executable_extensions; do
5333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5335     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5336     break 2
5337   fi
5338 done
5339   done
5340 IFS=$as_save_IFS
5341
5342   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5343   ;;
5344 esac
5345 fi
5346 MKISOFS=$ac_cv_path_MKISOFS
5347 if test -n "$MKISOFS"; then
5348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5349 $as_echo "$MKISOFS" >&6; }
5350 else
5351   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5352 $as_echo "no" >&6; }
5353 fi
5354
5355
5356 # Extract the first word of "python", so it can be a program name with args.
5357 set dummy python; ac_word=$2
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5359 $as_echo_n "checking for $ac_word... " >&6; }
5360 if test "${ac_cv_path_PYTHON+set}" = set; then :
5361   $as_echo_n "(cached) " >&6
5362 else
5363   case $PYTHON in
5364   [\\/]* | ?:[\\/]*)
5365   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5366   ;;
5367   *)
5368   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 for as_dir in $PATH
5370 do
5371   IFS=$as_save_IFS
5372   test -z "$as_dir" && as_dir=.
5373     for ac_exec_ext in '' $ac_executable_extensions; do
5374   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5375     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5376     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5377     break 2
5378   fi
5379 done
5380   done
5381 IFS=$as_save_IFS
5382
5383   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5384   ;;
5385 esac
5386 fi
5387 PYTHON=$ac_cv_path_PYTHON
5388 if test -n "$PYTHON"; then
5389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5390 $as_echo "$PYTHON" >&6; }
5391 else
5392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5393 $as_echo "no" >&6; }
5394 fi
5395
5396
5397 # Extract the first word of "growisofs", so it can be a program name with args.
5398 set dummy growisofs; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if test "${ac_cv_path_GROWISOFS+set}" = set; then :
5402   $as_echo_n "(cached) " >&6
5403 else
5404   case $GROWISOFS in
5405   [\\/]* | ?:[\\/]*)
5406   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5407   ;;
5408   *)
5409   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412   IFS=$as_save_IFS
5413   test -z "$as_dir" && as_dir=.
5414     for ac_exec_ext in '' $ac_executable_extensions; do
5415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5416     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5417     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5418     break 2
5419   fi
5420 done
5421   done
5422 IFS=$as_save_IFS
5423
5424   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5425   ;;
5426 esac
5427 fi
5428 GROWISOFS=$ac_cv_path_GROWISOFS
5429 if test -n "$GROWISOFS"; then
5430   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5431 $as_echo "$GROWISOFS" >&6; }
5432 else
5433   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5434 $as_echo "no" >&6; }
5435 fi
5436
5437
5438 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5439 set dummy dvd+rw-mediainfo; ac_word=$2
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5441 $as_echo_n "checking for $ac_word... " >&6; }
5442 if test "${ac_cv_path_DVDRWMEDIAINFO+set}" = set; then :
5443   $as_echo_n "(cached) " >&6
5444 else
5445   case $DVDRWMEDIAINFO in
5446   [\\/]* | ?:[\\/]*)
5447   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5448   ;;
5449   *)
5450   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH
5452 do
5453   IFS=$as_save_IFS
5454   test -z "$as_dir" && as_dir=.
5455     for ac_exec_ext in '' $ac_executable_extensions; do
5456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5457     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5459     break 2
5460   fi
5461 done
5462   done
5463 IFS=$as_save_IFS
5464
5465   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5466   ;;
5467 esac
5468 fi
5469 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5470 if test -n "$DVDRWMEDIAINFO"; then
5471   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5472 $as_echo "$DVDRWMEDIAINFO" >&6; }
5473 else
5474   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5475 $as_echo "no" >&6; }
5476 fi
5477
5478
5479 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5480 set dummy dvd+rw-format; ac_word=$2
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5482 $as_echo_n "checking for $ac_word... " >&6; }
5483 if test "${ac_cv_path_DVDRWFORMAT+set}" = set; then :
5484   $as_echo_n "(cached) " >&6
5485 else
5486   case $DVDRWFORMAT in
5487   [\\/]* | ?:[\\/]*)
5488   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5489   ;;
5490   *)
5491   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5492 for as_dir in $PATH
5493 do
5494   IFS=$as_save_IFS
5495   test -z "$as_dir" && as_dir=.
5496     for ac_exec_ext in '' $ac_executable_extensions; do
5497   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5498     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5499     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5500     break 2
5501   fi
5502 done
5503   done
5504 IFS=$as_save_IFS
5505
5506   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5507   ;;
5508 esac
5509 fi
5510 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5511 if test -n "$DVDRWFORMAT"; then
5512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5513 $as_echo "$DVDRWFORMAT" >&6; }
5514 else
5515   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5516 $as_echo "no" >&6; }
5517 fi
5518
5519
5520 # Extract the first word of "pkg-config", so it can be a program name with args.
5521 set dummy pkg-config; ac_word=$2
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5523 $as_echo_n "checking for $ac_word... " >&6; }
5524 if test "${ac_cv_path_PKGCONFIG+set}" = set; then :
5525   $as_echo_n "(cached) " >&6
5526 else
5527   case $PKGCONFIG in
5528   [\\/]* | ?:[\\/]*)
5529   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5530   ;;
5531   *)
5532   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 for as_dir in $PATH
5534 do
5535   IFS=$as_save_IFS
5536   test -z "$as_dir" && as_dir=.
5537     for ac_exec_ext in '' $ac_executable_extensions; do
5538   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5539     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5540     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5541     break 2
5542   fi
5543 done
5544   done
5545 IFS=$as_save_IFS
5546
5547   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5548   ;;
5549 esac
5550 fi
5551 PKGCONFIG=$ac_cv_path_PKGCONFIG
5552 if test -n "$PKGCONFIG"; then
5553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5554 $as_echo "$PKGCONFIG" >&6; }
5555 else
5556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5558 fi
5559
5560
5561 # Extract the first word of "qmake", so it can be a program name with args.
5562 set dummy qmake; ac_word=$2
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5564 $as_echo_n "checking for $ac_word... " >&6; }
5565 if test "${ac_cv_path_QMAKE+set}" = set; then :
5566   $as_echo_n "(cached) " >&6
5567 else
5568   case $QMAKE in
5569   [\\/]* | ?:[\\/]*)
5570   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5571   ;;
5572   *)
5573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5574 for as_dir in $PATH
5575 do
5576   IFS=$as_save_IFS
5577   test -z "$as_dir" && as_dir=.
5578     for ac_exec_ext in '' $ac_executable_extensions; do
5579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5582     break 2
5583   fi
5584 done
5585   done
5586 IFS=$as_save_IFS
5587
5588   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5589   ;;
5590 esac
5591 fi
5592 QMAKE=$ac_cv_path_QMAKE
5593 if test -n "$QMAKE"; then
5594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5595 $as_echo "$QMAKE" >&6; }
5596 else
5597   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5598 $as_echo "no" >&6; }
5599 fi
5600
5601
5602 # Extract the first word of "gmake", so it can be a program name with args.
5603 set dummy gmake; ac_word=$2
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5605 $as_echo_n "checking for $ac_word... " >&6; }
5606 if test "${ac_cv_path_GMAKE+set}" = set; then :
5607   $as_echo_n "(cached) " >&6
5608 else
5609   case $GMAKE in
5610   [\\/]* | ?:[\\/]*)
5611   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5612   ;;
5613   *)
5614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 for as_dir in $PATH
5616 do
5617   IFS=$as_save_IFS
5618   test -z "$as_dir" && as_dir=.
5619     for ac_exec_ext in '' $ac_executable_extensions; do
5620   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5621     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5623     break 2
5624   fi
5625 done
5626   done
5627 IFS=$as_save_IFS
5628
5629   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5630   ;;
5631 esac
5632 fi
5633 GMAKE=$ac_cv_path_GMAKE
5634 if test -n "$GMAKE"; then
5635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5636 $as_echo "$GMAKE" >&6; }
5637 else
5638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5640 fi
5641
5642
5643
5644 if test "x$WXCONFIG" = x; then
5645    WXCONFIG=wx-config
5646 fi
5647 # Extract the first word of "${WXCONFIG}", so it can be a program name with args.
5648 set dummy ${WXCONFIG}; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_path_WXCONFIG+set}" = set; then :
5652   $as_echo_n "(cached) " >&6
5653 else
5654   case $WXCONFIG in
5655   [\\/]* | ?:[\\/]*)
5656   ac_cv_path_WXCONFIG="$WXCONFIG" # Let the user override the test with a path.
5657   ;;
5658   *)
5659   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 for as_dir in $PATH
5661 do
5662   IFS=$as_save_IFS
5663   test -z "$as_dir" && as_dir=.
5664     for ac_exec_ext in '' $ac_executable_extensions; do
5665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5666     ac_cv_path_WXCONFIG="$as_dir/$ac_word$ac_exec_ext"
5667     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668     break 2
5669   fi
5670 done
5671   done
5672 IFS=$as_save_IFS
5673
5674   test -z "$ac_cv_path_WXCONFIG" && ac_cv_path_WXCONFIG="${WXCONFIG}"
5675   ;;
5676 esac
5677 fi
5678 WXCONFIG=$ac_cv_path_WXCONFIG
5679 if test -n "$WXCONFIG"; then
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WXCONFIG" >&5
5681 $as_echo "$WXCONFIG" >&6; }
5682 else
5683   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5685 fi
5686
5687
5688
5689 # Extract the first word of "cdrecord", so it can be a program name with args.
5690 set dummy cdrecord; ac_word=$2
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5692 $as_echo_n "checking for $ac_word... " >&6; }
5693 if test "${ac_cv_path_CDRECORD+set}" = set; then :
5694   $as_echo_n "(cached) " >&6
5695 else
5696   case $CDRECORD in
5697   [\\/]* | ?:[\\/]*)
5698   ac_cv_path_CDRECORD="$CDRECORD" # Let the user override the test with a path.
5699   ;;
5700   *)
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_exec_ext in '' $ac_executable_extensions; do
5707   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708     ac_cv_path_CDRECORD="$as_dir/$ac_word$ac_exec_ext"
5709     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5710     break 2
5711   fi
5712 done
5713   done
5714 IFS=$as_save_IFS
5715
5716   test -z "$ac_cv_path_CDRECORD" && ac_cv_path_CDRECORD="cdrecord"
5717   ;;
5718 esac
5719 fi
5720 CDRECORD=$ac_cv_path_CDRECORD
5721 if test -n "$CDRECORD"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CDRECORD" >&5
5723 $as_echo "$CDRECORD" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5726 $as_echo "no" >&6; }
5727 fi
5728
5729
5730 # Extract the first word of "pidof", so it can be a program name with args.
5731 set dummy pidof; ac_word=$2
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 $as_echo_n "checking for $ac_word... " >&6; }
5734 if test "${ac_cv_path_PIDOF+set}" = set; then :
5735   $as_echo_n "(cached) " >&6
5736 else
5737   case $PIDOF in
5738   [\\/]* | ?:[\\/]*)
5739   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5740   ;;
5741   *)
5742   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5743 for as_dir in $PATH
5744 do
5745   IFS=$as_save_IFS
5746   test -z "$as_dir" && as_dir=.
5747     for ac_exec_ext in '' $ac_executable_extensions; do
5748   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5749     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5750     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5751     break 2
5752   fi
5753 done
5754   done
5755 IFS=$as_save_IFS
5756
5757   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5758   ;;
5759 esac
5760 fi
5761 PIDOF=$ac_cv_path_PIDOF
5762 if test -n "$PIDOF"; then
5763   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5764 $as_echo "$PIDOF" >&6; }
5765 else
5766   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5767 $as_echo "no" >&6; }
5768 fi
5769
5770
5771 for ac_prog in gawk mawk nawk awk
5772 do
5773   # Extract the first word of "$ac_prog", so it can be a program name with args.
5774 set dummy $ac_prog; ac_word=$2
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5776 $as_echo_n "checking for $ac_word... " >&6; }
5777 if test "${ac_cv_prog_AWK+set}" = set; then :
5778   $as_echo_n "(cached) " >&6
5779 else
5780   if test -n "$AWK"; then
5781   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5782 else
5783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5784 for as_dir in $PATH
5785 do
5786   IFS=$as_save_IFS
5787   test -z "$as_dir" && as_dir=.
5788     for ac_exec_ext in '' $ac_executable_extensions; do
5789   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5790     ac_cv_prog_AWK="$ac_prog"
5791     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5792     break 2
5793   fi
5794 done
5795   done
5796 IFS=$as_save_IFS
5797
5798 fi
5799 fi
5800 AWK=$ac_cv_prog_AWK
5801 if test -n "$AWK"; then
5802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5803 $as_echo "$AWK" >&6; }
5804 else
5805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5806 $as_echo "no" >&6; }
5807 fi
5808
5809
5810   test -n "$AWK" && break
5811 done
5812
5813 # Some AWK programs fail, so test it and warn the user
5814 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5815       { if ((prog == $2) || (("(" prog ")") == $2) ||
5816       (("" prog "") == $2) ||
5817       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5818 else
5819   as_fn_error "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5820    The regex engine of $AWK is too broken to be used you
5821    might want to install GNU AWK.
5822    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5823 fi
5824 THE_AWK=$AWK
5825 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5826 set dummy $THE_AWK; ac_word=$2
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5828 $as_echo_n "checking for $ac_word... " >&6; }
5829 if test "${ac_cv_path_AWK+set}" = set; then :
5830   $as_echo_n "(cached) " >&6
5831 else
5832   case $AWK in
5833   [\\/]* | ?:[\\/]*)
5834   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5835   ;;
5836   *)
5837   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 for as_dir in $PATH
5839 do
5840   IFS=$as_save_IFS
5841   test -z "$as_dir" && as_dir=.
5842     for ac_exec_ext in '' $ac_executable_extensions; do
5843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5844     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5845     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5846     break 2
5847   fi
5848 done
5849   done
5850 IFS=$as_save_IFS
5851
5852   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5853   ;;
5854 esac
5855 fi
5856 AWK=$ac_cv_path_AWK
5857 if test -n "$AWK"; then
5858   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5859 $as_echo "$AWK" >&6; }
5860 else
5861   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5862 $as_echo "no" >&6; }
5863 fi
5864
5865
5866
5867
5868 test -n "$ARFLAG" || ARFLAGS="cr"
5869
5870
5871 MAKE_SHELL=/bin/sh
5872
5873
5874
5875
5876
5877
5878
5879 use_libtool=yes
5880 # Check whether --enable-libtool was given.
5881 if test "${enable_libtool+set}" = set; then :
5882   enableval=$enable_libtool;
5883        if test x$enableval = xno; then
5884           use_libtool=no
5885        fi
5886
5887
5888 fi
5889
5890 case `pwd` in
5891   *\ * | *\     *)
5892     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5893 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5894 esac
5895
5896
5897
5898 macro_version='2.4'
5899 macro_revision='1.3293'
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913 ltmain="$ac_aux_dir/ltmain.sh"
5914
5915 # Make sure we can run config.sub.
5916 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5917   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5918
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5920 $as_echo_n "checking build system type... " >&6; }
5921 if test "${ac_cv_build+set}" = set; then :
5922   $as_echo_n "(cached) " >&6
5923 else
5924   ac_build_alias=$build_alias
5925 test "x$ac_build_alias" = x &&
5926   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5927 test "x$ac_build_alias" = x &&
5928   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
5929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5930   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5931
5932 fi
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5934 $as_echo "$ac_cv_build" >&6; }
5935 case $ac_cv_build in
5936 *-*-*) ;;
5937 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
5938 esac
5939 build=$ac_cv_build
5940 ac_save_IFS=$IFS; IFS='-'
5941 set x $ac_cv_build
5942 shift
5943 build_cpu=$1
5944 build_vendor=$2
5945 shift; shift
5946 # Remember, the first character of IFS is used to create $*,
5947 # except with old shells:
5948 build_os=$*
5949 IFS=$ac_save_IFS
5950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5951
5952
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5954 $as_echo_n "checking host system type... " >&6; }
5955 if test "${ac_cv_host+set}" = set; then :
5956   $as_echo_n "(cached) " >&6
5957 else
5958   if test "x$host_alias" = x; then
5959   ac_cv_host=$ac_cv_build
5960 else
5961   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5962     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5963 fi
5964
5965 fi
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5967 $as_echo "$ac_cv_host" >&6; }
5968 case $ac_cv_host in
5969 *-*-*) ;;
5970 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
5971 esac
5972 host=$ac_cv_host
5973 ac_save_IFS=$IFS; IFS='-'
5974 set x $ac_cv_host
5975 shift
5976 host_cpu=$1
5977 host_vendor=$2
5978 shift; shift
5979 # Remember, the first character of IFS is used to create $*,
5980 # except with old shells:
5981 host_os=$*
5982 IFS=$ac_save_IFS
5983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5984
5985
5986 # Backslashify metacharacters that are still active within
5987 # double-quoted strings.
5988 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5989
5990 # Same as above, but do not quote variable references.
5991 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5992
5993 # Sed substitution to delay expansion of an escaped shell variable in a
5994 # double_quote_subst'ed string.
5995 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5996
5997 # Sed substitution to delay expansion of an escaped single quote.
5998 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5999
6000 # Sed substitution to avoid accidental globbing in evaled expressions
6001 no_glob_subst='s/\*/\\\*/g'
6002
6003 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6004 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6005 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6006
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6008 $as_echo_n "checking how to print strings... " >&6; }
6009 # Test print first, because it will be a builtin if present.
6010 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
6011    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6012   ECHO='print -r --'
6013 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6014   ECHO='printf %s\n'
6015 else
6016   # Use this function as a fallback that always works.
6017   func_fallback_echo ()
6018   {
6019     eval 'cat <<_LTECHO_EOF
6020 $1
6021 _LTECHO_EOF'
6022   }
6023   ECHO='func_fallback_echo'
6024 fi
6025
6026 # func_echo_all arg...
6027 # Invoke $ECHO with all args, space-separated.
6028 func_echo_all ()
6029 {
6030     $ECHO ""
6031 }
6032
6033 case "$ECHO" in
6034   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6035 $as_echo "printf" >&6; } ;;
6036   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6037 $as_echo "print -r" >&6; } ;;
6038   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6039 $as_echo "cat" >&6; } ;;
6040 esac
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6056 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6057 if test "${ac_cv_path_SED+set}" = set; then :
6058   $as_echo_n "(cached) " >&6
6059 else
6060             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6061      for ac_i in 1 2 3 4 5 6 7; do
6062        ac_script="$ac_script$as_nl$ac_script"
6063      done
6064      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6065      { ac_script=; unset ac_script;}
6066      if test -z "$SED"; then
6067   ac_path_SED_found=false
6068   # Loop through the user's path and test for each of PROGNAME-LIST
6069   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6070 for as_dir in $PATH
6071 do
6072   IFS=$as_save_IFS
6073   test -z "$as_dir" && as_dir=.
6074     for ac_prog in sed gsed; do
6075     for ac_exec_ext in '' $ac_executable_extensions; do
6076       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6077       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6078 # Check for GNU ac_path_SED and select it if it is found.
6079   # Check for GNU $ac_path_SED
6080 case `"$ac_path_SED" --version 2>&1` in
6081 *GNU*)
6082   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6083 *)
6084   ac_count=0
6085   $as_echo_n 0123456789 >"conftest.in"
6086   while :
6087   do
6088     cat "conftest.in" "conftest.in" >"conftest.tmp"
6089     mv "conftest.tmp" "conftest.in"
6090     cp "conftest.in" "conftest.nl"
6091     $as_echo '' >> "conftest.nl"
6092     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6093     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6094     as_fn_arith $ac_count + 1 && ac_count=$as_val
6095     if test $ac_count -gt ${ac_path_SED_max-0}; then
6096       # Best one so far, save it but keep looking for a better one
6097       ac_cv_path_SED="$ac_path_SED"
6098       ac_path_SED_max=$ac_count
6099     fi
6100     # 10*(2^10) chars as input seems more than enough
6101     test $ac_count -gt 10 && break
6102   done
6103   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6104 esac
6105
6106       $ac_path_SED_found && break 3
6107     done
6108   done
6109   done
6110 IFS=$as_save_IFS
6111   if test -z "$ac_cv_path_SED"; then
6112     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6113   fi
6114 else
6115   ac_cv_path_SED=$SED
6116 fi
6117
6118 fi
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6120 $as_echo "$ac_cv_path_SED" >&6; }
6121  SED="$ac_cv_path_SED"
6122   rm -f conftest.sed
6123
6124 test -z "$SED" && SED=sed
6125 Xsed="$SED -e 1s/^X//"
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6138 $as_echo_n "checking for fgrep... " >&6; }
6139 if test "${ac_cv_path_FGREP+set}" = set; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6143    then ac_cv_path_FGREP="$GREP -F"
6144    else
6145      if test -z "$FGREP"; then
6146   ac_path_FGREP_found=false
6147   # Loop through the user's path and test for each of PROGNAME-LIST
6148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6149 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6150 do
6151   IFS=$as_save_IFS
6152   test -z "$as_dir" && as_dir=.
6153     for ac_prog in fgrep; do
6154     for ac_exec_ext in '' $ac_executable_extensions; do
6155       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6156       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6157 # Check for GNU ac_path_FGREP and select it if it is found.
6158   # Check for GNU $ac_path_FGREP
6159 case `"$ac_path_FGREP" --version 2>&1` in
6160 *GNU*)
6161   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6162 *)
6163   ac_count=0
6164   $as_echo_n 0123456789 >"conftest.in"
6165   while :
6166   do
6167     cat "conftest.in" "conftest.in" >"conftest.tmp"
6168     mv "conftest.tmp" "conftest.in"
6169     cp "conftest.in" "conftest.nl"
6170     $as_echo 'FGREP' >> "conftest.nl"
6171     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6172     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6173     as_fn_arith $ac_count + 1 && ac_count=$as_val
6174     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6175       # Best one so far, save it but keep looking for a better one
6176       ac_cv_path_FGREP="$ac_path_FGREP"
6177       ac_path_FGREP_max=$ac_count
6178     fi
6179     # 10*(2^10) chars as input seems more than enough
6180     test $ac_count -gt 10 && break
6181   done
6182   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6183 esac
6184
6185       $ac_path_FGREP_found && break 3
6186     done
6187   done
6188   done
6189 IFS=$as_save_IFS
6190   if test -z "$ac_cv_path_FGREP"; then
6191     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6192   fi
6193 else
6194   ac_cv_path_FGREP=$FGREP
6195 fi
6196
6197    fi
6198 fi
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6200 $as_echo "$ac_cv_path_FGREP" >&6; }
6201  FGREP="$ac_cv_path_FGREP"
6202
6203
6204 test -z "$GREP" && GREP=grep
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224 # Check whether --with-gnu-ld was given.
6225 if test "${with_gnu_ld+set}" = set; then :
6226   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6227 else
6228   with_gnu_ld=no
6229 fi
6230
6231 ac_prog=ld
6232 if test "$GCC" = yes; then
6233   # Check if gcc -print-prog-name=ld gives a path.
6234   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6235 $as_echo_n "checking for ld used by $CC... " >&6; }
6236   case $host in
6237   *-*-mingw*)
6238     # gcc leaves a trailing carriage return which upsets mingw
6239     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6240   *)
6241     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6242   esac
6243   case $ac_prog in
6244     # Accept absolute paths.
6245     [\\/]* | ?:[\\/]*)
6246       re_direlt='/[^/][^/]*/\.\./'
6247       # Canonicalize the pathname of ld
6248       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6249       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6250         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6251       done
6252       test -z "$LD" && LD="$ac_prog"
6253       ;;
6254   "")
6255     # If it fails, then pretend we aren't using GCC.
6256     ac_prog=ld
6257     ;;
6258   *)
6259     # If it is relative, then search for the first ld in PATH.
6260     with_gnu_ld=unknown
6261     ;;
6262   esac
6263 elif test "$with_gnu_ld" = yes; then
6264   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6265 $as_echo_n "checking for GNU ld... " >&6; }
6266 else
6267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6268 $as_echo_n "checking for non-GNU ld... " >&6; }
6269 fi
6270 if test "${lt_cv_path_LD+set}" = set; then :
6271   $as_echo_n "(cached) " >&6
6272 else
6273   if test -z "$LD"; then
6274   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6275   for ac_dir in $PATH; do
6276     IFS="$lt_save_ifs"
6277     test -z "$ac_dir" && ac_dir=.
6278     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6279       lt_cv_path_LD="$ac_dir/$ac_prog"
6280       # Check to see if the program is GNU ld.  I'd rather use --version,
6281       # but apparently some variants of GNU ld only accept -v.
6282       # Break only if it was the GNU/non-GNU ld that we prefer.
6283       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6284       *GNU* | *'with BFD'*)
6285         test "$with_gnu_ld" != no && break
6286         ;;
6287       *)
6288         test "$with_gnu_ld" != yes && break
6289         ;;
6290       esac
6291     fi
6292   done
6293   IFS="$lt_save_ifs"
6294 else
6295   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6296 fi
6297 fi
6298
6299 LD="$lt_cv_path_LD"
6300 if test -n "$LD"; then
6301   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6302 $as_echo "$LD" >&6; }
6303 else
6304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6306 fi
6307 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6309 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6310 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6311   $as_echo_n "(cached) " >&6
6312 else
6313   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6314 case `$LD -v 2>&1 </dev/null` in
6315 *GNU* | *'with BFD'*)
6316   lt_cv_prog_gnu_ld=yes
6317   ;;
6318 *)
6319   lt_cv_prog_gnu_ld=no
6320   ;;
6321 esac
6322 fi
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6324 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6325 with_gnu_ld=$lt_cv_prog_gnu_ld
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6336 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6337 if test "${lt_cv_path_NM+set}" = set; then :
6338   $as_echo_n "(cached) " >&6
6339 else
6340   if test -n "$NM"; then
6341   # Let the user override the test.
6342   lt_cv_path_NM="$NM"
6343 else
6344   lt_nm_to_check="${ac_tool_prefix}nm"
6345   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6346     lt_nm_to_check="$lt_nm_to_check nm"
6347   fi
6348   for lt_tmp_nm in $lt_nm_to_check; do
6349     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6350     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6351       IFS="$lt_save_ifs"
6352       test -z "$ac_dir" && ac_dir=.
6353       tmp_nm="$ac_dir/$lt_tmp_nm"
6354       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6355         # Check to see if the nm accepts a BSD-compat flag.
6356         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6357         #   nm: unknown option "B" ignored
6358         # Tru64's nm complains that /dev/null is an invalid object file
6359         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6360         */dev/null* | *'Invalid file or object type'*)
6361           lt_cv_path_NM="$tmp_nm -B"
6362           break
6363           ;;
6364         *)
6365           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6366           */dev/null*)
6367             lt_cv_path_NM="$tmp_nm -p"
6368             break
6369             ;;
6370           *)
6371             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6372             continue # so that we can try to find one that supports BSD flags
6373             ;;
6374           esac
6375           ;;
6376         esac
6377       fi
6378     done
6379     IFS="$lt_save_ifs"
6380   done
6381   : ${lt_cv_path_NM=no}
6382 fi
6383 fi
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6385 $as_echo "$lt_cv_path_NM" >&6; }
6386 if test "$lt_cv_path_NM" != "no"; then
6387   NM="$lt_cv_path_NM"
6388 else
6389   # Didn't find any BSD compatible name lister, look for dumpbin.
6390   if test -n "$DUMPBIN"; then :
6391     # Let the user override the test.
6392   else
6393     if test -n "$ac_tool_prefix"; then
6394   for ac_prog in dumpbin "link -dump"
6395   do
6396     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$DUMPBIN"; then
6404   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 DUMPBIN=$ac_cv_prog_DUMPBIN
6424 if test -n "$DUMPBIN"; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6426 $as_echo "$DUMPBIN" >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433     test -n "$DUMPBIN" && break
6434   done
6435 fi
6436 if test -z "$DUMPBIN"; then
6437   ac_ct_DUMPBIN=$DUMPBIN
6438   for ac_prog in dumpbin "link -dump"
6439 do
6440   # Extract the first word of "$ac_prog", so it can be a program name with args.
6441 set dummy $ac_prog; ac_word=$2
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6443 $as_echo_n "checking for $ac_word... " >&6; }
6444 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6445   $as_echo_n "(cached) " >&6
6446 else
6447   if test -n "$ac_ct_DUMPBIN"; then
6448   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6449 else
6450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6451 for as_dir in $PATH
6452 do
6453   IFS=$as_save_IFS
6454   test -z "$as_dir" && as_dir=.
6455     for ac_exec_ext in '' $ac_executable_extensions; do
6456   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6457     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6458     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6459     break 2
6460   fi
6461 done
6462   done
6463 IFS=$as_save_IFS
6464
6465 fi
6466 fi
6467 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6468 if test -n "$ac_ct_DUMPBIN"; then
6469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6470 $as_echo "$ac_ct_DUMPBIN" >&6; }
6471 else
6472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6473 $as_echo "no" >&6; }
6474 fi
6475
6476
6477   test -n "$ac_ct_DUMPBIN" && break
6478 done
6479
6480   if test "x$ac_ct_DUMPBIN" = x; then
6481     DUMPBIN=":"
6482   else
6483     case $cross_compiling:$ac_tool_warned in
6484 yes:)
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6487 ac_tool_warned=yes ;;
6488 esac
6489     DUMPBIN=$ac_ct_DUMPBIN
6490   fi
6491 fi
6492
6493     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6494     *COFF*)
6495       DUMPBIN="$DUMPBIN -symbols"
6496       ;;
6497     *)
6498       DUMPBIN=:
6499       ;;
6500     esac
6501   fi
6502
6503   if test "$DUMPBIN" != ":"; then
6504     NM="$DUMPBIN"
6505   fi
6506 fi
6507 test -z "$NM" && NM=nm
6508
6509
6510
6511
6512
6513
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6515 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6516 if test "${lt_cv_nm_interface+set}" = set; then :
6517   $as_echo_n "(cached) " >&6
6518 else
6519   lt_cv_nm_interface="BSD nm"
6520   echo "int some_variable = 0;" > conftest.$ac_ext
6521   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6522   (eval "$ac_compile" 2>conftest.err)
6523   cat conftest.err >&5
6524   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6525   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6526   cat conftest.err >&5
6527   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6528   cat conftest.out >&5
6529   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6530     lt_cv_nm_interface="MS dumpbin"
6531   fi
6532   rm -f conftest*
6533 fi
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6535 $as_echo "$lt_cv_nm_interface" >&6; }
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6538 $as_echo_n "checking whether ln -s works... " >&6; }
6539 LN_S=$as_ln_s
6540 if test "$LN_S" = "ln -s"; then
6541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6542 $as_echo "yes" >&6; }
6543 else
6544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6545 $as_echo "no, using $LN_S" >&6; }
6546 fi
6547
6548 # find the maximum length of command line arguments
6549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6550 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6551 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6552   $as_echo_n "(cached) " >&6
6553 else
6554     i=0
6555   teststring="ABCD"
6556
6557   case $build_os in
6558   msdosdjgpp*)
6559     # On DJGPP, this test can blow up pretty badly due to problems in libc
6560     # (any single argument exceeding 2000 bytes causes a buffer overrun
6561     # during glob expansion).  Even if it were fixed, the result of this
6562     # check would be larger than it should be.
6563     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6564     ;;
6565
6566   gnu*)
6567     # Under GNU Hurd, this test is not required because there is
6568     # no limit to the length of command line arguments.
6569     # Libtool will interpret -1 as no limit whatsoever
6570     lt_cv_sys_max_cmd_len=-1;
6571     ;;
6572
6573   cygwin* | mingw* | cegcc*)
6574     # On Win9x/ME, this test blows up -- it succeeds, but takes
6575     # about 5 minutes as the teststring grows exponentially.
6576     # Worse, since 9x/ME are not pre-emptively multitasking,
6577     # you end up with a "frozen" computer, even though with patience
6578     # the test eventually succeeds (with a max line length of 256k).
6579     # Instead, let's just punt: use the minimum linelength reported by
6580     # all of the supported platforms: 8192 (on NT/2K/XP).
6581     lt_cv_sys_max_cmd_len=8192;
6582     ;;
6583
6584   mint*)
6585     # On MiNT this can take a long time and run out of memory.
6586     lt_cv_sys_max_cmd_len=8192;
6587     ;;
6588
6589   amigaos*)
6590     # On AmigaOS with pdksh, this test takes hours, literally.
6591     # So we just punt and use a minimum line length of 8192.
6592     lt_cv_sys_max_cmd_len=8192;
6593     ;;
6594
6595   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6596     # This has been around since 386BSD, at least.  Likely further.
6597     if test -x /sbin/sysctl; then
6598       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6599     elif test -x /usr/sbin/sysctl; then
6600       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6601     else
6602       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6603     fi
6604     # And add a safety zone
6605     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6606     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6607     ;;
6608
6609   interix*)
6610     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6611     lt_cv_sys_max_cmd_len=196608
6612     ;;
6613
6614   osf*)
6615     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6616     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6617     # nice to cause kernel panics so lets avoid the loop below.
6618     # First set a reasonable default.
6619     lt_cv_sys_max_cmd_len=16384
6620     #
6621     if test -x /sbin/sysconfig; then
6622       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6623         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6624       esac
6625     fi
6626     ;;
6627   sco3.2v5*)
6628     lt_cv_sys_max_cmd_len=102400
6629     ;;
6630   sysv5* | sco5v6* | sysv4.2uw2*)
6631     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6632     if test -n "$kargmax"; then
6633       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6634     else
6635       lt_cv_sys_max_cmd_len=32768
6636     fi
6637     ;;
6638   *)
6639     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6640     if test -n "$lt_cv_sys_max_cmd_len"; then
6641       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6642       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6643     else
6644       # Make teststring a little bigger before we do anything with it.
6645       # a 1K string should be a reasonable start.
6646       for i in 1 2 3 4 5 6 7 8 ; do
6647         teststring=$teststring$teststring
6648       done
6649       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6650       # If test is not a shell built-in, we'll probably end up computing a
6651       # maximum length that is only half of the actual maximum length, but
6652       # we can't tell.
6653       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6654                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6655               test $i != 17 # 1/2 MB should be enough
6656       do
6657         i=`expr $i + 1`
6658         teststring=$teststring$teststring
6659       done
6660       # Only check the string length outside the loop.
6661       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6662       teststring=
6663       # Add a significant safety factor because C++ compilers can tack on
6664       # massive amounts of additional arguments before passing them to the
6665       # linker.  It appears as though 1/2 is a usable value.
6666       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6667     fi
6668     ;;
6669   esac
6670
6671 fi
6672
6673 if test -n $lt_cv_sys_max_cmd_len ; then
6674   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6675 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6676 else
6677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6678 $as_echo "none" >&6; }
6679 fi
6680 max_cmd_len=$lt_cv_sys_max_cmd_len
6681
6682
6683
6684
6685
6686
6687 : ${CP="cp -f"}
6688 : ${MV="mv -f"}
6689 : ${RM="rm -f"}
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6692 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6693 # Try some XSI features
6694 xsi_shell=no
6695 ( _lt_dummy="a/b/c"
6696   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6697       = c,a/b,b/c, \
6698     && eval 'test $(( 1 + 1 )) -eq 2 \
6699     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6700   && xsi_shell=yes
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6702 $as_echo "$xsi_shell" >&6; }
6703
6704
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6706 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6707 lt_shell_append=no
6708 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6709     >/dev/null 2>&1 \
6710   && lt_shell_append=yes
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6712 $as_echo "$lt_shell_append" >&6; }
6713
6714
6715 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6716   lt_unset=unset
6717 else
6718   lt_unset=false
6719 fi
6720
6721
6722
6723
6724
6725 # test EBCDIC or ASCII
6726 case `echo X|tr X '\101'` in
6727  A) # ASCII based system
6728     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6729   lt_SP2NL='tr \040 \012'
6730   lt_NL2SP='tr \015\012 \040\040'
6731   ;;
6732  *) # EBCDIC based system
6733   lt_SP2NL='tr \100 \n'
6734   lt_NL2SP='tr \r\n \100\100'
6735   ;;
6736 esac
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6747 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6748 if test "${lt_cv_to_host_file_cmd+set}" = set; then :
6749   $as_echo_n "(cached) " >&6
6750 else
6751   case $host in
6752   *-*-mingw* )
6753     case $build in
6754       *-*-mingw* ) # actually msys
6755         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6756         ;;
6757       *-*-cygwin* )
6758         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6759         ;;
6760       * ) # otherwise, assume *nix
6761         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6762         ;;
6763     esac
6764     ;;
6765   *-*-cygwin* )
6766     case $build in
6767       *-*-mingw* ) # actually msys
6768         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6769         ;;
6770       *-*-cygwin* )
6771         lt_cv_to_host_file_cmd=func_convert_file_noop
6772         ;;
6773       * ) # otherwise, assume *nix
6774         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6775         ;;
6776     esac
6777     ;;
6778   * ) # unhandled hosts (and "normal" native builds)
6779     lt_cv_to_host_file_cmd=func_convert_file_noop
6780     ;;
6781 esac
6782
6783 fi
6784
6785 to_host_file_cmd=$lt_cv_to_host_file_cmd
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6787 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6788
6789
6790
6791
6792
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6794 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6795 if test "${lt_cv_to_tool_file_cmd+set}" = set; then :
6796   $as_echo_n "(cached) " >&6
6797 else
6798   #assume ordinary cross tools, or native build.
6799 lt_cv_to_tool_file_cmd=func_convert_file_noop
6800 case $host in
6801   *-*-mingw* )
6802     case $build in
6803       *-*-mingw* ) # actually msys
6804         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6805         ;;
6806     esac
6807     ;;
6808 esac
6809
6810 fi
6811
6812 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6814 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6815
6816
6817
6818
6819
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6821 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6822 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6823   $as_echo_n "(cached) " >&6
6824 else
6825   lt_cv_ld_reload_flag='-r'
6826 fi
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6828 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6829 reload_flag=$lt_cv_ld_reload_flag
6830 case $reload_flag in
6831 "" | " "*) ;;
6832 *) reload_flag=" $reload_flag" ;;
6833 esac
6834 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6835 case $host_os in
6836   cygwin* | mingw* | pw32* | cegcc*)
6837     if test "$GCC" != yes; then
6838       reload_cmds=false
6839     fi
6840     ;;
6841   darwin*)
6842     if test "$GCC" = yes; then
6843       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6844     else
6845       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6846     fi
6847     ;;
6848 esac
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858 if test -n "$ac_tool_prefix"; then
6859   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6860 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6864   $as_echo_n "(cached) " >&6
6865 else
6866   if test -n "$OBJDUMP"; then
6867   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872   IFS=$as_save_IFS
6873   test -z "$as_dir" && as_dir=.
6874     for ac_exec_ext in '' $ac_executable_extensions; do
6875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6877     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878     break 2
6879   fi
6880 done
6881   done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 OBJDUMP=$ac_cv_prog_OBJDUMP
6887 if test -n "$OBJDUMP"; then
6888   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6889 $as_echo "$OBJDUMP" >&6; }
6890 else
6891   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895
6896 fi
6897 if test -z "$ac_cv_prog_OBJDUMP"; then
6898   ac_ct_OBJDUMP=$OBJDUMP
6899   # Extract the first word of "objdump", so it can be a program name with args.
6900 set dummy objdump; ac_word=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6904   $as_echo_n "(cached) " >&6
6905 else
6906   if test -n "$ac_ct_OBJDUMP"; then
6907   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6908 else
6909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6910 for as_dir in $PATH
6911 do
6912   IFS=$as_save_IFS
6913   test -z "$as_dir" && as_dir=.
6914     for ac_exec_ext in '' $ac_executable_extensions; do
6915   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6916     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6917     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6918     break 2
6919   fi
6920 done
6921   done
6922 IFS=$as_save_IFS
6923
6924 fi
6925 fi
6926 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6927 if test -n "$ac_ct_OBJDUMP"; then
6928   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6929 $as_echo "$ac_ct_OBJDUMP" >&6; }
6930 else
6931   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6932 $as_echo "no" >&6; }
6933 fi
6934
6935   if test "x$ac_ct_OBJDUMP" = x; then
6936     OBJDUMP="false"
6937   else
6938     case $cross_compiling:$ac_tool_warned in
6939 yes:)
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6942 ac_tool_warned=yes ;;
6943 esac
6944     OBJDUMP=$ac_ct_OBJDUMP
6945   fi
6946 else
6947   OBJDUMP="$ac_cv_prog_OBJDUMP"
6948 fi
6949
6950 test -z "$OBJDUMP" && OBJDUMP=objdump
6951
6952
6953
6954
6955
6956
6957
6958
6959
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6961 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6962 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6963   $as_echo_n "(cached) " >&6
6964 else
6965   lt_cv_file_magic_cmd='$MAGIC_CMD'
6966 lt_cv_file_magic_test_file=
6967 lt_cv_deplibs_check_method='unknown'
6968 # Need to set the preceding variable on all platforms that support
6969 # interlibrary dependencies.
6970 # 'none' -- dependencies not supported.
6971 # `unknown' -- same as none, but documents that we really don't know.
6972 # 'pass_all' -- all dependencies passed with no checks.
6973 # 'test_compile' -- check by making test program.
6974 # 'file_magic [[regex]]' -- check by looking for files in library path
6975 # which responds to the $file_magic_cmd with a given extended regex.
6976 # If you have `file' or equivalent on your system and you're not sure
6977 # whether `pass_all' will *always* work, you probably want this one.
6978
6979 case $host_os in
6980 aix[4-9]*)
6981   lt_cv_deplibs_check_method=pass_all
6982   ;;
6983
6984 beos*)
6985   lt_cv_deplibs_check_method=pass_all
6986   ;;
6987
6988 bsdi[45]*)
6989   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6990   lt_cv_file_magic_cmd='/usr/bin/file -L'
6991   lt_cv_file_magic_test_file=/shlib/libc.so
6992   ;;
6993
6994 cygwin*)
6995   # func_win32_libid is a shell function defined in ltmain.sh
6996   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6997   lt_cv_file_magic_cmd='func_win32_libid'
6998   ;;
6999
7000 mingw* | pw32*)
7001   # Base MSYS/MinGW do not provide the 'file' command needed by
7002   # func_win32_libid shell function, so use a weaker test based on 'objdump',
7003   # unless we find 'file', for example because we are cross-compiling.
7004   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7005   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7006     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7007     lt_cv_file_magic_cmd='func_win32_libid'
7008   else
7009     # Keep this pattern in sync with the one in func_win32_libid.
7010     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
7011     lt_cv_file_magic_cmd='$OBJDUMP -f'
7012   fi
7013   ;;
7014
7015 cegcc*)
7016   # use the weaker test based on 'objdump'. See mingw*.
7017   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7018   lt_cv_file_magic_cmd='$OBJDUMP -f'
7019   ;;
7020
7021 darwin* | rhapsody*)
7022   lt_cv_deplibs_check_method=pass_all
7023   ;;
7024
7025 freebsd* | dragonfly*)
7026   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7027     case $host_cpu in
7028     i*86 )
7029       # Not sure whether the presence of OpenBSD here was a mistake.
7030       # Let's accept both of them until this is cleared up.
7031       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7032       lt_cv_file_magic_cmd=/usr/bin/file
7033       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7034       ;;
7035     esac
7036   else
7037     lt_cv_deplibs_check_method=pass_all
7038   fi
7039   ;;
7040
7041 gnu*)
7042   lt_cv_deplibs_check_method=pass_all
7043   ;;
7044
7045 haiku*)
7046   lt_cv_deplibs_check_method=pass_all
7047   ;;
7048
7049 hpux10.20* | hpux11*)
7050   lt_cv_file_magic_cmd=/usr/bin/file
7051   case $host_cpu in
7052   ia64*)
7053     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7054     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7055     ;;
7056   hppa*64*)
7057     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
7058     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7059     ;;
7060   *)
7061     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7062     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7063     ;;
7064   esac
7065   ;;
7066
7067 interix[3-9]*)
7068   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7069   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7070   ;;
7071
7072 irix5* | irix6* | nonstopux*)
7073   case $LD in
7074   *-32|*"-32 ") libmagic=32-bit;;
7075   *-n32|*"-n32 ") libmagic=N32;;
7076   *-64|*"-64 ") libmagic=64-bit;;
7077   *) libmagic=never-match;;
7078   esac
7079   lt_cv_deplibs_check_method=pass_all
7080   ;;
7081
7082 # This must be Linux ELF.
7083 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 netbsd*)
7088   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7090   else
7091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7092   fi
7093   ;;
7094
7095 newos6*)
7096   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7097   lt_cv_file_magic_cmd=/usr/bin/file
7098   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7099   ;;
7100
7101 *nto* | *qnx*)
7102   lt_cv_deplibs_check_method=pass_all
7103   ;;
7104
7105 openbsd*)
7106   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7107     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7108   else
7109     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7110   fi
7111   ;;
7112
7113 osf3* | osf4* | osf5*)
7114   lt_cv_deplibs_check_method=pass_all
7115   ;;
7116
7117 rdos*)
7118   lt_cv_deplibs_check_method=pass_all
7119   ;;
7120
7121 solaris*)
7122   lt_cv_deplibs_check_method=pass_all
7123   ;;
7124
7125 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7126   lt_cv_deplibs_check_method=pass_all
7127   ;;
7128
7129 sysv4 | sysv4.3*)
7130   case $host_vendor in
7131   motorola)
7132     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]'
7133     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7134     ;;
7135   ncr)
7136     lt_cv_deplibs_check_method=pass_all
7137     ;;
7138   sequent)
7139     lt_cv_file_magic_cmd='/bin/file'
7140     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7141     ;;
7142   sni)
7143     lt_cv_file_magic_cmd='/bin/file'
7144     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7145     lt_cv_file_magic_test_file=/lib/libc.so
7146     ;;
7147   siemens)
7148     lt_cv_deplibs_check_method=pass_all
7149     ;;
7150   pc)
7151     lt_cv_deplibs_check_method=pass_all
7152     ;;
7153   esac
7154   ;;
7155
7156 tpf*)
7157   lt_cv_deplibs_check_method=pass_all
7158   ;;
7159 esac
7160
7161 fi
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7163 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7164
7165 file_magic_glob=
7166 want_nocaseglob=no
7167 if test "$build" = "$host"; then
7168   case $host_os in
7169   mingw* | pw32*)
7170     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7171       want_nocaseglob=yes
7172     else
7173       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7174     fi
7175     ;;
7176   esac
7177 fi
7178
7179 file_magic_cmd=$lt_cv_file_magic_cmd
7180 deplibs_check_method=$lt_cv_deplibs_check_method
7181 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204 if test -n "$ac_tool_prefix"; then
7205   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7210   $as_echo_n "(cached) " >&6
7211 else
7212   if test -n "$DLLTOOL"; then
7213   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218   IFS=$as_save_IFS
7219   test -z "$as_dir" && as_dir=.
7220     for ac_exec_ext in '' $ac_executable_extensions; do
7221   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7223     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224     break 2
7225   fi
7226 done
7227   done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 DLLTOOL=$ac_cv_prog_DLLTOOL
7233 if test -n "$DLLTOOL"; then
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7235 $as_echo "$DLLTOOL" >&6; }
7236 else
7237   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_DLLTOOL"; then
7244   ac_ct_DLLTOOL=$DLLTOOL
7245   # Extract the first word of "dlltool", so it can be a program name with args.
7246 set dummy dlltool; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7250   $as_echo_n "(cached) " >&6
7251 else
7252   if test -n "$ac_ct_DLLTOOL"; then
7253   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258   IFS=$as_save_IFS
7259   test -z "$as_dir" && as_dir=.
7260     for ac_exec_ext in '' $ac_executable_extensions; do
7261   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7263     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264     break 2
7265   fi
7266 done
7267   done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7273 if test -n "$ac_ct_DLLTOOL"; then
7274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7275 $as_echo "$ac_ct_DLLTOOL" >&6; }
7276 else
7277   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281   if test "x$ac_ct_DLLTOOL" = x; then
7282     DLLTOOL="false"
7283   else
7284     case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290     DLLTOOL=$ac_ct_DLLTOOL
7291   fi
7292 else
7293   DLLTOOL="$ac_cv_prog_DLLTOOL"
7294 fi
7295
7296 test -z "$DLLTOOL" && DLLTOOL=dlltool
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7308 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7309 if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   lt_cv_sharedlib_from_linklib_cmd='unknown'
7313
7314 case $host_os in
7315 cygwin* | mingw* | pw32* | cegcc*)
7316   # two different shell functions defined in ltmain.sh
7317   # decide which to use based on capabilities of $DLLTOOL
7318   case `$DLLTOOL --help 2>&1` in
7319   *--identify-strict*)
7320     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7321     ;;
7322   *)
7323     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7324     ;;
7325   esac
7326   ;;
7327 *)
7328   # fallback: assume linklib IS sharedlib
7329   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7330   ;;
7331 esac
7332
7333 fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7335 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7336 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7337 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7338
7339
7340
7341
7342
7343
7344
7345 if test -n "$ac_tool_prefix"; then
7346   for ac_prog in ar
7347   do
7348     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7349 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7351 $as_echo_n "checking for $ac_word... " >&6; }
7352 if test "${ac_cv_prog_AR+set}" = set; then :
7353   $as_echo_n "(cached) " >&6
7354 else
7355   if test -n "$AR"; then
7356   ac_cv_prog_AR="$AR" # Let the user override the test.
7357 else
7358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 for as_dir in $PATH
7360 do
7361   IFS=$as_save_IFS
7362   test -z "$as_dir" && as_dir=.
7363     for ac_exec_ext in '' $ac_executable_extensions; do
7364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7365     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7367     break 2
7368   fi
7369 done
7370   done
7371 IFS=$as_save_IFS
7372
7373 fi
7374 fi
7375 AR=$ac_cv_prog_AR
7376 if test -n "$AR"; then
7377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7378 $as_echo "$AR" >&6; }
7379 else
7380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }
7382 fi
7383
7384
7385     test -n "$AR" && break
7386   done
7387 fi
7388 if test -z "$AR"; then
7389   ac_ct_AR=$AR
7390   for ac_prog in ar
7391 do
7392   # Extract the first word of "$ac_prog", so it can be a program name with args.
7393 set dummy $ac_prog; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7397   $as_echo_n "(cached) " >&6
7398 else
7399   if test -n "$ac_ct_AR"; then
7400   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7404 do
7405   IFS=$as_save_IFS
7406   test -z "$as_dir" && as_dir=.
7407     for ac_exec_ext in '' $ac_executable_extensions; do
7408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409     ac_cv_prog_ac_ct_AR="$ac_prog"
7410     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411     break 2
7412   fi
7413 done
7414   done
7415 IFS=$as_save_IFS
7416
7417 fi
7418 fi
7419 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7420 if test -n "$ac_ct_AR"; then
7421   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7422 $as_echo "$ac_ct_AR" >&6; }
7423 else
7424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7426 fi
7427
7428
7429   test -n "$ac_ct_AR" && break
7430 done
7431
7432   if test "x$ac_ct_AR" = x; then
7433     AR="false"
7434   else
7435     case $cross_compiling:$ac_tool_warned in
7436 yes:)
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7439 ac_tool_warned=yes ;;
7440 esac
7441     AR=$ac_ct_AR
7442   fi
7443 fi
7444
7445 : ${AR=ar}
7446 : ${AR_FLAGS=cru}
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7459 $as_echo_n "checking for archiver @FILE support... " >&6; }
7460 if test "${lt_cv_ar_at_file+set}" = set; then :
7461   $as_echo_n "(cached) " >&6
7462 else
7463   lt_cv_ar_at_file=no
7464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7465 /* end confdefs.h.  */
7466
7467 int
7468 main ()
7469 {
7470
7471   ;
7472   return 0;
7473 }
7474 _ACEOF
7475 if ac_fn_c_try_compile "$LINENO"; then :
7476   echo conftest.$ac_objext > conftest.lst
7477       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7478       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7479   (eval $lt_ar_try) 2>&5
7480   ac_status=$?
7481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7482   test $ac_status = 0; }
7483       if test "$ac_status" -eq 0; then
7484         # Ensure the archiver fails upon bogus file names.
7485         rm -f conftest.$ac_objext libconftest.a
7486         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7487   (eval $lt_ar_try) 2>&5
7488   ac_status=$?
7489   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7490   test $ac_status = 0; }
7491         if test "$ac_status" -ne 0; then
7492           lt_cv_ar_at_file=@
7493         fi
7494       fi
7495       rm -f conftest.* libconftest.a
7496
7497 fi
7498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7499
7500 fi
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7502 $as_echo "$lt_cv_ar_at_file" >&6; }
7503
7504 if test "x$lt_cv_ar_at_file" = xno; then
7505   archiver_list_spec=
7506 else
7507   archiver_list_spec=$lt_cv_ar_at_file
7508 fi
7509
7510
7511
7512
7513
7514
7515
7516 if test -n "$ac_tool_prefix"; then
7517   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7518 set dummy ${ac_tool_prefix}strip; ac_word=$2
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7520 $as_echo_n "checking for $ac_word... " >&6; }
7521 if test "${ac_cv_prog_STRIP+set}" = set; then :
7522   $as_echo_n "(cached) " >&6
7523 else
7524   if test -n "$STRIP"; then
7525   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7526 else
7527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7528 for as_dir in $PATH
7529 do
7530   IFS=$as_save_IFS
7531   test -z "$as_dir" && as_dir=.
7532     for ac_exec_ext in '' $ac_executable_extensions; do
7533   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7534     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7535     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7536     break 2
7537   fi
7538 done
7539   done
7540 IFS=$as_save_IFS
7541
7542 fi
7543 fi
7544 STRIP=$ac_cv_prog_STRIP
7545 if test -n "$STRIP"; then
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7547 $as_echo "$STRIP" >&6; }
7548 else
7549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7550 $as_echo "no" >&6; }
7551 fi
7552
7553
7554 fi
7555 if test -z "$ac_cv_prog_STRIP"; then
7556   ac_ct_STRIP=$STRIP
7557   # Extract the first word of "strip", so it can be a program name with args.
7558 set dummy strip; ac_word=$2
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7560 $as_echo_n "checking for $ac_word... " >&6; }
7561 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7562   $as_echo_n "(cached) " >&6
7563 else
7564   if test -n "$ac_ct_STRIP"; then
7565   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7566 else
7567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7568 for as_dir in $PATH
7569 do
7570   IFS=$as_save_IFS
7571   test -z "$as_dir" && as_dir=.
7572     for ac_exec_ext in '' $ac_executable_extensions; do
7573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7574     ac_cv_prog_ac_ct_STRIP="strip"
7575     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7576     break 2
7577   fi
7578 done
7579   done
7580 IFS=$as_save_IFS
7581
7582 fi
7583 fi
7584 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7585 if test -n "$ac_ct_STRIP"; then
7586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7587 $as_echo "$ac_ct_STRIP" >&6; }
7588 else
7589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 fi
7592
7593   if test "x$ac_ct_STRIP" = x; then
7594     STRIP=":"
7595   else
7596     case $cross_compiling:$ac_tool_warned in
7597 yes:)
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7600 ac_tool_warned=yes ;;
7601 esac
7602     STRIP=$ac_ct_STRIP
7603   fi
7604 else
7605   STRIP="$ac_cv_prog_STRIP"
7606 fi
7607
7608 test -z "$STRIP" && STRIP=:
7609
7610
7611
7612
7613
7614
7615 if test -n "$ac_tool_prefix"; then
7616   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7617 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7621   $as_echo_n "(cached) " >&6
7622 else
7623   if test -n "$RANLIB"; then
7624   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7628 do
7629   IFS=$as_save_IFS
7630   test -z "$as_dir" && as_dir=.
7631     for ac_exec_ext in '' $ac_executable_extensions; do
7632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7633     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7634     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635     break 2
7636   fi
7637 done
7638   done
7639 IFS=$as_save_IFS
7640
7641 fi
7642 fi
7643 RANLIB=$ac_cv_prog_RANLIB
7644 if test -n "$RANLIB"; then
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7646 $as_echo "$RANLIB" >&6; }
7647 else
7648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7650 fi
7651
7652
7653 fi
7654 if test -z "$ac_cv_prog_RANLIB"; then
7655   ac_ct_RANLIB=$RANLIB
7656   # Extract the first word of "ranlib", so it can be a program name with args.
7657 set dummy ranlib; ac_word=$2
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7659 $as_echo_n "checking for $ac_word... " >&6; }
7660 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7661   $as_echo_n "(cached) " >&6
7662 else
7663   if test -n "$ac_ct_RANLIB"; then
7664   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7665 else
7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7667 for as_dir in $PATH
7668 do
7669   IFS=$as_save_IFS
7670   test -z "$as_dir" && as_dir=.
7671     for ac_exec_ext in '' $ac_executable_extensions; do
7672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7673     ac_cv_prog_ac_ct_RANLIB="ranlib"
7674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7675     break 2
7676   fi
7677 done
7678   done
7679 IFS=$as_save_IFS
7680
7681 fi
7682 fi
7683 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7684 if test -n "$ac_ct_RANLIB"; then
7685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7686 $as_echo "$ac_ct_RANLIB" >&6; }
7687 else
7688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7689 $as_echo "no" >&6; }
7690 fi
7691
7692   if test "x$ac_ct_RANLIB" = x; then
7693     RANLIB=":"
7694   else
7695     case $cross_compiling:$ac_tool_warned in
7696 yes:)
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7699 ac_tool_warned=yes ;;
7700 esac
7701     RANLIB=$ac_ct_RANLIB
7702   fi
7703 else
7704   RANLIB="$ac_cv_prog_RANLIB"
7705 fi
7706
7707 test -z "$RANLIB" && RANLIB=:
7708
7709
7710
7711
7712
7713
7714 # Determine commands to create old-style static archives.
7715 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7716 old_postinstall_cmds='chmod 644 $oldlib'
7717 old_postuninstall_cmds=
7718
7719 if test -n "$RANLIB"; then
7720   case $host_os in
7721   openbsd*)
7722     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7723     ;;
7724   *)
7725     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7726     ;;
7727   esac
7728   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7729 fi
7730
7731 case $host_os in
7732   darwin*)
7733     lock_old_archive_extraction=yes ;;
7734   *)
7735     lock_old_archive_extraction=no ;;
7736 esac
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 # If no C compiler was specified, use CC.
7777 LTCC=${LTCC-"$CC"}
7778
7779 # If no C compiler flags were specified, use CFLAGS.
7780 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7781
7782 # Allow CC to be a program name with arguments.
7783 compiler=$CC
7784
7785
7786 # Check for command to grab the raw symbol name followed by C symbol from nm.
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7788 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7789 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7790   $as_echo_n "(cached) " >&6
7791 else
7792
7793 # These are sane defaults that work on at least a few old systems.
7794 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7795
7796 # Character class describing NM global symbol codes.
7797 symcode='[BCDEGRST]'
7798
7799 # Regexp to match symbols that can be accessed directly from C.
7800 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7801
7802 # Define system-specific variables.
7803 case $host_os in
7804 aix*)
7805   symcode='[BCDT]'
7806   ;;
7807 cygwin* | mingw* | pw32* | cegcc*)
7808   symcode='[ABCDGISTW]'
7809   ;;
7810 hpux*)
7811   if test "$host_cpu" = ia64; then
7812     symcode='[ABCDEGRST]'
7813   fi
7814   ;;
7815 irix* | nonstopux*)
7816   symcode='[BCDEGRST]'
7817   ;;
7818 osf*)
7819   symcode='[BCDEGQRST]'
7820   ;;
7821 solaris*)
7822   symcode='[BDRT]'
7823   ;;
7824 sco3.2v5*)
7825   symcode='[DT]'
7826   ;;
7827 sysv4.2uw2*)
7828   symcode='[DT]'
7829   ;;
7830 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7831   symcode='[ABDT]'
7832   ;;
7833 sysv4)
7834   symcode='[DFNSTU]'
7835   ;;
7836 esac
7837
7838 # If we're using GNU nm, then use its standard symbol codes.
7839 case `$NM -V 2>&1` in
7840 *GNU* | *'with BFD'*)
7841   symcode='[ABCDGIRSTW]' ;;
7842 esac
7843
7844 # Transform an extracted symbol line into a proper C declaration.
7845 # Some systems (esp. on ia64) link data and code symbols differently,
7846 # so use this general approach.
7847 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7848
7849 # Transform an extracted symbol line into symbol name and symbol address
7850 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7851 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'"
7852
7853 # Handle CRLF in mingw tool chain
7854 opt_cr=
7855 case $build_os in
7856 mingw*)
7857   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7858   ;;
7859 esac
7860
7861 # Try without a prefix underscore, then with it.
7862 for ac_symprfx in "" "_"; do
7863
7864   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7865   symxfrm="\\1 $ac_symprfx\\2 \\2"
7866
7867   # Write the raw and C identifiers.
7868   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7869     # Fake it for dumpbin and say T for any non-static function
7870     # and D for any global variable.
7871     # Also find C++ and __fastcall symbols from MSVC++,
7872     # which start with @ or ?.
7873     lt_cv_sys_global_symbol_pipe="$AWK '"\
7874 "     {last_section=section; section=\$ 3};"\
7875 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7876 "     \$ 0!~/External *\|/{next};"\
7877 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7878 "     {if(hide[section]) next};"\
7879 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7880 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7881 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7882 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7883 "     ' prfx=^$ac_symprfx"
7884   else
7885     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7886   fi
7887   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7888
7889   # Check to see that the pipe works correctly.
7890   pipe_works=no
7891
7892   rm -f conftest*
7893   cat > conftest.$ac_ext <<_LT_EOF
7894 #ifdef __cplusplus
7895 extern "C" {
7896 #endif
7897 char nm_test_var;
7898 void nm_test_func(void);
7899 void nm_test_func(void){}
7900 #ifdef __cplusplus
7901 }
7902 #endif
7903 int main(){nm_test_var='a';nm_test_func();return(0);}
7904 _LT_EOF
7905
7906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7907   (eval $ac_compile) 2>&5
7908   ac_status=$?
7909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7910   test $ac_status = 0; }; then
7911     # Now try to grab the symbols.
7912     nlist=conftest.nm
7913     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7914   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7915   ac_status=$?
7916   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7917   test $ac_status = 0; } && test -s "$nlist"; then
7918       # Try sorting and uniquifying the output.
7919       if sort "$nlist" | uniq > "$nlist"T; then
7920         mv -f "$nlist"T "$nlist"
7921       else
7922         rm -f "$nlist"T
7923       fi
7924
7925       # Make sure that we snagged all the symbols we need.
7926       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7927         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7928           cat <<_LT_EOF > conftest.$ac_ext
7929 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7930 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7931 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7932    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7933 # define LT_DLSYM_CONST
7934 #elif defined(__osf__)
7935 /* This system does not cope well with relocations in const data.  */
7936 # define LT_DLSYM_CONST
7937 #else
7938 # define LT_DLSYM_CONST const
7939 #endif
7940
7941 #ifdef __cplusplus
7942 extern "C" {
7943 #endif
7944
7945 _LT_EOF
7946           # Now generate the symbol file.
7947           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7948
7949           cat <<_LT_EOF >> conftest.$ac_ext
7950
7951 /* The mapping between symbol names and symbols.  */
7952 LT_DLSYM_CONST struct {
7953   const char *name;
7954   void       *address;
7955 }
7956 lt__PROGRAM__LTX_preloaded_symbols[] =
7957 {
7958   { "@PROGRAM@", (void *) 0 },
7959 _LT_EOF
7960           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7961           cat <<\_LT_EOF >> conftest.$ac_ext
7962   {0, (void *) 0}
7963 };
7964
7965 /* This works around a problem in FreeBSD linker */
7966 #ifdef FREEBSD_WORKAROUND
7967 static const void *lt_preloaded_setup() {
7968   return lt__PROGRAM__LTX_preloaded_symbols;
7969 }
7970 #endif
7971
7972 #ifdef __cplusplus
7973 }
7974 #endif
7975 _LT_EOF
7976           # Now try linking the two files.
7977           mv conftest.$ac_objext conftstm.$ac_objext
7978           lt_globsym_save_LIBS=$LIBS
7979           lt_globsym_save_CFLAGS=$CFLAGS
7980           LIBS="conftstm.$ac_objext"
7981           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7982           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7983   (eval $ac_link) 2>&5
7984   ac_status=$?
7985   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7986   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7987             pipe_works=yes
7988           fi
7989           LIBS=$lt_globsym_save_LIBS
7990           CFLAGS=$lt_globsym_save_CFLAGS
7991         else
7992           echo "cannot find nm_test_func in $nlist" >&5
7993         fi
7994       else
7995         echo "cannot find nm_test_var in $nlist" >&5
7996       fi
7997     else
7998       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7999     fi
8000   else
8001     echo "$progname: failed program was:" >&5
8002     cat conftest.$ac_ext >&5
8003   fi
8004   rm -rf conftest* conftst*
8005
8006   # Do not use the global_symbol_pipe unless it works.
8007   if test "$pipe_works" = yes; then
8008     break
8009   else
8010     lt_cv_sys_global_symbol_pipe=
8011   fi
8012 done
8013
8014 fi
8015
8016 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8017   lt_cv_sys_global_symbol_to_cdecl=
8018 fi
8019 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8020   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8021 $as_echo "failed" >&6; }
8022 else
8023   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8024 $as_echo "ok" >&6; }
8025 fi
8026
8027 # Response file support.
8028 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8029   nm_file_list_spec='@'
8030 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8031   nm_file_list_spec='@'
8032 fi
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8061 $as_echo_n "checking for sysroot... " >&6; }
8062
8063 # Check whether --with-sysroot was given.
8064 if test "${with_sysroot+set}" = set; then :
8065   withval=$with_sysroot;
8066 else
8067   with_sysroot=no
8068 fi
8069
8070
8071 lt_sysroot=
8072 case ${with_sysroot} in #(
8073  yes)
8074    if test "$GCC" = yes; then
8075      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8076    fi
8077    ;; #(
8078  /*)
8079    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8080    ;; #(
8081  no|'')
8082    ;; #(
8083  *)
8084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8085 $as_echo "${with_sysroot}" >&6; }
8086    as_fn_error "The sysroot must be an absolute path." "$LINENO" 5
8087    ;;
8088 esac
8089
8090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8091 $as_echo "${lt_sysroot:-no}" >&6; }
8092
8093
8094
8095
8096
8097 # Check whether --enable-libtool-lock was given.
8098 if test "${enable_libtool_lock+set}" = set; then :
8099   enableval=$enable_libtool_lock;
8100 fi
8101
8102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8103
8104 # Some flags need to be propagated to the compiler or linker for good
8105 # libtool support.
8106 case $host in
8107 ia64-*-hpux*)
8108   # Find out which ABI we are using.
8109   echo 'int i;' > conftest.$ac_ext
8110   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8111   (eval $ac_compile) 2>&5
8112   ac_status=$?
8113   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8114   test $ac_status = 0; }; then
8115     case `/usr/bin/file conftest.$ac_objext` in
8116       *ELF-32*)
8117         HPUX_IA64_MODE="32"
8118         ;;
8119       *ELF-64*)
8120         HPUX_IA64_MODE="64"
8121         ;;
8122     esac
8123   fi
8124   rm -rf conftest*
8125   ;;
8126 *-*-irix6*)
8127   # Find out which ABI we are using.
8128   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8129   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8130   (eval $ac_compile) 2>&5
8131   ac_status=$?
8132   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8133   test $ac_status = 0; }; then
8134     if test "$lt_cv_prog_gnu_ld" = yes; then
8135       case `/usr/bin/file conftest.$ac_objext` in
8136         *32-bit*)
8137           LD="${LD-ld} -melf32bsmip"
8138           ;;
8139         *N32*)
8140           LD="${LD-ld} -melf32bmipn32"
8141           ;;
8142         *64-bit*)
8143           LD="${LD-ld} -melf64bmip"
8144         ;;
8145       esac
8146     else
8147       case `/usr/bin/file conftest.$ac_objext` in
8148         *32-bit*)
8149           LD="${LD-ld} -32"
8150           ;;
8151         *N32*)
8152           LD="${LD-ld} -n32"
8153           ;;
8154         *64-bit*)
8155           LD="${LD-ld} -64"
8156           ;;
8157       esac
8158     fi
8159   fi
8160   rm -rf conftest*
8161   ;;
8162
8163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8164 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8165   # Find out which ABI we are using.
8166   echo 'int i;' > conftest.$ac_ext
8167   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8168   (eval $ac_compile) 2>&5
8169   ac_status=$?
8170   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8171   test $ac_status = 0; }; then
8172     case `/usr/bin/file conftest.o` in
8173       *32-bit*)
8174         case $host in
8175           x86_64-*kfreebsd*-gnu)
8176             LD="${LD-ld} -m elf_i386_fbsd"
8177             ;;
8178           x86_64-*linux*)
8179             LD="${LD-ld} -m elf_i386"
8180             ;;
8181           ppc64-*linux*|powerpc64-*linux*)
8182             LD="${LD-ld} -m elf32ppclinux"
8183             ;;
8184           s390x-*linux*)
8185             LD="${LD-ld} -m elf_s390"
8186             ;;
8187           sparc64-*linux*)
8188             LD="${LD-ld} -m elf32_sparc"
8189             ;;
8190         esac
8191         ;;
8192       *64-bit*)
8193         case $host in
8194           x86_64-*kfreebsd*-gnu)
8195             LD="${LD-ld} -m elf_x86_64_fbsd"
8196             ;;
8197           x86_64-*linux*)
8198             LD="${LD-ld} -m elf_x86_64"
8199             ;;
8200           ppc*-*linux*|powerpc*-*linux*)
8201             LD="${LD-ld} -m elf64ppc"
8202             ;;
8203           s390*-*linux*|s390*-*tpf*)
8204             LD="${LD-ld} -m elf64_s390"
8205             ;;
8206           sparc*-*linux*)
8207             LD="${LD-ld} -m elf64_sparc"
8208             ;;
8209         esac
8210         ;;
8211     esac
8212   fi
8213   rm -rf conftest*
8214   ;;
8215
8216 *-*-sco3.2v5*)
8217   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8218   SAVE_CFLAGS="$CFLAGS"
8219   CFLAGS="$CFLAGS -belf"
8220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8221 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8222 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8223   $as_echo_n "(cached) " >&6
8224 else
8225   ac_ext=c
8226 ac_cpp='$CPP $CPPFLAGS'
8227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8230
8231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8232 /* end confdefs.h.  */
8233
8234 int
8235 main ()
8236 {
8237
8238   ;
8239   return 0;
8240 }
8241 _ACEOF
8242 if ac_fn_c_try_link "$LINENO"; then :
8243   lt_cv_cc_needs_belf=yes
8244 else
8245   lt_cv_cc_needs_belf=no
8246 fi
8247 rm -f core conftest.err conftest.$ac_objext \
8248     conftest$ac_exeext conftest.$ac_ext
8249      ac_ext=c
8250 ac_cpp='$CPP $CPPFLAGS'
8251 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8252 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8253 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8254
8255 fi
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8257 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8258   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8259     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8260     CFLAGS="$SAVE_CFLAGS"
8261   fi
8262   ;;
8263 sparc*-*solaris*)
8264   # Find out which ABI we are using.
8265   echo 'int i;' > conftest.$ac_ext
8266   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8267   (eval $ac_compile) 2>&5
8268   ac_status=$?
8269   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8270   test $ac_status = 0; }; then
8271     case `/usr/bin/file conftest.o` in
8272     *64-bit*)
8273       case $lt_cv_prog_gnu_ld in
8274       yes*) LD="${LD-ld} -m elf64_sparc" ;;
8275       *)
8276         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8277           LD="${LD-ld} -64"
8278         fi
8279         ;;
8280       esac
8281       ;;
8282     esac
8283   fi
8284   rm -rf conftest*
8285   ;;
8286 esac
8287
8288 need_locks="$enable_libtool_lock"
8289
8290 if test -n "$ac_tool_prefix"; then
8291   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8292 set dummy ${ac_tool_prefix}mt; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then :
8296   $as_echo_n "(cached) " >&6
8297 else
8298   if test -n "$MANIFEST_TOOL"; then
8299   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8300 else
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8302 for as_dir in $PATH
8303 do
8304   IFS=$as_save_IFS
8305   test -z "$as_dir" && as_dir=.
8306     for ac_exec_ext in '' $ac_executable_extensions; do
8307   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8308     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8309     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8310     break 2
8311   fi
8312 done
8313   done
8314 IFS=$as_save_IFS
8315
8316 fi
8317 fi
8318 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8319 if test -n "$MANIFEST_TOOL"; then
8320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8321 $as_echo "$MANIFEST_TOOL" >&6; }
8322 else
8323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8325 fi
8326
8327
8328 fi
8329 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8330   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8331   # Extract the first word of "mt", so it can be a program name with args.
8332 set dummy mt; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then :
8336   $as_echo_n "(cached) " >&6
8337 else
8338   if test -n "$ac_ct_MANIFEST_TOOL"; then
8339   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8340 else
8341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8342 for as_dir in $PATH
8343 do
8344   IFS=$as_save_IFS
8345   test -z "$as_dir" && as_dir=.
8346     for ac_exec_ext in '' $ac_executable_extensions; do
8347   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8348     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8349     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8350     break 2
8351   fi
8352 done
8353   done
8354 IFS=$as_save_IFS
8355
8356 fi
8357 fi
8358 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8359 if test -n "$ac_ct_MANIFEST_TOOL"; then
8360   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8361 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8362 else
8363   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8364 $as_echo "no" >&6; }
8365 fi
8366
8367   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8368     MANIFEST_TOOL=":"
8369   else
8370     case $cross_compiling:$ac_tool_warned in
8371 yes:)
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8374 ac_tool_warned=yes ;;
8375 esac
8376     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8377   fi
8378 else
8379   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8380 fi
8381
8382 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8384 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8385 if test "${lt_cv_path_mainfest_tool+set}" = set; then :
8386   $as_echo_n "(cached) " >&6
8387 else
8388   lt_cv_path_mainfest_tool=no
8389   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8390   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8391   cat conftest.err >&5
8392   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8393     lt_cv_path_mainfest_tool=yes
8394   fi
8395   rm -f conftest*
8396 fi
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8398 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8399 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8400   MANIFEST_TOOL=:
8401 fi
8402
8403
8404
8405
8406
8407
8408   case $host_os in
8409     rhapsody* | darwin*)
8410     if test -n "$ac_tool_prefix"; then
8411   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8412 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8414 $as_echo_n "checking for $ac_word... " >&6; }
8415 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8416   $as_echo_n "(cached) " >&6
8417 else
8418   if test -n "$DSYMUTIL"; then
8419   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8420 else
8421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8422 for as_dir in $PATH
8423 do
8424   IFS=$as_save_IFS
8425   test -z "$as_dir" && as_dir=.
8426     for ac_exec_ext in '' $ac_executable_extensions; do
8427   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8428     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8429     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8430     break 2
8431   fi
8432 done
8433   done
8434 IFS=$as_save_IFS
8435
8436 fi
8437 fi
8438 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8439 if test -n "$DSYMUTIL"; then
8440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8441 $as_echo "$DSYMUTIL" >&6; }
8442 else
8443   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444 $as_echo "no" >&6; }
8445 fi
8446
8447
8448 fi
8449 if test -z "$ac_cv_prog_DSYMUTIL"; then
8450   ac_ct_DSYMUTIL=$DSYMUTIL
8451   # Extract the first word of "dsymutil", so it can be a program name with args.
8452 set dummy dsymutil; ac_word=$2
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454 $as_echo_n "checking for $ac_word... " >&6; }
8455 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8456   $as_echo_n "(cached) " >&6
8457 else
8458   if test -n "$ac_ct_DSYMUTIL"; then
8459   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8460 else
8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8462 for as_dir in $PATH
8463 do
8464   IFS=$as_save_IFS
8465   test -z "$as_dir" && as_dir=.
8466     for ac_exec_ext in '' $ac_executable_extensions; do
8467   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8468     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8469     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8470     break 2
8471   fi
8472 done
8473   done
8474 IFS=$as_save_IFS
8475
8476 fi
8477 fi
8478 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8479 if test -n "$ac_ct_DSYMUTIL"; then
8480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8481 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8482 else
8483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8484 $as_echo "no" >&6; }
8485 fi
8486
8487   if test "x$ac_ct_DSYMUTIL" = x; then
8488     DSYMUTIL=":"
8489   else
8490     case $cross_compiling:$ac_tool_warned in
8491 yes:)
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8494 ac_tool_warned=yes ;;
8495 esac
8496     DSYMUTIL=$ac_ct_DSYMUTIL
8497   fi
8498 else
8499   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8500 fi
8501
8502     if test -n "$ac_tool_prefix"; then
8503   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8504 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8506 $as_echo_n "checking for $ac_word... " >&6; }
8507 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8508   $as_echo_n "(cached) " >&6
8509 else
8510   if test -n "$NMEDIT"; then
8511   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8512 else
8513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8514 for as_dir in $PATH
8515 do
8516   IFS=$as_save_IFS
8517   test -z "$as_dir" && as_dir=.
8518     for ac_exec_ext in '' $ac_executable_extensions; do
8519   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8520     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8521     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8522     break 2
8523   fi
8524 done
8525   done
8526 IFS=$as_save_IFS
8527
8528 fi
8529 fi
8530 NMEDIT=$ac_cv_prog_NMEDIT
8531 if test -n "$NMEDIT"; then
8532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8533 $as_echo "$NMEDIT" >&6; }
8534 else
8535   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8536 $as_echo "no" >&6; }
8537 fi
8538
8539
8540 fi
8541 if test -z "$ac_cv_prog_NMEDIT"; then
8542   ac_ct_NMEDIT=$NMEDIT
8543   # Extract the first word of "nmedit", so it can be a program name with args.
8544 set dummy nmedit; ac_word=$2
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8546 $as_echo_n "checking for $ac_word... " >&6; }
8547 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8548   $as_echo_n "(cached) " >&6
8549 else
8550   if test -n "$ac_ct_NMEDIT"; then
8551   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8552 else
8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8554 for as_dir in $PATH
8555 do
8556   IFS=$as_save_IFS
8557   test -z "$as_dir" && as_dir=.
8558     for ac_exec_ext in '' $ac_executable_extensions; do
8559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8560     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8562     break 2
8563   fi
8564 done
8565   done
8566 IFS=$as_save_IFS
8567
8568 fi
8569 fi
8570 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8571 if test -n "$ac_ct_NMEDIT"; then
8572   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8573 $as_echo "$ac_ct_NMEDIT" >&6; }
8574 else
8575   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8576 $as_echo "no" >&6; }
8577 fi
8578
8579   if test "x$ac_ct_NMEDIT" = x; then
8580     NMEDIT=":"
8581   else
8582     case $cross_compiling:$ac_tool_warned in
8583 yes:)
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8585 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8586 ac_tool_warned=yes ;;
8587 esac
8588     NMEDIT=$ac_ct_NMEDIT
8589   fi
8590 else
8591   NMEDIT="$ac_cv_prog_NMEDIT"
8592 fi
8593
8594     if test -n "$ac_tool_prefix"; then
8595   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8596 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if test "${ac_cv_prog_LIPO+set}" = set; then :
8600   $as_echo_n "(cached) " >&6
8601 else
8602   if test -n "$LIPO"; then
8603   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8607 do
8608   IFS=$as_save_IFS
8609   test -z "$as_dir" && as_dir=.
8610     for ac_exec_ext in '' $ac_executable_extensions; do
8611   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8612     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8613     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614     break 2
8615   fi
8616 done
8617   done
8618 IFS=$as_save_IFS
8619
8620 fi
8621 fi
8622 LIPO=$ac_cv_prog_LIPO
8623 if test -n "$LIPO"; then
8624   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8625 $as_echo "$LIPO" >&6; }
8626 else
8627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8629 fi
8630
8631
8632 fi
8633 if test -z "$ac_cv_prog_LIPO"; then
8634   ac_ct_LIPO=$LIPO
8635   # Extract the first word of "lipo", so it can be a program name with args.
8636 set dummy lipo; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8640   $as_echo_n "(cached) " >&6
8641 else
8642   if test -n "$ac_ct_LIPO"; then
8643   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8647 do
8648   IFS=$as_save_IFS
8649   test -z "$as_dir" && as_dir=.
8650     for ac_exec_ext in '' $ac_executable_extensions; do
8651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8652     ac_cv_prog_ac_ct_LIPO="lipo"
8653     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654     break 2
8655   fi
8656 done
8657   done
8658 IFS=$as_save_IFS
8659
8660 fi
8661 fi
8662 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8663 if test -n "$ac_ct_LIPO"; then
8664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8665 $as_echo "$ac_ct_LIPO" >&6; }
8666 else
8667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8669 fi
8670
8671   if test "x$ac_ct_LIPO" = x; then
8672     LIPO=":"
8673   else
8674     case $cross_compiling:$ac_tool_warned in
8675 yes:)
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8678 ac_tool_warned=yes ;;
8679 esac
8680     LIPO=$ac_ct_LIPO
8681   fi
8682 else
8683   LIPO="$ac_cv_prog_LIPO"
8684 fi
8685
8686     if test -n "$ac_tool_prefix"; then
8687   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8688 set dummy ${ac_tool_prefix}otool; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8692   $as_echo_n "(cached) " >&6
8693 else
8694   if test -n "$OTOOL"; then
8695   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8699 do
8700   IFS=$as_save_IFS
8701   test -z "$as_dir" && as_dir=.
8702     for ac_exec_ext in '' $ac_executable_extensions; do
8703   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8704     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706     break 2
8707   fi
8708 done
8709   done
8710 IFS=$as_save_IFS
8711
8712 fi
8713 fi
8714 OTOOL=$ac_cv_prog_OTOOL
8715 if test -n "$OTOOL"; then
8716   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8717 $as_echo "$OTOOL" >&6; }
8718 else
8719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8721 fi
8722
8723
8724 fi
8725 if test -z "$ac_cv_prog_OTOOL"; then
8726   ac_ct_OTOOL=$OTOOL
8727   # Extract the first word of "otool", so it can be a program name with args.
8728 set dummy otool; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8732   $as_echo_n "(cached) " >&6
8733 else
8734   if test -n "$ac_ct_OTOOL"; then
8735   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8739 do
8740   IFS=$as_save_IFS
8741   test -z "$as_dir" && as_dir=.
8742     for ac_exec_ext in '' $ac_executable_extensions; do
8743   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8744     ac_cv_prog_ac_ct_OTOOL="otool"
8745     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746     break 2
8747   fi
8748 done
8749   done
8750 IFS=$as_save_IFS
8751
8752 fi
8753 fi
8754 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8755 if test -n "$ac_ct_OTOOL"; then
8756   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8757 $as_echo "$ac_ct_OTOOL" >&6; }
8758 else
8759   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8761 fi
8762
8763   if test "x$ac_ct_OTOOL" = x; then
8764     OTOOL=":"
8765   else
8766     case $cross_compiling:$ac_tool_warned in
8767 yes:)
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8770 ac_tool_warned=yes ;;
8771 esac
8772     OTOOL=$ac_ct_OTOOL
8773   fi
8774 else
8775   OTOOL="$ac_cv_prog_OTOOL"
8776 fi
8777
8778     if test -n "$ac_tool_prefix"; then
8779   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8784   $as_echo_n "(cached) " >&6
8785 else
8786   if test -n "$OTOOL64"; then
8787   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8791 do
8792   IFS=$as_save_IFS
8793   test -z "$as_dir" && as_dir=.
8794     for ac_exec_ext in '' $ac_executable_extensions; do
8795   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8797     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798     break 2
8799   fi
8800 done
8801   done
8802 IFS=$as_save_IFS
8803
8804 fi
8805 fi
8806 OTOOL64=$ac_cv_prog_OTOOL64
8807 if test -n "$OTOOL64"; then
8808   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8809 $as_echo "$OTOOL64" >&6; }
8810 else
8811   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8813 fi
8814
8815
8816 fi
8817 if test -z "$ac_cv_prog_OTOOL64"; then
8818   ac_ct_OTOOL64=$OTOOL64
8819   # Extract the first word of "otool64", so it can be a program name with args.
8820 set dummy otool64; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8824   $as_echo_n "(cached) " >&6
8825 else
8826   if test -n "$ac_ct_OTOOL64"; then
8827   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8831 do
8832   IFS=$as_save_IFS
8833   test -z "$as_dir" && as_dir=.
8834     for ac_exec_ext in '' $ac_executable_extensions; do
8835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8836     ac_cv_prog_ac_ct_OTOOL64="otool64"
8837     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838     break 2
8839   fi
8840 done
8841   done
8842 IFS=$as_save_IFS
8843
8844 fi
8845 fi
8846 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8847 if test -n "$ac_ct_OTOOL64"; then
8848   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8849 $as_echo "$ac_ct_OTOOL64" >&6; }
8850 else
8851   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855   if test "x$ac_ct_OTOOL64" = x; then
8856     OTOOL64=":"
8857   else
8858     case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8863 esac
8864     OTOOL64=$ac_ct_OTOOL64
8865   fi
8866 else
8867   OTOOL64="$ac_cv_prog_OTOOL64"
8868 fi
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8897 $as_echo_n "checking for -single_module linker flag... " >&6; }
8898 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8899   $as_echo_n "(cached) " >&6
8900 else
8901   lt_cv_apple_cc_single_mod=no
8902       if test -z "${LT_MULTI_MODULE}"; then
8903         # By default we will add the -single_module flag. You can override
8904         # by either setting the environment variable LT_MULTI_MODULE
8905         # non-empty at configure time, or by adding -multi_module to the
8906         # link flags.
8907         rm -rf libconftest.dylib*
8908         echo "int foo(void){return 1;}" > conftest.c
8909         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8910 -dynamiclib -Wl,-single_module conftest.c" >&5
8911         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8912           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8913         _lt_result=$?
8914         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8915           lt_cv_apple_cc_single_mod=yes
8916         else
8917           cat conftest.err >&5
8918         fi
8919         rm -rf libconftest.dylib*
8920         rm -f conftest.*
8921       fi
8922 fi
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8924 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8925     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8926 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8927 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8928   $as_echo_n "(cached) " >&6
8929 else
8930   lt_cv_ld_exported_symbols_list=no
8931       save_LDFLAGS=$LDFLAGS
8932       echo "_main" > conftest.sym
8933       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935 /* end confdefs.h.  */
8936
8937 int
8938 main ()
8939 {
8940
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 if ac_fn_c_try_link "$LINENO"; then :
8946   lt_cv_ld_exported_symbols_list=yes
8947 else
8948   lt_cv_ld_exported_symbols_list=no
8949 fi
8950 rm -f core conftest.err conftest.$ac_objext \
8951     conftest$ac_exeext conftest.$ac_ext
8952         LDFLAGS="$save_LDFLAGS"
8953
8954 fi
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8956 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8957     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8958 $as_echo_n "checking for -force_load linker flag... " >&6; }
8959 if test "${lt_cv_ld_force_load+set}" = set; then :
8960   $as_echo_n "(cached) " >&6
8961 else
8962   lt_cv_ld_force_load=no
8963       cat > conftest.c << _LT_EOF
8964 int forced_loaded() { return 2;}
8965 _LT_EOF
8966       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8967       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8968       echo "$AR cru libconftest.a conftest.o" >&5
8969       $AR cru libconftest.a conftest.o 2>&5
8970       echo "$RANLIB libconftest.a" >&5
8971       $RANLIB libconftest.a 2>&5
8972       cat > conftest.c << _LT_EOF
8973 int main() { return 0;}
8974 _LT_EOF
8975       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8976       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8977       _lt_result=$?
8978       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8979         lt_cv_ld_force_load=yes
8980       else
8981         cat conftest.err >&5
8982       fi
8983         rm -f conftest.err libconftest.a conftest conftest.c
8984         rm -rf conftest.dSYM
8985
8986 fi
8987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8988 $as_echo "$lt_cv_ld_force_load" >&6; }
8989     case $host_os in
8990     rhapsody* | darwin1.[012])
8991       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8992     darwin1.*)
8993       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8994     darwin*) # darwin 5.x on
8995       # if running on 10.5 or later, the deployment target defaults
8996       # to the OS version, if on x86, and 10.4, the deployment
8997       # target defaults to 10.4. Don't you love it?
8998       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8999         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9000           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9001         10.[012]*)
9002           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9003         10.*)
9004           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9005       esac
9006     ;;
9007   esac
9008     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9009       _lt_dar_single_mod='$single_module'
9010     fi
9011     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9012       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9013     else
9014       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9015     fi
9016     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9017       _lt_dsymutil='~$DSYMUTIL $lib || :'
9018     else
9019       _lt_dsymutil=
9020     fi
9021     ;;
9022   esac
9023
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9025 $as_echo_n "checking for ANSI C header files... " >&6; }
9026 if test "${ac_cv_header_stdc+set}" = set; then :
9027   $as_echo_n "(cached) " >&6
9028 else
9029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9030 /* end confdefs.h.  */
9031 #include <stdlib.h>
9032 #include <stdarg.h>
9033 #include <string.h>
9034 #include <float.h>
9035
9036 int
9037 main ()
9038 {
9039
9040   ;
9041   return 0;
9042 }
9043 _ACEOF
9044 if ac_fn_c_try_compile "$LINENO"; then :
9045   ac_cv_header_stdc=yes
9046 else
9047   ac_cv_header_stdc=no
9048 fi
9049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9050
9051 if test $ac_cv_header_stdc = yes; then
9052   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9053   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h.  */
9055 #include <string.h>
9056
9057 _ACEOF
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059   $EGREP "memchr" >/dev/null 2>&1; then :
9060
9061 else
9062   ac_cv_header_stdc=no
9063 fi
9064 rm -f conftest*
9065
9066 fi
9067
9068 if test $ac_cv_header_stdc = yes; then
9069   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9070   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h.  */
9072 #include <stdlib.h>
9073
9074 _ACEOF
9075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9076   $EGREP "free" >/dev/null 2>&1; then :
9077
9078 else
9079   ac_cv_header_stdc=no
9080 fi
9081 rm -f conftest*
9082
9083 fi
9084
9085 if test $ac_cv_header_stdc = yes; then
9086   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9087   if test "$cross_compiling" = yes; then :
9088   :
9089 else
9090   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9091 /* end confdefs.h.  */
9092 #include <ctype.h>
9093 #include <stdlib.h>
9094 #if ((' ' & 0x0FF) == 0x020)
9095 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9096 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9097 #else
9098 # define ISLOWER(c) \
9099                    (('a' <= (c) && (c) <= 'i') \
9100                      || ('j' <= (c) && (c) <= 'r') \
9101                      || ('s' <= (c) && (c) <= 'z'))
9102 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9103 #endif
9104
9105 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 int
9107 main ()
9108 {
9109   int i;
9110   for (i = 0; i < 256; i++)
9111     if (XOR (islower (i), ISLOWER (i))
9112         || toupper (i) != TOUPPER (i))
9113       return 2;
9114   return 0;
9115 }
9116 _ACEOF
9117 if ac_fn_c_try_run "$LINENO"; then :
9118
9119 else
9120   ac_cv_header_stdc=no
9121 fi
9122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9123   conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 fi
9125
9126 fi
9127 fi
9128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9129 $as_echo "$ac_cv_header_stdc" >&6; }
9130 if test $ac_cv_header_stdc = yes; then
9131
9132 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9133
9134 fi
9135
9136 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9137 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9138                   inttypes.h stdint.h unistd.h
9139 do :
9140   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9142 "
9143 eval as_val=\$$as_ac_Header
9144    if test "x$as_val" = x""yes; then :
9145   cat >>confdefs.h <<_ACEOF
9146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9147 _ACEOF
9148
9149 fi
9150
9151 done
9152
9153
9154 for ac_header in dlfcn.h
9155 do :
9156   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9157 "
9158 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
9159   cat >>confdefs.h <<_ACEOF
9160 #define HAVE_DLFCN_H 1
9161 _ACEOF
9162
9163 fi
9164
9165 done
9166
9167
9168
9169
9170 func_stripname_cnf ()
9171 {
9172   case ${2} in
9173   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9174   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9175   esac
9176 } # func_stripname_cnf
9177
9178
9179
9180
9181
9182 # Set options
9183 # Check whether --enable-shared was given.
9184 if test "${enable_shared+set}" = set; then :
9185   enableval=$enable_shared; p=${PACKAGE-default}
9186     case $enableval in
9187     yes) enable_shared=yes ;;
9188     no) enable_shared=no ;;
9189     *)
9190       enable_shared=no
9191       # Look at the argument we got.  We use all the common list separators.
9192       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9193       for pkg in $enableval; do
9194         IFS="$lt_save_ifs"
9195         if test "X$pkg" = "X$p"; then
9196           enable_shared=yes
9197         fi
9198       done
9199       IFS="$lt_save_ifs"
9200       ;;
9201     esac
9202 else
9203   enable_shared=yes
9204 fi
9205
9206
9207
9208
9209
9210
9211
9212 # Check whether --enable-static was given.
9213 if test "${enable_static+set}" = set; then :
9214   enableval=$enable_static; p=${PACKAGE-default}
9215     case $enableval in
9216     yes) enable_static=yes ;;
9217     no) enable_static=no ;;
9218     *)
9219      enable_static=no
9220       # Look at the argument we got.  We use all the common list separators.
9221       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9222       for pkg in $enableval; do
9223         IFS="$lt_save_ifs"
9224         if test "X$pkg" = "X$p"; then
9225           enable_static=yes
9226         fi
9227       done
9228       IFS="$lt_save_ifs"
9229       ;;
9230     esac
9231 else
9232   enable_static=no
9233 fi
9234
9235
9236
9237
9238
9239
9240
9241
9242
9243
9244         enable_dlopen=no
9245
9246
9247   enable_win32_dll=no
9248
9249
9250
9251
9252
9253 # Check whether --with-pic was given.
9254 if test "${with_pic+set}" = set; then :
9255   withval=$with_pic; pic_mode="$withval"
9256 else
9257   pic_mode=default
9258 fi
9259
9260
9261 test -z "$pic_mode" && pic_mode=default
9262
9263
9264
9265
9266
9267
9268
9269   # Check whether --enable-fast-install was given.
9270 if test "${enable_fast_install+set}" = set; then :
9271   enableval=$enable_fast_install; p=${PACKAGE-default}
9272     case $enableval in
9273     yes) enable_fast_install=yes ;;
9274     no) enable_fast_install=no ;;
9275     *)
9276       enable_fast_install=no
9277       # Look at the argument we got.  We use all the common list separators.
9278       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9279       for pkg in $enableval; do
9280         IFS="$lt_save_ifs"
9281         if test "X$pkg" = "X$p"; then
9282           enable_fast_install=yes
9283         fi
9284       done
9285       IFS="$lt_save_ifs"
9286       ;;
9287     esac
9288 else
9289   enable_fast_install=yes
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299
9300
9301
9302 # This can be used to rebuild libtool when needed
9303 LIBTOOL_DEPS="$ltmain"
9304
9305 # Always use our own libtool.
9306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9307
9308
9309
9310
9311
9312
9313
9314
9315
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333 test -z "$LN_S" && LN_S="ln -s"
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346
9347
9348 if test -n "${ZSH_VERSION+set}" ; then
9349    setopt NO_GLOB_SUBST
9350 fi
9351
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9353 $as_echo_n "checking for objdir... " >&6; }
9354 if test "${lt_cv_objdir+set}" = set; then :
9355   $as_echo_n "(cached) " >&6
9356 else
9357   rm -f .libs 2>/dev/null
9358 mkdir .libs 2>/dev/null
9359 if test -d .libs; then
9360   lt_cv_objdir=.libs
9361 else
9362   # MS-DOS does not allow filenames that begin with a dot.
9363   lt_cv_objdir=_libs
9364 fi
9365 rmdir .libs 2>/dev/null
9366 fi
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9368 $as_echo "$lt_cv_objdir" >&6; }
9369 objdir=$lt_cv_objdir
9370
9371
9372
9373
9374
9375 cat >>confdefs.h <<_ACEOF
9376 #define LT_OBJDIR "$lt_cv_objdir/"
9377 _ACEOF
9378
9379
9380
9381
9382 case $host_os in
9383 aix3*)
9384   # AIX sometimes has problems with the GCC collect2 program.  For some
9385   # reason, if we set the COLLECT_NAMES environment variable, the problems
9386   # vanish in a puff of smoke.
9387   if test "X${COLLECT_NAMES+set}" != Xset; then
9388     COLLECT_NAMES=
9389     export COLLECT_NAMES
9390   fi
9391   ;;
9392 esac
9393
9394 # Global variables:
9395 ofile=libtool
9396 can_build_shared=yes
9397
9398 # All known linkers require a `.a' archive for static linking (except MSVC,
9399 # which needs '.lib').
9400 libext=a
9401
9402 with_gnu_ld="$lt_cv_prog_gnu_ld"
9403
9404 old_CC="$CC"
9405 old_CFLAGS="$CFLAGS"
9406
9407 # Set sane defaults for various variables
9408 test -z "$CC" && CC=cc
9409 test -z "$LTCC" && LTCC=$CC
9410 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9411 test -z "$LD" && LD=ld
9412 test -z "$ac_objext" && ac_objext=o
9413
9414 for cc_temp in $compiler""; do
9415   case $cc_temp in
9416     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9417     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9418     \-*) ;;
9419     *) break;;
9420   esac
9421 done
9422 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9423
9424
9425 # Only perform the check for file, if the check method requires it
9426 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9427 case $deplibs_check_method in
9428 file_magic*)
9429   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9430     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9431 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9432 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9433   $as_echo_n "(cached) " >&6
9434 else
9435   case $MAGIC_CMD in
9436 [\\/*] |  ?:[\\/]*)
9437   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9438   ;;
9439 *)
9440   lt_save_MAGIC_CMD="$MAGIC_CMD"
9441   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9442   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9443   for ac_dir in $ac_dummy; do
9444     IFS="$lt_save_ifs"
9445     test -z "$ac_dir" && ac_dir=.
9446     if test -f $ac_dir/${ac_tool_prefix}file; then
9447       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9448       if test -n "$file_magic_test_file"; then
9449         case $deplibs_check_method in
9450         "file_magic "*)
9451           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9452           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9453           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9454             $EGREP "$file_magic_regex" > /dev/null; then
9455             :
9456           else
9457             cat <<_LT_EOF 1>&2
9458
9459 *** Warning: the command libtool uses to detect shared libraries,
9460 *** $file_magic_cmd, produces output that libtool cannot recognize.
9461 *** The result is that libtool may fail to recognize shared libraries
9462 *** as such.  This will affect the creation of libtool libraries that
9463 *** depend on shared libraries, but programs linked with such libtool
9464 *** libraries will work regardless of this problem.  Nevertheless, you
9465 *** may want to report the problem to your system manager and/or to
9466 *** bug-libtool@gnu.org
9467
9468 _LT_EOF
9469           fi ;;
9470         esac
9471       fi
9472       break
9473     fi
9474   done
9475   IFS="$lt_save_ifs"
9476   MAGIC_CMD="$lt_save_MAGIC_CMD"
9477   ;;
9478 esac
9479 fi
9480
9481 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9482 if test -n "$MAGIC_CMD"; then
9483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9484 $as_echo "$MAGIC_CMD" >&6; }
9485 else
9486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9488 fi
9489
9490
9491
9492
9493
9494 if test -z "$lt_cv_path_MAGIC_CMD"; then
9495   if test -n "$ac_tool_prefix"; then
9496     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9497 $as_echo_n "checking for file... " >&6; }
9498 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9499   $as_echo_n "(cached) " >&6
9500 else
9501   case $MAGIC_CMD in
9502 [\\/*] |  ?:[\\/]*)
9503   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9504   ;;
9505 *)
9506   lt_save_MAGIC_CMD="$MAGIC_CMD"
9507   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9508   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9509   for ac_dir in $ac_dummy; do
9510     IFS="$lt_save_ifs"
9511     test -z "$ac_dir" && ac_dir=.
9512     if test -f $ac_dir/file; then
9513       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9514       if test -n "$file_magic_test_file"; then
9515         case $deplibs_check_method in
9516         "file_magic "*)
9517           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9518           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9520             $EGREP "$file_magic_regex" > /dev/null; then
9521             :
9522           else
9523             cat <<_LT_EOF 1>&2
9524
9525 *** Warning: the command libtool uses to detect shared libraries,
9526 *** $file_magic_cmd, produces output that libtool cannot recognize.
9527 *** The result is that libtool may fail to recognize shared libraries
9528 *** as such.  This will affect the creation of libtool libraries that
9529 *** depend on shared libraries, but programs linked with such libtool
9530 *** libraries will work regardless of this problem.  Nevertheless, you
9531 *** may want to report the problem to your system manager and/or to
9532 *** bug-libtool@gnu.org
9533
9534 _LT_EOF
9535           fi ;;
9536         esac
9537       fi
9538       break
9539     fi
9540   done
9541   IFS="$lt_save_ifs"
9542   MAGIC_CMD="$lt_save_MAGIC_CMD"
9543   ;;
9544 esac
9545 fi
9546
9547 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9548 if test -n "$MAGIC_CMD"; then
9549   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9550 $as_echo "$MAGIC_CMD" >&6; }
9551 else
9552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9553 $as_echo "no" >&6; }
9554 fi
9555
9556
9557   else
9558     MAGIC_CMD=:
9559   fi
9560 fi
9561
9562   fi
9563   ;;
9564 esac
9565
9566 # Use C for the default configuration in the libtool script
9567
9568 lt_save_CC="$CC"
9569 ac_ext=c
9570 ac_cpp='$CPP $CPPFLAGS'
9571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9574
9575
9576 # Source file extension for C test sources.
9577 ac_ext=c
9578
9579 # Object file extension for compiled C test sources.
9580 objext=o
9581 objext=$objext
9582
9583 # Code to be used in simple compile tests
9584 lt_simple_compile_test_code="int some_variable = 0;"
9585
9586 # Code to be used in simple link tests
9587 lt_simple_link_test_code='int main(){return(0);}'
9588
9589
9590
9591
9592
9593
9594
9595 # If no C compiler was specified, use CC.
9596 LTCC=${LTCC-"$CC"}
9597
9598 # If no C compiler flags were specified, use CFLAGS.
9599 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9600
9601 # Allow CC to be a program name with arguments.
9602 compiler=$CC
9603
9604 # Save the default compiler, since it gets overwritten when the other
9605 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9606 compiler_DEFAULT=$CC
9607
9608 # save warnings/boilerplate of simple test code
9609 ac_outfile=conftest.$ac_objext
9610 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9611 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9612 _lt_compiler_boilerplate=`cat conftest.err`
9613 $RM conftest*
9614
9615 ac_outfile=conftest.$ac_objext
9616 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9617 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9618 _lt_linker_boilerplate=`cat conftest.err`
9619 $RM -r conftest*
9620
9621
9622 ## CAVEAT EMPTOR:
9623 ## There is no encapsulation within the following macros, do not change
9624 ## the running order or otherwise move them around unless you know exactly
9625 ## what you are doing...
9626 if test -n "$compiler"; then
9627
9628 lt_prog_compiler_no_builtin_flag=
9629
9630 if test "$GCC" = yes; then
9631   case $cc_basename in
9632   nvcc*)
9633     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9634   *)
9635     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9636   esac
9637
9638   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9639 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9640 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9641   $as_echo_n "(cached) " >&6
9642 else
9643   lt_cv_prog_compiler_rtti_exceptions=no
9644    ac_outfile=conftest.$ac_objext
9645    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9646    lt_compiler_flag="-fno-rtti -fno-exceptions"
9647    # Insert the option either (1) after the last *FLAGS variable, or
9648    # (2) before a word containing "conftest.", or (3) at the end.
9649    # Note that $ac_compile itself does not contain backslashes and begins
9650    # with a dollar sign (not a hyphen), so the echo should work correctly.
9651    # The option is referenced via a variable to avoid confusing sed.
9652    lt_compile=`echo "$ac_compile" | $SED \
9653    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9654    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9655    -e 's:$: $lt_compiler_flag:'`
9656    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9657    (eval "$lt_compile" 2>conftest.err)
9658    ac_status=$?
9659    cat conftest.err >&5
9660    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9661    if (exit $ac_status) && test -s "$ac_outfile"; then
9662      # The compiler can only warn and ignore the option if not recognized
9663      # So say no if there are warnings other than the usual output.
9664      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9665      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9666      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9667        lt_cv_prog_compiler_rtti_exceptions=yes
9668      fi
9669    fi
9670    $RM conftest*
9671
9672 fi
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9674 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9675
9676 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9677     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9678 else
9679     :
9680 fi
9681
9682 fi
9683
9684
9685
9686
9687
9688
9689   lt_prog_compiler_wl=
9690 lt_prog_compiler_pic=
9691 lt_prog_compiler_static=
9692
9693
9694   if test "$GCC" = yes; then
9695     lt_prog_compiler_wl='-Wl,'
9696     lt_prog_compiler_static='-static'
9697
9698     case $host_os in
9699       aix*)
9700       # All AIX code is PIC.
9701       if test "$host_cpu" = ia64; then
9702         # AIX 5 now supports IA64 processor
9703         lt_prog_compiler_static='-Bstatic'
9704       fi
9705       ;;
9706
9707     amigaos*)
9708       case $host_cpu in
9709       powerpc)
9710             # see comment about AmigaOS4 .so support
9711             lt_prog_compiler_pic='-fPIC'
9712         ;;
9713       m68k)
9714             # FIXME: we need at least 68020 code to build shared libraries, but
9715             # adding the `-m68020' flag to GCC prevents building anything better,
9716             # like `-m68040'.
9717             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9718         ;;
9719       esac
9720       ;;
9721
9722     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9723       # PIC is the default for these OSes.
9724       ;;
9725
9726     mingw* | cygwin* | pw32* | os2* | cegcc*)
9727       # This hack is so that the source file can tell whether it is being
9728       # built for inclusion in a dll (and should export symbols for example).
9729       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9730       # (--disable-auto-import) libraries
9731       lt_prog_compiler_pic='-DDLL_EXPORT'
9732       ;;
9733
9734     darwin* | rhapsody*)
9735       # PIC is the default on this platform
9736       # Common symbols not allowed in MH_DYLIB files
9737       lt_prog_compiler_pic='-fno-common'
9738       ;;
9739
9740     haiku*)
9741       # PIC is the default for Haiku.
9742       # The "-static" flag exists, but is broken.
9743       lt_prog_compiler_static=
9744       ;;
9745
9746     hpux*)
9747       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9748       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9749       # sets the default TLS model and affects inlining.
9750       case $host_cpu in
9751       hppa*64*)
9752         # +Z the default
9753         ;;
9754       *)
9755         lt_prog_compiler_pic='-fPIC'
9756         ;;
9757       esac
9758       ;;
9759
9760     interix[3-9]*)
9761       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9762       # Instead, we relocate shared libraries at runtime.
9763       ;;
9764
9765     msdosdjgpp*)
9766       # Just because we use GCC doesn't mean we suddenly get shared libraries
9767       # on systems that don't support them.
9768       lt_prog_compiler_can_build_shared=no
9769       enable_shared=no
9770       ;;
9771
9772     *nto* | *qnx*)
9773       # QNX uses GNU C++, but need to define -shared option too, otherwise
9774       # it will coredump.
9775       lt_prog_compiler_pic='-fPIC -shared'
9776       ;;
9777
9778     sysv4*MP*)
9779       if test -d /usr/nec; then
9780         lt_prog_compiler_pic=-Kconform_pic
9781       fi
9782       ;;
9783
9784     *)
9785       lt_prog_compiler_pic='-fPIC'
9786       ;;
9787     esac
9788
9789     case $cc_basename in
9790     nvcc*) # Cuda Compiler Driver 2.2
9791       lt_prog_compiler_wl='-Xlinker '
9792       lt_prog_compiler_pic='-Xcompiler -fPIC'
9793       ;;
9794     esac
9795   else
9796     # PORTME Check for flag to pass linker flags through the system compiler.
9797     case $host_os in
9798     aix*)
9799       lt_prog_compiler_wl='-Wl,'
9800       if test "$host_cpu" = ia64; then
9801         # AIX 5 now supports IA64 processor
9802         lt_prog_compiler_static='-Bstatic'
9803       else
9804         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9805       fi
9806       ;;
9807
9808     mingw* | cygwin* | pw32* | os2* | cegcc*)
9809       # This hack is so that the source file can tell whether it is being
9810       # built for inclusion in a dll (and should export symbols for example).
9811       lt_prog_compiler_pic='-DDLL_EXPORT'
9812       ;;
9813
9814     hpux9* | hpux10* | hpux11*)
9815       lt_prog_compiler_wl='-Wl,'
9816       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9817       # not for PA HP-UX.
9818       case $host_cpu in
9819       hppa*64*|ia64*)
9820         # +Z the default
9821         ;;
9822       *)
9823         lt_prog_compiler_pic='+Z'
9824         ;;
9825       esac
9826       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9827       lt_prog_compiler_static='${wl}-a ${wl}archive'
9828       ;;
9829
9830     irix5* | irix6* | nonstopux*)
9831       lt_prog_compiler_wl='-Wl,'
9832       # PIC (with -KPIC) is the default.
9833       lt_prog_compiler_static='-non_shared'
9834       ;;
9835
9836     linux* | k*bsd*-gnu | kopensolaris*-gnu)
9837       case $cc_basename in
9838       # old Intel for x86_64 which still supported -KPIC.
9839       ecc*)
9840         lt_prog_compiler_wl='-Wl,'
9841         lt_prog_compiler_pic='-KPIC'
9842         lt_prog_compiler_static='-static'
9843         ;;
9844       # icc used to be incompatible with GCC.
9845       # ICC 10 doesn't accept -KPIC any more.
9846       icc* | ifort*)
9847         lt_prog_compiler_wl='-Wl,'
9848         lt_prog_compiler_pic='-fPIC'
9849         lt_prog_compiler_static='-static'
9850         ;;
9851       # Lahey Fortran 8.1.
9852       lf95*)
9853         lt_prog_compiler_wl='-Wl,'
9854         lt_prog_compiler_pic='--shared'
9855         lt_prog_compiler_static='--static'
9856         ;;
9857       nagfor*)
9858         # NAG Fortran compiler
9859         lt_prog_compiler_wl='-Wl,-Wl,,'
9860         lt_prog_compiler_pic='-PIC'
9861         lt_prog_compiler_static='-Bstatic'
9862         ;;
9863       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9864         # Portland Group compilers (*not* the Pentium gcc compiler,
9865         # which looks to be a dead project)
9866         lt_prog_compiler_wl='-Wl,'
9867         lt_prog_compiler_pic='-fpic'
9868         lt_prog_compiler_static='-Bstatic'
9869         ;;
9870       ccc*)
9871         lt_prog_compiler_wl='-Wl,'
9872         # All Alpha code is PIC.
9873         lt_prog_compiler_static='-non_shared'
9874         ;;
9875       xl* | bgxl* | bgf* | mpixl*)
9876         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9877         lt_prog_compiler_wl='-Wl,'
9878         lt_prog_compiler_pic='-qpic'
9879         lt_prog_compiler_static='-qstaticlink'
9880         ;;
9881       *)
9882         case `$CC -V 2>&1 | sed 5q` in
9883         *Sun\ F* | *Sun*Fortran*)
9884           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9885           lt_prog_compiler_pic='-KPIC'
9886           lt_prog_compiler_static='-Bstatic'
9887           lt_prog_compiler_wl=''
9888           ;;
9889         *Sun\ C*)
9890           # Sun C 5.9
9891           lt_prog_compiler_pic='-KPIC'
9892           lt_prog_compiler_static='-Bstatic'
9893           lt_prog_compiler_wl='-Wl,'
9894           ;;
9895         esac
9896         ;;
9897       esac
9898       ;;
9899
9900     newsos6)
9901       lt_prog_compiler_pic='-KPIC'
9902       lt_prog_compiler_static='-Bstatic'
9903       ;;
9904
9905     *nto* | *qnx*)
9906       # QNX uses GNU C++, but need to define -shared option too, otherwise
9907       # it will coredump.
9908       lt_prog_compiler_pic='-fPIC -shared'
9909       ;;
9910
9911     osf3* | osf4* | osf5*)
9912       lt_prog_compiler_wl='-Wl,'
9913       # All OSF/1 code is PIC.
9914       lt_prog_compiler_static='-non_shared'
9915       ;;
9916
9917     rdos*)
9918       lt_prog_compiler_static='-non_shared'
9919       ;;
9920
9921     solaris*)
9922       lt_prog_compiler_pic='-KPIC'
9923       lt_prog_compiler_static='-Bstatic'
9924       case $cc_basename in
9925       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9926         lt_prog_compiler_wl='-Qoption ld ';;
9927       *)
9928         lt_prog_compiler_wl='-Wl,';;
9929       esac
9930       ;;
9931
9932     sunos4*)
9933       lt_prog_compiler_wl='-Qoption ld '
9934       lt_prog_compiler_pic='-PIC'
9935       lt_prog_compiler_static='-Bstatic'
9936       ;;
9937
9938     sysv4 | sysv4.2uw2* | sysv4.3*)
9939       lt_prog_compiler_wl='-Wl,'
9940       lt_prog_compiler_pic='-KPIC'
9941       lt_prog_compiler_static='-Bstatic'
9942       ;;
9943
9944     sysv4*MP*)
9945       if test -d /usr/nec ;then
9946         lt_prog_compiler_pic='-Kconform_pic'
9947         lt_prog_compiler_static='-Bstatic'
9948       fi
9949       ;;
9950
9951     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9952       lt_prog_compiler_wl='-Wl,'
9953       lt_prog_compiler_pic='-KPIC'
9954       lt_prog_compiler_static='-Bstatic'
9955       ;;
9956
9957     unicos*)
9958       lt_prog_compiler_wl='-Wl,'
9959       lt_prog_compiler_can_build_shared=no
9960       ;;
9961
9962     uts4*)
9963       lt_prog_compiler_pic='-pic'
9964       lt_prog_compiler_static='-Bstatic'
9965       ;;
9966
9967     *)
9968       lt_prog_compiler_can_build_shared=no
9969       ;;
9970     esac
9971   fi
9972
9973 case $host_os in
9974   # For platforms which do not support PIC, -DPIC is meaningless:
9975   *djgpp*)
9976     lt_prog_compiler_pic=
9977     ;;
9978   *)
9979     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9980     ;;
9981 esac
9982
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9985 if test "${lt_cv_prog_compiler_pic+set}" = set; then :
9986   $as_echo_n "(cached) " >&6
9987 else
9988   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9989 fi
9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9991 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9992 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9993
9994 #
9995 # Check to make sure the PIC flag actually works.
9996 #
9997 if test -n "$lt_prog_compiler_pic"; then
9998   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9999 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10000 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
10001   $as_echo_n "(cached) " >&6
10002 else
10003   lt_cv_prog_compiler_pic_works=no
10004    ac_outfile=conftest.$ac_objext
10005    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10006    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10007    # Insert the option either (1) after the last *FLAGS variable, or
10008    # (2) before a word containing "conftest.", or (3) at the end.
10009    # Note that $ac_compile itself does not contain backslashes and begins
10010    # with a dollar sign (not a hyphen), so the echo should work correctly.
10011    # The option is referenced via a variable to avoid confusing sed.
10012    lt_compile=`echo "$ac_compile" | $SED \
10013    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10014    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10015    -e 's:$: $lt_compiler_flag:'`
10016    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10017    (eval "$lt_compile" 2>conftest.err)
10018    ac_status=$?
10019    cat conftest.err >&5
10020    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10021    if (exit $ac_status) && test -s "$ac_outfile"; then
10022      # The compiler can only warn and ignore the option if not recognized
10023      # So say no if there are warnings other than the usual output.
10024      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10025      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10026      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10027        lt_cv_prog_compiler_pic_works=yes
10028      fi
10029    fi
10030    $RM conftest*
10031
10032 fi
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10034 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10035
10036 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10037     case $lt_prog_compiler_pic in
10038      "" | " "*) ;;
10039      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10040      esac
10041 else
10042     lt_prog_compiler_pic=
10043      lt_prog_compiler_can_build_shared=no
10044 fi
10045
10046 fi
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058 #
10059 # Check to make sure the static flag actually works.
10060 #
10061 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10063 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10064 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
10065   $as_echo_n "(cached) " >&6
10066 else
10067   lt_cv_prog_compiler_static_works=no
10068    save_LDFLAGS="$LDFLAGS"
10069    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10070    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10071    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10072      # The linker can only warn and ignore the option if not recognized
10073      # So say no if there are warnings
10074      if test -s conftest.err; then
10075        # Append any errors to the config.log.
10076        cat conftest.err 1>&5
10077        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10078        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10079        if diff conftest.exp conftest.er2 >/dev/null; then
10080          lt_cv_prog_compiler_static_works=yes
10081        fi
10082      else
10083        lt_cv_prog_compiler_static_works=yes
10084      fi
10085    fi
10086    $RM -r conftest*
10087    LDFLAGS="$save_LDFLAGS"
10088
10089 fi
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10091 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10092
10093 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10094     :
10095 else
10096     lt_prog_compiler_static=
10097 fi
10098
10099
10100
10101
10102
10103
10104
10105   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10106 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10107 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10108   $as_echo_n "(cached) " >&6
10109 else
10110   lt_cv_prog_compiler_c_o=no
10111    $RM -r conftest 2>/dev/null
10112    mkdir conftest
10113    cd conftest
10114    mkdir out
10115    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10116
10117    lt_compiler_flag="-o out/conftest2.$ac_objext"
10118    # Insert the option either (1) after the last *FLAGS variable, or
10119    # (2) before a word containing "conftest.", or (3) at the end.
10120    # Note that $ac_compile itself does not contain backslashes and begins
10121    # with a dollar sign (not a hyphen), so the echo should work correctly.
10122    lt_compile=`echo "$ac_compile" | $SED \
10123    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10124    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10125    -e 's:$: $lt_compiler_flag:'`
10126    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10127    (eval "$lt_compile" 2>out/conftest.err)
10128    ac_status=$?
10129    cat out/conftest.err >&5
10130    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10132    then
10133      # The compiler can only warn and ignore the option if not recognized
10134      # So say no if there are warnings
10135      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10136      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10137      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10138        lt_cv_prog_compiler_c_o=yes
10139      fi
10140    fi
10141    chmod u+w . 2>&5
10142    $RM conftest*
10143    # SGI C++ compiler will create directory out/ii_files/ for
10144    # template instantiation
10145    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10146    $RM out/* && rmdir out
10147    cd ..
10148    $RM -r conftest
10149    $RM conftest*
10150
10151 fi
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10153 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10154
10155
10156
10157
10158
10159
10160   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10161 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10162 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
10163   $as_echo_n "(cached) " >&6
10164 else
10165   lt_cv_prog_compiler_c_o=no
10166    $RM -r conftest 2>/dev/null
10167    mkdir conftest
10168    cd conftest
10169    mkdir out
10170    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10171
10172    lt_compiler_flag="-o out/conftest2.$ac_objext"
10173    # Insert the option either (1) after the last *FLAGS variable, or
10174    # (2) before a word containing "conftest.", or (3) at the end.
10175    # Note that $ac_compile itself does not contain backslashes and begins
10176    # with a dollar sign (not a hyphen), so the echo should work correctly.
10177    lt_compile=`echo "$ac_compile" | $SED \
10178    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10179    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10180    -e 's:$: $lt_compiler_flag:'`
10181    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10182    (eval "$lt_compile" 2>out/conftest.err)
10183    ac_status=$?
10184    cat out/conftest.err >&5
10185    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10186    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10187    then
10188      # The compiler can only warn and ignore the option if not recognized
10189      # So say no if there are warnings
10190      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10191      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10192      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10193        lt_cv_prog_compiler_c_o=yes
10194      fi
10195    fi
10196    chmod u+w . 2>&5
10197    $RM conftest*
10198    # SGI C++ compiler will create directory out/ii_files/ for
10199    # template instantiation
10200    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10201    $RM out/* && rmdir out
10202    cd ..
10203    $RM -r conftest
10204    $RM conftest*
10205
10206 fi
10207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10208 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10209
10210
10211
10212
10213 hard_links="nottested"
10214 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10215   # do not overwrite the value of need_locks provided by the user
10216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10217 $as_echo_n "checking if we can lock with hard links... " >&6; }
10218   hard_links=yes
10219   $RM conftest*
10220   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10221   touch conftest.a
10222   ln conftest.a conftest.b 2>&5 || hard_links=no
10223   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10224   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10225 $as_echo "$hard_links" >&6; }
10226   if test "$hard_links" = no; then
10227     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10228 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10229     need_locks=warn
10230   fi
10231 else
10232   need_locks=no
10233 fi
10234
10235
10236
10237
10238
10239
10240   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10241 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10242
10243   runpath_var=
10244   allow_undefined_flag=
10245   always_export_symbols=no
10246   archive_cmds=
10247   archive_expsym_cmds=
10248   compiler_needs_object=no
10249   enable_shared_with_static_runtimes=no
10250   export_dynamic_flag_spec=
10251   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10252   hardcode_automatic=no
10253   hardcode_direct=no
10254   hardcode_direct_absolute=no
10255   hardcode_libdir_flag_spec=
10256   hardcode_libdir_flag_spec_ld=
10257   hardcode_libdir_separator=
10258   hardcode_minus_L=no
10259   hardcode_shlibpath_var=unsupported
10260   inherit_rpath=no
10261   link_all_deplibs=unknown
10262   module_cmds=
10263   module_expsym_cmds=
10264   old_archive_from_new_cmds=
10265   old_archive_from_expsyms_cmds=
10266   thread_safe_flag_spec=
10267   whole_archive_flag_spec=
10268   # include_expsyms should be a list of space-separated symbols to be *always*
10269   # included in the symbol list
10270   include_expsyms=
10271   # exclude_expsyms can be an extended regexp of symbols to exclude
10272   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10273   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10274   # as well as any symbol that contains `d'.
10275   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10276   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10277   # platforms (ab)use it in PIC code, but their linkers get confused if
10278   # the symbol is explicitly referenced.  Since portable code cannot
10279   # rely on this symbol name, it's probably fine to never include it in
10280   # preloaded symbol tables.
10281   # Exclude shared library initialization/finalization symbols.
10282   extract_expsyms_cmds=
10283
10284   case $host_os in
10285   cygwin* | mingw* | pw32* | cegcc*)
10286     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10287     # When not using gcc, we currently assume that we are using
10288     # Microsoft Visual C++.
10289     if test "$GCC" != yes; then
10290       with_gnu_ld=no
10291     fi
10292     ;;
10293   interix*)
10294     # we just hope/assume this is gcc and not c89 (= MSVC++)
10295     with_gnu_ld=yes
10296     ;;
10297   openbsd*)
10298     with_gnu_ld=no
10299     ;;
10300   esac
10301
10302   ld_shlibs=yes
10303
10304   # On some targets, GNU ld is compatible enough with the native linker
10305   # that we're better off using the native interface for both.
10306   lt_use_gnu_ld_interface=no
10307   if test "$with_gnu_ld" = yes; then
10308     case $host_os in
10309       aix*)
10310         # The AIX port of GNU ld has always aspired to compatibility
10311         # with the native linker.  However, as the warning in the GNU ld
10312         # block says, versions before 2.19.5* couldn't really create working
10313         # shared libraries, regardless of the interface used.
10314         case `$LD -v 2>&1` in
10315           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10316           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10317           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10318           *)
10319             lt_use_gnu_ld_interface=yes
10320             ;;
10321         esac
10322         ;;
10323       *)
10324         lt_use_gnu_ld_interface=yes
10325         ;;
10326     esac
10327   fi
10328
10329   if test "$lt_use_gnu_ld_interface" = yes; then
10330     # If archive_cmds runs LD, not CC, wlarc should be empty
10331     wlarc='${wl}'
10332
10333     # Set some defaults for GNU ld with shared library support. These
10334     # are reset later if shared libraries are not supported. Putting them
10335     # here allows them to be overridden if necessary.
10336     runpath_var=LD_RUN_PATH
10337     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10338     export_dynamic_flag_spec='${wl}--export-dynamic'
10339     # ancient GNU ld didn't support --whole-archive et. al.
10340     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10341       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10342     else
10343       whole_archive_flag_spec=
10344     fi
10345     supports_anon_versioning=no
10346     case `$LD -v 2>&1` in
10347       *GNU\ gold*) supports_anon_versioning=yes ;;
10348       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10349       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10350       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10351       *\ 2.11.*) ;; # other 2.11 versions
10352       *) supports_anon_versioning=yes ;;
10353     esac
10354
10355     # See if GNU ld supports shared libraries.
10356     case $host_os in
10357     aix[3-9]*)
10358       # On AIX/PPC, the GNU linker is very broken
10359       if test "$host_cpu" != ia64; then
10360         ld_shlibs=no
10361         cat <<_LT_EOF 1>&2
10362
10363 *** Warning: the GNU linker, at least up to release 2.19, is reported
10364 *** to be unable to reliably create shared libraries on AIX.
10365 *** Therefore, libtool is disabling shared libraries support.  If you
10366 *** really care for shared libraries, you may want to install binutils
10367 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10368 *** You will then need to restart the configuration process.
10369
10370 _LT_EOF
10371       fi
10372       ;;
10373
10374     amigaos*)
10375       case $host_cpu in
10376       powerpc)
10377             # see comment about AmigaOS4 .so support
10378             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10379             archive_expsym_cmds=''
10380         ;;
10381       m68k)
10382             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)'
10383             hardcode_libdir_flag_spec='-L$libdir'
10384             hardcode_minus_L=yes
10385         ;;
10386       esac
10387       ;;
10388
10389     beos*)
10390       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10391         allow_undefined_flag=unsupported
10392         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10393         # support --undefined.  This deserves some investigation.  FIXME
10394         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10395       else
10396         ld_shlibs=no
10397       fi
10398       ;;
10399
10400     cygwin* | mingw* | pw32* | cegcc*)
10401       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10402       # as there is no search path for DLLs.
10403       hardcode_libdir_flag_spec='-L$libdir'
10404       export_dynamic_flag_spec='${wl}--export-all-symbols'
10405       allow_undefined_flag=unsupported
10406       always_export_symbols=no
10407       enable_shared_with_static_runtimes=yes
10408       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
10409       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10410
10411       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10412         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10413         # If the export-symbols file already is a .def file (1st line
10414         # is EXPORTS), use it as is; otherwise, prepend...
10415         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10416           cp $export_symbols $output_objdir/$soname.def;
10417         else
10418           echo EXPORTS > $output_objdir/$soname.def;
10419           cat $export_symbols >> $output_objdir/$soname.def;
10420         fi~
10421         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10422       else
10423         ld_shlibs=no
10424       fi
10425       ;;
10426
10427     haiku*)
10428       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429       link_all_deplibs=yes
10430       ;;
10431
10432     interix[3-9]*)
10433       hardcode_direct=no
10434       hardcode_shlibpath_var=no
10435       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10436       export_dynamic_flag_spec='${wl}-E'
10437       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10438       # Instead, shared libraries are loaded at an image base (0x10000000 by
10439       # default) and relocated if they conflict, which is a slow very memory
10440       # consuming and fragmenting process.  To avoid this, we pick a random,
10441       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10442       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10443       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10444       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'
10445       ;;
10446
10447     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10448       tmp_diet=no
10449       if test "$host_os" = linux-dietlibc; then
10450         case $cc_basename in
10451           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10452         esac
10453       fi
10454       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10455          && test "$tmp_diet" = no
10456       then
10457         tmp_addflag=' $pic_flag'
10458         tmp_sharedflag='-shared'
10459         case $cc_basename,$host_cpu in
10460         pgcc*)                          # Portland Group C compiler
10461           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10462           tmp_addflag=' $pic_flag'
10463           ;;
10464         pgf77* | pgf90* | pgf95* | pgfortran*)
10465                                         # Portland Group f77 and f90 compilers
10466           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10467           tmp_addflag=' $pic_flag -Mnomain' ;;
10468         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10469           tmp_addflag=' -i_dynamic' ;;
10470         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10471           tmp_addflag=' -i_dynamic -nofor_main' ;;
10472         ifc* | ifort*)                  # Intel Fortran compiler
10473           tmp_addflag=' -nofor_main' ;;
10474         lf95*)                          # Lahey Fortran 8.1
10475           whole_archive_flag_spec=
10476           tmp_sharedflag='--shared' ;;
10477         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10478           tmp_sharedflag='-qmkshrobj'
10479           tmp_addflag= ;;
10480         nvcc*)  # Cuda Compiler Driver 2.2
10481           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10482           compiler_needs_object=yes
10483           ;;
10484         esac
10485         case `$CC -V 2>&1 | sed 5q` in
10486         *Sun\ C*)                       # Sun C 5.9
10487           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
10488           compiler_needs_object=yes
10489           tmp_sharedflag='-G' ;;
10490         *Sun\ F*)                       # Sun Fortran 8.3
10491           tmp_sharedflag='-G' ;;
10492         esac
10493         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10494
10495         if test "x$supports_anon_versioning" = xyes; then
10496           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10497             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10498             echo "local: *; };" >> $output_objdir/$libname.ver~
10499             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10500         fi
10501
10502         case $cc_basename in
10503         xlf* | bgf* | bgxlf* | mpixlf*)
10504           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10505           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10506           hardcode_libdir_flag_spec=
10507           hardcode_libdir_flag_spec_ld='-rpath $libdir'
10508           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10509           if test "x$supports_anon_versioning" = xyes; then
10510             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10511               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10512               echo "local: *; };" >> $output_objdir/$libname.ver~
10513               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10514           fi
10515           ;;
10516         esac
10517       else
10518         ld_shlibs=no
10519       fi
10520       ;;
10521
10522     netbsd*)
10523       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10524         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10525         wlarc=
10526       else
10527         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10529       fi
10530       ;;
10531
10532     solaris*)
10533       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10534         ld_shlibs=no
10535         cat <<_LT_EOF 1>&2
10536
10537 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10538 *** create shared libraries on Solaris systems.  Therefore, libtool
10539 *** is disabling shared libraries support.  We urge you to upgrade GNU
10540 *** binutils to release 2.9.1 or newer.  Another option is to modify
10541 *** your PATH or compiler configuration so that the native linker is
10542 *** used, and then restart.
10543
10544 _LT_EOF
10545       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10546         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10547         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10548       else
10549         ld_shlibs=no
10550       fi
10551       ;;
10552
10553     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10554       case `$LD -v 2>&1` in
10555         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10556         ld_shlibs=no
10557         cat <<_LT_EOF 1>&2
10558
10559 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10560 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10561 *** is disabling shared libraries support.  We urge you to upgrade GNU
10562 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10563 *** your PATH or compiler configuration so that the native linker is
10564 *** used, and then restart.
10565
10566 _LT_EOF
10567         ;;
10568         *)
10569           # For security reasons, it is highly recommended that you always
10570           # use absolute paths for naming shared libraries, and exclude the
10571           # DT_RUNPATH tag from executables and libraries.  But doing so
10572           # requires that you compile everything twice, which is a pain.
10573           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10574             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10575             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10576             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10577           else
10578             ld_shlibs=no
10579           fi
10580         ;;
10581       esac
10582       ;;
10583
10584     sunos4*)
10585       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10586       wlarc=
10587       hardcode_direct=yes
10588       hardcode_shlibpath_var=no
10589       ;;
10590
10591     *)
10592       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10593         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10594         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10595       else
10596         ld_shlibs=no
10597       fi
10598       ;;
10599     esac
10600
10601     if test "$ld_shlibs" = no; then
10602       runpath_var=
10603       hardcode_libdir_flag_spec=
10604       export_dynamic_flag_spec=
10605       whole_archive_flag_spec=
10606     fi
10607   else
10608     # PORTME fill in a description of your system's linker (not GNU ld)
10609     case $host_os in
10610     aix3*)
10611       allow_undefined_flag=unsupported
10612       always_export_symbols=yes
10613       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'
10614       # Note: this linker hardcodes the directories in LIBPATH if there
10615       # are no directories specified by -L.
10616       hardcode_minus_L=yes
10617       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10618         # Neither direct hardcoding nor static linking is supported with a
10619         # broken collect2.
10620         hardcode_direct=unsupported
10621       fi
10622       ;;
10623
10624     aix[4-9]*)
10625       if test "$host_cpu" = ia64; then
10626         # On IA64, the linker does run time linking by default, so we don't
10627         # have to do anything special.
10628         aix_use_runtimelinking=no
10629         exp_sym_flag='-Bexport'
10630         no_entry_flag=""
10631       else
10632         # If we're using GNU nm, then we don't want the "-C" option.
10633         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10634         # Also, AIX nm treats weak defined symbols like other global
10635         # defined symbols, whereas GNU nm marks them as "W".
10636         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10637           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10638         else
10639           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'
10640         fi
10641         aix_use_runtimelinking=no
10642
10643         # Test if we are trying to use run time linking or normal
10644         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10645         # need to do runtime linking.
10646         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10647           for ld_flag in $LDFLAGS; do
10648           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10649             aix_use_runtimelinking=yes
10650             break
10651           fi
10652           done
10653           ;;
10654         esac
10655
10656         exp_sym_flag='-bexport'
10657         no_entry_flag='-bnoentry'
10658       fi
10659
10660       # When large executables or shared objects are built, AIX ld can
10661       # have problems creating the table of contents.  If linking a library
10662       # or program results in "error TOC overflow" add -mminimal-toc to
10663       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10664       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10665
10666       archive_cmds=''
10667       hardcode_direct=yes
10668       hardcode_direct_absolute=yes
10669       hardcode_libdir_separator=':'
10670       link_all_deplibs=yes
10671       file_list_spec='${wl}-f,'
10672
10673       if test "$GCC" = yes; then
10674         case $host_os in aix4.[012]|aix4.[012].*)
10675         # We only want to do this on AIX 4.2 and lower, the check
10676         # below for broken collect2 doesn't work under 4.3+
10677           collect2name=`${CC} -print-prog-name=collect2`
10678           if test -f "$collect2name" &&
10679            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10680           then
10681           # We have reworked collect2
10682           :
10683           else
10684           # We have old collect2
10685           hardcode_direct=unsupported
10686           # It fails to find uninstalled libraries when the uninstalled
10687           # path is not listed in the libpath.  Setting hardcode_minus_L
10688           # to unsupported forces relinking
10689           hardcode_minus_L=yes
10690           hardcode_libdir_flag_spec='-L$libdir'
10691           hardcode_libdir_separator=
10692           fi
10693           ;;
10694         esac
10695         shared_flag='-shared'
10696         if test "$aix_use_runtimelinking" = yes; then
10697           shared_flag="$shared_flag "'${wl}-G'
10698         fi
10699       else
10700         # not using gcc
10701         if test "$host_cpu" = ia64; then
10702         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10703         # chokes on -Wl,-G. The following line is correct:
10704           shared_flag='-G'
10705         else
10706           if test "$aix_use_runtimelinking" = yes; then
10707             shared_flag='${wl}-G'
10708           else
10709             shared_flag='${wl}-bM:SRE'
10710           fi
10711         fi
10712       fi
10713
10714       export_dynamic_flag_spec='${wl}-bexpall'
10715       # It seems that -bexpall does not export symbols beginning with
10716       # underscore (_), so it is better to generate a list of symbols to export.
10717       always_export_symbols=yes
10718       if test "$aix_use_runtimelinking" = yes; then
10719         # Warning - without using the other runtime loading flags (-brtl),
10720         # -berok will link without error, but may produce a broken library.
10721         allow_undefined_flag='-berok'
10722         # Determine the default libpath from the value encoded in an
10723         # empty executable.
10724         if test "${lt_cv_aix_libpath+set}" = set; then
10725   aix_libpath=$lt_cv_aix_libpath
10726 else
10727   if test "${lt_cv_aix_libpath_+set}" = set; then :
10728   $as_echo_n "(cached) " >&6
10729 else
10730   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10731 /* end confdefs.h.  */
10732
10733 int
10734 main ()
10735 {
10736
10737   ;
10738   return 0;
10739 }
10740 _ACEOF
10741 if ac_fn_c_try_link "$LINENO"; then :
10742
10743   lt_aix_libpath_sed='
10744       /Import File Strings/,/^$/ {
10745           /^0/ {
10746               s/^0  *\([^ ]*\) *$/\1/
10747               p
10748           }
10749       }'
10750   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10751   # Check for a 64-bit object if we didn't find anything.
10752   if test -z "$lt_cv_aix_libpath_"; then
10753     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10754   fi
10755 fi
10756 rm -f core conftest.err conftest.$ac_objext \
10757     conftest$ac_exeext conftest.$ac_ext
10758   if test -z "$lt_cv_aix_libpath_"; then
10759     lt_cv_aix_libpath_="/usr/lib:/lib"
10760   fi
10761
10762 fi
10763
10764   aix_libpath=$lt_cv_aix_libpath_
10765 fi
10766
10767         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10768         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10769       else
10770         if test "$host_cpu" = ia64; then
10771           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10772           allow_undefined_flag="-z nodefs"
10773           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"
10774         else
10775          # Determine the default libpath from the value encoded in an
10776          # empty executable.
10777          if test "${lt_cv_aix_libpath+set}" = set; then
10778   aix_libpath=$lt_cv_aix_libpath
10779 else
10780   if test "${lt_cv_aix_libpath_+set}" = set; then :
10781   $as_echo_n "(cached) " >&6
10782 else
10783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h.  */
10785
10786 int
10787 main ()
10788 {
10789
10790   ;
10791   return 0;
10792 }
10793 _ACEOF
10794 if ac_fn_c_try_link "$LINENO"; then :
10795
10796   lt_aix_libpath_sed='
10797       /Import File Strings/,/^$/ {
10798           /^0/ {
10799               s/^0  *\([^ ]*\) *$/\1/
10800               p
10801           }
10802       }'
10803   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10804   # Check for a 64-bit object if we didn't find anything.
10805   if test -z "$lt_cv_aix_libpath_"; then
10806     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807   fi
10808 fi
10809 rm -f core conftest.err conftest.$ac_objext \
10810     conftest$ac_exeext conftest.$ac_ext
10811   if test -z "$lt_cv_aix_libpath_"; then
10812     lt_cv_aix_libpath_="/usr/lib:/lib"
10813   fi
10814
10815 fi
10816
10817   aix_libpath=$lt_cv_aix_libpath_
10818 fi
10819
10820          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10821           # Warning - without using the other run time loading flags,
10822           # -berok will link without error, but may produce a broken library.
10823           no_undefined_flag=' ${wl}-bernotok'
10824           allow_undefined_flag=' ${wl}-berok'
10825           if test "$with_gnu_ld" = yes; then
10826             # We only use this code for GNU lds that support --whole-archive.
10827             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10828           else
10829             # Exported symbols can be pulled into shared objects from archives
10830             whole_archive_flag_spec='$convenience'
10831           fi
10832           archive_cmds_need_lc=yes
10833           # This is similar to how AIX traditionally builds its shared libraries.
10834           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'
10835         fi
10836       fi
10837       ;;
10838
10839     amigaos*)
10840       case $host_cpu in
10841       powerpc)
10842             # see comment about AmigaOS4 .so support
10843             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10844             archive_expsym_cmds=''
10845         ;;
10846       m68k)
10847             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)'
10848             hardcode_libdir_flag_spec='-L$libdir'
10849             hardcode_minus_L=yes
10850         ;;
10851       esac
10852       ;;
10853
10854     bsdi[45]*)
10855       export_dynamic_flag_spec=-rdynamic
10856       ;;
10857
10858     cygwin* | mingw* | pw32* | cegcc*)
10859       # When not using gcc, we currently assume that we are using
10860       # Microsoft Visual C++.
10861       # hardcode_libdir_flag_spec is actually meaningless, as there is
10862       # no search path for DLLs.
10863       case $cc_basename in
10864       cl*)
10865         # Native MSVC
10866         hardcode_libdir_flag_spec=' '
10867         allow_undefined_flag=unsupported
10868         always_export_symbols=yes
10869         file_list_spec='@'
10870         # Tell ltmain to make .lib files, not .a files.
10871         libext=lib
10872         # Tell ltmain to make .dll files, not .so files.
10873         shrext_cmds=".dll"
10874         # FIXME: Setting linknames here is a bad hack.
10875         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10876         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10877             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10878           else
10879             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10880           fi~
10881           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10882           linknames='
10883         # The linker will not automatically build a static lib if we build a DLL.
10884         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10885         enable_shared_with_static_runtimes=yes
10886         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10887         # Don't use ranlib
10888         old_postinstall_cmds='chmod 644 $oldlib'
10889         postlink_cmds='lt_outputfile="@OUTPUT@"~
10890           lt_tool_outputfile="@TOOL_OUTPUT@"~
10891           case $lt_outputfile in
10892             *.exe|*.EXE) ;;
10893             *)
10894               lt_outputfile="$lt_outputfile.exe"
10895               lt_tool_outputfile="$lt_tool_outputfile.exe"
10896               ;;
10897           esac~
10898           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10899             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10900             $RM "$lt_outputfile.manifest";
10901           fi'
10902         ;;
10903       *)
10904         # Assume MSVC wrapper
10905         hardcode_libdir_flag_spec=' '
10906         allow_undefined_flag=unsupported
10907         # Tell ltmain to make .lib files, not .a files.
10908         libext=lib
10909         # Tell ltmain to make .dll files, not .so files.
10910         shrext_cmds=".dll"
10911         # FIXME: Setting linknames here is a bad hack.
10912         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10913         # The linker will automatically build a .lib file if we build a DLL.
10914         old_archive_from_new_cmds='true'
10915         # FIXME: Should let the user specify the lib program.
10916         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10917         enable_shared_with_static_runtimes=yes
10918         ;;
10919       esac
10920       ;;
10921
10922     darwin* | rhapsody*)
10923
10924
10925   archive_cmds_need_lc=no
10926   hardcode_direct=no
10927   hardcode_automatic=yes
10928   hardcode_shlibpath_var=unsupported
10929   if test "$lt_cv_ld_force_load" = "yes"; then
10930     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
10931   else
10932     whole_archive_flag_spec=''
10933   fi
10934   link_all_deplibs=yes
10935   allow_undefined_flag="$_lt_dar_allow_undefined"
10936   case $cc_basename in
10937      ifort*) _lt_dar_can_shared=yes ;;
10938      *) _lt_dar_can_shared=$GCC ;;
10939   esac
10940   if test "$_lt_dar_can_shared" = "yes"; then
10941     output_verbose_link_cmd=func_echo_all
10942     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10943     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10944     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}"
10945     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}"
10946
10947   else
10948   ld_shlibs=no
10949   fi
10950
10951       ;;
10952
10953     dgux*)
10954       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10955       hardcode_libdir_flag_spec='-L$libdir'
10956       hardcode_shlibpath_var=no
10957       ;;
10958
10959     freebsd1*)
10960       ld_shlibs=no
10961       ;;
10962
10963     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10964     # support.  Future versions do this automatically, but an explicit c++rt0.o
10965     # does not break anything, and helps significantly (at the cost of a little
10966     # extra space).
10967     freebsd2.2*)
10968       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10969       hardcode_libdir_flag_spec='-R$libdir'
10970       hardcode_direct=yes
10971       hardcode_shlibpath_var=no
10972       ;;
10973
10974     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10975     freebsd2*)
10976       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10977       hardcode_direct=yes
10978       hardcode_minus_L=yes
10979       hardcode_shlibpath_var=no
10980       ;;
10981
10982     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10983     freebsd* | dragonfly*)
10984       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10985       hardcode_libdir_flag_spec='-R$libdir'
10986       hardcode_direct=yes
10987       hardcode_shlibpath_var=no
10988       ;;
10989
10990     hpux9*)
10991       if test "$GCC" = yes; then
10992         archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10993       else
10994         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'
10995       fi
10996       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10997       hardcode_libdir_separator=:
10998       hardcode_direct=yes
10999
11000       # hardcode_minus_L: Not really in the search PATH,
11001       # but as the default location of the library.
11002       hardcode_minus_L=yes
11003       export_dynamic_flag_spec='${wl}-E'
11004       ;;
11005
11006     hpux10*)
11007       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11008         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11009       else
11010         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11011       fi
11012       if test "$with_gnu_ld" = no; then
11013         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11014         hardcode_libdir_flag_spec_ld='+b $libdir'
11015         hardcode_libdir_separator=:
11016         hardcode_direct=yes
11017         hardcode_direct_absolute=yes
11018         export_dynamic_flag_spec='${wl}-E'
11019         # hardcode_minus_L: Not really in the search PATH,
11020         # but as the default location of the library.
11021         hardcode_minus_L=yes
11022       fi
11023       ;;
11024
11025     hpux11*)
11026       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11027         case $host_cpu in
11028         hppa*64*)
11029           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11030           ;;
11031         ia64*)
11032           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11033           ;;
11034         *)
11035           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11036           ;;
11037         esac
11038       else
11039         case $host_cpu in
11040         hppa*64*)
11041           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11042           ;;
11043         ia64*)
11044           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11045           ;;
11046         *)
11047
11048           # Older versions of the 11.00 compiler do not understand -b yet
11049           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11050           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11051 $as_echo_n "checking if $CC understands -b... " >&6; }
11052 if test "${lt_cv_prog_compiler__b+set}" = set; then :
11053   $as_echo_n "(cached) " >&6
11054 else
11055   lt_cv_prog_compiler__b=no
11056    save_LDFLAGS="$LDFLAGS"
11057    LDFLAGS="$LDFLAGS -b"
11058    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11059    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11060      # The linker can only warn and ignore the option if not recognized
11061      # So say no if there are warnings
11062      if test -s conftest.err; then
11063        # Append any errors to the config.log.
11064        cat conftest.err 1>&5
11065        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11066        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11067        if diff conftest.exp conftest.er2 >/dev/null; then
11068          lt_cv_prog_compiler__b=yes
11069        fi
11070      else
11071        lt_cv_prog_compiler__b=yes
11072      fi
11073    fi
11074    $RM -r conftest*
11075    LDFLAGS="$save_LDFLAGS"
11076
11077 fi
11078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11079 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11080
11081 if test x"$lt_cv_prog_compiler__b" = xyes; then
11082     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11083 else
11084     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11085 fi
11086
11087           ;;
11088         esac
11089       fi
11090       if test "$with_gnu_ld" = no; then
11091         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11092         hardcode_libdir_separator=:
11093
11094         case $host_cpu in
11095         hppa*64*|ia64*)
11096           hardcode_direct=no
11097           hardcode_shlibpath_var=no
11098           ;;
11099         *)
11100           hardcode_direct=yes
11101           hardcode_direct_absolute=yes
11102           export_dynamic_flag_spec='${wl}-E'
11103
11104           # hardcode_minus_L: Not really in the search PATH,
11105           # but as the default location of the library.
11106           hardcode_minus_L=yes
11107           ;;
11108         esac
11109       fi
11110       ;;
11111
11112     irix5* | irix6* | nonstopux*)
11113       if test "$GCC" = yes; then
11114         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11115         # Try to use the -exported_symbol ld option, if it does not
11116         # work, assume that -exports_file does not work either and
11117         # implicitly export all symbols.
11118         # This should be the same for all languages, so no per-tag cache variable.
11119         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11120 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11121 if test "${lt_cv_irix_exported_symbol+set}" = set; then :
11122   $as_echo_n "(cached) " >&6
11123 else
11124   save_LDFLAGS="$LDFLAGS"
11125            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11126            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11127 /* end confdefs.h.  */
11128 int foo (void) { return 0; }
11129 _ACEOF
11130 if ac_fn_c_try_link "$LINENO"; then :
11131   lt_cv_irix_exported_symbol=yes
11132 else
11133   lt_cv_irix_exported_symbol=no
11134 fi
11135 rm -f core conftest.err conftest.$ac_objext \
11136     conftest$ac_exeext conftest.$ac_ext
11137            LDFLAGS="$save_LDFLAGS"
11138 fi
11139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11140 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11141         if test "$lt_cv_irix_exported_symbol" = yes; then
11142           archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
11143         fi
11144       else
11145         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11146         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
11147       fi
11148       archive_cmds_need_lc='no'
11149       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11150       hardcode_libdir_separator=:
11151       inherit_rpath=yes
11152       link_all_deplibs=yes
11153       ;;
11154
11155     netbsd*)
11156       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11157         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11158       else
11159         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11160       fi
11161       hardcode_libdir_flag_spec='-R$libdir'
11162       hardcode_direct=yes
11163       hardcode_shlibpath_var=no
11164       ;;
11165
11166     newsos6)
11167       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11168       hardcode_direct=yes
11169       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11170       hardcode_libdir_separator=:
11171       hardcode_shlibpath_var=no
11172       ;;
11173
11174     *nto* | *qnx*)
11175       ;;
11176
11177     openbsd*)
11178       if test -f /usr/libexec/ld.so; then
11179         hardcode_direct=yes
11180         hardcode_shlibpath_var=no
11181         hardcode_direct_absolute=yes
11182         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11183           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11184           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11185           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11186           export_dynamic_flag_spec='${wl}-E'
11187         else
11188           case $host_os in
11189            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11190              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11191              hardcode_libdir_flag_spec='-R$libdir'
11192              ;;
11193            *)
11194              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11195              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11196              ;;
11197           esac
11198         fi
11199       else
11200         ld_shlibs=no
11201       fi
11202       ;;
11203
11204     os2*)
11205       hardcode_libdir_flag_spec='-L$libdir'
11206       hardcode_minus_L=yes
11207       allow_undefined_flag=unsupported
11208       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'
11209       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11210       ;;
11211
11212     osf3*)
11213       if test "$GCC" = yes; then
11214         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11215         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11216       else
11217         allow_undefined_flag=' -expect_unresolved \*'
11218         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11219       fi
11220       archive_cmds_need_lc='no'
11221       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11222       hardcode_libdir_separator=:
11223       ;;
11224
11225     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11226       if test "$GCC" = yes; then
11227         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11228         archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11229         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11230       else
11231         allow_undefined_flag=' -expect_unresolved \*'
11232         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
11233         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~
11234         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
11235
11236         # Both c and cxx compiler support -rpath directly
11237         hardcode_libdir_flag_spec='-rpath $libdir'
11238       fi
11239       archive_cmds_need_lc='no'
11240       hardcode_libdir_separator=:
11241       ;;
11242
11243     solaris*)
11244       no_undefined_flag=' -z defs'
11245       if test "$GCC" = yes; then
11246         wlarc='${wl}'
11247         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11248         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11249           $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11250       else
11251         case `$CC -V 2>&1` in
11252         *"Compilers 5.0"*)
11253           wlarc=''
11254           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11255           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11256           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11257           ;;
11258         *)
11259           wlarc='${wl}'
11260           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11261           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11262           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11263           ;;
11264         esac
11265       fi
11266       hardcode_libdir_flag_spec='-R$libdir'
11267       hardcode_shlibpath_var=no
11268       case $host_os in
11269       solaris2.[0-5] | solaris2.[0-5].*) ;;
11270       *)
11271         # The compiler driver will combine and reorder linker options,
11272         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11273         # but is careful enough not to reorder.
11274         # Supported since Solaris 2.6 (maybe 2.5.1?)
11275         if test "$GCC" = yes; then
11276           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11277         else
11278           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11279         fi
11280         ;;
11281       esac
11282       link_all_deplibs=yes
11283       ;;
11284
11285     sunos4*)
11286       if test "x$host_vendor" = xsequent; then
11287         # Use $CC to link under sequent, because it throws in some extra .o
11288         # files that make .init and .fini sections work.
11289         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11290       else
11291         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11292       fi
11293       hardcode_libdir_flag_spec='-L$libdir'
11294       hardcode_direct=yes
11295       hardcode_minus_L=yes
11296       hardcode_shlibpath_var=no
11297       ;;
11298
11299     sysv4)
11300       case $host_vendor in
11301         sni)
11302           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11303           hardcode_direct=yes # is this really true???
11304         ;;
11305         siemens)
11306           ## LD is ld it makes a PLAMLIB
11307           ## CC just makes a GrossModule.
11308           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11309           reload_cmds='$CC -r -o $output$reload_objs'
11310           hardcode_direct=no
11311         ;;
11312         motorola)
11313           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11314           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11315         ;;
11316       esac
11317       runpath_var='LD_RUN_PATH'
11318       hardcode_shlibpath_var=no
11319       ;;
11320
11321     sysv4.3*)
11322       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11323       hardcode_shlibpath_var=no
11324       export_dynamic_flag_spec='-Bexport'
11325       ;;
11326
11327     sysv4*MP*)
11328       if test -d /usr/nec; then
11329         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11330         hardcode_shlibpath_var=no
11331         runpath_var=LD_RUN_PATH
11332         hardcode_runpath_var=yes
11333         ld_shlibs=yes
11334       fi
11335       ;;
11336
11337     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11338       no_undefined_flag='${wl}-z,text'
11339       archive_cmds_need_lc=no
11340       hardcode_shlibpath_var=no
11341       runpath_var='LD_RUN_PATH'
11342
11343       if test "$GCC" = yes; then
11344         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11345         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11346       else
11347         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11348         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11349       fi
11350       ;;
11351
11352     sysv5* | sco3.2v5* | sco5v6*)
11353       # Note: We can NOT use -z defs as we might desire, because we do not
11354       # link with -lc, and that would cause any symbols used from libc to
11355       # always be unresolved, which means just about no library would
11356       # ever link correctly.  If we're not using GNU ld we use -z text
11357       # though, which does catch some bad symbols but isn't as heavy-handed
11358       # as -z defs.
11359       no_undefined_flag='${wl}-z,text'
11360       allow_undefined_flag='${wl}-z,nodefs'
11361       archive_cmds_need_lc=no
11362       hardcode_shlibpath_var=no
11363       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11364       hardcode_libdir_separator=':'
11365       link_all_deplibs=yes
11366       export_dynamic_flag_spec='${wl}-Bexport'
11367       runpath_var='LD_RUN_PATH'
11368
11369       if test "$GCC" = yes; then
11370         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11372       else
11373         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375       fi
11376       ;;
11377
11378     uts4*)
11379       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11380       hardcode_libdir_flag_spec='-L$libdir'
11381       hardcode_shlibpath_var=no
11382       ;;
11383
11384     *)
11385       ld_shlibs=no
11386       ;;
11387     esac
11388
11389     if test x$host_vendor = xsni; then
11390       case $host in
11391       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11392         export_dynamic_flag_spec='${wl}-Blargedynsym'
11393         ;;
11394       esac
11395     fi
11396   fi
11397
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11399 $as_echo "$ld_shlibs" >&6; }
11400 test "$ld_shlibs" = no && can_build_shared=no
11401
11402 with_gnu_ld=$with_gnu_ld
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418 #
11419 # Do we need to explicitly link libc?
11420 #
11421 case "x$archive_cmds_need_lc" in
11422 x|xyes)
11423   # Assume -lc should be added
11424   archive_cmds_need_lc=yes
11425
11426   if test "$enable_shared" = yes && test "$GCC" = yes; then
11427     case $archive_cmds in
11428     *'~'*)
11429       # FIXME: we may have to deal with multi-command sequences.
11430       ;;
11431     '$CC '*)
11432       # Test whether the compiler implicitly links with -lc since on some
11433       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11434       # to ld, don't add -lc before -lgcc.
11435       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11436 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11437 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11438   $as_echo_n "(cached) " >&6
11439 else
11440   $RM conftest*
11441         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11442
11443         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11444   (eval $ac_compile) 2>&5
11445   ac_status=$?
11446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11447   test $ac_status = 0; } 2>conftest.err; then
11448           soname=conftest
11449           lib=conftest
11450           libobjs=conftest.$ac_objext
11451           deplibs=
11452           wl=$lt_prog_compiler_wl
11453           pic_flag=$lt_prog_compiler_pic
11454           compiler_flags=-v
11455           linker_flags=-v
11456           verstring=
11457           output_objdir=.
11458           libname=conftest
11459           lt_save_allow_undefined_flag=$allow_undefined_flag
11460           allow_undefined_flag=
11461           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11462   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11463   ac_status=$?
11464   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11465   test $ac_status = 0; }
11466           then
11467             lt_cv_archive_cmds_need_lc=no
11468           else
11469             lt_cv_archive_cmds_need_lc=yes
11470           fi
11471           allow_undefined_flag=$lt_save_allow_undefined_flag
11472         else
11473           cat conftest.err 1>&5
11474         fi
11475         $RM conftest*
11476
11477 fi
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11479 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11480       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11481       ;;
11482     esac
11483   fi
11484   ;;
11485 esac
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11644 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11645
11646 if test "$GCC" = yes; then
11647   case $host_os in
11648     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11649     *) lt_awk_arg="/^libraries:/" ;;
11650   esac
11651   case $host_os in
11652     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11653     *) lt_sed_strip_eq="s,=/,/,g" ;;
11654   esac
11655   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11656   case $lt_search_path_spec in
11657   *\;*)
11658     # if the path contains ";" then we assume it to be the separator
11659     # otherwise default to the standard path separator (i.e. ":") - it is
11660     # assumed that no part of a normal pathname contains ";" but that should
11661     # okay in the real world where ";" in dirpaths is itself problematic.
11662     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11663     ;;
11664   *)
11665     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11666     ;;
11667   esac
11668   # Ok, now we have the path, separated by spaces, we can step through it
11669   # and add multilib dir if necessary.
11670   lt_tmp_lt_search_path_spec=
11671   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11672   for lt_sys_path in $lt_search_path_spec; do
11673     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11674       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11675     else
11676       test -d "$lt_sys_path" && \
11677         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11678     fi
11679   done
11680   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11681 BEGIN {RS=" "; FS="/|\n";} {
11682   lt_foo="";
11683   lt_count=0;
11684   for (lt_i = NF; lt_i > 0; lt_i--) {
11685     if ($lt_i != "" && $lt_i != ".") {
11686       if ($lt_i == "..") {
11687         lt_count++;
11688       } else {
11689         if (lt_count == 0) {
11690           lt_foo="/" $lt_i lt_foo;
11691         } else {
11692           lt_count--;
11693         }
11694       }
11695     }
11696   }
11697   if (lt_foo != "") { lt_freq[lt_foo]++; }
11698   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11699 }'`
11700   # AWK program above erroneously prepends '/' to C:/dos/paths
11701   # for these hosts.
11702   case $host_os in
11703     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11704       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11705   esac
11706   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11707 else
11708   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11709 fi
11710 library_names_spec=
11711 libname_spec='lib$name'
11712 soname_spec=
11713 shrext_cmds=".so"
11714 postinstall_cmds=
11715 postuninstall_cmds=
11716 finish_cmds=
11717 finish_eval=
11718 shlibpath_var=
11719 shlibpath_overrides_runpath=unknown
11720 version_type=none
11721 dynamic_linker="$host_os ld.so"
11722 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11723 need_lib_prefix=unknown
11724 hardcode_into_libs=no
11725
11726 # when you set need_version to no, make sure it does not cause -set_version
11727 # flags to be left without arguments
11728 need_version=unknown
11729
11730 case $host_os in
11731 aix3*)
11732   version_type=linux
11733   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11734   shlibpath_var=LIBPATH
11735
11736   # AIX 3 has no versioning support, so we append a major version to the name.
11737   soname_spec='${libname}${release}${shared_ext}$major'
11738   ;;
11739
11740 aix[4-9]*)
11741   version_type=linux
11742   need_lib_prefix=no
11743   need_version=no
11744   hardcode_into_libs=yes
11745   if test "$host_cpu" = ia64; then
11746     # AIX 5 supports IA64
11747     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11748     shlibpath_var=LD_LIBRARY_PATH
11749   else
11750     # With GCC up to 2.95.x, collect2 would create an import file
11751     # for dependence libraries.  The import file would start with
11752     # the line `#! .'.  This would cause the generated library to
11753     # depend on `.', always an invalid library.  This was fixed in
11754     # development snapshots of GCC prior to 3.0.
11755     case $host_os in
11756       aix4 | aix4.[01] | aix4.[01].*)
11757       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11758            echo ' yes '
11759            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11760         :
11761       else
11762         can_build_shared=no
11763       fi
11764       ;;
11765     esac
11766     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11767     # soname into executable. Probably we can add versioning support to
11768     # collect2, so additional links can be useful in future.
11769     if test "$aix_use_runtimelinking" = yes; then
11770       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11771       # instead of lib<name>.a to let people know that these are not
11772       # typical AIX shared libraries.
11773       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11774     else
11775       # We preserve .a as extension for shared libraries through AIX4.2
11776       # and later when we are not doing run time linking.
11777       library_names_spec='${libname}${release}.a $libname.a'
11778       soname_spec='${libname}${release}${shared_ext}$major'
11779     fi
11780     shlibpath_var=LIBPATH
11781   fi
11782   ;;
11783
11784 amigaos*)
11785   case $host_cpu in
11786   powerpc)
11787     # Since July 2007 AmigaOS4 officially supports .so libraries.
11788     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790     ;;
11791   m68k)
11792     library_names_spec='$libname.ixlibrary $libname.a'
11793     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11794     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11795     ;;
11796   esac
11797   ;;
11798
11799 beos*)
11800   library_names_spec='${libname}${shared_ext}'
11801   dynamic_linker="$host_os ld.so"
11802   shlibpath_var=LIBRARY_PATH
11803   ;;
11804
11805 bsdi[45]*)
11806   version_type=linux
11807   need_version=no
11808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809   soname_spec='${libname}${release}${shared_ext}$major'
11810   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11811   shlibpath_var=LD_LIBRARY_PATH
11812   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11813   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11814   # the default ld.so.conf also contains /usr/contrib/lib and
11815   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11816   # libtool to hard-code these into programs
11817   ;;
11818
11819 cygwin* | mingw* | pw32* | cegcc*)
11820   version_type=windows
11821   shrext_cmds=".dll"
11822   need_version=no
11823   need_lib_prefix=no
11824
11825   case $GCC,$cc_basename in
11826   yes,*)
11827     # gcc
11828     library_names_spec='$libname.dll.a'
11829     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830     postinstall_cmds='base_file=`basename \${file}`~
11831       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11832       dldir=$destdir/`dirname \$dlpath`~
11833       test -d \$dldir || mkdir -p \$dldir~
11834       $install_prog $dir/$dlname \$dldir/$dlname~
11835       chmod a+x \$dldir/$dlname~
11836       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11837         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11838       fi'
11839     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11840       dlpath=$dir/\$dldll~
11841        $RM \$dlpath'
11842     shlibpath_overrides_runpath=yes
11843
11844     case $host_os in
11845     cygwin*)
11846       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11847       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11848
11849       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11850       ;;
11851     mingw* | cegcc*)
11852       # MinGW DLLs use traditional 'lib' prefix
11853       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11854       ;;
11855     pw32*)
11856       # pw32 DLLs use 'pw' prefix rather than 'lib'
11857       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11858       ;;
11859     esac
11860     dynamic_linker='Win32 ld.exe'
11861     ;;
11862
11863   *,cl*)
11864     # Native MSVC
11865     libname_spec='$name'
11866     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11867     library_names_spec='${libname}.dll.lib'
11868
11869     case $build_os in
11870     mingw*)
11871       sys_lib_search_path_spec=
11872       lt_save_ifs=$IFS
11873       IFS=';'
11874       for lt_path in $LIB
11875       do
11876         IFS=$lt_save_ifs
11877         # Let DOS variable expansion print the short 8.3 style file name.
11878         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11879         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11880       done
11881       IFS=$lt_save_ifs
11882       # Convert to MSYS style.
11883       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11884       ;;
11885     cygwin*)
11886       # Convert to unix form, then to dos form, then back to unix form
11887       # but this time dos style (no spaces!) so that the unix form looks
11888       # like /cygdrive/c/PROGRA~1:/cygdr...
11889       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11890       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11891       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11892       ;;
11893     *)
11894       sys_lib_search_path_spec="$LIB"
11895       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11896         # It is most probably a Windows format PATH.
11897         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11898       else
11899         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11900       fi
11901       # FIXME: find the short name or the path components, as spaces are
11902       # common. (e.g. "Program Files" -> "PROGRA~1")
11903       ;;
11904     esac
11905
11906     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11907     postinstall_cmds='base_file=`basename \${file}`~
11908       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11909       dldir=$destdir/`dirname \$dlpath`~
11910       test -d \$dldir || mkdir -p \$dldir~
11911       $install_prog $dir/$dlname \$dldir/$dlname'
11912     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11913       dlpath=$dir/\$dldll~
11914        $RM \$dlpath'
11915     shlibpath_overrides_runpath=yes
11916     dynamic_linker='Win32 link.exe'
11917     ;;
11918
11919   *)
11920     # Assume MSVC wrapper
11921     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11922     dynamic_linker='Win32 ld.exe'
11923     ;;
11924   esac
11925   # FIXME: first we should search . and the directory the executable is in
11926   shlibpath_var=PATH
11927   ;;
11928
11929 darwin* | rhapsody*)
11930   dynamic_linker="$host_os dyld"
11931   version_type=darwin
11932   need_lib_prefix=no
11933   need_version=no
11934   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11935   soname_spec='${libname}${release}${major}$shared_ext'
11936   shlibpath_overrides_runpath=yes
11937   shlibpath_var=DYLD_LIBRARY_PATH
11938   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11939
11940   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11941   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11942   ;;
11943
11944 dgux*)
11945   version_type=linux
11946   need_lib_prefix=no
11947   need_version=no
11948   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11949   soname_spec='${libname}${release}${shared_ext}$major'
11950   shlibpath_var=LD_LIBRARY_PATH
11951   ;;
11952
11953 freebsd1*)
11954   dynamic_linker=no
11955   ;;
11956
11957 freebsd* | dragonfly*)
11958   # DragonFly does not have aout.  When/if they implement a new
11959   # versioning mechanism, adjust this.
11960   if test -x /usr/bin/objformat; then
11961     objformat=`/usr/bin/objformat`
11962   else
11963     case $host_os in
11964     freebsd[123]*) objformat=aout ;;
11965     *) objformat=elf ;;
11966     esac
11967   fi
11968   version_type=freebsd-$objformat
11969   case $version_type in
11970     freebsd-elf*)
11971       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11972       need_version=no
11973       need_lib_prefix=no
11974       ;;
11975     freebsd-*)
11976       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11977       need_version=yes
11978       ;;
11979   esac
11980   shlibpath_var=LD_LIBRARY_PATH
11981   case $host_os in
11982   freebsd2*)
11983     shlibpath_overrides_runpath=yes
11984     ;;
11985   freebsd3.[01]* | freebsdelf3.[01]*)
11986     shlibpath_overrides_runpath=yes
11987     hardcode_into_libs=yes
11988     ;;
11989   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11990   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11991     shlibpath_overrides_runpath=no
11992     hardcode_into_libs=yes
11993     ;;
11994   *) # from 4.6 on, and DragonFly
11995     shlibpath_overrides_runpath=yes
11996     hardcode_into_libs=yes
11997     ;;
11998   esac
11999   ;;
12000
12001 gnu*)
12002   version_type=linux
12003   need_lib_prefix=no
12004   need_version=no
12005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12006   soname_spec='${libname}${release}${shared_ext}$major'
12007   shlibpath_var=LD_LIBRARY_PATH
12008   hardcode_into_libs=yes
12009   ;;
12010
12011 haiku*)
12012   version_type=linux
12013   need_lib_prefix=no
12014   need_version=no
12015   dynamic_linker="$host_os runtime_loader"
12016   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12017   soname_spec='${libname}${release}${shared_ext}$major'
12018   shlibpath_var=LIBRARY_PATH
12019   shlibpath_overrides_runpath=yes
12020   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12021   hardcode_into_libs=yes
12022   ;;
12023
12024 hpux9* | hpux10* | hpux11*)
12025   # Give a soname corresponding to the major version so that dld.sl refuses to
12026   # link against other versions.
12027   version_type=sunos
12028   need_lib_prefix=no
12029   need_version=no
12030   case $host_cpu in
12031   ia64*)
12032     shrext_cmds='.so'
12033     hardcode_into_libs=yes
12034     dynamic_linker="$host_os dld.so"
12035     shlibpath_var=LD_LIBRARY_PATH
12036     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12037     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12038     soname_spec='${libname}${release}${shared_ext}$major'
12039     if test "X$HPUX_IA64_MODE" = X32; then
12040       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12041     else
12042       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12043     fi
12044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12045     ;;
12046   hppa*64*)
12047     shrext_cmds='.sl'
12048     hardcode_into_libs=yes
12049     dynamic_linker="$host_os dld.sl"
12050     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12051     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12053     soname_spec='${libname}${release}${shared_ext}$major'
12054     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12055     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12056     ;;
12057   *)
12058     shrext_cmds='.sl'
12059     dynamic_linker="$host_os dld.sl"
12060     shlibpath_var=SHLIB_PATH
12061     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063     soname_spec='${libname}${release}${shared_ext}$major'
12064     ;;
12065   esac
12066   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12067   postinstall_cmds='chmod 555 $lib'
12068   # or fails outright, so override atomically:
12069   install_override_mode=555
12070   ;;
12071
12072 interix[3-9]*)
12073   version_type=linux
12074   need_lib_prefix=no
12075   need_version=no
12076   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12077   soname_spec='${libname}${release}${shared_ext}$major'
12078   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12079   shlibpath_var=LD_LIBRARY_PATH
12080   shlibpath_overrides_runpath=no
12081   hardcode_into_libs=yes
12082   ;;
12083
12084 irix5* | irix6* | nonstopux*)
12085   case $host_os in
12086     nonstopux*) version_type=nonstopux ;;
12087     *)
12088         if test "$lt_cv_prog_gnu_ld" = yes; then
12089                 version_type=linux
12090         else
12091                 version_type=irix
12092         fi ;;
12093   esac
12094   need_lib_prefix=no
12095   need_version=no
12096   soname_spec='${libname}${release}${shared_ext}$major'
12097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12098   case $host_os in
12099   irix5* | nonstopux*)
12100     libsuff= shlibsuff=
12101     ;;
12102   *)
12103     case $LD in # libtool.m4 will add one of these switches to LD
12104     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12105       libsuff= shlibsuff= libmagic=32-bit;;
12106     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12107       libsuff=32 shlibsuff=N32 libmagic=N32;;
12108     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12109       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12110     *) libsuff= shlibsuff= libmagic=never-match;;
12111     esac
12112     ;;
12113   esac
12114   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12115   shlibpath_overrides_runpath=no
12116   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12117   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12118   hardcode_into_libs=yes
12119   ;;
12120
12121 # No shared lib support for Linux oldld, aout, or coff.
12122 linux*oldld* | linux*aout* | linux*coff*)
12123   dynamic_linker=no
12124   ;;
12125
12126 # This must be Linux ELF.
12127 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12128   version_type=linux
12129   need_lib_prefix=no
12130   need_version=no
12131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12132   soname_spec='${libname}${release}${shared_ext}$major'
12133   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12134   shlibpath_var=LD_LIBRARY_PATH
12135   shlibpath_overrides_runpath=no
12136
12137   # Some binutils ld are patched to set DT_RUNPATH
12138   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
12139   $as_echo_n "(cached) " >&6
12140 else
12141   lt_cv_shlibpath_overrides_runpath=no
12142     save_LDFLAGS=$LDFLAGS
12143     save_libdir=$libdir
12144     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12145          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12146     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h.  */
12148
12149 int
12150 main ()
12151 {
12152
12153   ;
12154   return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_link "$LINENO"; then :
12158   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12159   lt_cv_shlibpath_overrides_runpath=yes
12160 fi
12161 fi
12162 rm -f core conftest.err conftest.$ac_objext \
12163     conftest$ac_exeext conftest.$ac_ext
12164     LDFLAGS=$save_LDFLAGS
12165     libdir=$save_libdir
12166
12167 fi
12168
12169   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12170
12171   # This implies no fast_install, which is unacceptable.
12172   # Some rework will be needed to allow for fast_install
12173   # before this can be enabled.
12174   hardcode_into_libs=yes
12175
12176   # Append ld.so.conf contents to the search path
12177   if test -f /etc/ld.so.conf; then
12178     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
12179     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12180   fi
12181
12182   # We used to test for /lib/ld.so.1 and disable shared libraries on
12183   # powerpc, because MkLinux only supported shared libraries with the
12184   # GNU dynamic linker.  Since this was broken with cross compilers,
12185   # most powerpc-linux boxes support dynamic linking these days and
12186   # people can always --disable-shared, the test was removed, and we
12187   # assume the GNU/Linux dynamic linker is in use.
12188   dynamic_linker='GNU/Linux ld.so'
12189   ;;
12190
12191 netbsd*)
12192   version_type=sunos
12193   need_lib_prefix=no
12194   need_version=no
12195   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12196     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12197     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12198     dynamic_linker='NetBSD (a.out) ld.so'
12199   else
12200     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12201     soname_spec='${libname}${release}${shared_ext}$major'
12202     dynamic_linker='NetBSD ld.elf_so'
12203   fi
12204   shlibpath_var=LD_LIBRARY_PATH
12205   shlibpath_overrides_runpath=yes
12206   hardcode_into_libs=yes
12207   ;;
12208
12209 newsos6)
12210   version_type=linux
12211   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12212   shlibpath_var=LD_LIBRARY_PATH
12213   shlibpath_overrides_runpath=yes
12214   ;;
12215
12216 *nto* | *qnx*)
12217   version_type=qnx
12218   need_lib_prefix=no
12219   need_version=no
12220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12221   soname_spec='${libname}${release}${shared_ext}$major'
12222   shlibpath_var=LD_LIBRARY_PATH
12223   shlibpath_overrides_runpath=no
12224   hardcode_into_libs=yes
12225   dynamic_linker='ldqnx.so'
12226   ;;
12227
12228 openbsd*)
12229   version_type=sunos
12230   sys_lib_dlsearch_path_spec="/usr/lib"
12231   need_lib_prefix=no
12232   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12233   case $host_os in
12234     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12235     *)                          need_version=no  ;;
12236   esac
12237   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12239   shlibpath_var=LD_LIBRARY_PATH
12240   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12241     case $host_os in
12242       openbsd2.[89] | openbsd2.[89].*)
12243         shlibpath_overrides_runpath=no
12244         ;;
12245       *)
12246         shlibpath_overrides_runpath=yes
12247         ;;
12248       esac
12249   else
12250     shlibpath_overrides_runpath=yes
12251   fi
12252   ;;
12253
12254 os2*)
12255   libname_spec='$name'
12256   shrext_cmds=".dll"
12257   need_lib_prefix=no
12258   library_names_spec='$libname${shared_ext} $libname.a'
12259   dynamic_linker='OS/2 ld.exe'
12260   shlibpath_var=LIBPATH
12261   ;;
12262
12263 osf3* | osf4* | osf5*)
12264   version_type=osf
12265   need_lib_prefix=no
12266   need_version=no
12267   soname_spec='${libname}${release}${shared_ext}$major'
12268   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12269   shlibpath_var=LD_LIBRARY_PATH
12270   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12271   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12272   ;;
12273
12274 rdos*)
12275   dynamic_linker=no
12276   ;;
12277
12278 solaris*)
12279   version_type=linux
12280   need_lib_prefix=no
12281   need_version=no
12282   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12283   soname_spec='${libname}${release}${shared_ext}$major'
12284   shlibpath_var=LD_LIBRARY_PATH
12285   shlibpath_overrides_runpath=yes
12286   hardcode_into_libs=yes
12287   # ldd complains unless libraries are executable
12288   postinstall_cmds='chmod +x $lib'
12289   ;;
12290
12291 sunos4*)
12292   version_type=sunos
12293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12294   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12295   shlibpath_var=LD_LIBRARY_PATH
12296   shlibpath_overrides_runpath=yes
12297   if test "$with_gnu_ld" = yes; then
12298     need_lib_prefix=no
12299   fi
12300   need_version=yes
12301   ;;
12302
12303 sysv4 | sysv4.3*)
12304   version_type=linux
12305   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12306   soname_spec='${libname}${release}${shared_ext}$major'
12307   shlibpath_var=LD_LIBRARY_PATH
12308   case $host_vendor in
12309     sni)
12310       shlibpath_overrides_runpath=no
12311       need_lib_prefix=no
12312       runpath_var=LD_RUN_PATH
12313       ;;
12314     siemens)
12315       need_lib_prefix=no
12316       ;;
12317     motorola)
12318       need_lib_prefix=no
12319       need_version=no
12320       shlibpath_overrides_runpath=no
12321       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12322       ;;
12323   esac
12324   ;;
12325
12326 sysv4*MP*)
12327   if test -d /usr/nec ;then
12328     version_type=linux
12329     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12330     soname_spec='$libname${shared_ext}.$major'
12331     shlibpath_var=LD_LIBRARY_PATH
12332   fi
12333   ;;
12334
12335 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12336   version_type=freebsd-elf
12337   need_lib_prefix=no
12338   need_version=no
12339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12340   soname_spec='${libname}${release}${shared_ext}$major'
12341   shlibpath_var=LD_LIBRARY_PATH
12342   shlibpath_overrides_runpath=yes
12343   hardcode_into_libs=yes
12344   if test "$with_gnu_ld" = yes; then
12345     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12346   else
12347     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12348     case $host_os in
12349       sco3.2v5*)
12350         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12351         ;;
12352     esac
12353   fi
12354   sys_lib_dlsearch_path_spec='/usr/lib'
12355   ;;
12356
12357 tpf*)
12358   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12359   version_type=linux
12360   need_lib_prefix=no
12361   need_version=no
12362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12363   shlibpath_var=LD_LIBRARY_PATH
12364   shlibpath_overrides_runpath=no
12365   hardcode_into_libs=yes
12366   ;;
12367
12368 uts4*)
12369   version_type=linux
12370   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12371   soname_spec='${libname}${release}${shared_ext}$major'
12372   shlibpath_var=LD_LIBRARY_PATH
12373   ;;
12374
12375 *)
12376   dynamic_linker=no
12377   ;;
12378 esac
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12380 $as_echo "$dynamic_linker" >&6; }
12381 test "$dynamic_linker" = no && can_build_shared=no
12382
12383 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12384 if test "$GCC" = yes; then
12385   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12386 fi
12387
12388 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12389   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12390 fi
12391 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12392   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12393 fi
12394
12395
12396
12397
12398
12399
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12487 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12488 hardcode_action=
12489 if test -n "$hardcode_libdir_flag_spec" ||
12490    test -n "$runpath_var" ||
12491    test "X$hardcode_automatic" = "Xyes" ; then
12492
12493   # We can hardcode non-existent directories.
12494   if test "$hardcode_direct" != no &&
12495      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12496      # have to relink, otherwise we might link with an installed library
12497      # when we should be linking with a yet-to-be-installed one
12498      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12499      test "$hardcode_minus_L" != no; then
12500     # Linking always hardcodes the temporary library directory.
12501     hardcode_action=relink
12502   else
12503     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12504     hardcode_action=immediate
12505   fi
12506 else
12507   # We cannot hardcode anything, or else we can only hardcode existing
12508   # directories.
12509   hardcode_action=unsupported
12510 fi
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12512 $as_echo "$hardcode_action" >&6; }
12513
12514 if test "$hardcode_action" = relink ||
12515    test "$inherit_rpath" = yes; then
12516   # Fast installation is not supported
12517   enable_fast_install=no
12518 elif test "$shlibpath_overrides_runpath" = yes ||
12519      test "$enable_shared" = no; then
12520   # Fast installation is not necessary
12521   enable_fast_install=needless
12522 fi
12523
12524
12525
12526
12527
12528
12529   if test "x$enable_dlopen" != xyes; then
12530   enable_dlopen=unknown
12531   enable_dlopen_self=unknown
12532   enable_dlopen_self_static=unknown
12533 else
12534   lt_cv_dlopen=no
12535   lt_cv_dlopen_libs=
12536
12537   case $host_os in
12538   beos*)
12539     lt_cv_dlopen="load_add_on"
12540     lt_cv_dlopen_libs=
12541     lt_cv_dlopen_self=yes
12542     ;;
12543
12544   mingw* | pw32* | cegcc*)
12545     lt_cv_dlopen="LoadLibrary"
12546     lt_cv_dlopen_libs=
12547     ;;
12548
12549   cygwin*)
12550     lt_cv_dlopen="dlopen"
12551     lt_cv_dlopen_libs=
12552     ;;
12553
12554   darwin*)
12555   # if libdl is installed we need to link against it
12556     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12557 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12558 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12559   $as_echo_n "(cached) " >&6
12560 else
12561   ac_check_lib_save_LIBS=$LIBS
12562 LIBS="-ldl  $LIBS"
12563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12564 /* end confdefs.h.  */
12565
12566 /* Override any GCC internal prototype to avoid an error.
12567    Use char because int might match the return type of a GCC
12568    builtin and then its argument prototype would still apply.  */
12569 #ifdef __cplusplus
12570 extern "C"
12571 #endif
12572 char dlopen ();
12573 int
12574 main ()
12575 {
12576 return dlopen ();
12577   ;
12578   return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_link "$LINENO"; then :
12582   ac_cv_lib_dl_dlopen=yes
12583 else
12584   ac_cv_lib_dl_dlopen=no
12585 fi
12586 rm -f core conftest.err conftest.$ac_objext \
12587     conftest$ac_exeext conftest.$ac_ext
12588 LIBS=$ac_check_lib_save_LIBS
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12591 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12592 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12593   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12594 else
12595
12596     lt_cv_dlopen="dyld"
12597     lt_cv_dlopen_libs=
12598     lt_cv_dlopen_self=yes
12599
12600 fi
12601
12602     ;;
12603
12604   *)
12605     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12606 if test "x$ac_cv_func_shl_load" = x""yes; then :
12607   lt_cv_dlopen="shl_load"
12608 else
12609   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12610 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12611 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12612   $as_echo_n "(cached) " >&6
12613 else
12614   ac_check_lib_save_LIBS=$LIBS
12615 LIBS="-ldld  $LIBS"
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h.  */
12618
12619 /* Override any GCC internal prototype to avoid an error.
12620    Use char because int might match the return type of a GCC
12621    builtin and then its argument prototype would still apply.  */
12622 #ifdef __cplusplus
12623 extern "C"
12624 #endif
12625 char shl_load ();
12626 int
12627 main ()
12628 {
12629 return shl_load ();
12630   ;
12631   return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635   ac_cv_lib_dld_shl_load=yes
12636 else
12637   ac_cv_lib_dld_shl_load=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640     conftest$ac_exeext conftest.$ac_ext
12641 LIBS=$ac_check_lib_save_LIBS
12642 fi
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12644 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12645 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12646   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12647 else
12648   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12649 if test "x$ac_cv_func_dlopen" = x""yes; then :
12650   lt_cv_dlopen="dlopen"
12651 else
12652   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12653 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12655   $as_echo_n "(cached) " >&6
12656 else
12657   ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-ldl  $LIBS"
12659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12660 /* end confdefs.h.  */
12661
12662 /* Override any GCC internal prototype to avoid an error.
12663    Use char because int might match the return type of a GCC
12664    builtin and then its argument prototype would still apply.  */
12665 #ifdef __cplusplus
12666 extern "C"
12667 #endif
12668 char dlopen ();
12669 int
12670 main ()
12671 {
12672 return dlopen ();
12673   ;
12674   return 0;
12675 }
12676 _ACEOF
12677 if ac_fn_c_try_link "$LINENO"; then :
12678   ac_cv_lib_dl_dlopen=yes
12679 else
12680   ac_cv_lib_dl_dlopen=no
12681 fi
12682 rm -f core conftest.err conftest.$ac_objext \
12683     conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12685 fi
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12687 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12688 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12689   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12690 else
12691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12692 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12693 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12694   $as_echo_n "(cached) " >&6
12695 else
12696   ac_check_lib_save_LIBS=$LIBS
12697 LIBS="-lsvld  $LIBS"
12698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12699 /* end confdefs.h.  */
12700
12701 /* Override any GCC internal prototype to avoid an error.
12702    Use char because int might match the return type of a GCC
12703    builtin and then its argument prototype would still apply.  */
12704 #ifdef __cplusplus
12705 extern "C"
12706 #endif
12707 char dlopen ();
12708 int
12709 main ()
12710 {
12711 return dlopen ();
12712   ;
12713   return 0;
12714 }
12715 _ACEOF
12716 if ac_fn_c_try_link "$LINENO"; then :
12717   ac_cv_lib_svld_dlopen=yes
12718 else
12719   ac_cv_lib_svld_dlopen=no
12720 fi
12721 rm -f core conftest.err conftest.$ac_objext \
12722     conftest$ac_exeext conftest.$ac_ext
12723 LIBS=$ac_check_lib_save_LIBS
12724 fi
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12726 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12727 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12728   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12729 else
12730   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12731 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12732 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12733   $as_echo_n "(cached) " >&6
12734 else
12735   ac_check_lib_save_LIBS=$LIBS
12736 LIBS="-ldld  $LIBS"
12737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12738 /* end confdefs.h.  */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741    Use char because int might match the return type of a GCC
12742    builtin and then its argument prototype would still apply.  */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char dld_link ();
12747 int
12748 main ()
12749 {
12750 return dld_link ();
12751   ;
12752   return 0;
12753 }
12754 _ACEOF
12755 if ac_fn_c_try_link "$LINENO"; then :
12756   ac_cv_lib_dld_dld_link=yes
12757 else
12758   ac_cv_lib_dld_dld_link=no
12759 fi
12760 rm -f core conftest.err conftest.$ac_objext \
12761     conftest$ac_exeext conftest.$ac_ext
12762 LIBS=$ac_check_lib_save_LIBS
12763 fi
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12765 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12766 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12767   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12768 fi
12769
12770
12771 fi
12772
12773
12774 fi
12775
12776
12777 fi
12778
12779
12780 fi
12781
12782
12783 fi
12784
12785     ;;
12786   esac
12787
12788   if test "x$lt_cv_dlopen" != xno; then
12789     enable_dlopen=yes
12790   else
12791     enable_dlopen=no
12792   fi
12793
12794   case $lt_cv_dlopen in
12795   dlopen)
12796     save_CPPFLAGS="$CPPFLAGS"
12797     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12798
12799     save_LDFLAGS="$LDFLAGS"
12800     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12801
12802     save_LIBS="$LIBS"
12803     LIBS="$lt_cv_dlopen_libs $LIBS"
12804
12805     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12806 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12807 if test "${lt_cv_dlopen_self+set}" = set; then :
12808   $as_echo_n "(cached) " >&6
12809 else
12810           if test "$cross_compiling" = yes; then :
12811   lt_cv_dlopen_self=cross
12812 else
12813   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12814   lt_status=$lt_dlunknown
12815   cat > conftest.$ac_ext <<_LT_EOF
12816 #line $LINENO "configure"
12817 #include "confdefs.h"
12818
12819 #if HAVE_DLFCN_H
12820 #include <dlfcn.h>
12821 #endif
12822
12823 #include <stdio.h>
12824
12825 #ifdef RTLD_GLOBAL
12826 #  define LT_DLGLOBAL           RTLD_GLOBAL
12827 #else
12828 #  ifdef DL_GLOBAL
12829 #    define LT_DLGLOBAL         DL_GLOBAL
12830 #  else
12831 #    define LT_DLGLOBAL         0
12832 #  endif
12833 #endif
12834
12835 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12836    find out it does not work in some platform. */
12837 #ifndef LT_DLLAZY_OR_NOW
12838 #  ifdef RTLD_LAZY
12839 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12840 #  else
12841 #    ifdef DL_LAZY
12842 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12843 #    else
12844 #      ifdef RTLD_NOW
12845 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12846 #      else
12847 #        ifdef DL_NOW
12848 #          define LT_DLLAZY_OR_NOW      DL_NOW
12849 #        else
12850 #          define LT_DLLAZY_OR_NOW      0
12851 #        endif
12852 #      endif
12853 #    endif
12854 #  endif
12855 #endif
12856
12857 /* When -fvisbility=hidden is used, assume the code has been annotated
12858    correspondingly for the symbols needed.  */
12859 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12860 int fnord () __attribute__((visibility("default")));
12861 #endif
12862
12863 int fnord () { return 42; }
12864 int main ()
12865 {
12866   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12867   int status = $lt_dlunknown;
12868
12869   if (self)
12870     {
12871       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12872       else
12873         {
12874           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12875           else puts (dlerror ());
12876         }
12877       /* dlclose (self); */
12878     }
12879   else
12880     puts (dlerror ());
12881
12882   return status;
12883 }
12884 _LT_EOF
12885   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12886   (eval $ac_link) 2>&5
12887   ac_status=$?
12888   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12889   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12890     (./conftest; exit; ) >&5 2>/dev/null
12891     lt_status=$?
12892     case x$lt_status in
12893       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12894       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12895       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12896     esac
12897   else :
12898     # compilation failed
12899     lt_cv_dlopen_self=no
12900   fi
12901 fi
12902 rm -fr conftest*
12903
12904
12905 fi
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12907 $as_echo "$lt_cv_dlopen_self" >&6; }
12908
12909     if test "x$lt_cv_dlopen_self" = xyes; then
12910       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12911       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12912 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12913 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12914   $as_echo_n "(cached) " >&6
12915 else
12916           if test "$cross_compiling" = yes; then :
12917   lt_cv_dlopen_self_static=cross
12918 else
12919   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12920   lt_status=$lt_dlunknown
12921   cat > conftest.$ac_ext <<_LT_EOF
12922 #line $LINENO "configure"
12923 #include "confdefs.h"
12924
12925 #if HAVE_DLFCN_H
12926 #include <dlfcn.h>
12927 #endif
12928
12929 #include <stdio.h>
12930
12931 #ifdef RTLD_GLOBAL
12932 #  define LT_DLGLOBAL           RTLD_GLOBAL
12933 #else
12934 #  ifdef DL_GLOBAL
12935 #    define LT_DLGLOBAL         DL_GLOBAL
12936 #  else
12937 #    define LT_DLGLOBAL         0
12938 #  endif
12939 #endif
12940
12941 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12942    find out it does not work in some platform. */
12943 #ifndef LT_DLLAZY_OR_NOW
12944 #  ifdef RTLD_LAZY
12945 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12946 #  else
12947 #    ifdef DL_LAZY
12948 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12949 #    else
12950 #      ifdef RTLD_NOW
12951 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12952 #      else
12953 #        ifdef DL_NOW
12954 #          define LT_DLLAZY_OR_NOW      DL_NOW
12955 #        else
12956 #          define LT_DLLAZY_OR_NOW      0
12957 #        endif
12958 #      endif
12959 #    endif
12960 #  endif
12961 #endif
12962
12963 /* When -fvisbility=hidden is used, assume the code has been annotated
12964    correspondingly for the symbols needed.  */
12965 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12966 int fnord () __attribute__((visibility("default")));
12967 #endif
12968
12969 int fnord () { return 42; }
12970 int main ()
12971 {
12972   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12973   int status = $lt_dlunknown;
12974
12975   if (self)
12976     {
12977       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12978       else
12979         {
12980           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12981           else puts (dlerror ());
12982         }
12983       /* dlclose (self); */
12984     }
12985   else
12986     puts (dlerror ());
12987
12988   return status;
12989 }
12990 _LT_EOF
12991   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12992   (eval $ac_link) 2>&5
12993   ac_status=$?
12994   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12995   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12996     (./conftest; exit; ) >&5 2>/dev/null
12997     lt_status=$?
12998     case x$lt_status in
12999       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13000       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13001       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13002     esac
13003   else :
13004     # compilation failed
13005     lt_cv_dlopen_self_static=no
13006   fi
13007 fi
13008 rm -fr conftest*
13009
13010
13011 fi
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13013 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13014     fi
13015
13016     CPPFLAGS="$save_CPPFLAGS"
13017     LDFLAGS="$save_LDFLAGS"
13018     LIBS="$save_LIBS"
13019     ;;
13020   esac
13021
13022   case $lt_cv_dlopen_self in
13023   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13024   *) enable_dlopen_self=unknown ;;
13025   esac
13026
13027   case $lt_cv_dlopen_self_static in
13028   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13029   *) enable_dlopen_self_static=unknown ;;
13030   esac
13031 fi
13032
13033
13034
13035
13036
13037
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049 striplib=
13050 old_striplib=
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13052 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13053 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13054   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13055   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13056   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13057 $as_echo "yes" >&6; }
13058 else
13059 # FIXME - insert some real tests, host_os isn't really good enough
13060   case $host_os in
13061   darwin*)
13062     if test -n "$STRIP" ; then
13063       striplib="$STRIP -x"
13064       old_striplib="$STRIP -S"
13065       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13066 $as_echo "yes" >&6; }
13067     else
13068       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13069 $as_echo "no" >&6; }
13070     fi
13071     ;;
13072   *)
13073     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13074 $as_echo "no" >&6; }
13075     ;;
13076   esac
13077 fi
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090   # Report which library types will actually be built
13091   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13092 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13093   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13094 $as_echo "$can_build_shared" >&6; }
13095
13096   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13097 $as_echo_n "checking whether to build shared libraries... " >&6; }
13098   test "$can_build_shared" = "no" && enable_shared=no
13099
13100   # On AIX, shared libraries and static libraries use the same namespace, and
13101   # are all built from PIC.
13102   case $host_os in
13103   aix3*)
13104     test "$enable_shared" = yes && enable_static=no
13105     if test -n "$RANLIB"; then
13106       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13107       postinstall_cmds='$RANLIB $lib'
13108     fi
13109     ;;
13110
13111   aix[4-9]*)
13112     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13113       test "$enable_shared" = yes && enable_static=no
13114     fi
13115     ;;
13116   esac
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13118 $as_echo "$enable_shared" >&6; }
13119
13120   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13121 $as_echo_n "checking whether to build static libraries... " >&6; }
13122   # Make sure either enable_shared or enable_static is yes.
13123   test "$enable_shared" = yes || enable_static=yes
13124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13125 $as_echo "$enable_static" >&6; }
13126
13127
13128
13129
13130 fi
13131 ac_ext=c
13132 ac_cpp='$CPP $CPPFLAGS'
13133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13136
13137 CC="$lt_save_CC"
13138
13139       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13140     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13141     (test "X$CXX" != "Xg++"))) ; then
13142   ac_ext=cpp
13143 ac_cpp='$CXXCPP $CPPFLAGS'
13144 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13145 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13146 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13148 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13149 if test -z "$CXXCPP"; then
13150   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13151   $as_echo_n "(cached) " >&6
13152 else
13153       # Double quotes because CXXCPP needs to be expanded
13154     for CXXCPP in "$CXX -E" "/lib/cpp"
13155     do
13156       ac_preproc_ok=false
13157 for ac_cxx_preproc_warn_flag in '' yes
13158 do
13159   # Use a header file that comes with gcc, so configuring glibc
13160   # with a fresh cross-compiler works.
13161   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13162   # <limits.h> exists even on freestanding compilers.
13163   # On the NeXT, cc -E runs the code through the compiler's parser,
13164   # not just through cpp. "Syntax error" is here to catch this case.
13165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h.  */
13167 #ifdef __STDC__
13168 # include <limits.h>
13169 #else
13170 # include <assert.h>
13171 #endif
13172                      Syntax error
13173 _ACEOF
13174 if ac_fn_cxx_try_cpp "$LINENO"; then :
13175
13176 else
13177   # Broken: fails on valid input.
13178 continue
13179 fi
13180 rm -f conftest.err conftest.$ac_ext
13181
13182   # OK, works on sane cases.  Now check whether nonexistent headers
13183   # can be detected and how.
13184   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185 /* end confdefs.h.  */
13186 #include <ac_nonexistent.h>
13187 _ACEOF
13188 if ac_fn_cxx_try_cpp "$LINENO"; then :
13189   # Broken: success on invalid input.
13190 continue
13191 else
13192   # Passes both tests.
13193 ac_preproc_ok=:
13194 break
13195 fi
13196 rm -f conftest.err conftest.$ac_ext
13197
13198 done
13199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13200 rm -f conftest.err conftest.$ac_ext
13201 if $ac_preproc_ok; then :
13202   break
13203 fi
13204
13205     done
13206     ac_cv_prog_CXXCPP=$CXXCPP
13207
13208 fi
13209   CXXCPP=$ac_cv_prog_CXXCPP
13210 else
13211   ac_cv_prog_CXXCPP=$CXXCPP
13212 fi
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13214 $as_echo "$CXXCPP" >&6; }
13215 ac_preproc_ok=false
13216 for ac_cxx_preproc_warn_flag in '' yes
13217 do
13218   # Use a header file that comes with gcc, so configuring glibc
13219   # with a fresh cross-compiler works.
13220   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13221   # <limits.h> exists even on freestanding compilers.
13222   # On the NeXT, cc -E runs the code through the compiler's parser,
13223   # not just through cpp. "Syntax error" is here to catch this case.
13224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13225 /* end confdefs.h.  */
13226 #ifdef __STDC__
13227 # include <limits.h>
13228 #else
13229 # include <assert.h>
13230 #endif
13231                      Syntax error
13232 _ACEOF
13233 if ac_fn_cxx_try_cpp "$LINENO"; then :
13234
13235 else
13236   # Broken: fails on valid input.
13237 continue
13238 fi
13239 rm -f conftest.err conftest.$ac_ext
13240
13241   # OK, works on sane cases.  Now check whether nonexistent headers
13242   # can be detected and how.
13243   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13244 /* end confdefs.h.  */
13245 #include <ac_nonexistent.h>
13246 _ACEOF
13247 if ac_fn_cxx_try_cpp "$LINENO"; then :
13248   # Broken: success on invalid input.
13249 continue
13250 else
13251   # Passes both tests.
13252 ac_preproc_ok=:
13253 break
13254 fi
13255 rm -f conftest.err conftest.$ac_ext
13256
13257 done
13258 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13259 rm -f conftest.err conftest.$ac_ext
13260 if $ac_preproc_ok; then :
13261
13262 else
13263   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13265 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13266 See \`config.log' for more details." "$LINENO" 5; }
13267 fi
13268
13269 ac_ext=c
13270 ac_cpp='$CPP $CPPFLAGS'
13271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13274
13275 else
13276   _lt_caught_CXX_error=yes
13277 fi
13278
13279 ac_ext=cpp
13280 ac_cpp='$CXXCPP $CPPFLAGS'
13281 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13282 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13283 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13284
13285 archive_cmds_need_lc_CXX=no
13286 allow_undefined_flag_CXX=
13287 always_export_symbols_CXX=no
13288 archive_expsym_cmds_CXX=
13289 compiler_needs_object_CXX=no
13290 export_dynamic_flag_spec_CXX=
13291 hardcode_direct_CXX=no
13292 hardcode_direct_absolute_CXX=no
13293 hardcode_libdir_flag_spec_CXX=
13294 hardcode_libdir_flag_spec_ld_CXX=
13295 hardcode_libdir_separator_CXX=
13296 hardcode_minus_L_CXX=no
13297 hardcode_shlibpath_var_CXX=unsupported
13298 hardcode_automatic_CXX=no
13299 inherit_rpath_CXX=no
13300 module_cmds_CXX=
13301 module_expsym_cmds_CXX=
13302 link_all_deplibs_CXX=unknown
13303 old_archive_cmds_CXX=$old_archive_cmds
13304 reload_flag_CXX=$reload_flag
13305 reload_cmds_CXX=$reload_cmds
13306 no_undefined_flag_CXX=
13307 whole_archive_flag_spec_CXX=
13308 enable_shared_with_static_runtimes_CXX=no
13309
13310 # Source file extension for C++ test sources.
13311 ac_ext=cpp
13312
13313 # Object file extension for compiled C++ test sources.
13314 objext=o
13315 objext_CXX=$objext
13316
13317 # No sense in running all these tests if we already determined that
13318 # the CXX compiler isn't working.  Some variables (like enable_shared)
13319 # are currently assumed to apply to all compilers on this platform,
13320 # and will be corrupted by setting them based on a non-working compiler.
13321 if test "$_lt_caught_CXX_error" != yes; then
13322   # Code to be used in simple compile tests
13323   lt_simple_compile_test_code="int some_variable = 0;"
13324
13325   # Code to be used in simple link tests
13326   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13327
13328   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13329
13330
13331
13332
13333
13334
13335 # If no C compiler was specified, use CC.
13336 LTCC=${LTCC-"$CC"}
13337
13338 # If no C compiler flags were specified, use CFLAGS.
13339 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13340
13341 # Allow CC to be a program name with arguments.
13342 compiler=$CC
13343
13344
13345   # save warnings/boilerplate of simple test code
13346   ac_outfile=conftest.$ac_objext
13347 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13348 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13349 _lt_compiler_boilerplate=`cat conftest.err`
13350 $RM conftest*
13351
13352   ac_outfile=conftest.$ac_objext
13353 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13354 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13355 _lt_linker_boilerplate=`cat conftest.err`
13356 $RM -r conftest*
13357
13358
13359   # Allow CC to be a program name with arguments.
13360   lt_save_CC=$CC
13361   lt_save_CFLAGS=$CFLAGS
13362   lt_save_LD=$LD
13363   lt_save_GCC=$GCC
13364   GCC=$GXX
13365   lt_save_with_gnu_ld=$with_gnu_ld
13366   lt_save_path_LD=$lt_cv_path_LD
13367   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13368     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13369   else
13370     $as_unset lt_cv_prog_gnu_ld
13371   fi
13372   if test -n "${lt_cv_path_LDCXX+set}"; then
13373     lt_cv_path_LD=$lt_cv_path_LDCXX
13374   else
13375     $as_unset lt_cv_path_LD
13376   fi
13377   test -z "${LDCXX+set}" || LD=$LDCXX
13378   CC=${CXX-"c++"}
13379   CFLAGS=$CXXFLAGS
13380   compiler=$CC
13381   compiler_CXX=$CC
13382   for cc_temp in $compiler""; do
13383   case $cc_temp in
13384     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13385     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13386     \-*) ;;
13387     *) break;;
13388   esac
13389 done
13390 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13391
13392
13393   if test -n "$compiler"; then
13394     # We don't want -fno-exception when compiling C++ code, so set the
13395     # no_builtin_flag separately
13396     if test "$GXX" = yes; then
13397       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13398     else
13399       lt_prog_compiler_no_builtin_flag_CXX=
13400     fi
13401
13402     if test "$GXX" = yes; then
13403       # Set up default GNU C++ configuration
13404
13405
13406
13407 # Check whether --with-gnu-ld was given.
13408 if test "${with_gnu_ld+set}" = set; then :
13409   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13410 else
13411   with_gnu_ld=no
13412 fi
13413
13414 ac_prog=ld
13415 if test "$GCC" = yes; then
13416   # Check if gcc -print-prog-name=ld gives a path.
13417   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13418 $as_echo_n "checking for ld used by $CC... " >&6; }
13419   case $host in
13420   *-*-mingw*)
13421     # gcc leaves a trailing carriage return which upsets mingw
13422     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13423   *)
13424     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13425   esac
13426   case $ac_prog in
13427     # Accept absolute paths.
13428     [\\/]* | ?:[\\/]*)
13429       re_direlt='/[^/][^/]*/\.\./'
13430       # Canonicalize the pathname of ld
13431       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13432       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13433         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13434       done
13435       test -z "$LD" && LD="$ac_prog"
13436       ;;
13437   "")
13438     # If it fails, then pretend we aren't using GCC.
13439     ac_prog=ld
13440     ;;
13441   *)
13442     # If it is relative, then search for the first ld in PATH.
13443     with_gnu_ld=unknown
13444     ;;
13445   esac
13446 elif test "$with_gnu_ld" = yes; then
13447   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13448 $as_echo_n "checking for GNU ld... " >&6; }
13449 else
13450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13451 $as_echo_n "checking for non-GNU ld... " >&6; }
13452 fi
13453 if test "${lt_cv_path_LD+set}" = set; then :
13454   $as_echo_n "(cached) " >&6
13455 else
13456   if test -z "$LD"; then
13457   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13458   for ac_dir in $PATH; do
13459     IFS="$lt_save_ifs"
13460     test -z "$ac_dir" && ac_dir=.
13461     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13462       lt_cv_path_LD="$ac_dir/$ac_prog"
13463       # Check to see if the program is GNU ld.  I'd rather use --version,
13464       # but apparently some variants of GNU ld only accept -v.
13465       # Break only if it was the GNU/non-GNU ld that we prefer.
13466       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13467       *GNU* | *'with BFD'*)
13468         test "$with_gnu_ld" != no && break
13469         ;;
13470       *)
13471         test "$with_gnu_ld" != yes && break
13472         ;;
13473       esac
13474     fi
13475   done
13476   IFS="$lt_save_ifs"
13477 else
13478   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13479 fi
13480 fi
13481
13482 LD="$lt_cv_path_LD"
13483 if test -n "$LD"; then
13484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13485 $as_echo "$LD" >&6; }
13486 else
13487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13488 $as_echo "no" >&6; }
13489 fi
13490 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13492 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13493 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13494   $as_echo_n "(cached) " >&6
13495 else
13496   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13497 case `$LD -v 2>&1 </dev/null` in
13498 *GNU* | *'with BFD'*)
13499   lt_cv_prog_gnu_ld=yes
13500   ;;
13501 *)
13502   lt_cv_prog_gnu_ld=no
13503   ;;
13504 esac
13505 fi
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13507 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13508 with_gnu_ld=$lt_cv_prog_gnu_ld
13509
13510
13511
13512
13513
13514
13515
13516       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13517       # archiving commands below assume that GNU ld is being used.
13518       if test "$with_gnu_ld" = yes; then
13519         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520         archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13521
13522         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13523         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13524
13525         # If archive_cmds runs LD, not CC, wlarc should be empty
13526         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13527         #     investigate it a little bit more. (MM)
13528         wlarc='${wl}'
13529
13530         # ancient GNU ld didn't support --whole-archive et. al.
13531         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13532           $GREP 'no-whole-archive' > /dev/null; then
13533           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13534         else
13535           whole_archive_flag_spec_CXX=
13536         fi
13537       else
13538         with_gnu_ld=no
13539         wlarc=
13540
13541         # A generic and very simple default shared library creation
13542         # command for GNU C++ for the case where it uses the native
13543         # linker, instead of GNU ld.  If possible, this setting should
13544         # overridden to take advantage of the native linker features on
13545         # the platform it is being used on.
13546         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13547       fi
13548
13549       # Commands to make compiler produce verbose output that lists
13550       # what "hidden" libraries, object files and flags are used when
13551       # linking a shared library.
13552       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13553
13554     else
13555       GXX=no
13556       with_gnu_ld=no
13557       wlarc=
13558     fi
13559
13560     # PORTME: fill in a description of your system's C++ link characteristics
13561     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13562 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13563     ld_shlibs_CXX=yes
13564     case $host_os in
13565       aix3*)
13566         # FIXME: insert proper C++ library support
13567         ld_shlibs_CXX=no
13568         ;;
13569       aix[4-9]*)
13570         if test "$host_cpu" = ia64; then
13571           # On IA64, the linker does run time linking by default, so we don't
13572           # have to do anything special.
13573           aix_use_runtimelinking=no
13574           exp_sym_flag='-Bexport'
13575           no_entry_flag=""
13576         else
13577           aix_use_runtimelinking=no
13578
13579           # Test if we are trying to use run time linking or normal
13580           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13581           # need to do runtime linking.
13582           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13583             for ld_flag in $LDFLAGS; do
13584               case $ld_flag in
13585               *-brtl*)
13586                 aix_use_runtimelinking=yes
13587                 break
13588                 ;;
13589               esac
13590             done
13591             ;;
13592           esac
13593
13594           exp_sym_flag='-bexport'
13595           no_entry_flag='-bnoentry'
13596         fi
13597
13598         # When large executables or shared objects are built, AIX ld can
13599         # have problems creating the table of contents.  If linking a library
13600         # or program results in "error TOC overflow" add -mminimal-toc to
13601         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13602         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13603
13604         archive_cmds_CXX=''
13605         hardcode_direct_CXX=yes
13606         hardcode_direct_absolute_CXX=yes
13607         hardcode_libdir_separator_CXX=':'
13608         link_all_deplibs_CXX=yes
13609         file_list_spec_CXX='${wl}-f,'
13610
13611         if test "$GXX" = yes; then
13612           case $host_os in aix4.[012]|aix4.[012].*)
13613           # We only want to do this on AIX 4.2 and lower, the check
13614           # below for broken collect2 doesn't work under 4.3+
13615           collect2name=`${CC} -print-prog-name=collect2`
13616           if test -f "$collect2name" &&
13617              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13618           then
13619             # We have reworked collect2
13620             :
13621           else
13622             # We have old collect2
13623             hardcode_direct_CXX=unsupported
13624             # It fails to find uninstalled libraries when the uninstalled
13625             # path is not listed in the libpath.  Setting hardcode_minus_L
13626             # to unsupported forces relinking
13627             hardcode_minus_L_CXX=yes
13628             hardcode_libdir_flag_spec_CXX='-L$libdir'
13629             hardcode_libdir_separator_CXX=
13630           fi
13631           esac
13632           shared_flag='-shared'
13633           if test "$aix_use_runtimelinking" = yes; then
13634             shared_flag="$shared_flag "'${wl}-G'
13635           fi
13636         else
13637           # not using gcc
13638           if test "$host_cpu" = ia64; then
13639           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13640           # chokes on -Wl,-G. The following line is correct:
13641           shared_flag='-G'
13642           else
13643             if test "$aix_use_runtimelinking" = yes; then
13644               shared_flag='${wl}-G'
13645             else
13646               shared_flag='${wl}-bM:SRE'
13647             fi
13648           fi
13649         fi
13650
13651         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13652         # It seems that -bexpall does not export symbols beginning with
13653         # underscore (_), so it is better to generate a list of symbols to
13654         # export.
13655         always_export_symbols_CXX=yes
13656         if test "$aix_use_runtimelinking" = yes; then
13657           # Warning - without using the other runtime loading flags (-brtl),
13658           # -berok will link without error, but may produce a broken library.
13659           allow_undefined_flag_CXX='-berok'
13660           # Determine the default libpath from the value encoded in an empty
13661           # executable.
13662           if test "${lt_cv_aix_libpath+set}" = set; then
13663   aix_libpath=$lt_cv_aix_libpath
13664 else
13665   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13666   $as_echo_n "(cached) " >&6
13667 else
13668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h.  */
13670
13671 int
13672 main ()
13673 {
13674
13675   ;
13676   return 0;
13677 }
13678 _ACEOF
13679 if ac_fn_cxx_try_link "$LINENO"; then :
13680
13681   lt_aix_libpath_sed='
13682       /Import File Strings/,/^$/ {
13683           /^0/ {
13684               s/^0  *\([^ ]*\) *$/\1/
13685               p
13686           }
13687       }'
13688   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13689   # Check for a 64-bit object if we didn't find anything.
13690   if test -z "$lt_cv_aix_libpath__CXX"; then
13691     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13692   fi
13693 fi
13694 rm -f core conftest.err conftest.$ac_objext \
13695     conftest$ac_exeext conftest.$ac_ext
13696   if test -z "$lt_cv_aix_libpath__CXX"; then
13697     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13698   fi
13699
13700 fi
13701
13702   aix_libpath=$lt_cv_aix_libpath__CXX
13703 fi
13704
13705           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13706
13707           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13708         else
13709           if test "$host_cpu" = ia64; then
13710             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13711             allow_undefined_flag_CXX="-z nodefs"
13712             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13713           else
13714             # Determine the default libpath from the value encoded in an
13715             # empty executable.
13716             if test "${lt_cv_aix_libpath+set}" = set; then
13717   aix_libpath=$lt_cv_aix_libpath
13718 else
13719   if test "${lt_cv_aix_libpath__CXX+set}" = set; then :
13720   $as_echo_n "(cached) " >&6
13721 else
13722   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h.  */
13724
13725 int
13726 main ()
13727 {
13728
13729   ;
13730   return 0;
13731 }
13732 _ACEOF
13733 if ac_fn_cxx_try_link "$LINENO"; then :
13734
13735   lt_aix_libpath_sed='
13736       /Import File Strings/,/^$/ {
13737           /^0/ {
13738               s/^0  *\([^ ]*\) *$/\1/
13739               p
13740           }
13741       }'
13742   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13743   # Check for a 64-bit object if we didn't find anything.
13744   if test -z "$lt_cv_aix_libpath__CXX"; then
13745     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13746   fi
13747 fi
13748 rm -f core conftest.err conftest.$ac_objext \
13749     conftest$ac_exeext conftest.$ac_ext
13750   if test -z "$lt_cv_aix_libpath__CXX"; then
13751     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13752   fi
13753
13754 fi
13755
13756   aix_libpath=$lt_cv_aix_libpath__CXX
13757 fi
13758
13759             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13760             # Warning - without using the other run time loading flags,
13761             # -berok will link without error, but may produce a broken library.
13762             no_undefined_flag_CXX=' ${wl}-bernotok'
13763             allow_undefined_flag_CXX=' ${wl}-berok'
13764             if test "$with_gnu_ld" = yes; then
13765               # We only use this code for GNU lds that support --whole-archive.
13766               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13767             else
13768               # Exported symbols can be pulled into shared objects from archives
13769               whole_archive_flag_spec_CXX='$convenience'
13770             fi
13771             archive_cmds_need_lc_CXX=yes
13772             # This is similar to how AIX traditionally builds its shared
13773             # libraries.
13774             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13775           fi
13776         fi
13777         ;;
13778
13779       beos*)
13780         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13781           allow_undefined_flag_CXX=unsupported
13782           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13783           # support --undefined.  This deserves some investigation.  FIXME
13784           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785         else
13786           ld_shlibs_CXX=no
13787         fi
13788         ;;
13789
13790       chorus*)
13791         case $cc_basename in
13792           *)
13793           # FIXME: insert proper C++ library support
13794           ld_shlibs_CXX=no
13795           ;;
13796         esac
13797         ;;
13798
13799       cygwin* | mingw* | pw32* | cegcc*)
13800         case $GXX,$cc_basename in
13801         ,cl* | no,cl*)
13802           # Native MSVC
13803           # hardcode_libdir_flag_spec is actually meaningless, as there is
13804           # no search path for DLLs.
13805           hardcode_libdir_flag_spec_CXX=' '
13806           allow_undefined_flag_CXX=unsupported
13807           always_export_symbols_CXX=yes
13808           file_list_spec_CXX='@'
13809           # Tell ltmain to make .lib files, not .a files.
13810           libext=lib
13811           # Tell ltmain to make .dll files, not .so files.
13812           shrext_cmds=".dll"
13813           # FIXME: Setting linknames here is a bad hack.
13814           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13815           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13816               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13817             else
13818               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13819             fi~
13820             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13821             linknames='
13822           # The linker will not automatically build a static lib if we build a DLL.
13823           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13824           enable_shared_with_static_runtimes_CXX=yes
13825           # Don't use ranlib
13826           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13827           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13828             lt_tool_outputfile="@TOOL_OUTPUT@"~
13829             case $lt_outputfile in
13830               *.exe|*.EXE) ;;
13831               *)
13832                 lt_outputfile="$lt_outputfile.exe"
13833                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13834                 ;;
13835             esac~
13836             func_to_tool_file "$lt_outputfile"~
13837             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13838               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13839               $RM "$lt_outputfile.manifest";
13840             fi'
13841           ;;
13842         *)
13843           # g++
13844           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13845           # as there is no search path for DLLs.
13846           hardcode_libdir_flag_spec_CXX='-L$libdir'
13847           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13848           allow_undefined_flag_CXX=unsupported
13849           always_export_symbols_CXX=no
13850           enable_shared_with_static_runtimes_CXX=yes
13851
13852           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13853             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13854             # If the export-symbols file already is a .def file (1st line
13855             # is EXPORTS), use it as is; otherwise, prepend...
13856             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13857               cp $export_symbols $output_objdir/$soname.def;
13858             else
13859               echo EXPORTS > $output_objdir/$soname.def;
13860               cat $export_symbols >> $output_objdir/$soname.def;
13861             fi~
13862             $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13863           else
13864             ld_shlibs_CXX=no
13865           fi
13866           ;;
13867         esac
13868         ;;
13869       darwin* | rhapsody*)
13870
13871
13872   archive_cmds_need_lc_CXX=no
13873   hardcode_direct_CXX=no
13874   hardcode_automatic_CXX=yes
13875   hardcode_shlibpath_var_CXX=unsupported
13876   if test "$lt_cv_ld_force_load" = "yes"; then
13877     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13878   else
13879     whole_archive_flag_spec_CXX=''
13880   fi
13881   link_all_deplibs_CXX=yes
13882   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13883   case $cc_basename in
13884      ifort*) _lt_dar_can_shared=yes ;;
13885      *) _lt_dar_can_shared=$GCC ;;
13886   esac
13887   if test "$_lt_dar_can_shared" = "yes"; then
13888     output_verbose_link_cmd=func_echo_all
13889     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13890     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13891     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13892     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13893        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13894       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13895       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13896     fi
13897
13898   else
13899   ld_shlibs_CXX=no
13900   fi
13901
13902         ;;
13903
13904       dgux*)
13905         case $cc_basename in
13906           ec++*)
13907             # FIXME: insert proper C++ library support
13908             ld_shlibs_CXX=no
13909             ;;
13910           ghcx*)
13911             # Green Hills C++ Compiler
13912             # FIXME: insert proper C++ library support
13913             ld_shlibs_CXX=no
13914             ;;
13915           *)
13916             # FIXME: insert proper C++ library support
13917             ld_shlibs_CXX=no
13918             ;;
13919         esac
13920         ;;
13921
13922       freebsd[12]*)
13923         # C++ shared libraries reported to be fairly broken before
13924         # switch to ELF
13925         ld_shlibs_CXX=no
13926         ;;
13927
13928       freebsd-elf*)
13929         archive_cmds_need_lc_CXX=no
13930         ;;
13931
13932       freebsd* | dragonfly*)
13933         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13934         # conventions
13935         ld_shlibs_CXX=yes
13936         ;;
13937
13938       gnu*)
13939         ;;
13940
13941       haiku*)
13942         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13943         link_all_deplibs_CXX=yes
13944         ;;
13945
13946       hpux9*)
13947         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13948         hardcode_libdir_separator_CXX=:
13949         export_dynamic_flag_spec_CXX='${wl}-E'
13950         hardcode_direct_CXX=yes
13951         hardcode_minus_L_CXX=yes # Not in the search PATH,
13952                                              # but as the default
13953                                              # location of the library.
13954
13955         case $cc_basename in
13956           CC*)
13957             # FIXME: insert proper C++ library support
13958             ld_shlibs_CXX=no
13959             ;;
13960           aCC*)
13961             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13962             # Commands to make compiler produce verbose output that lists
13963             # what "hidden" libraries, object files and flags are used when
13964             # linking a shared library.
13965             #
13966             # There doesn't appear to be a way to prevent this compiler from
13967             # explicitly linking system object files so we need to strip them
13968             # from the output so that they don't get included in the library
13969             # dependencies.
13970             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13971             ;;
13972           *)
13973             if test "$GXX" = yes; then
13974               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13975             else
13976               # FIXME: insert proper C++ library support
13977               ld_shlibs_CXX=no
13978             fi
13979             ;;
13980         esac
13981         ;;
13982
13983       hpux10*|hpux11*)
13984         if test $with_gnu_ld = no; then
13985           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13986           hardcode_libdir_separator_CXX=:
13987
13988           case $host_cpu in
13989             hppa*64*|ia64*)
13990               ;;
13991             *)
13992               export_dynamic_flag_spec_CXX='${wl}-E'
13993               ;;
13994           esac
13995         fi
13996         case $host_cpu in
13997           hppa*64*|ia64*)
13998             hardcode_direct_CXX=no
13999             hardcode_shlibpath_var_CXX=no
14000             ;;
14001           *)
14002             hardcode_direct_CXX=yes
14003             hardcode_direct_absolute_CXX=yes
14004             hardcode_minus_L_CXX=yes # Not in the search PATH,
14005                                                  # but as the default
14006                                                  # location of the library.
14007             ;;
14008         esac
14009
14010         case $cc_basename in
14011           CC*)
14012             # FIXME: insert proper C++ library support
14013             ld_shlibs_CXX=no
14014             ;;
14015           aCC*)
14016             case $host_cpu in
14017               hppa*64*)
14018                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14019                 ;;
14020               ia64*)
14021                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14022                 ;;
14023               *)
14024                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14025                 ;;
14026             esac
14027             # Commands to make compiler produce verbose output that lists
14028             # what "hidden" libraries, object files and flags are used when
14029             # linking a shared library.
14030             #
14031             # There doesn't appear to be a way to prevent this compiler from
14032             # explicitly linking system object files so we need to strip them
14033             # from the output so that they don't get included in the library
14034             # dependencies.
14035             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14036             ;;
14037           *)
14038             if test "$GXX" = yes; then
14039               if test $with_gnu_ld = no; then
14040                 case $host_cpu in
14041                   hppa*64*)
14042                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043                     ;;
14044                   ia64*)
14045                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14046                     ;;
14047                   *)
14048                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14049                     ;;
14050                 esac
14051               fi
14052             else
14053               # FIXME: insert proper C++ library support
14054               ld_shlibs_CXX=no
14055             fi
14056             ;;
14057         esac
14058         ;;
14059
14060       interix[3-9]*)
14061         hardcode_direct_CXX=no
14062         hardcode_shlibpath_var_CXX=no
14063         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14064         export_dynamic_flag_spec_CXX='${wl}-E'
14065         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14066         # Instead, shared libraries are loaded at an image base (0x10000000 by
14067         # default) and relocated if they conflict, which is a slow very memory
14068         # consuming and fragmenting process.  To avoid this, we pick a random,
14069         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14070         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14071         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14072         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14073         ;;
14074       irix5* | irix6*)
14075         case $cc_basename in
14076           CC*)
14077             # SGI C++
14078             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14079
14080             # Archives containing C++ object files must be created using
14081             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14082             # necessary to make sure instantiated templates are included
14083             # in the archive.
14084             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14085             ;;
14086           *)
14087             if test "$GXX" = yes; then
14088               if test "$with_gnu_ld" = no; then
14089                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14090               else
14091                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14092               fi
14093             fi
14094             link_all_deplibs_CXX=yes
14095             ;;
14096         esac
14097         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14098         hardcode_libdir_separator_CXX=:
14099         inherit_rpath_CXX=yes
14100         ;;
14101
14102       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14103         case $cc_basename in
14104           KCC*)
14105             # Kuck and Associates, Inc. (KAI) C++ Compiler
14106
14107             # KCC will only create a shared library if the output file
14108             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14109             # to its proper name (with version) after linking.
14110             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14111             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14112             # Commands to make compiler produce verbose output that lists
14113             # what "hidden" libraries, object files and flags are used when
14114             # linking a shared library.
14115             #
14116             # There doesn't appear to be a way to prevent this compiler from
14117             # explicitly linking system object files so we need to strip them
14118             # from the output so that they don't get included in the library
14119             # dependencies.
14120             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14121
14122             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14123             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14124
14125             # Archives containing C++ object files must be created using
14126             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14127             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14128             ;;
14129           icpc* | ecpc* )
14130             # Intel C++
14131             with_gnu_ld=yes
14132             # version 8.0 and above of icpc choke on multiply defined symbols
14133             # if we add $predep_objects and $postdep_objects, however 7.1 and
14134             # earlier do not add the objects themselves.
14135             case `$CC -V 2>&1` in
14136               *"Version 7."*)
14137                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14138                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14139                 ;;
14140               *)  # Version 8.0 or newer
14141                 tmp_idyn=
14142                 case $host_cpu in
14143                   ia64*) tmp_idyn=' -i_dynamic';;
14144                 esac
14145                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14147                 ;;
14148             esac
14149             archive_cmds_need_lc_CXX=no
14150             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14151             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14152             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14153             ;;
14154           pgCC* | pgcpp*)
14155             # Portland Group C++ compiler
14156             case `$CC -V` in
14157             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14158               prelink_cmds_CXX='tpldir=Template.dir~
14159                 rm -rf $tpldir~
14160                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14161                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14162               old_archive_cmds_CXX='tpldir=Template.dir~
14163                 rm -rf $tpldir~
14164                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14165                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14166                 $RANLIB $oldlib'
14167               archive_cmds_CXX='tpldir=Template.dir~
14168                 rm -rf $tpldir~
14169                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14170                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14171               archive_expsym_cmds_CXX='tpldir=Template.dir~
14172                 rm -rf $tpldir~
14173                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14174                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14175               ;;
14176             *) # Version 6 and above use weak symbols
14177               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14178               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14179               ;;
14180             esac
14181
14182             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14183             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14184             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14185             ;;
14186           cxx*)
14187             # Compaq C++
14188             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14190
14191             runpath_var=LD_RUN_PATH
14192             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14193             hardcode_libdir_separator_CXX=:
14194
14195             # Commands to make compiler produce verbose output that lists
14196             # what "hidden" libraries, object files and flags are used when
14197             # linking a shared library.
14198             #
14199             # There doesn't appear to be a way to prevent this compiler from
14200             # explicitly linking system object files so we need to strip them
14201             # from the output so that they don't get included in the library
14202             # dependencies.
14203             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14204             ;;
14205           xl* | mpixl* | bgxl*)
14206             # IBM XL 8.0 on PPC, with GNU ld
14207             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14208             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14209             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14210             if test "x$supports_anon_versioning" = xyes; then
14211               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14212                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14213                 echo "local: *; };" >> $output_objdir/$libname.ver~
14214                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14215             fi
14216             ;;
14217           *)
14218             case `$CC -V 2>&1 | sed 5q` in
14219             *Sun\ C*)
14220               # Sun C++ 5.9
14221               no_undefined_flag_CXX=' -zdefs'
14222               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14223               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14224               hardcode_libdir_flag_spec_CXX='-R$libdir'
14225               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14226               compiler_needs_object_CXX=yes
14227
14228               # Not sure whether something based on
14229               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14230               # would be better.
14231               output_verbose_link_cmd='func_echo_all'
14232
14233               # Archives containing C++ object files must be created using
14234               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14235               # necessary to make sure instantiated templates are included
14236               # in the archive.
14237               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14238               ;;
14239             esac
14240             ;;
14241         esac
14242         ;;
14243
14244       lynxos*)
14245         # FIXME: insert proper C++ library support
14246         ld_shlibs_CXX=no
14247         ;;
14248
14249       m88k*)
14250         # FIXME: insert proper C++ library support
14251         ld_shlibs_CXX=no
14252         ;;
14253
14254       mvs*)
14255         case $cc_basename in
14256           cxx*)
14257             # FIXME: insert proper C++ library support
14258             ld_shlibs_CXX=no
14259             ;;
14260           *)
14261             # FIXME: insert proper C++ library support
14262             ld_shlibs_CXX=no
14263             ;;
14264         esac
14265         ;;
14266
14267       netbsd*)
14268         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14269           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14270           wlarc=
14271           hardcode_libdir_flag_spec_CXX='-R$libdir'
14272           hardcode_direct_CXX=yes
14273           hardcode_shlibpath_var_CXX=no
14274         fi
14275         # Workaround some broken pre-1.5 toolchains
14276         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14277         ;;
14278
14279       *nto* | *qnx*)
14280         ld_shlibs_CXX=yes
14281         ;;
14282
14283       openbsd2*)
14284         # C++ shared libraries are fairly broken
14285         ld_shlibs_CXX=no
14286         ;;
14287
14288       openbsd*)
14289         if test -f /usr/libexec/ld.so; then
14290           hardcode_direct_CXX=yes
14291           hardcode_shlibpath_var_CXX=no
14292           hardcode_direct_absolute_CXX=yes
14293           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14294           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14295           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14296             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14297             export_dynamic_flag_spec_CXX='${wl}-E'
14298             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14299           fi
14300           output_verbose_link_cmd=func_echo_all
14301         else
14302           ld_shlibs_CXX=no
14303         fi
14304         ;;
14305
14306       osf3* | osf4* | osf5*)
14307         case $cc_basename in
14308           KCC*)
14309             # Kuck and Associates, Inc. (KAI) C++ Compiler
14310
14311             # KCC will only create a shared library if the output file
14312             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14313             # to its proper name (with version) after linking.
14314             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14315
14316             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14317             hardcode_libdir_separator_CXX=:
14318
14319             # Archives containing C++ object files must be created using
14320             # the KAI C++ compiler.
14321             case $host in
14322               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14323               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14324             esac
14325             ;;
14326           RCC*)
14327             # Rational C++ 2.4.1
14328             # FIXME: insert proper C++ library support
14329             ld_shlibs_CXX=no
14330             ;;
14331           cxx*)
14332             case $host in
14333               osf3*)
14334                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14335                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14336                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14337                 ;;
14338               *)
14339                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14340                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14341                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14342                   echo "-hidden">> $lib.exp~
14343                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14344                   $RM $lib.exp'
14345                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14346                 ;;
14347             esac
14348
14349             hardcode_libdir_separator_CXX=:
14350
14351             # Commands to make compiler produce verbose output that lists
14352             # what "hidden" libraries, object files and flags are used when
14353             # linking a shared library.
14354             #
14355             # There doesn't appear to be a way to prevent this compiler from
14356             # explicitly linking system object files so we need to strip them
14357             # from the output so that they don't get included in the library
14358             # dependencies.
14359             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14360             ;;
14361           *)
14362             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14363               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14364               case $host in
14365                 osf3*)
14366                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14367                   ;;
14368                 *)
14369                   archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14370                   ;;
14371               esac
14372
14373               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14374               hardcode_libdir_separator_CXX=:
14375
14376               # Commands to make compiler produce verbose output that lists
14377               # what "hidden" libraries, object files and flags are used when
14378               # linking a shared library.
14379               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14380
14381             else
14382               # FIXME: insert proper C++ library support
14383               ld_shlibs_CXX=no
14384             fi
14385             ;;
14386         esac
14387         ;;
14388
14389       psos*)
14390         # FIXME: insert proper C++ library support
14391         ld_shlibs_CXX=no
14392         ;;
14393
14394       sunos4*)
14395         case $cc_basename in
14396           CC*)
14397             # Sun C++ 4.x
14398             # FIXME: insert proper C++ library support
14399             ld_shlibs_CXX=no
14400             ;;
14401           lcc*)
14402             # Lucid
14403             # FIXME: insert proper C++ library support
14404             ld_shlibs_CXX=no
14405             ;;
14406           *)
14407             # FIXME: insert proper C++ library support
14408             ld_shlibs_CXX=no
14409             ;;
14410         esac
14411         ;;
14412
14413       solaris*)
14414         case $cc_basename in
14415           CC* | sunCC*)
14416             # Sun C++ 4.2, 5.x and Centerline C++
14417             archive_cmds_need_lc_CXX=yes
14418             no_undefined_flag_CXX=' -zdefs'
14419             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14420             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14421               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14422
14423             hardcode_libdir_flag_spec_CXX='-R$libdir'
14424             hardcode_shlibpath_var_CXX=no
14425             case $host_os in
14426               solaris2.[0-5] | solaris2.[0-5].*) ;;
14427               *)
14428                 # The compiler driver will combine and reorder linker options,
14429                 # but understands `-z linker_flag'.
14430                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14431                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14432                 ;;
14433             esac
14434             link_all_deplibs_CXX=yes
14435
14436             output_verbose_link_cmd='func_echo_all'
14437
14438             # Archives containing C++ object files must be created using
14439             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14440             # necessary to make sure instantiated templates are included
14441             # in the archive.
14442             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14443             ;;
14444           gcx*)
14445             # Green Hills C++ Compiler
14446             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14447
14448             # The C++ compiler must be used to create the archive.
14449             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14450             ;;
14451           *)
14452             # GNU C++ compiler with Solaris linker
14453             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14454               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14455               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14456                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14457                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14458                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14459
14460                 # Commands to make compiler produce verbose output that lists
14461                 # what "hidden" libraries, object files and flags are used when
14462                 # linking a shared library.
14463                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14464               else
14465                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14466                 # platform.
14467                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14468                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14469                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14470
14471                 # Commands to make compiler produce verbose output that lists
14472                 # what "hidden" libraries, object files and flags are used when
14473                 # linking a shared library.
14474                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14475               fi
14476
14477               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14478               case $host_os in
14479                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14480                 *)
14481                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14482                   ;;
14483               esac
14484             fi
14485             ;;
14486         esac
14487         ;;
14488
14489     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14490       no_undefined_flag_CXX='${wl}-z,text'
14491       archive_cmds_need_lc_CXX=no
14492       hardcode_shlibpath_var_CXX=no
14493       runpath_var='LD_RUN_PATH'
14494
14495       case $cc_basename in
14496         CC*)
14497           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14498           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14499           ;;
14500         *)
14501           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14502           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503           ;;
14504       esac
14505       ;;
14506
14507       sysv5* | sco3.2v5* | sco5v6*)
14508         # Note: We can NOT use -z defs as we might desire, because we do not
14509         # link with -lc, and that would cause any symbols used from libc to
14510         # always be unresolved, which means just about no library would
14511         # ever link correctly.  If we're not using GNU ld we use -z text
14512         # though, which does catch some bad symbols but isn't as heavy-handed
14513         # as -z defs.
14514         no_undefined_flag_CXX='${wl}-z,text'
14515         allow_undefined_flag_CXX='${wl}-z,nodefs'
14516         archive_cmds_need_lc_CXX=no
14517         hardcode_shlibpath_var_CXX=no
14518         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14519         hardcode_libdir_separator_CXX=':'
14520         link_all_deplibs_CXX=yes
14521         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14522         runpath_var='LD_RUN_PATH'
14523
14524         case $cc_basename in
14525           CC*)
14526             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14528             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14529               '"$old_archive_cmds_CXX"
14530             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14531               '"$reload_cmds_CXX"
14532             ;;
14533           *)
14534             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14535             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14536             ;;
14537         esac
14538       ;;
14539
14540       tandem*)
14541         case $cc_basename in
14542           NCC*)
14543             # NonStop-UX NCC 3.20
14544             # FIXME: insert proper C++ library support
14545             ld_shlibs_CXX=no
14546             ;;
14547           *)
14548             # FIXME: insert proper C++ library support
14549             ld_shlibs_CXX=no
14550             ;;
14551         esac
14552         ;;
14553
14554       vxworks*)
14555         # FIXME: insert proper C++ library support
14556         ld_shlibs_CXX=no
14557         ;;
14558
14559       *)
14560         # FIXME: insert proper C++ library support
14561         ld_shlibs_CXX=no
14562         ;;
14563     esac
14564
14565     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14566 $as_echo "$ld_shlibs_CXX" >&6; }
14567     test "$ld_shlibs_CXX" = no && can_build_shared=no
14568
14569     GCC_CXX="$GXX"
14570     LD_CXX="$LD"
14571
14572     ## CAVEAT EMPTOR:
14573     ## There is no encapsulation within the following macros, do not change
14574     ## the running order or otherwise move them around unless you know exactly
14575     ## what you are doing...
14576     # Dependencies to place before and after the object being linked:
14577 predep_objects_CXX=
14578 postdep_objects_CXX=
14579 predeps_CXX=
14580 postdeps_CXX=
14581 compiler_lib_search_path_CXX=
14582
14583 cat > conftest.$ac_ext <<_LT_EOF
14584 class Foo
14585 {
14586 public:
14587   Foo (void) { a = 0; }
14588 private:
14589   int a;
14590 };
14591 _LT_EOF
14592
14593
14594 _lt_libdeps_save_CFLAGS=$CFLAGS
14595 case "$CC $CFLAGS " in #(
14596 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14597 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14598 esac
14599
14600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14601   (eval $ac_compile) 2>&5
14602   ac_status=$?
14603   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14604   test $ac_status = 0; }; then
14605   # Parse the compiler output and extract the necessary
14606   # objects, libraries and library flags.
14607
14608   # Sentinel used to keep track of whether or not we are before
14609   # the conftest object file.
14610   pre_test_object_deps_done=no
14611
14612   for p in `eval "$output_verbose_link_cmd"`; do
14613     case ${prev}${p} in
14614
14615     -L* | -R* | -l*)
14616        # Some compilers place space between "-{L,R}" and the path.
14617        # Remove the space.
14618        if test $p = "-L" ||
14619           test $p = "-R"; then
14620          prev=$p
14621          continue
14622        fi
14623
14624        # Expand the sysroot to ease extracting the directories later.
14625        if test -z "$prev"; then
14626          case $p in
14627          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14628          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14629          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14630          esac
14631        fi
14632        case $p in
14633        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14634        esac
14635        if test "$pre_test_object_deps_done" = no; then
14636          case ${prev} in
14637          -L | -R)
14638            # Internal compiler library paths should come after those
14639            # provided the user.  The postdeps already come after the
14640            # user supplied libs so there is no need to process them.
14641            if test -z "$compiler_lib_search_path_CXX"; then
14642              compiler_lib_search_path_CXX="${prev}${p}"
14643            else
14644              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14645            fi
14646            ;;
14647          # The "-l" case would never come before the object being
14648          # linked, so don't bother handling this case.
14649          esac
14650        else
14651          if test -z "$postdeps_CXX"; then
14652            postdeps_CXX="${prev}${p}"
14653          else
14654            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14655          fi
14656        fi
14657        prev=
14658        ;;
14659
14660     *.lto.$objext) ;; # Ignore GCC LTO objects
14661     *.$objext)
14662        # This assumes that the test object file only shows up
14663        # once in the compiler output.
14664        if test "$p" = "conftest.$objext"; then
14665          pre_test_object_deps_done=yes
14666          continue
14667        fi
14668
14669        if test "$pre_test_object_deps_done" = no; then
14670          if test -z "$predep_objects_CXX"; then
14671            predep_objects_CXX="$p"
14672          else
14673            predep_objects_CXX="$predep_objects_CXX $p"
14674          fi
14675        else
14676          if test -z "$postdep_objects_CXX"; then
14677            postdep_objects_CXX="$p"
14678          else
14679            postdep_objects_CXX="$postdep_objects_CXX $p"
14680          fi
14681        fi
14682        ;;
14683
14684     *) ;; # Ignore the rest.
14685
14686     esac
14687   done
14688
14689   # Clean up.
14690   rm -f a.out a.exe
14691 else
14692   echo "libtool.m4: error: problem compiling CXX test program"
14693 fi
14694
14695 $RM -f confest.$objext
14696 CFLAGS=$_lt_libdeps_save_CFLAGS
14697
14698 # PORTME: override above test on systems where it is broken
14699 case $host_os in
14700 interix[3-9]*)
14701   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14702   # hack all around it, let's just trust "g++" to DTRT.
14703   predep_objects_CXX=
14704   postdep_objects_CXX=
14705   postdeps_CXX=
14706   ;;
14707
14708 linux*)
14709   case `$CC -V 2>&1 | sed 5q` in
14710   *Sun\ C*)
14711     # Sun C++ 5.9
14712
14713     # The more standards-conforming stlport4 library is
14714     # incompatible with the Cstd library. Avoid specifying
14715     # it if it's in CXXFLAGS. Ignore libCrun as
14716     # -library=stlport4 depends on it.
14717     case " $CXX $CXXFLAGS " in
14718     *" -library=stlport4 "*)
14719       solaris_use_stlport4=yes
14720       ;;
14721     esac
14722
14723     if test "$solaris_use_stlport4" != yes; then
14724       postdeps_CXX='-library=Cstd -library=Crun'
14725     fi
14726     ;;
14727   esac
14728   ;;
14729
14730 solaris*)
14731   case $cc_basename in
14732   CC* | sunCC*)
14733     # The more standards-conforming stlport4 library is
14734     # incompatible with the Cstd library. Avoid specifying
14735     # it if it's in CXXFLAGS. Ignore libCrun as
14736     # -library=stlport4 depends on it.
14737     case " $CXX $CXXFLAGS " in
14738     *" -library=stlport4 "*)
14739       solaris_use_stlport4=yes
14740       ;;
14741     esac
14742
14743     # Adding this requires a known-good setup of shared libraries for
14744     # Sun compiler versions before 5.6, else PIC objects from an old
14745     # archive will be linked into the output, leading to subtle bugs.
14746     if test "$solaris_use_stlport4" != yes; then
14747       postdeps_CXX='-library=Cstd -library=Crun'
14748     fi
14749     ;;
14750   esac
14751   ;;
14752 esac
14753
14754
14755 case " $postdeps_CXX " in
14756 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14757 esac
14758  compiler_lib_search_dirs_CXX=
14759 if test -n "${compiler_lib_search_path_CXX}"; then
14760  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14761 fi
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793     lt_prog_compiler_wl_CXX=
14794 lt_prog_compiler_pic_CXX=
14795 lt_prog_compiler_static_CXX=
14796
14797
14798   # C++ specific cases for pic, static, wl, etc.
14799   if test "$GXX" = yes; then
14800     lt_prog_compiler_wl_CXX='-Wl,'
14801     lt_prog_compiler_static_CXX='-static'
14802
14803     case $host_os in
14804     aix*)
14805       # All AIX code is PIC.
14806       if test "$host_cpu" = ia64; then
14807         # AIX 5 now supports IA64 processor
14808         lt_prog_compiler_static_CXX='-Bstatic'
14809       fi
14810       ;;
14811
14812     amigaos*)
14813       case $host_cpu in
14814       powerpc)
14815             # see comment about AmigaOS4 .so support
14816             lt_prog_compiler_pic_CXX='-fPIC'
14817         ;;
14818       m68k)
14819             # FIXME: we need at least 68020 code to build shared libraries, but
14820             # adding the `-m68020' flag to GCC prevents building anything better,
14821             # like `-m68040'.
14822             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14823         ;;
14824       esac
14825       ;;
14826
14827     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14828       # PIC is the default for these OSes.
14829       ;;
14830     mingw* | cygwin* | os2* | pw32* | cegcc*)
14831       # This hack is so that the source file can tell whether it is being
14832       # built for inclusion in a dll (and should export symbols for example).
14833       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14834       # (--disable-auto-import) libraries
14835       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14836       ;;
14837     darwin* | rhapsody*)
14838       # PIC is the default on this platform
14839       # Common symbols not allowed in MH_DYLIB files
14840       lt_prog_compiler_pic_CXX='-fno-common'
14841       ;;
14842     *djgpp*)
14843       # DJGPP does not support shared libraries at all
14844       lt_prog_compiler_pic_CXX=
14845       ;;
14846     haiku*)
14847       # PIC is the default for Haiku.
14848       # The "-static" flag exists, but is broken.
14849       lt_prog_compiler_static_CXX=
14850       ;;
14851     interix[3-9]*)
14852       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14853       # Instead, we relocate shared libraries at runtime.
14854       ;;
14855     sysv4*MP*)
14856       if test -d /usr/nec; then
14857         lt_prog_compiler_pic_CXX=-Kconform_pic
14858       fi
14859       ;;
14860     hpux*)
14861       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14862       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14863       # sets the default TLS model and affects inlining.
14864       case $host_cpu in
14865       hppa*64*)
14866         ;;
14867       *)
14868         lt_prog_compiler_pic_CXX='-fPIC'
14869         ;;
14870       esac
14871       ;;
14872     *qnx* | *nto*)
14873       # QNX uses GNU C++, but need to define -shared option too, otherwise
14874       # it will coredump.
14875       lt_prog_compiler_pic_CXX='-fPIC -shared'
14876       ;;
14877     *)
14878       lt_prog_compiler_pic_CXX='-fPIC'
14879       ;;
14880     esac
14881   else
14882     case $host_os in
14883       aix[4-9]*)
14884         # All AIX code is PIC.
14885         if test "$host_cpu" = ia64; then
14886           # AIX 5 now supports IA64 processor
14887           lt_prog_compiler_static_CXX='-Bstatic'
14888         else
14889           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14890         fi
14891         ;;
14892       chorus*)
14893         case $cc_basename in
14894         cxch68*)
14895           # Green Hills C++ Compiler
14896           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14897           ;;
14898         esac
14899         ;;
14900       mingw* | cygwin* | os2* | pw32* | cegcc*)
14901         # This hack is so that the source file can tell whether it is being
14902         # built for inclusion in a dll (and should export symbols for example).
14903         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14904         ;;
14905       dgux*)
14906         case $cc_basename in
14907           ec++*)
14908             lt_prog_compiler_pic_CXX='-KPIC'
14909             ;;
14910           ghcx*)
14911             # Green Hills C++ Compiler
14912             lt_prog_compiler_pic_CXX='-pic'
14913             ;;
14914           *)
14915             ;;
14916         esac
14917         ;;
14918       freebsd* | dragonfly*)
14919         # FreeBSD uses GNU C++
14920         ;;
14921       hpux9* | hpux10* | hpux11*)
14922         case $cc_basename in
14923           CC*)
14924             lt_prog_compiler_wl_CXX='-Wl,'
14925             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14926             if test "$host_cpu" != ia64; then
14927               lt_prog_compiler_pic_CXX='+Z'
14928             fi
14929             ;;
14930           aCC*)
14931             lt_prog_compiler_wl_CXX='-Wl,'
14932             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14933             case $host_cpu in
14934             hppa*64*|ia64*)
14935               # +Z the default
14936               ;;
14937             *)
14938               lt_prog_compiler_pic_CXX='+Z'
14939               ;;
14940             esac
14941             ;;
14942           *)
14943             ;;
14944         esac
14945         ;;
14946       interix*)
14947         # This is c89, which is MS Visual C++ (no shared libs)
14948         # Anyone wants to do a port?
14949         ;;
14950       irix5* | irix6* | nonstopux*)
14951         case $cc_basename in
14952           CC*)
14953             lt_prog_compiler_wl_CXX='-Wl,'
14954             lt_prog_compiler_static_CXX='-non_shared'
14955             # CC pic flag -KPIC is the default.
14956             ;;
14957           *)
14958             ;;
14959         esac
14960         ;;
14961       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14962         case $cc_basename in
14963           KCC*)
14964             # KAI C++ Compiler
14965             lt_prog_compiler_wl_CXX='--backend -Wl,'
14966             lt_prog_compiler_pic_CXX='-fPIC'
14967             ;;
14968           ecpc* )
14969             # old Intel C++ for x86_64 which still supported -KPIC.
14970             lt_prog_compiler_wl_CXX='-Wl,'
14971             lt_prog_compiler_pic_CXX='-KPIC'
14972             lt_prog_compiler_static_CXX='-static'
14973             ;;
14974           icpc* )
14975             # Intel C++, used to be incompatible with GCC.
14976             # ICC 10 doesn't accept -KPIC any more.
14977             lt_prog_compiler_wl_CXX='-Wl,'
14978             lt_prog_compiler_pic_CXX='-fPIC'
14979             lt_prog_compiler_static_CXX='-static'
14980             ;;
14981           pgCC* | pgcpp*)
14982             # Portland Group C++ compiler
14983             lt_prog_compiler_wl_CXX='-Wl,'
14984             lt_prog_compiler_pic_CXX='-fpic'
14985             lt_prog_compiler_static_CXX='-Bstatic'
14986             ;;
14987           cxx*)
14988             # Compaq C++
14989             # Make sure the PIC flag is empty.  It appears that all Alpha
14990             # Linux and Compaq Tru64 Unix objects are PIC.
14991             lt_prog_compiler_pic_CXX=
14992             lt_prog_compiler_static_CXX='-non_shared'
14993             ;;
14994           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14995             # IBM XL 8.0, 9.0 on PPC and BlueGene
14996             lt_prog_compiler_wl_CXX='-Wl,'
14997             lt_prog_compiler_pic_CXX='-qpic'
14998             lt_prog_compiler_static_CXX='-qstaticlink'
14999             ;;
15000           *)
15001             case `$CC -V 2>&1 | sed 5q` in
15002             *Sun\ C*)
15003               # Sun C++ 5.9
15004               lt_prog_compiler_pic_CXX='-KPIC'
15005               lt_prog_compiler_static_CXX='-Bstatic'
15006               lt_prog_compiler_wl_CXX='-Qoption ld '
15007               ;;
15008             esac
15009             ;;
15010         esac
15011         ;;
15012       lynxos*)
15013         ;;
15014       m88k*)
15015         ;;
15016       mvs*)
15017         case $cc_basename in
15018           cxx*)
15019             lt_prog_compiler_pic_CXX='-W c,exportall'
15020             ;;
15021           *)
15022             ;;
15023         esac
15024         ;;
15025       netbsd*)
15026         ;;
15027       *qnx* | *nto*)
15028         # QNX uses GNU C++, but need to define -shared option too, otherwise
15029         # it will coredump.
15030         lt_prog_compiler_pic_CXX='-fPIC -shared'
15031         ;;
15032       osf3* | osf4* | osf5*)
15033         case $cc_basename in
15034           KCC*)
15035             lt_prog_compiler_wl_CXX='--backend -Wl,'
15036             ;;
15037           RCC*)
15038             # Rational C++ 2.4.1
15039             lt_prog_compiler_pic_CXX='-pic'
15040             ;;
15041           cxx*)
15042             # Digital/Compaq C++
15043             lt_prog_compiler_wl_CXX='-Wl,'
15044             # Make sure the PIC flag is empty.  It appears that all Alpha
15045             # Linux and Compaq Tru64 Unix objects are PIC.
15046             lt_prog_compiler_pic_CXX=
15047             lt_prog_compiler_static_CXX='-non_shared'
15048             ;;
15049           *)
15050             ;;
15051         esac
15052         ;;
15053       psos*)
15054         ;;
15055       solaris*)
15056         case $cc_basename in
15057           CC* | sunCC*)
15058             # Sun C++ 4.2, 5.x and Centerline C++
15059             lt_prog_compiler_pic_CXX='-KPIC'
15060             lt_prog_compiler_static_CXX='-Bstatic'
15061             lt_prog_compiler_wl_CXX='-Qoption ld '
15062             ;;
15063           gcx*)
15064             # Green Hills C++ Compiler
15065             lt_prog_compiler_pic_CXX='-PIC'
15066             ;;
15067           *)
15068             ;;
15069         esac
15070         ;;
15071       sunos4*)
15072         case $cc_basename in
15073           CC*)
15074             # Sun C++ 4.x
15075             lt_prog_compiler_pic_CXX='-pic'
15076             lt_prog_compiler_static_CXX='-Bstatic'
15077             ;;
15078           lcc*)
15079             # Lucid
15080             lt_prog_compiler_pic_CXX='-pic'
15081             ;;
15082           *)
15083             ;;
15084         esac
15085         ;;
15086       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15087         case $cc_basename in
15088           CC*)
15089             lt_prog_compiler_wl_CXX='-Wl,'
15090             lt_prog_compiler_pic_CXX='-KPIC'
15091             lt_prog_compiler_static_CXX='-Bstatic'
15092             ;;
15093         esac
15094         ;;
15095       tandem*)
15096         case $cc_basename in
15097           NCC*)
15098             # NonStop-UX NCC 3.20
15099             lt_prog_compiler_pic_CXX='-KPIC'
15100             ;;
15101           *)
15102             ;;
15103         esac
15104         ;;
15105       vxworks*)
15106         ;;
15107       *)
15108         lt_prog_compiler_can_build_shared_CXX=no
15109         ;;
15110     esac
15111   fi
15112
15113 case $host_os in
15114   # For platforms which do not support PIC, -DPIC is meaningless:
15115   *djgpp*)
15116     lt_prog_compiler_pic_CXX=
15117     ;;
15118   *)
15119     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15120     ;;
15121 esac
15122
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15124 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15125 if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then :
15126   $as_echo_n "(cached) " >&6
15127 else
15128   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15129 fi
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15131 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15132 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15133
15134 #
15135 # Check to make sure the PIC flag actually works.
15136 #
15137 if test -n "$lt_prog_compiler_pic_CXX"; then
15138   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15139 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15140 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15141   $as_echo_n "(cached) " >&6
15142 else
15143   lt_cv_prog_compiler_pic_works_CXX=no
15144    ac_outfile=conftest.$ac_objext
15145    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15146    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15147    # Insert the option either (1) after the last *FLAGS variable, or
15148    # (2) before a word containing "conftest.", or (3) at the end.
15149    # Note that $ac_compile itself does not contain backslashes and begins
15150    # with a dollar sign (not a hyphen), so the echo should work correctly.
15151    # The option is referenced via a variable to avoid confusing sed.
15152    lt_compile=`echo "$ac_compile" | $SED \
15153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15155    -e 's:$: $lt_compiler_flag:'`
15156    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15157    (eval "$lt_compile" 2>conftest.err)
15158    ac_status=$?
15159    cat conftest.err >&5
15160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161    if (exit $ac_status) && test -s "$ac_outfile"; then
15162      # The compiler can only warn and ignore the option if not recognized
15163      # So say no if there are warnings other than the usual output.
15164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15165      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15166      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15167        lt_cv_prog_compiler_pic_works_CXX=yes
15168      fi
15169    fi
15170    $RM conftest*
15171
15172 fi
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15174 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15175
15176 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15177     case $lt_prog_compiler_pic_CXX in
15178      "" | " "*) ;;
15179      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15180      esac
15181 else
15182     lt_prog_compiler_pic_CXX=
15183      lt_prog_compiler_can_build_shared_CXX=no
15184 fi
15185
15186 fi
15187
15188
15189
15190
15191
15192 #
15193 # Check to make sure the static flag actually works.
15194 #
15195 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15197 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15198 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15199   $as_echo_n "(cached) " >&6
15200 else
15201   lt_cv_prog_compiler_static_works_CXX=no
15202    save_LDFLAGS="$LDFLAGS"
15203    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15204    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15205    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15206      # The linker can only warn and ignore the option if not recognized
15207      # So say no if there are warnings
15208      if test -s conftest.err; then
15209        # Append any errors to the config.log.
15210        cat conftest.err 1>&5
15211        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15212        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15213        if diff conftest.exp conftest.er2 >/dev/null; then
15214          lt_cv_prog_compiler_static_works_CXX=yes
15215        fi
15216      else
15217        lt_cv_prog_compiler_static_works_CXX=yes
15218      fi
15219    fi
15220    $RM -r conftest*
15221    LDFLAGS="$save_LDFLAGS"
15222
15223 fi
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15225 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15226
15227 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15228     :
15229 else
15230     lt_prog_compiler_static_CXX=
15231 fi
15232
15233
15234
15235
15236     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15237 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15238 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15239   $as_echo_n "(cached) " >&6
15240 else
15241   lt_cv_prog_compiler_c_o_CXX=no
15242    $RM -r conftest 2>/dev/null
15243    mkdir conftest
15244    cd conftest
15245    mkdir out
15246    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15247
15248    lt_compiler_flag="-o out/conftest2.$ac_objext"
15249    # Insert the option either (1) after the last *FLAGS variable, or
15250    # (2) before a word containing "conftest.", or (3) at the end.
15251    # Note that $ac_compile itself does not contain backslashes and begins
15252    # with a dollar sign (not a hyphen), so the echo should work correctly.
15253    lt_compile=`echo "$ac_compile" | $SED \
15254    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15255    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15256    -e 's:$: $lt_compiler_flag:'`
15257    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15258    (eval "$lt_compile" 2>out/conftest.err)
15259    ac_status=$?
15260    cat out/conftest.err >&5
15261    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15263    then
15264      # The compiler can only warn and ignore the option if not recognized
15265      # So say no if there are warnings
15266      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15267      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15268      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15269        lt_cv_prog_compiler_c_o_CXX=yes
15270      fi
15271    fi
15272    chmod u+w . 2>&5
15273    $RM conftest*
15274    # SGI C++ compiler will create directory out/ii_files/ for
15275    # template instantiation
15276    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15277    $RM out/* && rmdir out
15278    cd ..
15279    $RM -r conftest
15280    $RM conftest*
15281
15282 fi
15283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15284 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15285
15286
15287
15288     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15290 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15291   $as_echo_n "(cached) " >&6
15292 else
15293   lt_cv_prog_compiler_c_o_CXX=no
15294    $RM -r conftest 2>/dev/null
15295    mkdir conftest
15296    cd conftest
15297    mkdir out
15298    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15299
15300    lt_compiler_flag="-o out/conftest2.$ac_objext"
15301    # Insert the option either (1) after the last *FLAGS variable, or
15302    # (2) before a word containing "conftest.", or (3) at the end.
15303    # Note that $ac_compile itself does not contain backslashes and begins
15304    # with a dollar sign (not a hyphen), so the echo should work correctly.
15305    lt_compile=`echo "$ac_compile" | $SED \
15306    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15307    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15308    -e 's:$: $lt_compiler_flag:'`
15309    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15310    (eval "$lt_compile" 2>out/conftest.err)
15311    ac_status=$?
15312    cat out/conftest.err >&5
15313    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15314    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15315    then
15316      # The compiler can only warn and ignore the option if not recognized
15317      # So say no if there are warnings
15318      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15319      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15320      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15321        lt_cv_prog_compiler_c_o_CXX=yes
15322      fi
15323    fi
15324    chmod u+w . 2>&5
15325    $RM conftest*
15326    # SGI C++ compiler will create directory out/ii_files/ for
15327    # template instantiation
15328    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15329    $RM out/* && rmdir out
15330    cd ..
15331    $RM -r conftest
15332    $RM conftest*
15333
15334 fi
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15336 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15337
15338
15339
15340
15341 hard_links="nottested"
15342 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15343   # do not overwrite the value of need_locks provided by the user
15344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15345 $as_echo_n "checking if we can lock with hard links... " >&6; }
15346   hard_links=yes
15347   $RM conftest*
15348   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15349   touch conftest.a
15350   ln conftest.a conftest.b 2>&5 || hard_links=no
15351   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15353 $as_echo "$hard_links" >&6; }
15354   if test "$hard_links" = no; then
15355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15356 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15357     need_locks=warn
15358   fi
15359 else
15360   need_locks=no
15361 fi
15362
15363
15364
15365     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15367
15368   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15369   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15370   case $host_os in
15371   aix[4-9]*)
15372     # If we're using GNU nm, then we don't want the "-C" option.
15373     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15374     # Also, AIX nm treats weak defined symbols like other global defined
15375     # symbols, whereas GNU nm marks them as "W".
15376     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15377       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15378     else
15379       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15380     fi
15381     ;;
15382   pw32*)
15383     export_symbols_cmds_CXX="$ltdll_cmds"
15384     ;;
15385   cygwin* | mingw* | cegcc*)
15386     case $cc_basename in
15387     cl*) ;;
15388     *)
15389       export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15390       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15391       ;;
15392     esac
15393     ;;
15394   *)
15395     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15396     ;;
15397   esac
15398
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15400 $as_echo "$ld_shlibs_CXX" >&6; }
15401 test "$ld_shlibs_CXX" = no && can_build_shared=no
15402
15403 with_gnu_ld_CXX=$with_gnu_ld
15404
15405
15406
15407
15408
15409
15410 #
15411 # Do we need to explicitly link libc?
15412 #
15413 case "x$archive_cmds_need_lc_CXX" in
15414 x|xyes)
15415   # Assume -lc should be added
15416   archive_cmds_need_lc_CXX=yes
15417
15418   if test "$enable_shared" = yes && test "$GCC" = yes; then
15419     case $archive_cmds_CXX in
15420     *'~'*)
15421       # FIXME: we may have to deal with multi-command sequences.
15422       ;;
15423     '$CC '*)
15424       # Test whether the compiler implicitly links with -lc since on some
15425       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15426       # to ld, don't add -lc before -lgcc.
15427       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15429 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15430   $as_echo_n "(cached) " >&6
15431 else
15432   $RM conftest*
15433         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15434
15435         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15436   (eval $ac_compile) 2>&5
15437   ac_status=$?
15438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439   test $ac_status = 0; } 2>conftest.err; then
15440           soname=conftest
15441           lib=conftest
15442           libobjs=conftest.$ac_objext
15443           deplibs=
15444           wl=$lt_prog_compiler_wl_CXX
15445           pic_flag=$lt_prog_compiler_pic_CXX
15446           compiler_flags=-v
15447           linker_flags=-v
15448           verstring=
15449           output_objdir=.
15450           libname=conftest
15451           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15452           allow_undefined_flag_CXX=
15453           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15454   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15455   ac_status=$?
15456   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15457   test $ac_status = 0; }
15458           then
15459             lt_cv_archive_cmds_need_lc_CXX=no
15460           else
15461             lt_cv_archive_cmds_need_lc_CXX=yes
15462           fi
15463           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15464         else
15465           cat conftest.err 1>&5
15466         fi
15467         $RM conftest*
15468
15469 fi
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15471 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15472       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15473       ;;
15474     esac
15475   fi
15476   ;;
15477 esac
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15543 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15544
15545 library_names_spec=
15546 libname_spec='lib$name'
15547 soname_spec=
15548 shrext_cmds=".so"
15549 postinstall_cmds=
15550 postuninstall_cmds=
15551 finish_cmds=
15552 finish_eval=
15553 shlibpath_var=
15554 shlibpath_overrides_runpath=unknown
15555 version_type=none
15556 dynamic_linker="$host_os ld.so"
15557 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15558 need_lib_prefix=unknown
15559 hardcode_into_libs=no
15560
15561 # when you set need_version to no, make sure it does not cause -set_version
15562 # flags to be left without arguments
15563 need_version=unknown
15564
15565 case $host_os in
15566 aix3*)
15567   version_type=linux
15568   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15569   shlibpath_var=LIBPATH
15570
15571   # AIX 3 has no versioning support, so we append a major version to the name.
15572   soname_spec='${libname}${release}${shared_ext}$major'
15573   ;;
15574
15575 aix[4-9]*)
15576   version_type=linux
15577   need_lib_prefix=no
15578   need_version=no
15579   hardcode_into_libs=yes
15580   if test "$host_cpu" = ia64; then
15581     # AIX 5 supports IA64
15582     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15583     shlibpath_var=LD_LIBRARY_PATH
15584   else
15585     # With GCC up to 2.95.x, collect2 would create an import file
15586     # for dependence libraries.  The import file would start with
15587     # the line `#! .'.  This would cause the generated library to
15588     # depend on `.', always an invalid library.  This was fixed in
15589     # development snapshots of GCC prior to 3.0.
15590     case $host_os in
15591       aix4 | aix4.[01] | aix4.[01].*)
15592       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15593            echo ' yes '
15594            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15595         :
15596       else
15597         can_build_shared=no
15598       fi
15599       ;;
15600     esac
15601     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15602     # soname into executable. Probably we can add versioning support to
15603     # collect2, so additional links can be useful in future.
15604     if test "$aix_use_runtimelinking" = yes; then
15605       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15606       # instead of lib<name>.a to let people know that these are not
15607       # typical AIX shared libraries.
15608       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609     else
15610       # We preserve .a as extension for shared libraries through AIX4.2
15611       # and later when we are not doing run time linking.
15612       library_names_spec='${libname}${release}.a $libname.a'
15613       soname_spec='${libname}${release}${shared_ext}$major'
15614     fi
15615     shlibpath_var=LIBPATH
15616   fi
15617   ;;
15618
15619 amigaos*)
15620   case $host_cpu in
15621   powerpc)
15622     # Since July 2007 AmigaOS4 officially supports .so libraries.
15623     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15624     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15625     ;;
15626   m68k)
15627     library_names_spec='$libname.ixlibrary $libname.a'
15628     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15629     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15630     ;;
15631   esac
15632   ;;
15633
15634 beos*)
15635   library_names_spec='${libname}${shared_ext}'
15636   dynamic_linker="$host_os ld.so"
15637   shlibpath_var=LIBRARY_PATH
15638   ;;
15639
15640 bsdi[45]*)
15641   version_type=linux
15642   need_version=no
15643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15644   soname_spec='${libname}${release}${shared_ext}$major'
15645   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15646   shlibpath_var=LD_LIBRARY_PATH
15647   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15648   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15649   # the default ld.so.conf also contains /usr/contrib/lib and
15650   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15651   # libtool to hard-code these into programs
15652   ;;
15653
15654 cygwin* | mingw* | pw32* | cegcc*)
15655   version_type=windows
15656   shrext_cmds=".dll"
15657   need_version=no
15658   need_lib_prefix=no
15659
15660   case $GCC,$cc_basename in
15661   yes,*)
15662     # gcc
15663     library_names_spec='$libname.dll.a'
15664     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15665     postinstall_cmds='base_file=`basename \${file}`~
15666       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15667       dldir=$destdir/`dirname \$dlpath`~
15668       test -d \$dldir || mkdir -p \$dldir~
15669       $install_prog $dir/$dlname \$dldir/$dlname~
15670       chmod a+x \$dldir/$dlname~
15671       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15672         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15673       fi'
15674     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15675       dlpath=$dir/\$dldll~
15676        $RM \$dlpath'
15677     shlibpath_overrides_runpath=yes
15678
15679     case $host_os in
15680     cygwin*)
15681       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15682       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15683
15684       ;;
15685     mingw* | cegcc*)
15686       # MinGW DLLs use traditional 'lib' prefix
15687       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688       ;;
15689     pw32*)
15690       # pw32 DLLs use 'pw' prefix rather than 'lib'
15691       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15692       ;;
15693     esac
15694     dynamic_linker='Win32 ld.exe'
15695     ;;
15696
15697   *,cl*)
15698     # Native MSVC
15699     libname_spec='$name'
15700     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15701     library_names_spec='${libname}.dll.lib'
15702
15703     case $build_os in
15704     mingw*)
15705       sys_lib_search_path_spec=
15706       lt_save_ifs=$IFS
15707       IFS=';'
15708       for lt_path in $LIB
15709       do
15710         IFS=$lt_save_ifs
15711         # Let DOS variable expansion print the short 8.3 style file name.
15712         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15713         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15714       done
15715       IFS=$lt_save_ifs
15716       # Convert to MSYS style.
15717       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15718       ;;
15719     cygwin*)
15720       # Convert to unix form, then to dos form, then back to unix form
15721       # but this time dos style (no spaces!) so that the unix form looks
15722       # like /cygdrive/c/PROGRA~1:/cygdr...
15723       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15724       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15725       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15726       ;;
15727     *)
15728       sys_lib_search_path_spec="$LIB"
15729       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15730         # It is most probably a Windows format PATH.
15731         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15732       else
15733         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15734       fi
15735       # FIXME: find the short name or the path components, as spaces are
15736       # common. (e.g. "Program Files" -> "PROGRA~1")
15737       ;;
15738     esac
15739
15740     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15741     postinstall_cmds='base_file=`basename \${file}`~
15742       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15743       dldir=$destdir/`dirname \$dlpath`~
15744       test -d \$dldir || mkdir -p \$dldir~
15745       $install_prog $dir/$dlname \$dldir/$dlname'
15746     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15747       dlpath=$dir/\$dldll~
15748        $RM \$dlpath'
15749     shlibpath_overrides_runpath=yes
15750     dynamic_linker='Win32 link.exe'
15751     ;;
15752
15753   *)
15754     # Assume MSVC wrapper
15755     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15756     dynamic_linker='Win32 ld.exe'
15757     ;;
15758   esac
15759   # FIXME: first we should search . and the directory the executable is in
15760   shlibpath_var=PATH
15761   ;;
15762
15763 darwin* | rhapsody*)
15764   dynamic_linker="$host_os dyld"
15765   version_type=darwin
15766   need_lib_prefix=no
15767   need_version=no
15768   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15769   soname_spec='${libname}${release}${major}$shared_ext'
15770   shlibpath_overrides_runpath=yes
15771   shlibpath_var=DYLD_LIBRARY_PATH
15772   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15773
15774   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15775   ;;
15776
15777 dgux*)
15778   version_type=linux
15779   need_lib_prefix=no
15780   need_version=no
15781   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15782   soname_spec='${libname}${release}${shared_ext}$major'
15783   shlibpath_var=LD_LIBRARY_PATH
15784   ;;
15785
15786 freebsd1*)
15787   dynamic_linker=no
15788   ;;
15789
15790 freebsd* | dragonfly*)
15791   # DragonFly does not have aout.  When/if they implement a new
15792   # versioning mechanism, adjust this.
15793   if test -x /usr/bin/objformat; then
15794     objformat=`/usr/bin/objformat`
15795   else
15796     case $host_os in
15797     freebsd[123]*) objformat=aout ;;
15798     *) objformat=elf ;;
15799     esac
15800   fi
15801   version_type=freebsd-$objformat
15802   case $version_type in
15803     freebsd-elf*)
15804       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15805       need_version=no
15806       need_lib_prefix=no
15807       ;;
15808     freebsd-*)
15809       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15810       need_version=yes
15811       ;;
15812   esac
15813   shlibpath_var=LD_LIBRARY_PATH
15814   case $host_os in
15815   freebsd2*)
15816     shlibpath_overrides_runpath=yes
15817     ;;
15818   freebsd3.[01]* | freebsdelf3.[01]*)
15819     shlibpath_overrides_runpath=yes
15820     hardcode_into_libs=yes
15821     ;;
15822   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15823   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15824     shlibpath_overrides_runpath=no
15825     hardcode_into_libs=yes
15826     ;;
15827   *) # from 4.6 on, and DragonFly
15828     shlibpath_overrides_runpath=yes
15829     hardcode_into_libs=yes
15830     ;;
15831   esac
15832   ;;
15833
15834 gnu*)
15835   version_type=linux
15836   need_lib_prefix=no
15837   need_version=no
15838   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15839   soname_spec='${libname}${release}${shared_ext}$major'
15840   shlibpath_var=LD_LIBRARY_PATH
15841   hardcode_into_libs=yes
15842   ;;
15843
15844 haiku*)
15845   version_type=linux
15846   need_lib_prefix=no
15847   need_version=no
15848   dynamic_linker="$host_os runtime_loader"
15849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15850   soname_spec='${libname}${release}${shared_ext}$major'
15851   shlibpath_var=LIBRARY_PATH
15852   shlibpath_overrides_runpath=yes
15853   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15854   hardcode_into_libs=yes
15855   ;;
15856
15857 hpux9* | hpux10* | hpux11*)
15858   # Give a soname corresponding to the major version so that dld.sl refuses to
15859   # link against other versions.
15860   version_type=sunos
15861   need_lib_prefix=no
15862   need_version=no
15863   case $host_cpu in
15864   ia64*)
15865     shrext_cmds='.so'
15866     hardcode_into_libs=yes
15867     dynamic_linker="$host_os dld.so"
15868     shlibpath_var=LD_LIBRARY_PATH
15869     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871     soname_spec='${libname}${release}${shared_ext}$major'
15872     if test "X$HPUX_IA64_MODE" = X32; then
15873       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15874     else
15875       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15876     fi
15877     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15878     ;;
15879   hppa*64*)
15880     shrext_cmds='.sl'
15881     hardcode_into_libs=yes
15882     dynamic_linker="$host_os dld.sl"
15883     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15884     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15885     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15886     soname_spec='${libname}${release}${shared_ext}$major'
15887     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15888     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15889     ;;
15890   *)
15891     shrext_cmds='.sl'
15892     dynamic_linker="$host_os dld.sl"
15893     shlibpath_var=SHLIB_PATH
15894     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15895     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896     soname_spec='${libname}${release}${shared_ext}$major'
15897     ;;
15898   esac
15899   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15900   postinstall_cmds='chmod 555 $lib'
15901   # or fails outright, so override atomically:
15902   install_override_mode=555
15903   ;;
15904
15905 interix[3-9]*)
15906   version_type=linux
15907   need_lib_prefix=no
15908   need_version=no
15909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15910   soname_spec='${libname}${release}${shared_ext}$major'
15911   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15912   shlibpath_var=LD_LIBRARY_PATH
15913   shlibpath_overrides_runpath=no
15914   hardcode_into_libs=yes
15915   ;;
15916
15917 irix5* | irix6* | nonstopux*)
15918   case $host_os in
15919     nonstopux*) version_type=nonstopux ;;
15920     *)
15921         if test "$lt_cv_prog_gnu_ld" = yes; then
15922                 version_type=linux
15923         else
15924                 version_type=irix
15925         fi ;;
15926   esac
15927   need_lib_prefix=no
15928   need_version=no
15929   soname_spec='${libname}${release}${shared_ext}$major'
15930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15931   case $host_os in
15932   irix5* | nonstopux*)
15933     libsuff= shlibsuff=
15934     ;;
15935   *)
15936     case $LD in # libtool.m4 will add one of these switches to LD
15937     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15938       libsuff= shlibsuff= libmagic=32-bit;;
15939     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15940       libsuff=32 shlibsuff=N32 libmagic=N32;;
15941     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15942       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15943     *) libsuff= shlibsuff= libmagic=never-match;;
15944     esac
15945     ;;
15946   esac
15947   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15948   shlibpath_overrides_runpath=no
15949   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15950   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15951   hardcode_into_libs=yes
15952   ;;
15953
15954 # No shared lib support for Linux oldld, aout, or coff.
15955 linux*oldld* | linux*aout* | linux*coff*)
15956   dynamic_linker=no
15957   ;;
15958
15959 # This must be Linux ELF.
15960 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15961   version_type=linux
15962   need_lib_prefix=no
15963   need_version=no
15964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965   soname_spec='${libname}${release}${shared_ext}$major'
15966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15967   shlibpath_var=LD_LIBRARY_PATH
15968   shlibpath_overrides_runpath=no
15969
15970   # Some binutils ld are patched to set DT_RUNPATH
15971   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15972   $as_echo_n "(cached) " >&6
15973 else
15974   lt_cv_shlibpath_overrides_runpath=no
15975     save_LDFLAGS=$LDFLAGS
15976     save_libdir=$libdir
15977     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15978          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15979     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15980 /* end confdefs.h.  */
15981
15982 int
15983 main ()
15984 {
15985
15986   ;
15987   return 0;
15988 }
15989 _ACEOF
15990 if ac_fn_cxx_try_link "$LINENO"; then :
15991   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15992   lt_cv_shlibpath_overrides_runpath=yes
15993 fi
15994 fi
15995 rm -f core conftest.err conftest.$ac_objext \
15996     conftest$ac_exeext conftest.$ac_ext
15997     LDFLAGS=$save_LDFLAGS
15998     libdir=$save_libdir
15999
16000 fi
16001
16002   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16003
16004   # This implies no fast_install, which is unacceptable.
16005   # Some rework will be needed to allow for fast_install
16006   # before this can be enabled.
16007   hardcode_into_libs=yes
16008
16009   # Append ld.so.conf contents to the search path
16010   if test -f /etc/ld.so.conf; then
16011     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16012     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16013   fi
16014
16015   # We used to test for /lib/ld.so.1 and disable shared libraries on
16016   # powerpc, because MkLinux only supported shared libraries with the
16017   # GNU dynamic linker.  Since this was broken with cross compilers,
16018   # most powerpc-linux boxes support dynamic linking these days and
16019   # people can always --disable-shared, the test was removed, and we
16020   # assume the GNU/Linux dynamic linker is in use.
16021   dynamic_linker='GNU/Linux ld.so'
16022   ;;
16023
16024 netbsd*)
16025   version_type=sunos
16026   need_lib_prefix=no
16027   need_version=no
16028   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16029     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16030     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16031     dynamic_linker='NetBSD (a.out) ld.so'
16032   else
16033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16034     soname_spec='${libname}${release}${shared_ext}$major'
16035     dynamic_linker='NetBSD ld.elf_so'
16036   fi
16037   shlibpath_var=LD_LIBRARY_PATH
16038   shlibpath_overrides_runpath=yes
16039   hardcode_into_libs=yes
16040   ;;
16041
16042 newsos6)
16043   version_type=linux
16044   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16045   shlibpath_var=LD_LIBRARY_PATH
16046   shlibpath_overrides_runpath=yes
16047   ;;
16048
16049 *nto* | *qnx*)
16050   version_type=qnx
16051   need_lib_prefix=no
16052   need_version=no
16053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054   soname_spec='${libname}${release}${shared_ext}$major'
16055   shlibpath_var=LD_LIBRARY_PATH
16056   shlibpath_overrides_runpath=no
16057   hardcode_into_libs=yes
16058   dynamic_linker='ldqnx.so'
16059   ;;
16060
16061 openbsd*)
16062   version_type=sunos
16063   sys_lib_dlsearch_path_spec="/usr/lib"
16064   need_lib_prefix=no
16065   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16066   case $host_os in
16067     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16068     *)                          need_version=no  ;;
16069   esac
16070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16071   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16072   shlibpath_var=LD_LIBRARY_PATH
16073   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16074     case $host_os in
16075       openbsd2.[89] | openbsd2.[89].*)
16076         shlibpath_overrides_runpath=no
16077         ;;
16078       *)
16079         shlibpath_overrides_runpath=yes
16080         ;;
16081       esac
16082   else
16083     shlibpath_overrides_runpath=yes
16084   fi
16085   ;;
16086
16087 os2*)
16088   libname_spec='$name'
16089   shrext_cmds=".dll"
16090   need_lib_prefix=no
16091   library_names_spec='$libname${shared_ext} $libname.a'
16092   dynamic_linker='OS/2 ld.exe'
16093   shlibpath_var=LIBPATH
16094   ;;
16095
16096 osf3* | osf4* | osf5*)
16097   version_type=osf
16098   need_lib_prefix=no
16099   need_version=no
16100   soname_spec='${libname}${release}${shared_ext}$major'
16101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102   shlibpath_var=LD_LIBRARY_PATH
16103   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16104   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16105   ;;
16106
16107 rdos*)
16108   dynamic_linker=no
16109   ;;
16110
16111 solaris*)
16112   version_type=linux
16113   need_lib_prefix=no
16114   need_version=no
16115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16116   soname_spec='${libname}${release}${shared_ext}$major'
16117   shlibpath_var=LD_LIBRARY_PATH
16118   shlibpath_overrides_runpath=yes
16119   hardcode_into_libs=yes
16120   # ldd complains unless libraries are executable
16121   postinstall_cmds='chmod +x $lib'
16122   ;;
16123
16124 sunos4*)
16125   version_type=sunos
16126   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16127   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16128   shlibpath_var=LD_LIBRARY_PATH
16129   shlibpath_overrides_runpath=yes
16130   if test "$with_gnu_ld" = yes; then
16131     need_lib_prefix=no
16132   fi
16133   need_version=yes
16134   ;;
16135
16136 sysv4 | sysv4.3*)
16137   version_type=linux
16138   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16139   soname_spec='${libname}${release}${shared_ext}$major'
16140   shlibpath_var=LD_LIBRARY_PATH
16141   case $host_vendor in
16142     sni)
16143       shlibpath_overrides_runpath=no
16144       need_lib_prefix=no
16145       runpath_var=LD_RUN_PATH
16146       ;;
16147     siemens)
16148       need_lib_prefix=no
16149       ;;
16150     motorola)
16151       need_lib_prefix=no
16152       need_version=no
16153       shlibpath_overrides_runpath=no
16154       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16155       ;;
16156   esac
16157   ;;
16158
16159 sysv4*MP*)
16160   if test -d /usr/nec ;then
16161     version_type=linux
16162     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16163     soname_spec='$libname${shared_ext}.$major'
16164     shlibpath_var=LD_LIBRARY_PATH
16165   fi
16166   ;;
16167
16168 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16169   version_type=freebsd-elf
16170   need_lib_prefix=no
16171   need_version=no
16172   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16173   soname_spec='${libname}${release}${shared_ext}$major'
16174   shlibpath_var=LD_LIBRARY_PATH
16175   shlibpath_overrides_runpath=yes
16176   hardcode_into_libs=yes
16177   if test "$with_gnu_ld" = yes; then
16178     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16179   else
16180     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16181     case $host_os in
16182       sco3.2v5*)
16183         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16184         ;;
16185     esac
16186   fi
16187   sys_lib_dlsearch_path_spec='/usr/lib'
16188   ;;
16189
16190 tpf*)
16191   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16192   version_type=linux
16193   need_lib_prefix=no
16194   need_version=no
16195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16196   shlibpath_var=LD_LIBRARY_PATH
16197   shlibpath_overrides_runpath=no
16198   hardcode_into_libs=yes
16199   ;;
16200
16201 uts4*)
16202   version_type=linux
16203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16204   soname_spec='${libname}${release}${shared_ext}$major'
16205   shlibpath_var=LD_LIBRARY_PATH
16206   ;;
16207
16208 *)
16209   dynamic_linker=no
16210   ;;
16211 esac
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16213 $as_echo "$dynamic_linker" >&6; }
16214 test "$dynamic_linker" = no && can_build_shared=no
16215
16216 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16217 if test "$GCC" = yes; then
16218   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16219 fi
16220
16221 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16222   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16223 fi
16224 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16225   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16226 fi
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16266 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16267 hardcode_action_CXX=
16268 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16269    test -n "$runpath_var_CXX" ||
16270    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16271
16272   # We can hardcode non-existent directories.
16273   if test "$hardcode_direct_CXX" != no &&
16274      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16275      # have to relink, otherwise we might link with an installed library
16276      # when we should be linking with a yet-to-be-installed one
16277      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16278      test "$hardcode_minus_L_CXX" != no; then
16279     # Linking always hardcodes the temporary library directory.
16280     hardcode_action_CXX=relink
16281   else
16282     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16283     hardcode_action_CXX=immediate
16284   fi
16285 else
16286   # We cannot hardcode anything, or else we can only hardcode existing
16287   # directories.
16288   hardcode_action_CXX=unsupported
16289 fi
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16291 $as_echo "$hardcode_action_CXX" >&6; }
16292
16293 if test "$hardcode_action_CXX" = relink ||
16294    test "$inherit_rpath_CXX" = yes; then
16295   # Fast installation is not supported
16296   enable_fast_install=no
16297 elif test "$shlibpath_overrides_runpath" = yes ||
16298      test "$enable_shared" = no; then
16299   # Fast installation is not necessary
16300   enable_fast_install=needless
16301 fi
16302
16303
16304
16305
16306
16307
16308
16309   fi # test -n "$compiler"
16310
16311   CC=$lt_save_CC
16312   CFLAGS=$lt_save_CFLAGS
16313   LDCXX=$LD
16314   LD=$lt_save_LD
16315   GCC=$lt_save_GCC
16316   with_gnu_ld=$lt_save_with_gnu_ld
16317   lt_cv_path_LDCXX=$lt_cv_path_LD
16318   lt_cv_path_LD=$lt_save_path_LD
16319   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16320   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16321 fi # test "$_lt_caught_CXX_error" != yes
16322
16323 ac_ext=c
16324 ac_cpp='$CPP $CPPFLAGS'
16325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341         ac_config_commands="$ac_config_commands libtool"
16342
16343
16344
16345
16346 # Only expand once:
16347
16348
16349
16350
16351 if test x$use_libtool != xno; then
16352    DEFAULT_OBJECT_TYPE=".lo"
16353    DEFAULT_ARCHIVE_TYPE=".la"
16354    DEFAULT_SHARED_OBJECT_TYPE=".la"
16355    LIBTOOL="\$(LIBTOOL)"
16356    LIBTOOL_INSTALL_TARGET="libtool-install"
16357    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16358    LIBTOOL_CLEAN_TARGET="libtool-clean"
16359    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16360    FD_PLUGIN_DIR="src/plugins/fd"
16361    have_plugins=yes
16362 else
16363    DEFAULT_OBJECT_TYPE=".o"
16364    DEFAULT_ARCHIVE_TYPE=".a"
16365    DEFAULT_SHARED_OBJECT_TYPE=".so"
16366    LIBTOOL="# \$(LIBTOOL)"
16367    LIBTOOL_INSTALL_TARGET=""
16368    LIBTOOL_UNINSTALL_TARGET=""
16369    LIBTOOL_CLEAN_TARGET=""
16370    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16371    FD_PLUGIN_DIR=""
16372    have_plugins=no
16373 fi
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385 # Check whether --enable-includes was given.
16386 if test "${enable_includes+set}" = set; then :
16387   enableval=$enable_includes;
16388        if test x$enableval = xyes; then
16389           install_includes=yes
16390        fi
16391
16392
16393 fi
16394
16395
16396
16397 if test x$use_libtool != xno -a x$install_includes = xyes; then
16398    INCLUDE_INSTALL_TARGET="install-includes"
16399    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16400 else
16401    INCLUDE_INSTALL_TARGET=""
16402    INCLUDE_UNINSTALL_TARGET=""
16403 fi
16404
16405
16406
16407
16408
16409 case $host_os in
16410   *cygwin* ) CYGWIN=yes;;
16411          * ) CYGWIN=no;;
16412 esac
16413
16414 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16415 then
16416
16417
16418 if $TRUEPRG; then
16419   HAVE_SUN_OS_TRUE=
16420   HAVE_SUN_OS_FALSE='#'
16421 else
16422   HAVE_SUN_OS_TRUE='#'
16423   HAVE_SUN_OS_FALSE=
16424 fi
16425         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16426
16427 else
16428
16429
16430 if $FALSEPRG; then
16431   HAVE_SUN_OS_TRUE=
16432   HAVE_SUN_OS_FALSE='#'
16433 else
16434   HAVE_SUN_OS_TRUE='#'
16435   HAVE_SUN_OS_FALSE=
16436 fi
16437 fi
16438
16439 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16440 then
16441
16442
16443 if $TRUEPRG; then
16444   HAVE_OSF1_OS_TRUE=
16445   HAVE_OSF1_OS_FALSE='#'
16446 else
16447   HAVE_OSF1_OS_TRUE='#'
16448   HAVE_OSF1_OS_FALSE=
16449 fi
16450         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16451
16452 else
16453
16454
16455 if $FALSEPRG; then
16456   HAVE_OSF1_OS_TRUE=
16457   HAVE_OSF1_OS_FALSE='#'
16458 else
16459   HAVE_OSF1_OS_TRUE='#'
16460   HAVE_OSF1_OS_FALSE=
16461 fi
16462 fi
16463
16464 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16465 then
16466
16467
16468 if $TRUEPRG; then
16469   HAVE_AIX_OS_TRUE=
16470   HAVE_AIX_OS_FALSE='#'
16471 else
16472   HAVE_AIX_OS_TRUE='#'
16473   HAVE_AIX_OS_FALSE=
16474 fi
16475         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16476
16477 else
16478
16479
16480 if $FALSEPRG; then
16481   HAVE_AIX_OS_TRUE=
16482   HAVE_AIX_OS_FALSE='#'
16483 else
16484   HAVE_AIX_OS_TRUE='#'
16485   HAVE_AIX_OS_FALSE=
16486 fi
16487 fi
16488
16489 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16490 then
16491
16492
16493 if $TRUEPRG; then
16494   HAVE_HPUX_OS_TRUE=
16495   HAVE_HPUX_OS_FALSE='#'
16496 else
16497   HAVE_HPUX_OS_TRUE='#'
16498   HAVE_HPUX_OS_FALSE=
16499 fi
16500         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16501
16502 else
16503
16504
16505 if $FALSEPRG; then
16506   HAVE_HPUX_OS_TRUE=
16507   HAVE_HPUX_OS_FALSE='#'
16508 else
16509   HAVE_HPUX_OS_TRUE='#'
16510   HAVE_HPUX_OS_FALSE=
16511 fi
16512 fi
16513
16514 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16515 then
16516
16517
16518 if $TRUEPRG; then
16519   HAVE_LINUX_OS_TRUE=
16520   HAVE_LINUX_OS_FALSE='#'
16521 else
16522   HAVE_LINUX_OS_TRUE='#'
16523   HAVE_LINUX_OS_FALSE=
16524 fi
16525         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16526
16527 else
16528
16529
16530 if $FALSEPRG; then
16531   HAVE_LINUX_OS_TRUE=
16532   HAVE_LINUX_OS_FALSE='#'
16533 else
16534   HAVE_LINUX_OS_TRUE='#'
16535   HAVE_LINUX_OS_FALSE=
16536 fi
16537 fi
16538
16539 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16540 then
16541
16542
16543 if $TRUEPRG; then
16544   HAVE_FREEBSD_OS_TRUE=
16545   HAVE_FREEBSD_OS_FALSE='#'
16546 else
16547   HAVE_FREEBSD_OS_TRUE='#'
16548   HAVE_FREEBSD_OS_FALSE=
16549 fi
16550         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16551
16552 else
16553
16554
16555 if $FALSEPRG; then
16556   HAVE_FREEBSD_OS_TRUE=
16557   HAVE_FREEBSD_OS_FALSE='#'
16558 else
16559   HAVE_FREEBSD_OS_TRUE='#'
16560   HAVE_FREEBSD_OS_FALSE=
16561 fi
16562 fi
16563
16564 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16565 then
16566
16567
16568 if $TRUEPRG; then
16569   HAVE_NETBSD_OS_TRUE=
16570   HAVE_NETBSD_OS_FALSE='#'
16571 else
16572   HAVE_NETBSD_OS_TRUE='#'
16573   HAVE_NETBSD_OS_FALSE=
16574 fi
16575         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16576
16577 else
16578
16579
16580 if $FALSEPRG; then
16581   HAVE_NETBSD_OS_TRUE=
16582   HAVE_NETBSD_OS_FALSE='#'
16583 else
16584   HAVE_NETBSD_OS_TRUE='#'
16585   HAVE_NETBSD_OS_FALSE=
16586 fi
16587 fi
16588
16589 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16590 then
16591
16592
16593 if $TRUEPRG; then
16594   HAVE_OPENBSD_OS_TRUE=
16595   HAVE_OPENBSD_OS_FALSE='#'
16596 else
16597   HAVE_OPENBSD_OS_TRUE='#'
16598   HAVE_OPENBSD_OS_FALSE=
16599 fi
16600         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16601
16602 else
16603
16604
16605 if $FALSEPRG; then
16606   HAVE_OPENBSD_OS_TRUE=
16607   HAVE_OPENBSD_OS_FALSE='#'
16608 else
16609   HAVE_OPENBSD_OS_TRUE='#'
16610   HAVE_OPENBSD_OS_FALSE=
16611 fi
16612 fi
16613
16614 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16615 then
16616
16617
16618 if $TRUEPRG; then
16619   HAVE_BSDI_OS_TRUE=
16620   HAVE_BSDI_OS_FALSE='#'
16621 else
16622   HAVE_BSDI_OS_TRUE='#'
16623   HAVE_BSDI_OS_FALSE=
16624 fi
16625         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16626
16627 else
16628
16629
16630 if $FALSEPRG; then
16631   HAVE_BSDI_OS_TRUE=
16632   HAVE_BSDI_OS_FALSE='#'
16633 else
16634   HAVE_BSDI_OS_TRUE='#'
16635   HAVE_BSDI_OS_FALSE=
16636 fi
16637 fi
16638
16639 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
16640 then
16641
16642
16643 if $TRUEPRG; then
16644   HAVE_SGI_OS_TRUE=
16645   HAVE_SGI_OS_FALSE='#'
16646 else
16647   HAVE_SGI_OS_TRUE='#'
16648   HAVE_SGI_OS_FALSE=
16649 fi
16650         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
16651
16652 else
16653
16654
16655 if $FALSEPRG; then
16656   HAVE_SGI_OS_TRUE=
16657   HAVE_SGI_OS_FALSE='#'
16658 else
16659   HAVE_SGI_OS_TRUE='#'
16660   HAVE_SGI_OS_FALSE=
16661 fi
16662 fi
16663
16664 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
16665 then
16666
16667
16668 if $TRUEPRG; then
16669   HAVE_IRIX_OS_TRUE=
16670   HAVE_IRIX_OS_FALSE='#'
16671 else
16672   HAVE_IRIX_OS_TRUE='#'
16673   HAVE_IRIX_OS_FALSE=
16674 fi
16675         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
16676
16677 else
16678
16679
16680 if $FALSEPRG; then
16681   HAVE_IRIX_OS_TRUE=
16682   HAVE_IRIX_OS_FALSE='#'
16683 else
16684   HAVE_IRIX_OS_TRUE='#'
16685   HAVE_IRIX_OS_FALSE=
16686 fi
16687 fi
16688
16689 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16690 then
16691
16692
16693 if $TRUEPRG; then
16694   HAVE_DARWIN_OS_TRUE=
16695   HAVE_DARWIN_OS_FALSE='#'
16696 else
16697   HAVE_DARWIN_OS_TRUE='#'
16698   HAVE_DARWIN_OS_FALSE=
16699 fi
16700     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
16701
16702 else
16703
16704
16705 if $FALSEPRG; then
16706   HAVE_DARWIN_OS_TRUE=
16707   HAVE_DARWIN_OS_FALSE='#'
16708 else
16709   HAVE_DARWIN_OS_TRUE='#'
16710   HAVE_DARWIN_OS_FALSE=
16711 fi
16712 fi
16713
16714
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
16716 $as_echo_n "checking for Operating System Distribution... " >&6; }
16717 if test "x$DISTNAME" != "x"
16718 then
16719         echo "distname set to $DISTNAME"
16720 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16721 then
16722         DISTNAME=alpha
16723 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16724 then
16725         DISTNAME=aix
16726 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16727 then
16728         DISTNAME=hpux
16729 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16730 then
16731         DISTNAME=solaris
16732 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16733 then
16734         DISTNAME=freebsd
16735 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16736 then
16737         DISTNAME=netbsd
16738 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16739 then
16740         DISTNAME=openbsd
16741 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
16742 then
16743         DISTNAME=irix
16744 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16745 then
16746         DISTNAME=bsdi
16747 elif test -f /etc/SuSE-release
16748 then
16749         DISTNAME=suse
16750 elif test -d /etc/SuSEconfig
16751 then
16752         DISTNAME=suse5
16753 elif test -f /etc/mandrake-release
16754 then
16755         DISTNAME=mandrake
16756 elif test -f /etc/whitebox-release
16757 then
16758        DISTNAME=redhat
16759 elif test -f /etc/redhat-release
16760 then
16761         DISTNAME=redhat
16762 elif test -f /etc/gentoo-release
16763 then
16764         DISTNAME=gentoo
16765 elif test -f /etc/debian_version
16766 then
16767         DISTNAME=debian
16768 elif test -f /etc/slackware-version
16769 then
16770         DISTNAME=slackware
16771 elif test x$host_vendor = xapple
16772 then
16773     DISTNAME=osx
16774 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
16775 then
16776     DISTNAME=darwin
16777 elif test -f /etc/engarde-version
16778 then
16779         DISTNAME=engarde
16780 elif test -f /etc/arch-release
16781 then
16782         DISTNAME=archlinux
16783 elif test "$CYGWIN" = yes
16784 then
16785         DISTNAME=cygwin
16786         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
16787
16788 else
16789         DISTNAME=unknown
16790 fi
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16792 $as_echo "done" >&6; }
16793
16794
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
16796 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
16797 set x ${MAKE-make}
16798 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
16799 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
16800   $as_echo_n "(cached) " >&6
16801 else
16802   cat >conftest.make <<\_ACEOF
16803 SHELL = /bin/sh
16804 all:
16805         @echo '@@@%%%=$(MAKE)=@@@%%%'
16806 _ACEOF
16807 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
16808 case `${MAKE-make} -f conftest.make 2>/dev/null` in
16809   *@@@%%%=?*=@@@%%%*)
16810     eval ac_cv_prog_make_${ac_make}_set=yes;;
16811   *)
16812     eval ac_cv_prog_make_${ac_make}_set=no;;
16813 esac
16814 rm -f conftest.make
16815 fi
16816 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
16817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16818 $as_echo "yes" >&6; }
16819   SET_MAKE=
16820 else
16821   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16822 $as_echo "no" >&6; }
16823   SET_MAKE="MAKE=${MAKE-make}"
16824 fi
16825
16826
16827
16828         MKINSTALLDIRS=
16829   if test -n "$ac_aux_dir"; then
16830     case "$ac_aux_dir" in
16831       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
16832       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
16833     esac
16834   fi
16835   if test -z "$MKINSTALLDIRS"; then
16836     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
16837   fi
16838
16839
16840
16841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
16842 $as_echo_n "checking whether NLS is requested... " >&6; }
16843     # Check whether --enable-nls was given.
16844 if test "${enable_nls+set}" = set; then :
16845   enableval=$enable_nls; USE_NLS=$enableval
16846 else
16847   USE_NLS=yes
16848 fi
16849
16850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
16851 $as_echo "$USE_NLS" >&6; }
16852
16853
16854
16855
16856
16857
16858 # Prepare PATH_SEPARATOR.
16859 # The user is always right.
16860 if test "${PATH_SEPARATOR+set}" != set; then
16861   echo "#! /bin/sh" >conf$$.sh
16862   echo  "exit 0"   >>conf$$.sh
16863   chmod +x conf$$.sh
16864   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16865     PATH_SEPARATOR=';'
16866   else
16867     PATH_SEPARATOR=:
16868   fi
16869   rm -f conf$$.sh
16870 fi
16871
16872 # Find out how to test for executable files. Don't use a zero-byte file,
16873 # as systems may use methods other than mode bits to determine executability.
16874 cat >conf$$.file <<_ASEOF
16875 #! /bin/sh
16876 exit 0
16877 _ASEOF
16878 chmod +x conf$$.file
16879 if test -x conf$$.file >/dev/null 2>&1; then
16880   ac_executable_p="test -x"
16881 else
16882   ac_executable_p="test -f"
16883 fi
16884 rm -f conf$$.file
16885
16886 # Extract the first word of "msgfmt", so it can be a program name with args.
16887 set dummy msgfmt; ac_word=$2
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16889 $as_echo_n "checking for $ac_word... " >&6; }
16890 if test "${ac_cv_path_MSGFMT+set}" = set; then :
16891   $as_echo_n "(cached) " >&6
16892 else
16893   case "$MSGFMT" in
16894   [\\/]* | ?:[\\/]*)
16895     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
16896     ;;
16897   *)
16898     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
16899     for ac_dir in $PATH; do
16900       IFS="$ac_save_IFS"
16901       test -z "$ac_dir" && ac_dir=.
16902       for ac_exec_ext in '' $ac_executable_extensions; do
16903         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
16904           echo "$as_me: trying $ac_dir/$ac_word..." >&5
16905           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
16906      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
16907             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
16908             break 2
16909           fi
16910         fi
16911       done
16912     done
16913     IFS="$ac_save_IFS"
16914   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
16915     ;;
16916 esac
16917 fi
16918 MSGFMT="$ac_cv_path_MSGFMT"
16919 if test "$MSGFMT" != ":"; then
16920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
16921 $as_echo "$MSGFMT" >&6; }
16922 else
16923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16924 $as_echo "no" >&6; }
16925 fi
16926
16927   # Extract the first word of "gmsgfmt", so it can be a program name with args.
16928 set dummy gmsgfmt; ac_word=$2
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16930 $as_echo_n "checking for $ac_word... " >&6; }
16931 if test "${ac_cv_path_GMSGFMT+set}" = set; then :
16932   $as_echo_n "(cached) " >&6
16933 else
16934   case $GMSGFMT in
16935   [\\/]* | ?:[\\/]*)
16936   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
16937   ;;
16938   *)
16939   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16940 for as_dir in $PATH
16941 do
16942   IFS=$as_save_IFS
16943   test -z "$as_dir" && as_dir=.
16944     for ac_exec_ext in '' $ac_executable_extensions; do
16945   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16946     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
16947     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16948     break 2
16949   fi
16950 done
16951   done
16952 IFS=$as_save_IFS
16953
16954   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
16955   ;;
16956 esac
16957 fi
16958 GMSGFMT=$ac_cv_path_GMSGFMT
16959 if test -n "$GMSGFMT"; then
16960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
16961 $as_echo "$GMSGFMT" >&6; }
16962 else
16963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16964 $as_echo "no" >&6; }
16965 fi
16966
16967
16968
16969
16970 # Prepare PATH_SEPARATOR.
16971 # The user is always right.
16972 if test "${PATH_SEPARATOR+set}" != set; then
16973   echo "#! /bin/sh" >conf$$.sh
16974   echo  "exit 0"   >>conf$$.sh
16975   chmod +x conf$$.sh
16976   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
16977     PATH_SEPARATOR=';'
16978   else
16979     PATH_SEPARATOR=:
16980   fi
16981   rm -f conf$$.sh
16982 fi
16983
16984 # Find out how to test for executable files. Don't use a zero-byte file,
16985 # as systems may use methods other than mode bits to determine executability.
16986 cat >conf$$.file <<_ASEOF
16987 #! /bin/sh
16988 exit 0
16989 _ASEOF
16990 chmod +x conf$$.file
16991 if test -x conf$$.file >/dev/null 2>&1; then
16992   ac_executable_p="test -x"
16993 else
16994   ac_executable_p="test -f"
16995 fi
16996 rm -f conf$$.file
16997
16998 # Extract the first word of "xgettext", so it can be a program name with args.
16999 set dummy xgettext; ac_word=$2
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17001 $as_echo_n "checking for $ac_word... " >&6; }
17002 if test "${ac_cv_path_XGETTEXT+set}" = set; then :
17003   $as_echo_n "(cached) " >&6
17004 else
17005   case "$XGETTEXT" in
17006   [\\/]* | ?:[\\/]*)
17007     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17008     ;;
17009   *)
17010     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17011     for ac_dir in $PATH; do
17012       IFS="$ac_save_IFS"
17013       test -z "$ac_dir" && ac_dir=.
17014       for ac_exec_ext in '' $ac_executable_extensions; do
17015         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17016           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17017           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17018      (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
17019             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17020             break 2
17021           fi
17022         fi
17023       done
17024     done
17025     IFS="$ac_save_IFS"
17026   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17027     ;;
17028 esac
17029 fi
17030 XGETTEXT="$ac_cv_path_XGETTEXT"
17031 if test "$XGETTEXT" != ":"; then
17032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17033 $as_echo "$XGETTEXT" >&6; }
17034 else
17035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17036 $as_echo "no" >&6; }
17037 fi
17038
17039     rm -f messages.po
17040
17041
17042 # Prepare PATH_SEPARATOR.
17043 # The user is always right.
17044 if test "${PATH_SEPARATOR+set}" != set; then
17045   echo "#! /bin/sh" >conf$$.sh
17046   echo  "exit 0"   >>conf$$.sh
17047   chmod +x conf$$.sh
17048   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17049     PATH_SEPARATOR=';'
17050   else
17051     PATH_SEPARATOR=:
17052   fi
17053   rm -f conf$$.sh
17054 fi
17055
17056 # Find out how to test for executable files. Don't use a zero-byte file,
17057 # as systems may use methods other than mode bits to determine executability.
17058 cat >conf$$.file <<_ASEOF
17059 #! /bin/sh
17060 exit 0
17061 _ASEOF
17062 chmod +x conf$$.file
17063 if test -x conf$$.file >/dev/null 2>&1; then
17064   ac_executable_p="test -x"
17065 else
17066   ac_executable_p="test -f"
17067 fi
17068 rm -f conf$$.file
17069
17070 # Extract the first word of "msgmerge", so it can be a program name with args.
17071 set dummy msgmerge; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17073 $as_echo_n "checking for $ac_word... " >&6; }
17074 if test "${ac_cv_path_MSGMERGE+set}" = set; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   case "$MSGMERGE" in
17078   [\\/]* | ?:[\\/]*)
17079     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17080     ;;
17081   *)
17082     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17083     for ac_dir in $PATH; do
17084       IFS="$ac_save_IFS"
17085       test -z "$ac_dir" && ac_dir=.
17086       for ac_exec_ext in '' $ac_executable_extensions; do
17087         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17088           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17089           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17090             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17091             break 2
17092           fi
17093         fi
17094       done
17095     done
17096     IFS="$ac_save_IFS"
17097   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17098     ;;
17099 esac
17100 fi
17101 MSGMERGE="$ac_cv_path_MSGMERGE"
17102 if test "$MSGMERGE" != ":"; then
17103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17104 $as_echo "$MSGMERGE" >&6; }
17105 else
17106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17107 $as_echo "no" >&6; }
17108 fi
17109
17110
17111       if test "$GMSGFMT" != ":"; then
17112             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17113        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17114       : ;
17115     else
17116       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17117       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17118 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17119       GMSGFMT=":"
17120     fi
17121   fi
17122
17123       if test "$XGETTEXT" != ":"; then
17124             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17125        (if $XGETTEXT --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
17126       : ;
17127     else
17128       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17129 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17130       XGETTEXT=":"
17131     fi
17132         rm -f messages.po
17133   fi
17134
17135   ac_config_commands="$ac_config_commands default-1"
17136
17137
17138
17139       if test "X$prefix" = "XNONE"; then
17140     acl_final_prefix="$ac_default_prefix"
17141   else
17142     acl_final_prefix="$prefix"
17143   fi
17144   if test "X$exec_prefix" = "XNONE"; then
17145     acl_final_exec_prefix='${prefix}'
17146   else
17147     acl_final_exec_prefix="$exec_prefix"
17148   fi
17149   acl_save_prefix="$prefix"
17150   prefix="$acl_final_prefix"
17151   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17152   prefix="$acl_save_prefix"
17153
17154
17155 # Check whether --with-gnu-ld was given.
17156 if test "${with_gnu_ld+set}" = set; then :
17157   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17158 else
17159   with_gnu_ld=no
17160 fi
17161
17162 # Prepare PATH_SEPARATOR.
17163 # The user is always right.
17164 if test "${PATH_SEPARATOR+set}" != set; then
17165   echo "#! /bin/sh" >conf$$.sh
17166   echo  "exit 0"   >>conf$$.sh
17167   chmod +x conf$$.sh
17168   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17169     PATH_SEPARATOR=';'
17170   else
17171     PATH_SEPARATOR=:
17172   fi
17173   rm -f conf$$.sh
17174 fi
17175 ac_prog=ld
17176 if test "$GCC" = yes; then
17177   # Check if gcc -print-prog-name=ld gives a path.
17178   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17179 $as_echo_n "checking for ld used by GCC... " >&6; }
17180   case $host in
17181   *-*-mingw*)
17182     # gcc leaves a trailing carriage return which upsets mingw
17183     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17184   *)
17185     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17186   esac
17187   case $ac_prog in
17188     # Accept absolute paths.
17189     [\\/]* | [A-Za-z]:[\\/]*)
17190       re_direlt='/[^/][^/]*/\.\./'
17191       # Canonicalize the path of ld
17192       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17193       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17194         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17195       done
17196       test -z "$LD" && LD="$ac_prog"
17197       ;;
17198   "")
17199     # If it fails, then pretend we aren't using GCC.
17200     ac_prog=ld
17201     ;;
17202   *)
17203     # If it is relative, then search for the first ld in PATH.
17204     with_gnu_ld=unknown
17205     ;;
17206   esac
17207 elif test "$with_gnu_ld" = yes; then
17208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17209 $as_echo_n "checking for GNU ld... " >&6; }
17210 else
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17212 $as_echo_n "checking for non-GNU ld... " >&6; }
17213 fi
17214 if test "${acl_cv_path_LD+set}" = set; then :
17215   $as_echo_n "(cached) " >&6
17216 else
17217   if test -z "$LD"; then
17218   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17219   for ac_dir in $PATH; do
17220     test -z "$ac_dir" && ac_dir=.
17221     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17222       acl_cv_path_LD="$ac_dir/$ac_prog"
17223       # Check to see if the program is GNU ld.  I'd rather use --version,
17224       # but apparently some GNU ld's only accept -v.
17225       # Break only if it was the GNU/non-GNU ld that we prefer.
17226       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17227       *GNU* | *'with BFD'*)
17228         test "$with_gnu_ld" != no && break ;;
17229       *)
17230         test "$with_gnu_ld" != yes && break ;;
17231       esac
17232     fi
17233   done
17234   IFS="$ac_save_ifs"
17235 else
17236   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17237 fi
17238 fi
17239
17240 LD="$acl_cv_path_LD"
17241 if test -n "$LD"; then
17242   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17243 $as_echo "$LD" >&6; }
17244 else
17245   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17246 $as_echo "no" >&6; }
17247 fi
17248 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17250 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17251 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
17252   $as_echo_n "(cached) " >&6
17253 else
17254   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17255 case `$LD -v 2>&1 </dev/null` in
17256 *GNU* | *'with BFD'*)
17257   acl_cv_prog_gnu_ld=yes ;;
17258 *)
17259   acl_cv_prog_gnu_ld=no ;;
17260 esac
17261 fi
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17263 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17264 with_gnu_ld=$acl_cv_prog_gnu_ld
17265
17266
17267
17268
17269                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17270 $as_echo_n "checking for shared library run path origin... " >&6; }
17271 if test "${acl_cv_rpath+set}" = set; then :
17272   $as_echo_n "(cached) " >&6
17273 else
17274
17275     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17276     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17277     . ./conftest.sh
17278     rm -f ./conftest.sh
17279     acl_cv_rpath=done
17280
17281 fi
17282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17283 $as_echo "$acl_cv_rpath" >&6; }
17284   wl="$acl_cv_wl"
17285   libext="$acl_cv_libext"
17286   shlibext="$acl_cv_shlibext"
17287   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17288   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17289   hardcode_direct="$acl_cv_hardcode_direct"
17290   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17291     # Check whether --enable-rpath was given.
17292 if test "${enable_rpath+set}" = set; then :
17293   enableval=$enable_rpath; :
17294 else
17295   enable_rpath=yes
17296 fi
17297
17298
17299
17300
17301
17302
17303
17304
17305     use_additional=yes
17306
17307   acl_save_prefix="$prefix"
17308   prefix="$acl_final_prefix"
17309   acl_save_exec_prefix="$exec_prefix"
17310   exec_prefix="$acl_final_exec_prefix"
17311
17312     eval additional_includedir=\"$includedir\"
17313     eval additional_libdir=\"$libdir\"
17314
17315   exec_prefix="$acl_save_exec_prefix"
17316   prefix="$acl_save_prefix"
17317
17318
17319 # Check whether --with-libiconv-prefix was given.
17320 if test "${with_libiconv_prefix+set}" = set; then :
17321   withval=$with_libiconv_prefix;
17322     if test "X$withval" = "Xno"; then
17323       use_additional=no
17324     else
17325       if test "X$withval" = "X"; then
17326
17327   acl_save_prefix="$prefix"
17328   prefix="$acl_final_prefix"
17329   acl_save_exec_prefix="$exec_prefix"
17330   exec_prefix="$acl_final_exec_prefix"
17331
17332           eval additional_includedir=\"$includedir\"
17333           eval additional_libdir=\"$libdir\"
17334
17335   exec_prefix="$acl_save_exec_prefix"
17336   prefix="$acl_save_prefix"
17337
17338       else
17339         additional_includedir="$withval/include"
17340         additional_libdir="$withval/lib"
17341       fi
17342     fi
17343
17344 fi
17345
17346       LIBICONV=
17347   LTLIBICONV=
17348   INCICONV=
17349   rpathdirs=
17350   ltrpathdirs=
17351   names_already_handled=
17352   names_next_round='iconv '
17353   while test -n "$names_next_round"; do
17354     names_this_round="$names_next_round"
17355     names_next_round=
17356     for name in $names_this_round; do
17357       already_handled=
17358       for n in $names_already_handled; do
17359         if test "$n" = "$name"; then
17360           already_handled=yes
17361           break
17362         fi
17363       done
17364       if test -z "$already_handled"; then
17365         names_already_handled="$names_already_handled $name"
17366                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17367         eval value=\"\$HAVE_LIB$uppername\"
17368         if test -n "$value"; then
17369           if test "$value" = yes; then
17370             eval value=\"\$LIB$uppername\"
17371             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17372             eval value=\"\$LTLIB$uppername\"
17373             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17374           else
17375                                     :
17376           fi
17377         else
17378                               found_dir=
17379           found_la=
17380           found_so=
17381           found_a=
17382           if test $use_additional = yes; then
17383             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17384               found_dir="$additional_libdir"
17385               found_so="$additional_libdir/lib$name.$shlibext"
17386               if test -f "$additional_libdir/lib$name.la"; then
17387                 found_la="$additional_libdir/lib$name.la"
17388               fi
17389             else
17390               if test -f "$additional_libdir/lib$name.$libext"; then
17391                 found_dir="$additional_libdir"
17392                 found_a="$additional_libdir/lib$name.$libext"
17393                 if test -f "$additional_libdir/lib$name.la"; then
17394                   found_la="$additional_libdir/lib$name.la"
17395                 fi
17396               fi
17397             fi
17398           fi
17399           if test "X$found_dir" = "X"; then
17400             for x in $LDFLAGS $LTLIBICONV; do
17401
17402   acl_save_prefix="$prefix"
17403   prefix="$acl_final_prefix"
17404   acl_save_exec_prefix="$exec_prefix"
17405   exec_prefix="$acl_final_exec_prefix"
17406   eval x=\"$x\"
17407   exec_prefix="$acl_save_exec_prefix"
17408   prefix="$acl_save_prefix"
17409
17410               case "$x" in
17411                 -L*)
17412                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17413                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17414                     found_dir="$dir"
17415                     found_so="$dir/lib$name.$shlibext"
17416                     if test -f "$dir/lib$name.la"; then
17417                       found_la="$dir/lib$name.la"
17418                     fi
17419                   else
17420                     if test -f "$dir/lib$name.$libext"; then
17421                       found_dir="$dir"
17422                       found_a="$dir/lib$name.$libext"
17423                       if test -f "$dir/lib$name.la"; then
17424                         found_la="$dir/lib$name.la"
17425                       fi
17426                     fi
17427                   fi
17428                   ;;
17429               esac
17430               if test "X$found_dir" != "X"; then
17431                 break
17432               fi
17433             done
17434           fi
17435           if test "X$found_dir" != "X"; then
17436                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17437             if test "X$found_so" != "X"; then
17438                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17439                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17440               else
17441                                                                                 haveit=
17442                 for x in $ltrpathdirs; do
17443                   if test "X$x" = "X$found_dir"; then
17444                     haveit=yes
17445                     break
17446                   fi
17447                 done
17448                 if test -z "$haveit"; then
17449                   ltrpathdirs="$ltrpathdirs $found_dir"
17450                 fi
17451                                 if test "$hardcode_direct" = yes; then
17452                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17453                 else
17454                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17455                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17456                                                             haveit=
17457                     for x in $rpathdirs; do
17458                       if test "X$x" = "X$found_dir"; then
17459                         haveit=yes
17460                         break
17461                       fi
17462                     done
17463                     if test -z "$haveit"; then
17464                       rpathdirs="$rpathdirs $found_dir"
17465                     fi
17466                   else
17467                                                                                 haveit=
17468                     for x in $LDFLAGS $LIBICONV; do
17469
17470   acl_save_prefix="$prefix"
17471   prefix="$acl_final_prefix"
17472   acl_save_exec_prefix="$exec_prefix"
17473   exec_prefix="$acl_final_exec_prefix"
17474   eval x=\"$x\"
17475   exec_prefix="$acl_save_exec_prefix"
17476   prefix="$acl_save_prefix"
17477
17478                       if test "X$x" = "X-L$found_dir"; then
17479                         haveit=yes
17480                         break
17481                       fi
17482                     done
17483                     if test -z "$haveit"; then
17484                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17485                     fi
17486                     if test "$hardcode_minus_L" != no; then
17487                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17488                     else
17489                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17490                     fi
17491                   fi
17492                 fi
17493               fi
17494             else
17495               if test "X$found_a" != "X"; then
17496                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17497               else
17498                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17499               fi
17500             fi
17501                         additional_includedir=
17502             case "$found_dir" in
17503               */lib | */lib/)
17504                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17505                 additional_includedir="$basedir/include"
17506                 ;;
17507             esac
17508             if test "X$additional_includedir" != "X"; then
17509                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17510                 haveit=
17511                 if test "X$additional_includedir" = "X/usr/local/include"; then
17512                   if test -n "$GCC"; then
17513                     case $host_os in
17514                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17515                     esac
17516                   fi
17517                 fi
17518                 if test -z "$haveit"; then
17519                   for x in $CPPFLAGS $INCICONV; do
17520
17521   acl_save_prefix="$prefix"
17522   prefix="$acl_final_prefix"
17523   acl_save_exec_prefix="$exec_prefix"
17524   exec_prefix="$acl_final_exec_prefix"
17525   eval x=\"$x\"
17526   exec_prefix="$acl_save_exec_prefix"
17527   prefix="$acl_save_prefix"
17528
17529                     if test "X$x" = "X-I$additional_includedir"; then
17530                       haveit=yes
17531                       break
17532                     fi
17533                   done
17534                   if test -z "$haveit"; then
17535                     if test -d "$additional_includedir"; then
17536                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17537                     fi
17538                   fi
17539                 fi
17540               fi
17541             fi
17542                         if test -n "$found_la"; then
17543                                                         save_libdir="$libdir"
17544               case "$found_la" in
17545                 */* | *\\*) . "$found_la" ;;
17546                 *) . "./$found_la" ;;
17547               esac
17548               libdir="$save_libdir"
17549                             for dep in $dependency_libs; do
17550                 case "$dep" in
17551                   -L*)
17552                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17553                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17554                       haveit=
17555                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17556                         if test -n "$GCC"; then
17557                           case $host_os in
17558                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17559                           esac
17560                         fi
17561                       fi
17562                       if test -z "$haveit"; then
17563                         haveit=
17564                         for x in $LDFLAGS $LIBICONV; do
17565
17566   acl_save_prefix="$prefix"
17567   prefix="$acl_final_prefix"
17568   acl_save_exec_prefix="$exec_prefix"
17569   exec_prefix="$acl_final_exec_prefix"
17570   eval x=\"$x\"
17571   exec_prefix="$acl_save_exec_prefix"
17572   prefix="$acl_save_prefix"
17573
17574                           if test "X$x" = "X-L$additional_libdir"; then
17575                             haveit=yes
17576                             break
17577                           fi
17578                         done
17579                         if test -z "$haveit"; then
17580                           if test -d "$additional_libdir"; then
17581                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17582                           fi
17583                         fi
17584                         haveit=
17585                         for x in $LDFLAGS $LTLIBICONV; do
17586
17587   acl_save_prefix="$prefix"
17588   prefix="$acl_final_prefix"
17589   acl_save_exec_prefix="$exec_prefix"
17590   exec_prefix="$acl_final_exec_prefix"
17591   eval x=\"$x\"
17592   exec_prefix="$acl_save_exec_prefix"
17593   prefix="$acl_save_prefix"
17594
17595                           if test "X$x" = "X-L$additional_libdir"; then
17596                             haveit=yes
17597                             break
17598                           fi
17599                         done
17600                         if test -z "$haveit"; then
17601                           if test -d "$additional_libdir"; then
17602                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17603                           fi
17604                         fi
17605                       fi
17606                     fi
17607                     ;;
17608                   -R*)
17609                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17610                     if test "$enable_rpath" != no; then
17611                                                                   haveit=
17612                       for x in $rpathdirs; do
17613                         if test "X$x" = "X$dir"; then
17614                           haveit=yes
17615                           break
17616                         fi
17617                       done
17618                       if test -z "$haveit"; then
17619                         rpathdirs="$rpathdirs $dir"
17620                       fi
17621                                                                   haveit=
17622                       for x in $ltrpathdirs; do
17623                         if test "X$x" = "X$dir"; then
17624                           haveit=yes
17625                           break
17626                         fi
17627                       done
17628                       if test -z "$haveit"; then
17629                         ltrpathdirs="$ltrpathdirs $dir"
17630                       fi
17631                     fi
17632                     ;;
17633                   -l*)
17634                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
17635                     ;;
17636                   *.la)
17637                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
17638                     ;;
17639                   *)
17640                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
17641                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
17642                     ;;
17643                 esac
17644               done
17645             fi
17646           else
17647                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17648             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
17649           fi
17650         fi
17651       fi
17652     done
17653   done
17654   if test "X$rpathdirs" != "X"; then
17655     if test -n "$hardcode_libdir_separator"; then
17656                         alldirs=
17657       for found_dir in $rpathdirs; do
17658         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
17659       done
17660             acl_save_libdir="$libdir"
17661       libdir="$alldirs"
17662       eval flag=\"$hardcode_libdir_flag_spec\"
17663       libdir="$acl_save_libdir"
17664       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17665     else
17666             for found_dir in $rpathdirs; do
17667         acl_save_libdir="$libdir"
17668         libdir="$found_dir"
17669         eval flag=\"$hardcode_libdir_flag_spec\"
17670         libdir="$acl_save_libdir"
17671         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
17672       done
17673     fi
17674   fi
17675   if test "X$ltrpathdirs" != "X"; then
17676             for found_dir in $ltrpathdirs; do
17677       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
17678     done
17679   fi
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695
17696
17697
17698     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
17699 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
17700 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
17701   $as_echo_n "(cached) " >&6
17702 else
17703   gt_save_CPPFLAGS="$CPPFLAGS"
17704      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17705      gt_save_LIBS="$LIBS"
17706      LIBS="$LIBS -framework CoreFoundation"
17707      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17708 /* end confdefs.h.  */
17709 #include <CFPreferences.h>
17710 int
17711 main ()
17712 {
17713 CFPreferencesCopyAppValue(NULL, NULL)
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 if ac_fn_c_try_link "$LINENO"; then :
17719   gt_cv_func_CFPreferencesCopyAppValue=yes
17720 else
17721   gt_cv_func_CFPreferencesCopyAppValue=no
17722 fi
17723 rm -f core conftest.err conftest.$ac_objext \
17724     conftest$ac_exeext conftest.$ac_ext
17725      CPPFLAGS="$gt_save_CPPFLAGS"
17726      LIBS="$gt_save_LIBS"
17727 fi
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
17729 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
17730   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
17731
17732 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
17733
17734   fi
17735     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
17736 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
17737 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
17738   $as_echo_n "(cached) " >&6
17739 else
17740   gt_save_CPPFLAGS="$CPPFLAGS"
17741      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
17742      gt_save_LIBS="$LIBS"
17743      LIBS="$LIBS -framework CoreFoundation"
17744      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17745 /* end confdefs.h.  */
17746 #include <CFLocale.h>
17747 int
17748 main ()
17749 {
17750 CFLocaleCopyCurrent();
17751   ;
17752   return 0;
17753 }
17754 _ACEOF
17755 if ac_fn_c_try_link "$LINENO"; then :
17756   gt_cv_func_CFLocaleCopyCurrent=yes
17757 else
17758   gt_cv_func_CFLocaleCopyCurrent=no
17759 fi
17760 rm -f core conftest.err conftest.$ac_objext \
17761     conftest$ac_exeext conftest.$ac_ext
17762      CPPFLAGS="$gt_save_CPPFLAGS"
17763      LIBS="$gt_save_LIBS"
17764 fi
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
17766 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
17767   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17768
17769 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
17770
17771   fi
17772   INTL_MACOSX_LIBS=
17773   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
17774     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
17775   fi
17776
17777
17778
17779
17780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17781 $as_echo_n "checking whether NLS is requested... " >&6; }
17782     # Check whether --enable-nls was given.
17783 if test "${enable_nls+set}" = set; then :
17784   enableval=$enable_nls; USE_NLS=$enableval
17785 else
17786   USE_NLS=yes
17787 fi
17788
17789   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17790 $as_echo "$USE_NLS" >&6; }
17791
17792
17793
17794
17795   LIBINTL=
17796   LTLIBINTL=
17797   POSUB=
17798
17799     if test "$USE_NLS" = "yes"; then
17800     gt_use_preinstalled_gnugettext=no
17801
17802
17803
17804
17805
17806
17807         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
17808 $as_echo_n "checking for GNU gettext in libc... " >&6; }
17809 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
17810   $as_echo_n "(cached) " >&6
17811 else
17812   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17813 /* end confdefs.h.  */
17814 #include <libintl.h>
17815 extern int _nl_msg_cat_cntr;
17816 extern int *_nl_domain_bindings;
17817 int
17818 main ()
17819 {
17820 bindtextdomain ("", "");
17821 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 if ac_fn_c_try_link "$LINENO"; then :
17827   gt_cv_func_gnugettext1_libc=yes
17828 else
17829   gt_cv_func_gnugettext1_libc=no
17830 fi
17831 rm -f core conftest.err conftest.$ac_objext \
17832     conftest$ac_exeext conftest.$ac_ext
17833 fi
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
17835 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
17836
17837         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
17838
17839
17840
17841
17842
17843           am_save_CPPFLAGS="$CPPFLAGS"
17844
17845   for element in $INCICONV; do
17846     haveit=
17847     for x in $CPPFLAGS; do
17848
17849   acl_save_prefix="$prefix"
17850   prefix="$acl_final_prefix"
17851   acl_save_exec_prefix="$exec_prefix"
17852   exec_prefix="$acl_final_exec_prefix"
17853   eval x=\"$x\"
17854   exec_prefix="$acl_save_exec_prefix"
17855   prefix="$acl_save_prefix"
17856
17857       if test "X$x" = "X$element"; then
17858         haveit=yes
17859         break
17860       fi
17861     done
17862     if test -z "$haveit"; then
17863       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
17864     fi
17865   done
17866
17867
17868   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
17869 $as_echo_n "checking for iconv... " >&6; }
17870 if test "${am_cv_func_iconv+set}" = set; then :
17871   $as_echo_n "(cached) " >&6
17872 else
17873
17874     am_cv_func_iconv="no, consider installing GNU libiconv"
17875     am_cv_lib_iconv=no
17876     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17877 /* end confdefs.h.  */
17878 #include <stdlib.h>
17879 #include <iconv.h>
17880 int
17881 main ()
17882 {
17883 iconv_t cd = iconv_open("","");
17884        iconv(cd,NULL,NULL,NULL,NULL);
17885        iconv_close(cd);
17886   ;
17887   return 0;
17888 }
17889 _ACEOF
17890 if ac_fn_c_try_link "$LINENO"; then :
17891   am_cv_func_iconv=yes
17892 fi
17893 rm -f core conftest.err conftest.$ac_objext \
17894     conftest$ac_exeext conftest.$ac_ext
17895     if test "$am_cv_func_iconv" != yes; then
17896       am_save_LIBS="$LIBS"
17897       LIBS="$LIBS $LIBICONV"
17898       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17899 /* end confdefs.h.  */
17900 #include <stdlib.h>
17901 #include <iconv.h>
17902 int
17903 main ()
17904 {
17905 iconv_t cd = iconv_open("","");
17906          iconv(cd,NULL,NULL,NULL,NULL);
17907          iconv_close(cd);
17908   ;
17909   return 0;
17910 }
17911 _ACEOF
17912 if ac_fn_c_try_link "$LINENO"; then :
17913   am_cv_lib_iconv=yes
17914         am_cv_func_iconv=yes
17915 fi
17916 rm -f core conftest.err conftest.$ac_objext \
17917     conftest$ac_exeext conftest.$ac_ext
17918       LIBS="$am_save_LIBS"
17919     fi
17920
17921 fi
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
17923 $as_echo "$am_cv_func_iconv" >&6; }
17924   if test "$am_cv_func_iconv" = yes; then
17925
17926 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
17927
17928   fi
17929   if test "$am_cv_lib_iconv" = yes; then
17930     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
17931 $as_echo_n "checking how to link with libiconv... " >&6; }
17932     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
17933 $as_echo "$LIBICONV" >&6; }
17934   else
17935             CPPFLAGS="$am_save_CPPFLAGS"
17936     LIBICONV=
17937     LTLIBICONV=
17938   fi
17939
17940
17941
17942
17943
17944
17945     use_additional=yes
17946
17947   acl_save_prefix="$prefix"
17948   prefix="$acl_final_prefix"
17949   acl_save_exec_prefix="$exec_prefix"
17950   exec_prefix="$acl_final_exec_prefix"
17951
17952     eval additional_includedir=\"$includedir\"
17953     eval additional_libdir=\"$libdir\"
17954
17955   exec_prefix="$acl_save_exec_prefix"
17956   prefix="$acl_save_prefix"
17957
17958
17959 # Check whether --with-libintl-prefix was given.
17960 if test "${with_libintl_prefix+set}" = set; then :
17961   withval=$with_libintl_prefix;
17962     if test "X$withval" = "Xno"; then
17963       use_additional=no
17964     else
17965       if test "X$withval" = "X"; then
17966
17967   acl_save_prefix="$prefix"
17968   prefix="$acl_final_prefix"
17969   acl_save_exec_prefix="$exec_prefix"
17970   exec_prefix="$acl_final_exec_prefix"
17971
17972           eval additional_includedir=\"$includedir\"
17973           eval additional_libdir=\"$libdir\"
17974
17975   exec_prefix="$acl_save_exec_prefix"
17976   prefix="$acl_save_prefix"
17977
17978       else
17979         additional_includedir="$withval/include"
17980         additional_libdir="$withval/lib"
17981       fi
17982     fi
17983
17984 fi
17985
17986       LIBINTL=
17987   LTLIBINTL=
17988   INCINTL=
17989   rpathdirs=
17990   ltrpathdirs=
17991   names_already_handled=
17992   names_next_round='intl '
17993   while test -n "$names_next_round"; do
17994     names_this_round="$names_next_round"
17995     names_next_round=
17996     for name in $names_this_round; do
17997       already_handled=
17998       for n in $names_already_handled; do
17999         if test "$n" = "$name"; then
18000           already_handled=yes
18001           break
18002         fi
18003       done
18004       if test -z "$already_handled"; then
18005         names_already_handled="$names_already_handled $name"
18006                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18007         eval value=\"\$HAVE_LIB$uppername\"
18008         if test -n "$value"; then
18009           if test "$value" = yes; then
18010             eval value=\"\$LIB$uppername\"
18011             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18012             eval value=\"\$LTLIB$uppername\"
18013             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18014           else
18015                                     :
18016           fi
18017         else
18018                               found_dir=
18019           found_la=
18020           found_so=
18021           found_a=
18022           if test $use_additional = yes; then
18023             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18024               found_dir="$additional_libdir"
18025               found_so="$additional_libdir/lib$name.$shlibext"
18026               if test -f "$additional_libdir/lib$name.la"; then
18027                 found_la="$additional_libdir/lib$name.la"
18028               fi
18029             else
18030               if test -f "$additional_libdir/lib$name.$libext"; then
18031                 found_dir="$additional_libdir"
18032                 found_a="$additional_libdir/lib$name.$libext"
18033                 if test -f "$additional_libdir/lib$name.la"; then
18034                   found_la="$additional_libdir/lib$name.la"
18035                 fi
18036               fi
18037             fi
18038           fi
18039           if test "X$found_dir" = "X"; then
18040             for x in $LDFLAGS $LTLIBINTL; do
18041
18042   acl_save_prefix="$prefix"
18043   prefix="$acl_final_prefix"
18044   acl_save_exec_prefix="$exec_prefix"
18045   exec_prefix="$acl_final_exec_prefix"
18046   eval x=\"$x\"
18047   exec_prefix="$acl_save_exec_prefix"
18048   prefix="$acl_save_prefix"
18049
18050               case "$x" in
18051                 -L*)
18052                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18053                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18054                     found_dir="$dir"
18055                     found_so="$dir/lib$name.$shlibext"
18056                     if test -f "$dir/lib$name.la"; then
18057                       found_la="$dir/lib$name.la"
18058                     fi
18059                   else
18060                     if test -f "$dir/lib$name.$libext"; then
18061                       found_dir="$dir"
18062                       found_a="$dir/lib$name.$libext"
18063                       if test -f "$dir/lib$name.la"; then
18064                         found_la="$dir/lib$name.la"
18065                       fi
18066                     fi
18067                   fi
18068                   ;;
18069               esac
18070               if test "X$found_dir" != "X"; then
18071                 break
18072               fi
18073             done
18074           fi
18075           if test "X$found_dir" != "X"; then
18076                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18077             if test "X$found_so" != "X"; then
18078                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18079                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18080               else
18081                                                                                 haveit=
18082                 for x in $ltrpathdirs; do
18083                   if test "X$x" = "X$found_dir"; then
18084                     haveit=yes
18085                     break
18086                   fi
18087                 done
18088                 if test -z "$haveit"; then
18089                   ltrpathdirs="$ltrpathdirs $found_dir"
18090                 fi
18091                                 if test "$hardcode_direct" = yes; then
18092                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18093                 else
18094                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18095                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18096                                                             haveit=
18097                     for x in $rpathdirs; do
18098                       if test "X$x" = "X$found_dir"; then
18099                         haveit=yes
18100                         break
18101                       fi
18102                     done
18103                     if test -z "$haveit"; then
18104                       rpathdirs="$rpathdirs $found_dir"
18105                     fi
18106                   else
18107                                                                                 haveit=
18108                     for x in $LDFLAGS $LIBINTL; do
18109
18110   acl_save_prefix="$prefix"
18111   prefix="$acl_final_prefix"
18112   acl_save_exec_prefix="$exec_prefix"
18113   exec_prefix="$acl_final_exec_prefix"
18114   eval x=\"$x\"
18115   exec_prefix="$acl_save_exec_prefix"
18116   prefix="$acl_save_prefix"
18117
18118                       if test "X$x" = "X-L$found_dir"; then
18119                         haveit=yes
18120                         break
18121                       fi
18122                     done
18123                     if test -z "$haveit"; then
18124                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18125                     fi
18126                     if test "$hardcode_minus_L" != no; then
18127                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18128                     else
18129                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18130                     fi
18131                   fi
18132                 fi
18133               fi
18134             else
18135               if test "X$found_a" != "X"; then
18136                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18137               else
18138                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18139               fi
18140             fi
18141                         additional_includedir=
18142             case "$found_dir" in
18143               */lib | */lib/)
18144                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18145                 additional_includedir="$basedir/include"
18146                 ;;
18147             esac
18148             if test "X$additional_includedir" != "X"; then
18149                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18150                 haveit=
18151                 if test "X$additional_includedir" = "X/usr/local/include"; then
18152                   if test -n "$GCC"; then
18153                     case $host_os in
18154                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18155                     esac
18156                   fi
18157                 fi
18158                 if test -z "$haveit"; then
18159                   for x in $CPPFLAGS $INCINTL; do
18160
18161   acl_save_prefix="$prefix"
18162   prefix="$acl_final_prefix"
18163   acl_save_exec_prefix="$exec_prefix"
18164   exec_prefix="$acl_final_exec_prefix"
18165   eval x=\"$x\"
18166   exec_prefix="$acl_save_exec_prefix"
18167   prefix="$acl_save_prefix"
18168
18169                     if test "X$x" = "X-I$additional_includedir"; then
18170                       haveit=yes
18171                       break
18172                     fi
18173                   done
18174                   if test -z "$haveit"; then
18175                     if test -d "$additional_includedir"; then
18176                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18177                     fi
18178                   fi
18179                 fi
18180               fi
18181             fi
18182                         if test -n "$found_la"; then
18183                                                         save_libdir="$libdir"
18184               case "$found_la" in
18185                 */* | *\\*) . "$found_la" ;;
18186                 *) . "./$found_la" ;;
18187               esac
18188               libdir="$save_libdir"
18189                             for dep in $dependency_libs; do
18190                 case "$dep" in
18191                   -L*)
18192                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18193                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18194                       haveit=
18195                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18196                         if test -n "$GCC"; then
18197                           case $host_os in
18198                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18199                           esac
18200                         fi
18201                       fi
18202                       if test -z "$haveit"; then
18203                         haveit=
18204                         for x in $LDFLAGS $LIBINTL; do
18205
18206   acl_save_prefix="$prefix"
18207   prefix="$acl_final_prefix"
18208   acl_save_exec_prefix="$exec_prefix"
18209   exec_prefix="$acl_final_exec_prefix"
18210   eval x=\"$x\"
18211   exec_prefix="$acl_save_exec_prefix"
18212   prefix="$acl_save_prefix"
18213
18214                           if test "X$x" = "X-L$additional_libdir"; then
18215                             haveit=yes
18216                             break
18217                           fi
18218                         done
18219                         if test -z "$haveit"; then
18220                           if test -d "$additional_libdir"; then
18221                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18222                           fi
18223                         fi
18224                         haveit=
18225                         for x in $LDFLAGS $LTLIBINTL; do
18226
18227   acl_save_prefix="$prefix"
18228   prefix="$acl_final_prefix"
18229   acl_save_exec_prefix="$exec_prefix"
18230   exec_prefix="$acl_final_exec_prefix"
18231   eval x=\"$x\"
18232   exec_prefix="$acl_save_exec_prefix"
18233   prefix="$acl_save_prefix"
18234
18235                           if test "X$x" = "X-L$additional_libdir"; then
18236                             haveit=yes
18237                             break
18238                           fi
18239                         done
18240                         if test -z "$haveit"; then
18241                           if test -d "$additional_libdir"; then
18242                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18243                           fi
18244                         fi
18245                       fi
18246                     fi
18247                     ;;
18248                   -R*)
18249                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18250                     if test "$enable_rpath" != no; then
18251                                                                   haveit=
18252                       for x in $rpathdirs; do
18253                         if test "X$x" = "X$dir"; then
18254                           haveit=yes
18255                           break
18256                         fi
18257                       done
18258                       if test -z "$haveit"; then
18259                         rpathdirs="$rpathdirs $dir"
18260                       fi
18261                                                                   haveit=
18262                       for x in $ltrpathdirs; do
18263                         if test "X$x" = "X$dir"; then
18264                           haveit=yes
18265                           break
18266                         fi
18267                       done
18268                       if test -z "$haveit"; then
18269                         ltrpathdirs="$ltrpathdirs $dir"
18270                       fi
18271                     fi
18272                     ;;
18273                   -l*)
18274                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18275                     ;;
18276                   *.la)
18277                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18278                     ;;
18279                   *)
18280                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18281                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18282                     ;;
18283                 esac
18284               done
18285             fi
18286           else
18287                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18288             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18289           fi
18290         fi
18291       fi
18292     done
18293   done
18294   if test "X$rpathdirs" != "X"; then
18295     if test -n "$hardcode_libdir_separator"; then
18296                         alldirs=
18297       for found_dir in $rpathdirs; do
18298         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18299       done
18300             acl_save_libdir="$libdir"
18301       libdir="$alldirs"
18302       eval flag=\"$hardcode_libdir_flag_spec\"
18303       libdir="$acl_save_libdir"
18304       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18305     else
18306             for found_dir in $rpathdirs; do
18307         acl_save_libdir="$libdir"
18308         libdir="$found_dir"
18309         eval flag=\"$hardcode_libdir_flag_spec\"
18310         libdir="$acl_save_libdir"
18311         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18312       done
18313     fi
18314   fi
18315   if test "X$ltrpathdirs" != "X"; then
18316             for found_dir in $ltrpathdirs; do
18317       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18318     done
18319   fi
18320
18321           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18322 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18323 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
18324   $as_echo_n "(cached) " >&6
18325 else
18326   gt_save_CPPFLAGS="$CPPFLAGS"
18327             CPPFLAGS="$CPPFLAGS $INCINTL"
18328             gt_save_LIBS="$LIBS"
18329             LIBS="$LIBS $LIBINTL"
18330                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18331 /* end confdefs.h.  */
18332 #include <libintl.h>
18333 extern int _nl_msg_cat_cntr;
18334 extern
18335 #ifdef __cplusplus
18336 "C"
18337 #endif
18338 const char *_nl_expand_alias (const char *);
18339 int
18340 main ()
18341 {
18342 bindtextdomain ("", "");
18343 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18344   ;
18345   return 0;
18346 }
18347 _ACEOF
18348 if ac_fn_c_try_link "$LINENO"; then :
18349   gt_cv_func_gnugettext1_libintl=yes
18350 else
18351   gt_cv_func_gnugettext1_libintl=no
18352 fi
18353 rm -f core conftest.err conftest.$ac_objext \
18354     conftest$ac_exeext conftest.$ac_ext
18355                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18356               LIBS="$LIBS $LIBICONV"
18357               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18358 /* end confdefs.h.  */
18359 #include <libintl.h>
18360 extern int _nl_msg_cat_cntr;
18361 extern
18362 #ifdef __cplusplus
18363 "C"
18364 #endif
18365 const char *_nl_expand_alias (const char *);
18366 int
18367 main ()
18368 {
18369 bindtextdomain ("", "");
18370 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18371   ;
18372   return 0;
18373 }
18374 _ACEOF
18375 if ac_fn_c_try_link "$LINENO"; then :
18376   LIBINTL="$LIBINTL $LIBICONV"
18377                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18378                 gt_cv_func_gnugettext1_libintl=yes
18379
18380 fi
18381 rm -f core conftest.err conftest.$ac_objext \
18382     conftest$ac_exeext conftest.$ac_ext
18383             fi
18384             CPPFLAGS="$gt_save_CPPFLAGS"
18385             LIBS="$gt_save_LIBS"
18386 fi
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18388 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18389         fi
18390
18391                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18392            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18393                 && test "$PACKAGE" != gettext-runtime \
18394                 && test "$PACKAGE" != gettext-tools; }; then
18395           gt_use_preinstalled_gnugettext=yes
18396         else
18397                     LIBINTL=
18398           LTLIBINTL=
18399           INCINTL=
18400         fi
18401
18402
18403
18404     if test -n "$INTL_MACOSX_LIBS"; then
18405       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18406          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18407                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18408         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18409       fi
18410     fi
18411
18412     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18413        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18414
18415 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18416
18417     else
18418       USE_NLS=no
18419     fi
18420   fi
18421
18422   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18423 $as_echo_n "checking whether to use NLS... " >&6; }
18424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18425 $as_echo "$USE_NLS" >&6; }
18426   if test "$USE_NLS" = "yes"; then
18427     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18428 $as_echo_n "checking where the gettext function comes from... " >&6; }
18429     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18430       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18431         gt_source="external libintl"
18432       else
18433         gt_source="libc"
18434       fi
18435     else
18436       gt_source="included intl directory"
18437     fi
18438     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18439 $as_echo "$gt_source" >&6; }
18440   fi
18441
18442   if test "$USE_NLS" = "yes"; then
18443
18444     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18445       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18446         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18447 $as_echo_n "checking how to link with libintl... " >&6; }
18448         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18449 $as_echo "$LIBINTL" >&6; }
18450
18451   for element in $INCINTL; do
18452     haveit=
18453     for x in $CPPFLAGS; do
18454
18455   acl_save_prefix="$prefix"
18456   prefix="$acl_final_prefix"
18457   acl_save_exec_prefix="$exec_prefix"
18458   exec_prefix="$acl_final_exec_prefix"
18459   eval x=\"$x\"
18460   exec_prefix="$acl_save_exec_prefix"
18461   prefix="$acl_save_prefix"
18462
18463       if test "X$x" = "X$element"; then
18464         haveit=yes
18465         break
18466       fi
18467     done
18468     if test -z "$haveit"; then
18469       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18470     fi
18471   done
18472
18473       fi
18474
18475
18476 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18477
18478
18479 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18480
18481     fi
18482
18483         POSUB=po
18484   fi
18485
18486
18487
18488     INTLLIBS="$LIBINTL"
18489
18490
18491
18492
18493
18494
18495
18496 os_name=`uname -s 2>/dev/null`
18497 if test x${prefix} = xNONE ; then
18498    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18499       sysconfdir=/etc/bacula
18500    fi
18501
18502    if test `eval echo ${libdir}` = NONE/lib ; then
18503       case ${os_name} in
18504       Linux)
18505          os_processor=`uname -p 2>/dev/null`
18506          case ${os_processor} in
18507          x86_64)
18508             libdir=/usr/lib64
18509             ;;
18510          *)
18511             libdir=/usr/lib
18512             ;;
18513          esac
18514          ;;
18515       *)
18516          libdir=/usr/lib
18517          ;;
18518       esac
18519    fi
18520
18521    if test `eval echo ${includedir}` = NONE/include ; then
18522       includedir=/usr/include
18523    fi
18524
18525    if test `eval echo ${datarootdir}` = NONE/share ; then
18526       datarootdir=/usr/share
18527    fi
18528    prefix=
18529 fi
18530
18531 if test x${exec_prefix} = xNONE ; then
18532    exec_prefix=${prefix}
18533 fi
18534
18535 sysconfdir=`eval echo ${sysconfdir}`
18536 datarootdir=`eval echo ${datarootdir}`
18537 docdir=`eval echo ${docdir}`
18538 htmldir=`eval echo ${htmldir}`
18539 libdir=`eval echo ${libdir}`
18540 includedir=`eval echo ${includedir}`
18541 localedir=`eval echo ${datarootdir}/locale`
18542 cat >>confdefs.h <<_ACEOF
18543 #define SYSCONFDIR "$sysconfdir"
18544 _ACEOF
18545
18546 cat >>confdefs.h <<_ACEOF
18547 #define LOCALEDIR "$localedir"
18548 _ACEOF
18549
18550
18551 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18552    sbindir=${exec_prefix}/sbin
18553 fi
18554 sbindir=`eval echo ${sbindir}`
18555
18556 if test x$mandir = x'${prefix}/man' ; then
18557    mandir=/usr/share/man
18558 fi
18559
18560 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18561    htmldir=`eval echo ${docdir}html`
18562 fi
18563
18564 if test x$docdir = x'/usr/share/doc/' ; then
18565    docdir=`eval echo ${docdir}bacula`
18566 fi
18567
18568
18569 for ac_prog in msgfmt
18570 do
18571   # Extract the first word of "$ac_prog", so it can be a program name with args.
18572 set dummy $ac_prog; ac_word=$2
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18574 $as_echo_n "checking for $ac_word... " >&6; }
18575 if test "${ac_cv_path_MSGFMT+set}" = set; then :
18576   $as_echo_n "(cached) " >&6
18577 else
18578   case $MSGFMT in
18579   [\\/]* | ?:[\\/]*)
18580   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18581   ;;
18582   *)
18583   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18584 for as_dir in $PATH
18585 do
18586   IFS=$as_save_IFS
18587   test -z "$as_dir" && as_dir=.
18588     for ac_exec_ext in '' $ac_executable_extensions; do
18589   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18590     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18592     break 2
18593   fi
18594 done
18595   done
18596 IFS=$as_save_IFS
18597
18598   ;;
18599 esac
18600 fi
18601 MSGFMT=$ac_cv_path_MSGFMT
18602 if test -n "$MSGFMT"; then
18603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18604 $as_echo "$MSGFMT" >&6; }
18605 else
18606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18607 $as_echo "no" >&6; }
18608 fi
18609
18610
18611   test -n "$MSGFMT" && break
18612 done
18613 test -n "$MSGFMT" || MSGFMT="no"
18614
18615 if test "$MSGFMT" = "no"
18616 then
18617    echo 'msgfmt program not found, disabling NLS !'
18618    USE_NLS=no
18619    USE_INCLUDED_LIBINTL=no
18620 #else
18621
18622     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18623 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18624 if test "${ac_cv_gnu_library_2+set}" = set; then :
18625   $as_echo_n "(cached) " >&6
18626 else
18627   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18628 /* end confdefs.h.  */
18629
18630 #include <features.h>
18631 #ifdef __GNU_LIBRARY__
18632  #if (__GLIBC__ >= 2)
18633   Lucky GNU user
18634  #endif
18635 #endif
18636
18637 _ACEOF
18638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18639   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
18640   ac_cv_gnu_library_2=yes
18641 else
18642   ac_cv_gnu_library_2=no
18643 fi
18644 rm -f conftest*
18645
18646
18647
18648 fi
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
18650 $as_echo "$ac_cv_gnu_library_2" >&6; }
18651
18652     GLIBC2="$ac_cv_gnu_library_2"
18653
18654
18655 if test -n "$ac_tool_prefix"; then
18656   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
18657 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18659 $as_echo_n "checking for $ac_word... " >&6; }
18660 if test "${ac_cv_prog_RANLIB+set}" = set; then :
18661   $as_echo_n "(cached) " >&6
18662 else
18663   if test -n "$RANLIB"; then
18664   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
18665 else
18666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18667 for as_dir in $PATH
18668 do
18669   IFS=$as_save_IFS
18670   test -z "$as_dir" && as_dir=.
18671     for ac_exec_ext in '' $ac_executable_extensions; do
18672   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18673     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
18674     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18675     break 2
18676   fi
18677 done
18678   done
18679 IFS=$as_save_IFS
18680
18681 fi
18682 fi
18683 RANLIB=$ac_cv_prog_RANLIB
18684 if test -n "$RANLIB"; then
18685   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
18686 $as_echo "$RANLIB" >&6; }
18687 else
18688   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18689 $as_echo "no" >&6; }
18690 fi
18691
18692
18693 fi
18694 if test -z "$ac_cv_prog_RANLIB"; then
18695   ac_ct_RANLIB=$RANLIB
18696   # Extract the first word of "ranlib", so it can be a program name with args.
18697 set dummy ranlib; ac_word=$2
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18699 $as_echo_n "checking for $ac_word... " >&6; }
18700 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
18701   $as_echo_n "(cached) " >&6
18702 else
18703   if test -n "$ac_ct_RANLIB"; then
18704   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
18705 else
18706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18707 for as_dir in $PATH
18708 do
18709   IFS=$as_save_IFS
18710   test -z "$as_dir" && as_dir=.
18711     for ac_exec_ext in '' $ac_executable_extensions; do
18712   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18713     ac_cv_prog_ac_ct_RANLIB="ranlib"
18714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18715     break 2
18716   fi
18717 done
18718   done
18719 IFS=$as_save_IFS
18720
18721 fi
18722 fi
18723 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
18724 if test -n "$ac_ct_RANLIB"; then
18725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
18726 $as_echo "$ac_ct_RANLIB" >&6; }
18727 else
18728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18729 $as_echo "no" >&6; }
18730 fi
18731
18732   if test "x$ac_ct_RANLIB" = x; then
18733     RANLIB=":"
18734   else
18735     case $cross_compiling:$ac_tool_warned in
18736 yes:)
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18739 ac_tool_warned=yes ;;
18740 esac
18741     RANLIB=$ac_ct_RANLIB
18742   fi
18743 else
18744   RANLIB="$ac_cv_prog_RANLIB"
18745 fi
18746
18747
18748         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
18749 $as_echo_n "checking for strerror in -lcposix... " >&6; }
18750 if test "${ac_cv_lib_cposix_strerror+set}" = set; then :
18751   $as_echo_n "(cached) " >&6
18752 else
18753   ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lcposix  $LIBS"
18755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756 /* end confdefs.h.  */
18757
18758 /* Override any GCC internal prototype to avoid an error.
18759    Use char because int might match the return type of a GCC
18760    builtin and then its argument prototype would still apply.  */
18761 #ifdef __cplusplus
18762 extern "C"
18763 #endif
18764 char strerror ();
18765 int
18766 main ()
18767 {
18768 return strerror ();
18769   ;
18770   return 0;
18771 }
18772 _ACEOF
18773 if ac_fn_c_try_link "$LINENO"; then :
18774   ac_cv_lib_cposix_strerror=yes
18775 else
18776   ac_cv_lib_cposix_strerror=no
18777 fi
18778 rm -f core conftest.err conftest.$ac_objext \
18779     conftest$ac_exeext conftest.$ac_ext
18780 LIBS=$ac_check_lib_save_LIBS
18781 fi
18782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
18783 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
18784 if test "x$ac_cv_lib_cposix_strerror" = x""yes; then :
18785   LIBS="$LIBS -lcposix"
18786 fi
18787
18788
18789
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18791 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18792 if test "${ac_cv_c_const+set}" = set; then :
18793   $as_echo_n "(cached) " >&6
18794 else
18795   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h.  */
18797
18798 int
18799 main ()
18800 {
18801 /* FIXME: Include the comments suggested by Paul. */
18802 #ifndef __cplusplus
18803   /* Ultrix mips cc rejects this.  */
18804   typedef int charset[2];
18805   const charset cs;
18806   /* SunOS 4.1.1 cc rejects this.  */
18807   char const *const *pcpcc;
18808   char **ppc;
18809   /* NEC SVR4.0.2 mips cc rejects this.  */
18810   struct point {int x, y;};
18811   static struct point const zero = {0,0};
18812   /* AIX XL C 1.02.0.0 rejects this.
18813      It does not let you subtract one const X* pointer from another in
18814      an arm of an if-expression whose if-part is not a constant
18815      expression */
18816   const char *g = "string";
18817   pcpcc = &g + (g ? g-g : 0);
18818   /* HPUX 7.0 cc rejects these. */
18819   ++pcpcc;
18820   ppc = (char**) pcpcc;
18821   pcpcc = (char const *const *) ppc;
18822   { /* SCO 3.2v4 cc rejects this.  */
18823     char *t;
18824     char const *s = 0 ? (char *) 0 : (char const *) 0;
18825
18826     *t++ = 0;
18827     if (s) return 0;
18828   }
18829   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
18830     int x[] = {25, 17};
18831     const int *foo = &x[0];
18832     ++foo;
18833   }
18834   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
18835     typedef const int *iptr;
18836     iptr p = 0;
18837     ++p;
18838   }
18839   { /* AIX XL C 1.02.0.0 rejects this saying
18840        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
18841     struct s { int j; const int *ap[3]; };
18842     struct s *b; b->j = 5;
18843   }
18844   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
18845     const int foo = 10;
18846     if (!foo) return 0;
18847   }
18848   return !cs[0] && !zero.x;
18849 #endif
18850
18851   ;
18852   return 0;
18853 }
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856   ac_cv_c_const=yes
18857 else
18858   ac_cv_c_const=no
18859 fi
18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18861 fi
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
18863 $as_echo "$ac_cv_c_const" >&6; }
18864 if test $ac_cv_c_const = no; then
18865
18866 $as_echo "#define const /**/" >>confdefs.h
18867
18868 fi
18869
18870
18871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
18872 $as_echo_n "checking for signed... " >&6; }
18873 if test "${bh_cv_c_signed+set}" = set; then :
18874   $as_echo_n "(cached) " >&6
18875 else
18876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h.  */
18878
18879 int
18880 main ()
18881 {
18882 signed char x;
18883   ;
18884   return 0;
18885 }
18886 _ACEOF
18887 if ac_fn_c_try_compile "$LINENO"; then :
18888   bh_cv_c_signed=yes
18889 else
18890   bh_cv_c_signed=no
18891 fi
18892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18893 fi
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
18895 $as_echo "$bh_cv_c_signed" >&6; }
18896   if test $bh_cv_c_signed = no; then
18897
18898 $as_echo "#define signed /**/" >>confdefs.h
18899
18900   fi
18901
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
18903 $as_echo_n "checking for inline... " >&6; }
18904 if test "${ac_cv_c_inline+set}" = set; then :
18905   $as_echo_n "(cached) " >&6
18906 else
18907   ac_cv_c_inline=no
18908 for ac_kw in inline __inline__ __inline; do
18909   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18910 /* end confdefs.h.  */
18911 #ifndef __cplusplus
18912 typedef int foo_t;
18913 static $ac_kw foo_t static_foo () {return 0; }
18914 $ac_kw foo_t foo () {return 0; }
18915 #endif
18916
18917 _ACEOF
18918 if ac_fn_c_try_compile "$LINENO"; then :
18919   ac_cv_c_inline=$ac_kw
18920 fi
18921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18922   test "$ac_cv_c_inline" != no && break
18923 done
18924
18925 fi
18926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
18927 $as_echo "$ac_cv_c_inline" >&6; }
18928
18929 case $ac_cv_c_inline in
18930   inline | yes) ;;
18931   *)
18932     case $ac_cv_c_inline in
18933       no) ac_val=;;
18934       *) ac_val=$ac_cv_c_inline;;
18935     esac
18936     cat >>confdefs.h <<_ACEOF
18937 #ifndef __cplusplus
18938 #define inline $ac_val
18939 #endif
18940 _ACEOF
18941     ;;
18942 esac
18943
18944 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
18945 if test "x$ac_cv_type_off_t" = x""yes; then :
18946
18947 else
18948
18949 cat >>confdefs.h <<_ACEOF
18950 #define off_t long int
18951 _ACEOF
18952
18953 fi
18954
18955 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
18956 if test "x$ac_cv_type_size_t" = x""yes; then :
18957
18958 else
18959
18960 cat >>confdefs.h <<_ACEOF
18961 #define size_t unsigned int
18962 _ACEOF
18963
18964 fi
18965
18966
18967   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
18968 $as_echo_n "checking for long long... " >&6; }
18969 if test "${ac_cv_type_long_long+set}" = set; then :
18970   $as_echo_n "(cached) " >&6
18971 else
18972   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18973 /* end confdefs.h.  */
18974 long long ll = 1LL; int i = 63;
18975 int
18976 main ()
18977 {
18978 long long llmax = (long long) -1;
18979      return ll << i | ll >> i | llmax / ll | llmax % ll;
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 if ac_fn_c_try_link "$LINENO"; then :
18985   ac_cv_type_long_long=yes
18986 else
18987   ac_cv_type_long_long=no
18988 fi
18989 rm -f core conftest.err conftest.$ac_objext \
18990     conftest$ac_exeext conftest.$ac_ext
18991 fi
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
18993 $as_echo "$ac_cv_type_long_long" >&6; }
18994   if test $ac_cv_type_long_long = yes; then
18995
18996 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
18997
18998   fi
18999
19000
19001   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19002 $as_echo_n "checking for long double... " >&6; }
19003 if test "${gt_cv_c_long_double+set}" = set; then :
19004   $as_echo_n "(cached) " >&6
19005 else
19006   if test "$GCC" = yes; then
19007        gt_cv_c_long_double=yes
19008      else
19009        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19010 /* end confdefs.h.  */
19011
19012          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19013          long double foo = 0.0;
19014          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19015          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19016
19017 int
19018 main ()
19019 {
19020
19021   ;
19022   return 0;
19023 }
19024 _ACEOF
19025 if ac_fn_c_try_compile "$LINENO"; then :
19026   gt_cv_c_long_double=yes
19027 else
19028   gt_cv_c_long_double=no
19029 fi
19030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19031      fi
19032 fi
19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19034 $as_echo "$gt_cv_c_long_double" >&6; }
19035   if test $gt_cv_c_long_double = yes; then
19036
19037 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19038
19039   fi
19040
19041
19042   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19043 $as_echo_n "checking for wchar_t... " >&6; }
19044 if test "${gt_cv_c_wchar_t+set}" = set; then :
19045   $as_echo_n "(cached) " >&6
19046 else
19047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19048 /* end confdefs.h.  */
19049 #include <stddef.h>
19050        wchar_t foo = (wchar_t)'\0';
19051 int
19052 main ()
19053 {
19054
19055   ;
19056   return 0;
19057 }
19058 _ACEOF
19059 if ac_fn_c_try_compile "$LINENO"; then :
19060   gt_cv_c_wchar_t=yes
19061 else
19062   gt_cv_c_wchar_t=no
19063 fi
19064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19065 fi
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19067 $as_echo "$gt_cv_c_wchar_t" >&6; }
19068   if test $gt_cv_c_wchar_t = yes; then
19069
19070 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19071
19072   fi
19073
19074
19075   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19076 $as_echo_n "checking for wint_t... " >&6; }
19077 if test "${gt_cv_c_wint_t+set}" = set; then :
19078   $as_echo_n "(cached) " >&6
19079 else
19080   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19081 /* end confdefs.h.  */
19082 #include <wchar.h>
19083        wint_t foo = (wchar_t)'\0';
19084 int
19085 main ()
19086 {
19087
19088   ;
19089   return 0;
19090 }
19091 _ACEOF
19092 if ac_fn_c_try_compile "$LINENO"; then :
19093   gt_cv_c_wint_t=yes
19094 else
19095   gt_cv_c_wint_t=no
19096 fi
19097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19098 fi
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19100 $as_echo "$gt_cv_c_wint_t" >&6; }
19101   if test $gt_cv_c_wint_t = yes; then
19102
19103 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19104
19105   fi
19106
19107
19108   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19109 $as_echo_n "checking for inttypes.h... " >&6; }
19110 if test "${gl_cv_header_inttypes_h+set}" = set; then :
19111   $as_echo_n "(cached) " >&6
19112 else
19113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19114 /* end confdefs.h.  */
19115 #include <sys/types.h>
19116 #include <inttypes.h>
19117 int
19118 main ()
19119 {
19120 uintmax_t i = (uintmax_t) -1;
19121   ;
19122   return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_compile "$LINENO"; then :
19126   gl_cv_header_inttypes_h=yes
19127 else
19128   gl_cv_header_inttypes_h=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19133 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19134   if test $gl_cv_header_inttypes_h = yes; then
19135
19136 cat >>confdefs.h <<_ACEOF
19137 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19138 _ACEOF
19139
19140   fi
19141
19142
19143   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19144 $as_echo_n "checking for stdint.h... " >&6; }
19145 if test "${gl_cv_header_stdint_h+set}" = set; then :
19146   $as_echo_n "(cached) " >&6
19147 else
19148   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h.  */
19150 #include <sys/types.h>
19151 #include <stdint.h>
19152 int
19153 main ()
19154 {
19155 uintmax_t i = (uintmax_t) -1;
19156   ;
19157   return 0;
19158 }
19159 _ACEOF
19160 if ac_fn_c_try_compile "$LINENO"; then :
19161   gl_cv_header_stdint_h=yes
19162 else
19163   gl_cv_header_stdint_h=no
19164 fi
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 fi
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19168 $as_echo "$gl_cv_header_stdint_h" >&6; }
19169   if test $gl_cv_header_stdint_h = yes; then
19170
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_STDINT_H_WITH_UINTMAX 1
19173 _ACEOF
19174
19175   fi
19176
19177
19178
19179
19180   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19181 $as_echo_n "checking for intmax_t... " >&6; }
19182 if test "${gt_cv_c_intmax_t+set}" = set; then :
19183   $as_echo_n "(cached) " >&6
19184 else
19185   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19186 /* end confdefs.h.  */
19187
19188 #include <stddef.h>
19189 #include <stdlib.h>
19190 #if HAVE_STDINT_H_WITH_UINTMAX
19191 #include <stdint.h>
19192 #endif
19193 #if HAVE_INTTYPES_H_WITH_UINTMAX
19194 #include <inttypes.h>
19195 #endif
19196
19197 int
19198 main ()
19199 {
19200 intmax_t x = -1;
19201   ;
19202   return 0;
19203 }
19204 _ACEOF
19205 if ac_fn_c_try_compile "$LINENO"; then :
19206   gt_cv_c_intmax_t=yes
19207 else
19208   gt_cv_c_intmax_t=no
19209 fi
19210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19211 fi
19212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19213 $as_echo "$gt_cv_c_intmax_t" >&6; }
19214   if test $gt_cv_c_intmax_t = yes; then
19215
19216 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19217
19218   fi
19219
19220
19221
19222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19223 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19224 if test "${gt_cv_func_printf_posix+set}" = set; then :
19225   $as_echo_n "(cached) " >&6
19226 else
19227
19228       if test "$cross_compiling" = yes; then :
19229
19230         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19231 /* end confdefs.h.  */
19232
19233 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19234   notposix
19235 #endif
19236
19237 _ACEOF
19238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19239   $EGREP "notposix" >/dev/null 2>&1; then :
19240   gt_cv_func_printf_posix="guessing no"
19241 else
19242   gt_cv_func_printf_posix="guessing yes"
19243 fi
19244 rm -f conftest*
19245
19246
19247 else
19248   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19249 /* end confdefs.h.  */
19250
19251 #include <stdio.h>
19252 #include <string.h>
19253 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19254    dollar expansion (possibly an autoconf bug).  */
19255 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19256 static char buf[100];
19257 int main ()
19258 {
19259   sprintf (buf, format, 33, 55);
19260   return (strcmp (buf, "55 33") != 0);
19261 }
19262 _ACEOF
19263 if ac_fn_c_try_run "$LINENO"; then :
19264   gt_cv_func_printf_posix=yes
19265 else
19266   gt_cv_func_printf_posix=no
19267 fi
19268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19269   conftest.$ac_objext conftest.beam conftest.$ac_ext
19270 fi
19271
19272
19273 fi
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19275 $as_echo "$gt_cv_func_printf_posix" >&6; }
19276   case $gt_cv_func_printf_posix in
19277     *yes)
19278
19279 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19280
19281       ;;
19282   esac
19283
19284 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19285 # for constant arguments.  Useless!
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19287 $as_echo_n "checking for working alloca.h... " >&6; }
19288 if test "${ac_cv_working_alloca_h+set}" = set; then :
19289   $as_echo_n "(cached) " >&6
19290 else
19291   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h.  */
19293 #include <alloca.h>
19294 int
19295 main ()
19296 {
19297 char *p = (char *) alloca (2 * sizeof (int));
19298                           if (p) return 0;
19299   ;
19300   return 0;
19301 }
19302 _ACEOF
19303 if ac_fn_c_try_link "$LINENO"; then :
19304   ac_cv_working_alloca_h=yes
19305 else
19306   ac_cv_working_alloca_h=no
19307 fi
19308 rm -f core conftest.err conftest.$ac_objext \
19309     conftest$ac_exeext conftest.$ac_ext
19310 fi
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19312 $as_echo "$ac_cv_working_alloca_h" >&6; }
19313 if test $ac_cv_working_alloca_h = yes; then
19314
19315 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19316
19317 fi
19318
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19320 $as_echo_n "checking for alloca... " >&6; }
19321 if test "${ac_cv_func_alloca_works+set}" = set; then :
19322   $as_echo_n "(cached) " >&6
19323 else
19324   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19325 /* end confdefs.h.  */
19326 #ifdef __GNUC__
19327 # define alloca __builtin_alloca
19328 #else
19329 # ifdef _MSC_VER
19330 #  include <malloc.h>
19331 #  define alloca _alloca
19332 # else
19333 #  ifdef HAVE_ALLOCA_H
19334 #   include <alloca.h>
19335 #  else
19336 #   ifdef _AIX
19337  #pragma alloca
19338 #   else
19339 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19340 char *alloca ();
19341 #    endif
19342 #   endif
19343 #  endif
19344 # endif
19345 #endif
19346
19347 int
19348 main ()
19349 {
19350 char *p = (char *) alloca (1);
19351                                     if (p) return 0;
19352   ;
19353   return 0;
19354 }
19355 _ACEOF
19356 if ac_fn_c_try_link "$LINENO"; then :
19357   ac_cv_func_alloca_works=yes
19358 else
19359   ac_cv_func_alloca_works=no
19360 fi
19361 rm -f core conftest.err conftest.$ac_objext \
19362     conftest$ac_exeext conftest.$ac_ext
19363 fi
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19365 $as_echo "$ac_cv_func_alloca_works" >&6; }
19366
19367 if test $ac_cv_func_alloca_works = yes; then
19368
19369 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19370
19371 else
19372   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19373 # that cause trouble.  Some versions do not even contain alloca or
19374 # contain a buggy version.  If you still want to use their alloca,
19375 # use ar to extract alloca.o from them instead of compiling alloca.c.
19376
19377 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19378
19379 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19380
19381
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19383 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19384 if test "${ac_cv_os_cray+set}" = set; then :
19385   $as_echo_n "(cached) " >&6
19386 else
19387   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h.  */
19389 #if defined CRAY && ! defined CRAY2
19390 webecray
19391 #else
19392 wenotbecray
19393 #endif
19394
19395 _ACEOF
19396 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19397   $EGREP "webecray" >/dev/null 2>&1; then :
19398   ac_cv_os_cray=yes
19399 else
19400   ac_cv_os_cray=no
19401 fi
19402 rm -f conftest*
19403
19404 fi
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19406 $as_echo "$ac_cv_os_cray" >&6; }
19407 if test $ac_cv_os_cray = yes; then
19408   for ac_func in _getb67 GETB67 getb67; do
19409     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19410 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19411 eval as_val=\$$as_ac_var
19412    if test "x$as_val" = x""yes; then :
19413
19414 cat >>confdefs.h <<_ACEOF
19415 #define CRAY_STACKSEG_END $ac_func
19416 _ACEOF
19417
19418     break
19419 fi
19420
19421   done
19422 fi
19423
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19425 $as_echo_n "checking stack direction for C alloca... " >&6; }
19426 if test "${ac_cv_c_stack_direction+set}" = set; then :
19427   $as_echo_n "(cached) " >&6
19428 else
19429   if test "$cross_compiling" = yes; then :
19430   ac_cv_c_stack_direction=0
19431 else
19432   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19433 /* end confdefs.h.  */
19434 $ac_includes_default
19435 int
19436 find_stack_direction ()
19437 {
19438   static char *addr = 0;
19439   auto char dummy;
19440   if (addr == 0)
19441     {
19442       addr = &dummy;
19443       return find_stack_direction ();
19444     }
19445   else
19446     return (&dummy > addr) ? 1 : -1;
19447 }
19448
19449 int
19450 main ()
19451 {
19452   return find_stack_direction () < 0;
19453 }
19454 _ACEOF
19455 if ac_fn_c_try_run "$LINENO"; then :
19456   ac_cv_c_stack_direction=1
19457 else
19458   ac_cv_c_stack_direction=-1
19459 fi
19460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19461   conftest.$ac_objext conftest.beam conftest.$ac_ext
19462 fi
19463
19464 fi
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19466 $as_echo "$ac_cv_c_stack_direction" >&6; }
19467 cat >>confdefs.h <<_ACEOF
19468 #define STACK_DIRECTION $ac_cv_c_stack_direction
19469 _ACEOF
19470
19471
19472 fi
19473
19474
19475
19476
19477   for ac_header in $ac_header_list
19478 do :
19479   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19480 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19481 "
19482 eval as_val=\$$as_ac_Header
19483    if test "x$as_val" = x""yes; then :
19484   cat >>confdefs.h <<_ACEOF
19485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19486 _ACEOF
19487
19488 fi
19489
19490 done
19491
19492
19493
19494
19495
19496
19497
19498
19499 for ac_func in getpagesize
19500 do :
19501   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19502 if test "x$ac_cv_func_getpagesize" = x""yes; then :
19503   cat >>confdefs.h <<_ACEOF
19504 #define HAVE_GETPAGESIZE 1
19505 _ACEOF
19506
19507 fi
19508 done
19509
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19511 $as_echo_n "checking for working mmap... " >&6; }
19512 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
19513   $as_echo_n "(cached) " >&6
19514 else
19515   if test "$cross_compiling" = yes; then :
19516   ac_cv_func_mmap_fixed_mapped=no
19517 else
19518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h.  */
19520 $ac_includes_default
19521 /* malloc might have been renamed as rpl_malloc. */
19522 #undef malloc
19523
19524 /* Thanks to Mike Haertel and Jim Avera for this test.
19525    Here is a matrix of mmap possibilities:
19526         mmap private not fixed
19527         mmap private fixed at somewhere currently unmapped
19528         mmap private fixed at somewhere already mapped
19529         mmap shared not fixed
19530         mmap shared fixed at somewhere currently unmapped
19531         mmap shared fixed at somewhere already mapped
19532    For private mappings, we should verify that changes cannot be read()
19533    back from the file, nor mmap's back from the file at a different
19534    address.  (There have been systems where private was not correctly
19535    implemented like the infamous i386 svr4.0, and systems where the
19536    VM page cache was not coherent with the file system buffer cache
19537    like early versions of FreeBSD and possibly contemporary NetBSD.)
19538    For shared mappings, we should conversely verify that changes get
19539    propagated back to all the places they're supposed to be.
19540
19541    Grep wants private fixed already mapped.
19542    The main things grep needs to know about mmap are:
19543    * does it exist and is it safe to write into the mmap'd area
19544    * how to use it (BSD variants)  */
19545
19546 #include <fcntl.h>
19547 #include <sys/mman.h>
19548
19549 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19550 char *malloc ();
19551 #endif
19552
19553 /* This mess was copied from the GNU getpagesize.h.  */
19554 #ifndef HAVE_GETPAGESIZE
19555 # ifdef _SC_PAGESIZE
19556 #  define getpagesize() sysconf(_SC_PAGESIZE)
19557 # else /* no _SC_PAGESIZE */
19558 #  ifdef HAVE_SYS_PARAM_H
19559 #   include <sys/param.h>
19560 #   ifdef EXEC_PAGESIZE
19561 #    define getpagesize() EXEC_PAGESIZE
19562 #   else /* no EXEC_PAGESIZE */
19563 #    ifdef NBPG
19564 #     define getpagesize() NBPG * CLSIZE
19565 #     ifndef CLSIZE
19566 #      define CLSIZE 1
19567 #     endif /* no CLSIZE */
19568 #    else /* no NBPG */
19569 #     ifdef NBPC
19570 #      define getpagesize() NBPC
19571 #     else /* no NBPC */
19572 #      ifdef PAGESIZE
19573 #       define getpagesize() PAGESIZE
19574 #      endif /* PAGESIZE */
19575 #     endif /* no NBPC */
19576 #    endif /* no NBPG */
19577 #   endif /* no EXEC_PAGESIZE */
19578 #  else /* no HAVE_SYS_PARAM_H */
19579 #   define getpagesize() 8192   /* punt totally */
19580 #  endif /* no HAVE_SYS_PARAM_H */
19581 # endif /* no _SC_PAGESIZE */
19582
19583 #endif /* no HAVE_GETPAGESIZE */
19584
19585 int
19586 main ()
19587 {
19588   char *data, *data2, *data3;
19589   const char *cdata2;
19590   int i, pagesize;
19591   int fd, fd2;
19592
19593   pagesize = getpagesize ();
19594
19595   /* First, make a file with some known garbage in it. */
19596   data = (char *) malloc (pagesize);
19597   if (!data)
19598     return 1;
19599   for (i = 0; i < pagesize; ++i)
19600     *(data + i) = rand ();
19601   umask (0);
19602   fd = creat ("conftest.mmap", 0600);
19603   if (fd < 0)
19604     return 2;
19605   if (write (fd, data, pagesize) != pagesize)
19606     return 3;
19607   close (fd);
19608
19609   /* Next, check that the tail of a page is zero-filled.  File must have
19610      non-zero length, otherwise we risk SIGBUS for entire page.  */
19611   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19612   if (fd2 < 0)
19613     return 4;
19614   cdata2 = "";
19615   if (write (fd2, cdata2, 1) != 1)
19616     return 5;
19617   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19618   if (data2 == MAP_FAILED)
19619     return 6;
19620   for (i = 0; i < pagesize; ++i)
19621     if (*(data2 + i))
19622       return 7;
19623   close (fd2);
19624   if (munmap (data2, pagesize))
19625     return 8;
19626
19627   /* Next, try to mmap the file at a fixed address which already has
19628      something else allocated at it.  If we can, also make sure that
19629      we see the same garbage.  */
19630   fd = open ("conftest.mmap", O_RDWR);
19631   if (fd < 0)
19632     return 9;
19633   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19634                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
19635     return 10;
19636   for (i = 0; i < pagesize; ++i)
19637     if (*(data + i) != *(data2 + i))
19638       return 11;
19639
19640   /* Finally, make sure that changes to the mapped area do not
19641      percolate back to the file as seen by read().  (This is a bug on
19642      some variants of i386 svr4.0.)  */
19643   for (i = 0; i < pagesize; ++i)
19644     *(data2 + i) = *(data2 + i) + 1;
19645   data3 = (char *) malloc (pagesize);
19646   if (!data3)
19647     return 12;
19648   if (read (fd, data3, pagesize) != pagesize)
19649     return 13;
19650   for (i = 0; i < pagesize; ++i)
19651     if (*(data + i) != *(data3 + i))
19652       return 14;
19653   close (fd);
19654   return 0;
19655 }
19656 _ACEOF
19657 if ac_fn_c_try_run "$LINENO"; then :
19658   ac_cv_func_mmap_fixed_mapped=yes
19659 else
19660   ac_cv_func_mmap_fixed_mapped=no
19661 fi
19662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19663   conftest.$ac_objext conftest.beam conftest.$ac_ext
19664 fi
19665
19666 fi
19667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
19668 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
19669 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19670
19671 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
19672
19673 fi
19674 rm -f conftest.mmap conftest.txt
19675
19676
19677     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
19678 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
19679 if test "${ac_cv_gnu_library_2_1+set}" = set; then :
19680   $as_echo_n "(cached) " >&6
19681 else
19682   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19683 /* end confdefs.h.  */
19684
19685 #include <features.h>
19686 #ifdef __GNU_LIBRARY__
19687  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
19688   Lucky GNU user
19689  #endif
19690 #endif
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19695   ac_cv_gnu_library_2_1=yes
19696 else
19697   ac_cv_gnu_library_2_1=no
19698 fi
19699 rm -f conftest*
19700
19701
19702
19703 fi
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
19705 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
19706
19707     GLIBC21="$ac_cv_gnu_library_2_1"
19708
19709
19710
19711
19712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
19713 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
19714 if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then :
19715   $as_echo_n "(cached) " >&6
19716 else
19717
19718       if test "$cross_compiling" = yes; then :
19719
19720           # Guess based on the CPU.
19721           case "$host_cpu" in
19722             alpha* | i3456786 | m68k | s390*)
19723               gt_cv_int_divbyzero_sigfpe="guessing yes";;
19724             *)
19725               gt_cv_int_divbyzero_sigfpe="guessing no";;
19726           esac
19727
19728 else
19729   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19730 /* end confdefs.h.  */
19731
19732 #include <stdlib.h>
19733 #include <signal.h>
19734
19735 static void
19736 #ifdef __cplusplus
19737 sigfpe_handler (int sig)
19738 #else
19739 sigfpe_handler (sig) int sig;
19740 #endif
19741 {
19742   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
19743   exit (sig != SIGFPE);
19744 }
19745
19746 int x = 1;
19747 int y = 0;
19748 int z;
19749 int nan;
19750
19751 int main ()
19752 {
19753   signal (SIGFPE, sigfpe_handler);
19754 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
19755 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
19756   signal (SIGTRAP, sigfpe_handler);
19757 #endif
19758 /* Linux/SPARC yields signal SIGILL.  */
19759 #if defined (__sparc__) && defined (__linux__)
19760   signal (SIGILL, sigfpe_handler);
19761 #endif
19762
19763   z = x / y;
19764   nan = y / y;
19765   exit (1);
19766 }
19767
19768 _ACEOF
19769 if ac_fn_c_try_run "$LINENO"; then :
19770   gt_cv_int_divbyzero_sigfpe=yes
19771 else
19772   gt_cv_int_divbyzero_sigfpe=no
19773 fi
19774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19775   conftest.$ac_objext conftest.beam conftest.$ac_ext
19776 fi
19777
19778
19779 fi
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
19781 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
19782   case "$gt_cv_int_divbyzero_sigfpe" in
19783     *yes) value=1;;
19784     *) value=0;;
19785   esac
19786
19787 cat >>confdefs.h <<_ACEOF
19788 #define INTDIV0_RAISES_SIGFPE $value
19789 _ACEOF
19790
19791
19792
19793   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
19794 $as_echo_n "checking for unsigned long long... " >&6; }
19795 if test "${ac_cv_type_unsigned_long_long+set}" = set; then :
19796   $as_echo_n "(cached) " >&6
19797 else
19798   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19799 /* end confdefs.h.  */
19800 unsigned long long ull = 1ULL; int i = 63;
19801 int
19802 main ()
19803 {
19804 unsigned long long ullmax = (unsigned long long) -1;
19805      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
19806   ;
19807   return 0;
19808 }
19809 _ACEOF
19810 if ac_fn_c_try_link "$LINENO"; then :
19811   ac_cv_type_unsigned_long_long=yes
19812 else
19813   ac_cv_type_unsigned_long_long=no
19814 fi
19815 rm -f core conftest.err conftest.$ac_objext \
19816     conftest$ac_exeext conftest.$ac_ext
19817 fi
19818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
19819 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
19820   if test $ac_cv_type_unsigned_long_long = yes; then
19821
19822 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
19823
19824   fi
19825
19826
19827
19828
19829   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
19830
19831     test $ac_cv_type_unsigned_long_long = yes \
19832       && ac_type='unsigned long long' \
19833       || ac_type='unsigned long'
19834
19835 cat >>confdefs.h <<_ACEOF
19836 #define uintmax_t $ac_type
19837 _ACEOF
19838
19839   else
19840
19841 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
19842
19843   fi
19844
19845
19846   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19847 $as_echo_n "checking for inttypes.h... " >&6; }
19848 if test "${gt_cv_header_inttypes_h+set}" = set; then :
19849   $as_echo_n "(cached) " >&6
19850 else
19851
19852     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19853 /* end confdefs.h.  */
19854 #include <sys/types.h>
19855 #include <inttypes.h>
19856 int
19857 main ()
19858 {
19859
19860   ;
19861   return 0;
19862 }
19863 _ACEOF
19864 if ac_fn_c_try_compile "$LINENO"; then :
19865   gt_cv_header_inttypes_h=yes
19866 else
19867   gt_cv_header_inttypes_h=no
19868 fi
19869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19870
19871 fi
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
19873 $as_echo "$gt_cv_header_inttypes_h" >&6; }
19874   if test $gt_cv_header_inttypes_h = yes; then
19875
19876 cat >>confdefs.h <<_ACEOF
19877 #define HAVE_INTTYPES_H 1
19878 _ACEOF
19879
19880   fi
19881
19882
19883
19884   if test $gt_cv_header_inttypes_h = yes; then
19885     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
19886 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
19887 if test "${gt_cv_inttypes_pri_broken+set}" = set; then :
19888   $as_echo_n "(cached) " >&6
19889 else
19890
19891         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19892 /* end confdefs.h.  */
19893 #include <inttypes.h>
19894 #ifdef PRId32
19895 char *p = PRId32;
19896 #endif
19897
19898 int
19899 main ()
19900 {
19901
19902   ;
19903   return 0;
19904 }
19905 _ACEOF
19906 if ac_fn_c_try_compile "$LINENO"; then :
19907   gt_cv_inttypes_pri_broken=no
19908 else
19909   gt_cv_inttypes_pri_broken=yes
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912
19913 fi
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
19915 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
19916   fi
19917   if test "$gt_cv_inttypes_pri_broken" = yes; then
19918
19919 cat >>confdefs.h <<_ACEOF
19920 #define PRI_MACROS_BROKEN 1
19921 _ACEOF
19922
19923   fi
19924
19925
19926   for ac_header in stdint.h
19927 do :
19928   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19929 if test "x$ac_cv_header_stdint_h" = x""yes; then :
19930   cat >>confdefs.h <<_ACEOF
19931 #define HAVE_STDINT_H 1
19932 _ACEOF
19933
19934 fi
19935
19936 done
19937
19938     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19939 $as_echo_n "checking for SIZE_MAX... " >&6; }
19940   result=
19941   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19942 /* end confdefs.h.  */
19943
19944 #include <limits.h>
19945 #if HAVE_STDINT_H
19946 #include <stdint.h>
19947 #endif
19948 #ifdef SIZE_MAX
19949 Found it
19950 #endif
19951
19952 _ACEOF
19953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19954   $EGREP "Found it" >/dev/null 2>&1; then :
19955   result=yes
19956 fi
19957 rm -f conftest*
19958
19959   if test -z "$result"; then
19960                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
19961
19962 else
19963   result=?
19964 fi
19965
19966
19967     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
19968
19969 else
19970   result=?
19971 fi
19972
19973
19974     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
19975
19976 else
19977   result=?
19978 fi
19979
19980
19981     if test "$fits_in_uint" = 1; then
19982                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19983 /* end confdefs.h.  */
19984 #include <stddef.h>
19985         extern size_t foo;
19986         extern unsigned long foo;
19987
19988 int
19989 main ()
19990 {
19991
19992   ;
19993   return 0;
19994 }
19995 _ACEOF
19996 if ac_fn_c_try_compile "$LINENO"; then :
19997   fits_in_uint=0
19998 fi
19999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20000     fi
20001     if test -z "$result"; then
20002       if test "$fits_in_uint" = 1; then
20003         result="$res_hi$res_lo"U
20004       else
20005         result="$res_hi$res_lo"UL
20006       fi
20007     else
20008             result='~(size_t)0'
20009     fi
20010   fi
20011   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20012 $as_echo "$result" >&6; }
20013   if test "$result" != yes; then
20014
20015 cat >>confdefs.h <<_ACEOF
20016 #define SIZE_MAX $result
20017 _ACEOF
20018
20019   fi
20020
20021
20022
20023
20024   for ac_header in stdint.h
20025 do :
20026   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20027 if test "x$ac_cv_header_stdint_h" = x""yes; then :
20028   cat >>confdefs.h <<_ACEOF
20029 #define HAVE_STDINT_H 1
20030 _ACEOF
20031
20032 fi
20033
20034 done
20035
20036
20037
20038
20039
20040
20041
20042
20043   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20044 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
20045
20046 else
20047
20048 $as_echo "#define ptrdiff_t long" >>confdefs.h
20049
20050
20051 fi
20052
20053   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20054 stdlib.h string.h unistd.h sys/param.h
20055 do :
20056   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20057 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20058 eval as_val=\$$as_ac_Header
20059    if test "x$as_val" = x""yes; then :
20060   cat >>confdefs.h <<_ACEOF
20061 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20062 _ACEOF
20063
20064 fi
20065
20066 done
20067
20068   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20069 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20070 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20071 __fsetlocking
20072 do :
20073   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20074 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20075 eval as_val=\$$as_ac_var
20076    if test "x$as_val" = x""yes; then :
20077   cat >>confdefs.h <<_ACEOF
20078 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20079 _ACEOF
20080
20081 fi
20082 done
20083
20084
20085
20086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20087 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20088 if test "${ac_cv_have_decl__snprintf+set}" = set; then :
20089   $as_echo_n "(cached) " >&6
20090 else
20091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20092 /* end confdefs.h.  */
20093 #include <stdio.h>
20094 int
20095 main ()
20096 {
20097
20098 #ifndef _snprintf
20099   char *p = (char *) _snprintf;
20100 #endif
20101
20102   ;
20103   return 0;
20104 }
20105 _ACEOF
20106 if ac_fn_c_try_compile "$LINENO"; then :
20107   ac_cv_have_decl__snprintf=yes
20108 else
20109   ac_cv_have_decl__snprintf=no
20110 fi
20111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20112 fi
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20114 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20115   if test $ac_cv_have_decl__snprintf = yes; then
20116     gt_value=1
20117   else
20118     gt_value=0
20119   fi
20120
20121 cat >>confdefs.h <<_ACEOF
20122 #define HAVE_DECL__SNPRINTF $gt_value
20123 _ACEOF
20124
20125
20126
20127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20128 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20129 if test "${ac_cv_have_decl__snwprintf+set}" = set; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20133 /* end confdefs.h.  */
20134 #include <stdio.h>
20135 int
20136 main ()
20137 {
20138
20139 #ifndef _snwprintf
20140   char *p = (char *) _snwprintf;
20141 #endif
20142
20143   ;
20144   return 0;
20145 }
20146 _ACEOF
20147 if ac_fn_c_try_compile "$LINENO"; then :
20148   ac_cv_have_decl__snwprintf=yes
20149 else
20150   ac_cv_have_decl__snwprintf=no
20151 fi
20152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20153 fi
20154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20155 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20156   if test $ac_cv_have_decl__snwprintf = yes; then
20157     gt_value=1
20158   else
20159     gt_value=0
20160   fi
20161
20162 cat >>confdefs.h <<_ACEOF
20163 #define HAVE_DECL__SNWPRINTF $gt_value
20164 _ACEOF
20165
20166
20167
20168
20169   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20170 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20171 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then :
20172   $as_echo_n "(cached) " >&6
20173 else
20174   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20175 /* end confdefs.h.  */
20176 #include <stdio.h>
20177 int
20178 main ()
20179 {
20180
20181 #ifndef feof_unlocked
20182   char *p = (char *) feof_unlocked;
20183 #endif
20184
20185   ;
20186   return 0;
20187 }
20188 _ACEOF
20189 if ac_fn_c_try_compile "$LINENO"; then :
20190   ac_cv_have_decl_feof_unlocked=yes
20191 else
20192   ac_cv_have_decl_feof_unlocked=no
20193 fi
20194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20195 fi
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20197 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20198   if test $ac_cv_have_decl_feof_unlocked = yes; then
20199     gt_value=1
20200   else
20201     gt_value=0
20202   fi
20203
20204 cat >>confdefs.h <<_ACEOF
20205 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20206 _ACEOF
20207
20208
20209
20210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20211 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20212 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then :
20213   $as_echo_n "(cached) " >&6
20214 else
20215   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h.  */
20217 #include <stdio.h>
20218 int
20219 main ()
20220 {
20221
20222 #ifndef fgets_unlocked
20223   char *p = (char *) fgets_unlocked;
20224 #endif
20225
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 if ac_fn_c_try_compile "$LINENO"; then :
20231   ac_cv_have_decl_fgets_unlocked=yes
20232 else
20233   ac_cv_have_decl_fgets_unlocked=no
20234 fi
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236 fi
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20238 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20239   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20240     gt_value=1
20241   else
20242     gt_value=0
20243   fi
20244
20245 cat >>confdefs.h <<_ACEOF
20246 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20247 _ACEOF
20248
20249
20250
20251   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20252 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20253 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then :
20254   $as_echo_n "(cached) " >&6
20255 else
20256   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h.  */
20258 #include <stdio.h>
20259 int
20260 main ()
20261 {
20262
20263 #ifndef getc_unlocked
20264   char *p = (char *) getc_unlocked;
20265 #endif
20266
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 if ac_fn_c_try_compile "$LINENO"; then :
20272   ac_cv_have_decl_getc_unlocked=yes
20273 else
20274   ac_cv_have_decl_getc_unlocked=no
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 fi
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20279 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20280   if test $ac_cv_have_decl_getc_unlocked = yes; then
20281     gt_value=1
20282   else
20283     gt_value=0
20284   fi
20285
20286 cat >>confdefs.h <<_ACEOF
20287 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20288 _ACEOF
20289
20290
20291
20292   case $gt_cv_func_printf_posix in
20293     *yes) HAVE_POSIX_PRINTF=1 ;;
20294     *) HAVE_POSIX_PRINTF=0 ;;
20295   esac
20296
20297   if test "$ac_cv_func_asprintf" = yes; then
20298     HAVE_ASPRINTF=1
20299   else
20300     HAVE_ASPRINTF=0
20301   fi
20302
20303   if test "$ac_cv_func_snprintf" = yes; then
20304     HAVE_SNPRINTF=1
20305   else
20306     HAVE_SNPRINTF=0
20307   fi
20308
20309   if test "$ac_cv_func_wprintf" = yes; then
20310     HAVE_WPRINTF=1
20311   else
20312     HAVE_WPRINTF=0
20313   fi
20314
20315
20316
20317
20318
20319
20320
20321           am_save_CPPFLAGS="$CPPFLAGS"
20322
20323   for element in $INCICONV; do
20324     haveit=
20325     for x in $CPPFLAGS; do
20326
20327   acl_save_prefix="$prefix"
20328   prefix="$acl_final_prefix"
20329   acl_save_exec_prefix="$exec_prefix"
20330   exec_prefix="$acl_final_exec_prefix"
20331   eval x=\"$x\"
20332   exec_prefix="$acl_save_exec_prefix"
20333   prefix="$acl_save_prefix"
20334
20335       if test "X$x" = "X$element"; then
20336         haveit=yes
20337         break
20338       fi
20339     done
20340     if test -z "$haveit"; then
20341       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20342     fi
20343   done
20344
20345
20346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20347 $as_echo_n "checking for iconv... " >&6; }
20348 if test "${am_cv_func_iconv+set}" = set; then :
20349   $as_echo_n "(cached) " >&6
20350 else
20351
20352     am_cv_func_iconv="no, consider installing GNU libiconv"
20353     am_cv_lib_iconv=no
20354     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20355 /* end confdefs.h.  */
20356 #include <stdlib.h>
20357 #include <iconv.h>
20358 int
20359 main ()
20360 {
20361 iconv_t cd = iconv_open("","");
20362        iconv(cd,NULL,NULL,NULL,NULL);
20363        iconv_close(cd);
20364   ;
20365   return 0;
20366 }
20367 _ACEOF
20368 if ac_fn_c_try_link "$LINENO"; then :
20369   am_cv_func_iconv=yes
20370 fi
20371 rm -f core conftest.err conftest.$ac_objext \
20372     conftest$ac_exeext conftest.$ac_ext
20373     if test "$am_cv_func_iconv" != yes; then
20374       am_save_LIBS="$LIBS"
20375       LIBS="$LIBS $LIBICONV"
20376       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20377 /* end confdefs.h.  */
20378 #include <stdlib.h>
20379 #include <iconv.h>
20380 int
20381 main ()
20382 {
20383 iconv_t cd = iconv_open("","");
20384          iconv(cd,NULL,NULL,NULL,NULL);
20385          iconv_close(cd);
20386   ;
20387   return 0;
20388 }
20389 _ACEOF
20390 if ac_fn_c_try_link "$LINENO"; then :
20391   am_cv_lib_iconv=yes
20392         am_cv_func_iconv=yes
20393 fi
20394 rm -f core conftest.err conftest.$ac_objext \
20395     conftest$ac_exeext conftest.$ac_ext
20396       LIBS="$am_save_LIBS"
20397     fi
20398
20399 fi
20400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20401 $as_echo "$am_cv_func_iconv" >&6; }
20402   if test "$am_cv_func_iconv" = yes; then
20403
20404 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20405
20406   fi
20407   if test "$am_cv_lib_iconv" = yes; then
20408     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20409 $as_echo_n "checking how to link with libiconv... " >&6; }
20410     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20411 $as_echo "$LIBICONV" >&6; }
20412   else
20413             CPPFLAGS="$am_save_CPPFLAGS"
20414     LIBICONV=
20415     LTLIBICONV=
20416   fi
20417
20418
20419
20420   if test "$am_cv_func_iconv" = yes; then
20421     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20422 $as_echo_n "checking for iconv declaration... " >&6; }
20423     if test "${am_cv_proto_iconv+set}" = set; then :
20424   $as_echo_n "(cached) " >&6
20425 else
20426
20427       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20428 /* end confdefs.h.  */
20429
20430 #include <stdlib.h>
20431 #include <iconv.h>
20432 extern
20433 #ifdef __cplusplus
20434 "C"
20435 #endif
20436 #if defined(__STDC__) || defined(__cplusplus)
20437 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20438 #else
20439 size_t iconv();
20440 #endif
20441
20442 int
20443 main ()
20444 {
20445
20446   ;
20447   return 0;
20448 }
20449 _ACEOF
20450 if ac_fn_c_try_compile "$LINENO"; then :
20451   am_cv_proto_iconv_arg1=""
20452 else
20453   am_cv_proto_iconv_arg1="const"
20454 fi
20455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20456       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
20457 fi
20458
20459     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20460     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20461          }$am_cv_proto_iconv" >&5
20462 $as_echo "${ac_t:-
20463          }$am_cv_proto_iconv" >&6; }
20464
20465 cat >>confdefs.h <<_ACEOF
20466 #define ICONV_CONST $am_cv_proto_iconv_arg1
20467 _ACEOF
20468
20469   fi
20470
20471
20472   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20473 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20474 if test "${am_cv_langinfo_codeset+set}" = set; then :
20475   $as_echo_n "(cached) " >&6
20476 else
20477   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20478 /* end confdefs.h.  */
20479 #include <langinfo.h>
20480 int
20481 main ()
20482 {
20483 char* cs = nl_langinfo(CODESET);
20484   ;
20485   return 0;
20486 }
20487 _ACEOF
20488 if ac_fn_c_try_link "$LINENO"; then :
20489   am_cv_langinfo_codeset=yes
20490 else
20491   am_cv_langinfo_codeset=no
20492 fi
20493 rm -f core conftest.err conftest.$ac_objext \
20494     conftest$ac_exeext conftest.$ac_ext
20495
20496 fi
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20498 $as_echo "$am_cv_langinfo_codeset" >&6; }
20499   if test $am_cv_langinfo_codeset = yes; then
20500
20501 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20502
20503   fi
20504
20505   if test $ac_cv_header_locale_h = yes; then
20506
20507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20508 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20509 if test "${gt_cv_val_LC_MESSAGES+set}" = set; then :
20510   $as_echo_n "(cached) " >&6
20511 else
20512   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20513 /* end confdefs.h.  */
20514 #include <locale.h>
20515 int
20516 main ()
20517 {
20518 return LC_MESSAGES
20519   ;
20520   return 0;
20521 }
20522 _ACEOF
20523 if ac_fn_c_try_link "$LINENO"; then :
20524   gt_cv_val_LC_MESSAGES=yes
20525 else
20526   gt_cv_val_LC_MESSAGES=no
20527 fi
20528 rm -f core conftest.err conftest.$ac_objext \
20529     conftest$ac_exeext conftest.$ac_ext
20530 fi
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20532 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20533   if test $gt_cv_val_LC_MESSAGES = yes; then
20534
20535 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20536
20537   fi
20538
20539   fi
20540
20541   if test -n "$INTL_MACOSX_LIBS"; then
20542     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20543   fi
20544
20545                       for ac_prog in bison
20546 do
20547   # Extract the first word of "$ac_prog", so it can be a program name with args.
20548 set dummy $ac_prog; ac_word=$2
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20550 $as_echo_n "checking for $ac_word... " >&6; }
20551 if test "${ac_cv_prog_INTLBISON+set}" = set; then :
20552   $as_echo_n "(cached) " >&6
20553 else
20554   if test -n "$INTLBISON"; then
20555   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20556 else
20557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20558 for as_dir in $PATH
20559 do
20560   IFS=$as_save_IFS
20561   test -z "$as_dir" && as_dir=.
20562     for ac_exec_ext in '' $ac_executable_extensions; do
20563   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20564     ac_cv_prog_INTLBISON="$ac_prog"
20565     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20566     break 2
20567   fi
20568 done
20569   done
20570 IFS=$as_save_IFS
20571
20572 fi
20573 fi
20574 INTLBISON=$ac_cv_prog_INTLBISON
20575 if test -n "$INTLBISON"; then
20576   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20577 $as_echo "$INTLBISON" >&6; }
20578 else
20579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 $as_echo "no" >&6; }
20581 fi
20582
20583
20584   test -n "$INTLBISON" && break
20585 done
20586
20587   if test -z "$INTLBISON"; then
20588     ac_verc_fail=yes
20589   else
20590         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20591 $as_echo_n "checking version of bison... " >&6; }
20592     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20593     case $ac_prog_version in
20594       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20595       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20596          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20597       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20598     esac
20599     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20600 $as_echo "$ac_prog_version" >&6; }
20601   fi
20602   if test $ac_verc_fail = yes; then
20603     INTLBISON=:
20604   fi
20605
20606
20607
20608
20609
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20622 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20623 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
20624   $as_echo_n "(cached) " >&6
20625 else
20626   gt_save_CPPFLAGS="$CPPFLAGS"
20627      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20628      gt_save_LIBS="$LIBS"
20629      LIBS="$LIBS -framework CoreFoundation"
20630      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20631 /* end confdefs.h.  */
20632 #include <CFPreferences.h>
20633 int
20634 main ()
20635 {
20636 CFPreferencesCopyAppValue(NULL, NULL)
20637   ;
20638   return 0;
20639 }
20640 _ACEOF
20641 if ac_fn_c_try_link "$LINENO"; then :
20642   gt_cv_func_CFPreferencesCopyAppValue=yes
20643 else
20644   gt_cv_func_CFPreferencesCopyAppValue=no
20645 fi
20646 rm -f core conftest.err conftest.$ac_objext \
20647     conftest$ac_exeext conftest.$ac_ext
20648      CPPFLAGS="$gt_save_CPPFLAGS"
20649      LIBS="$gt_save_LIBS"
20650 fi
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
20652 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
20653   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
20654
20655 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
20656
20657   fi
20658     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
20659 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
20660 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
20661   $as_echo_n "(cached) " >&6
20662 else
20663   gt_save_CPPFLAGS="$CPPFLAGS"
20664      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20665      gt_save_LIBS="$LIBS"
20666      LIBS="$LIBS -framework CoreFoundation"
20667      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20668 /* end confdefs.h.  */
20669 #include <CFLocale.h>
20670 int
20671 main ()
20672 {
20673 CFLocaleCopyCurrent();
20674   ;
20675   return 0;
20676 }
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679   gt_cv_func_CFLocaleCopyCurrent=yes
20680 else
20681   gt_cv_func_CFLocaleCopyCurrent=no
20682 fi
20683 rm -f core conftest.err conftest.$ac_objext \
20684     conftest$ac_exeext conftest.$ac_ext
20685      CPPFLAGS="$gt_save_CPPFLAGS"
20686      LIBS="$gt_save_LIBS"
20687 fi
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
20689 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
20690   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20691
20692 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
20693
20694   fi
20695   INTL_MACOSX_LIBS=
20696   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
20697     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
20698   fi
20699
20700
20701
20702
20703   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
20704 $as_echo_n "checking whether NLS is requested... " >&6; }
20705     # Check whether --enable-nls was given.
20706 if test "${enable_nls+set}" = set; then :
20707   enableval=$enable_nls; USE_NLS=$enableval
20708 else
20709   USE_NLS=yes
20710 fi
20711
20712   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
20713 $as_echo "$USE_NLS" >&6; }
20714
20715
20716
20717
20718     BUILD_INCLUDED_LIBINTL=no
20719     USE_INCLUDED_LIBINTL=no
20720
20721   LIBINTL=
20722   LTLIBINTL=
20723   POSUB=
20724
20725     if test "$USE_NLS" = "yes"; then
20726     gt_use_preinstalled_gnugettext=no
20727
20728       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
20729 $as_echo_n "checking whether included gettext is requested... " >&6; }
20730
20731 # Check whether --with-included-gettext was given.
20732 if test "${with_included_gettext+set}" = set; then :
20733   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
20734 else
20735   nls_cv_force_use_gnu_gettext=no
20736 fi
20737
20738       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
20739 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
20740
20741       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
20742       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
20743
20744
20745
20746
20747
20748
20749         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
20750 $as_echo_n "checking for GNU gettext in libc... " >&6; }
20751 if test "${gt_cv_func_gnugettext1_libc+set}" = set; then :
20752   $as_echo_n "(cached) " >&6
20753 else
20754   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20755 /* end confdefs.h.  */
20756 #include <libintl.h>
20757 extern int _nl_msg_cat_cntr;
20758 extern int *_nl_domain_bindings;
20759 int
20760 main ()
20761 {
20762 bindtextdomain ("", "");
20763 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
20764   ;
20765   return 0;
20766 }
20767 _ACEOF
20768 if ac_fn_c_try_link "$LINENO"; then :
20769   gt_cv_func_gnugettext1_libc=yes
20770 else
20771   gt_cv_func_gnugettext1_libc=no
20772 fi
20773 rm -f core conftest.err conftest.$ac_objext \
20774     conftest$ac_exeext conftest.$ac_ext
20775 fi
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
20777 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
20778
20779         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
20780
20781
20782
20783     use_additional=yes
20784
20785   acl_save_prefix="$prefix"
20786   prefix="$acl_final_prefix"
20787   acl_save_exec_prefix="$exec_prefix"
20788   exec_prefix="$acl_final_exec_prefix"
20789
20790     eval additional_includedir=\"$includedir\"
20791     eval additional_libdir=\"$libdir\"
20792
20793   exec_prefix="$acl_save_exec_prefix"
20794   prefix="$acl_save_prefix"
20795
20796
20797 # Check whether --with-libintl-prefix was given.
20798 if test "${with_libintl_prefix+set}" = set; then :
20799   withval=$with_libintl_prefix;
20800     if test "X$withval" = "Xno"; then
20801       use_additional=no
20802     else
20803       if test "X$withval" = "X"; then
20804
20805   acl_save_prefix="$prefix"
20806   prefix="$acl_final_prefix"
20807   acl_save_exec_prefix="$exec_prefix"
20808   exec_prefix="$acl_final_exec_prefix"
20809
20810           eval additional_includedir=\"$includedir\"
20811           eval additional_libdir=\"$libdir\"
20812
20813   exec_prefix="$acl_save_exec_prefix"
20814   prefix="$acl_save_prefix"
20815
20816       else
20817         additional_includedir="$withval/include"
20818         additional_libdir="$withval/lib"
20819       fi
20820     fi
20821
20822 fi
20823
20824       LIBINTL=
20825   LTLIBINTL=
20826   INCINTL=
20827   rpathdirs=
20828   ltrpathdirs=
20829   names_already_handled=
20830   names_next_round='intl '
20831   while test -n "$names_next_round"; do
20832     names_this_round="$names_next_round"
20833     names_next_round=
20834     for name in $names_this_round; do
20835       already_handled=
20836       for n in $names_already_handled; do
20837         if test "$n" = "$name"; then
20838           already_handled=yes
20839           break
20840         fi
20841       done
20842       if test -z "$already_handled"; then
20843         names_already_handled="$names_already_handled $name"
20844                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
20845         eval value=\"\$HAVE_LIB$uppername\"
20846         if test -n "$value"; then
20847           if test "$value" = yes; then
20848             eval value=\"\$LIB$uppername\"
20849             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
20850             eval value=\"\$LTLIB$uppername\"
20851             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
20852           else
20853                                     :
20854           fi
20855         else
20856                               found_dir=
20857           found_la=
20858           found_so=
20859           found_a=
20860           if test $use_additional = yes; then
20861             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
20862               found_dir="$additional_libdir"
20863               found_so="$additional_libdir/lib$name.$shlibext"
20864               if test -f "$additional_libdir/lib$name.la"; then
20865                 found_la="$additional_libdir/lib$name.la"
20866               fi
20867             else
20868               if test -f "$additional_libdir/lib$name.$libext"; then
20869                 found_dir="$additional_libdir"
20870                 found_a="$additional_libdir/lib$name.$libext"
20871                 if test -f "$additional_libdir/lib$name.la"; then
20872                   found_la="$additional_libdir/lib$name.la"
20873                 fi
20874               fi
20875             fi
20876           fi
20877           if test "X$found_dir" = "X"; then
20878             for x in $LDFLAGS $LTLIBINTL; do
20879
20880   acl_save_prefix="$prefix"
20881   prefix="$acl_final_prefix"
20882   acl_save_exec_prefix="$exec_prefix"
20883   exec_prefix="$acl_final_exec_prefix"
20884   eval x=\"$x\"
20885   exec_prefix="$acl_save_exec_prefix"
20886   prefix="$acl_save_prefix"
20887
20888               case "$x" in
20889                 -L*)
20890                   dir=`echo "X$x" | sed -e 's/^X-L//'`
20891                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
20892                     found_dir="$dir"
20893                     found_so="$dir/lib$name.$shlibext"
20894                     if test -f "$dir/lib$name.la"; then
20895                       found_la="$dir/lib$name.la"
20896                     fi
20897                   else
20898                     if test -f "$dir/lib$name.$libext"; then
20899                       found_dir="$dir"
20900                       found_a="$dir/lib$name.$libext"
20901                       if test -f "$dir/lib$name.la"; then
20902                         found_la="$dir/lib$name.la"
20903                       fi
20904                     fi
20905                   fi
20906                   ;;
20907               esac
20908               if test "X$found_dir" != "X"; then
20909                 break
20910               fi
20911             done
20912           fi
20913           if test "X$found_dir" != "X"; then
20914                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
20915             if test "X$found_so" != "X"; then
20916                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
20917                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20918               else
20919                                                                                 haveit=
20920                 for x in $ltrpathdirs; do
20921                   if test "X$x" = "X$found_dir"; then
20922                     haveit=yes
20923                     break
20924                   fi
20925                 done
20926                 if test -z "$haveit"; then
20927                   ltrpathdirs="$ltrpathdirs $found_dir"
20928                 fi
20929                                 if test "$hardcode_direct" = yes; then
20930                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20931                 else
20932                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
20933                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20934                                                             haveit=
20935                     for x in $rpathdirs; do
20936                       if test "X$x" = "X$found_dir"; then
20937                         haveit=yes
20938                         break
20939                       fi
20940                     done
20941                     if test -z "$haveit"; then
20942                       rpathdirs="$rpathdirs $found_dir"
20943                     fi
20944                   else
20945                                                                                 haveit=
20946                     for x in $LDFLAGS $LIBINTL; do
20947
20948   acl_save_prefix="$prefix"
20949   prefix="$acl_final_prefix"
20950   acl_save_exec_prefix="$exec_prefix"
20951   exec_prefix="$acl_final_exec_prefix"
20952   eval x=\"$x\"
20953   exec_prefix="$acl_save_exec_prefix"
20954   prefix="$acl_save_prefix"
20955
20956                       if test "X$x" = "X-L$found_dir"; then
20957                         haveit=yes
20958                         break
20959                       fi
20960                     done
20961                     if test -z "$haveit"; then
20962                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
20963                     fi
20964                     if test "$hardcode_minus_L" != no; then
20965                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
20966                     else
20967                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
20968                     fi
20969                   fi
20970                 fi
20971               fi
20972             else
20973               if test "X$found_a" != "X"; then
20974                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
20975               else
20976                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
20977               fi
20978             fi
20979                         additional_includedir=
20980             case "$found_dir" in
20981               */lib | */lib/)
20982                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
20983                 additional_includedir="$basedir/include"
20984                 ;;
20985             esac
20986             if test "X$additional_includedir" != "X"; then
20987                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
20988                 haveit=
20989                 if test "X$additional_includedir" = "X/usr/local/include"; then
20990                   if test -n "$GCC"; then
20991                     case $host_os in
20992                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20993                     esac
20994                   fi
20995                 fi
20996                 if test -z "$haveit"; then
20997                   for x in $CPPFLAGS $INCINTL; do
20998
20999   acl_save_prefix="$prefix"
21000   prefix="$acl_final_prefix"
21001   acl_save_exec_prefix="$exec_prefix"
21002   exec_prefix="$acl_final_exec_prefix"
21003   eval x=\"$x\"
21004   exec_prefix="$acl_save_exec_prefix"
21005   prefix="$acl_save_prefix"
21006
21007                     if test "X$x" = "X-I$additional_includedir"; then
21008                       haveit=yes
21009                       break
21010                     fi
21011                   done
21012                   if test -z "$haveit"; then
21013                     if test -d "$additional_includedir"; then
21014                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21015                     fi
21016                   fi
21017                 fi
21018               fi
21019             fi
21020                         if test -n "$found_la"; then
21021                                                         save_libdir="$libdir"
21022               case "$found_la" in
21023                 */* | *\\*) . "$found_la" ;;
21024                 *) . "./$found_la" ;;
21025               esac
21026               libdir="$save_libdir"
21027                             for dep in $dependency_libs; do
21028                 case "$dep" in
21029                   -L*)
21030                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21031                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21032                       haveit=
21033                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21034                         if test -n "$GCC"; then
21035                           case $host_os in
21036                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21037                           esac
21038                         fi
21039                       fi
21040                       if test -z "$haveit"; then
21041                         haveit=
21042                         for x in $LDFLAGS $LIBINTL; do
21043
21044   acl_save_prefix="$prefix"
21045   prefix="$acl_final_prefix"
21046   acl_save_exec_prefix="$exec_prefix"
21047   exec_prefix="$acl_final_exec_prefix"
21048   eval x=\"$x\"
21049   exec_prefix="$acl_save_exec_prefix"
21050   prefix="$acl_save_prefix"
21051
21052                           if test "X$x" = "X-L$additional_libdir"; then
21053                             haveit=yes
21054                             break
21055                           fi
21056                         done
21057                         if test -z "$haveit"; then
21058                           if test -d "$additional_libdir"; then
21059                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21060                           fi
21061                         fi
21062                         haveit=
21063                         for x in $LDFLAGS $LTLIBINTL; do
21064
21065   acl_save_prefix="$prefix"
21066   prefix="$acl_final_prefix"
21067   acl_save_exec_prefix="$exec_prefix"
21068   exec_prefix="$acl_final_exec_prefix"
21069   eval x=\"$x\"
21070   exec_prefix="$acl_save_exec_prefix"
21071   prefix="$acl_save_prefix"
21072
21073                           if test "X$x" = "X-L$additional_libdir"; then
21074                             haveit=yes
21075                             break
21076                           fi
21077                         done
21078                         if test -z "$haveit"; then
21079                           if test -d "$additional_libdir"; then
21080                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21081                           fi
21082                         fi
21083                       fi
21084                     fi
21085                     ;;
21086                   -R*)
21087                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21088                     if test "$enable_rpath" != no; then
21089                                                                   haveit=
21090                       for x in $rpathdirs; do
21091                         if test "X$x" = "X$dir"; then
21092                           haveit=yes
21093                           break
21094                         fi
21095                       done
21096                       if test -z "$haveit"; then
21097                         rpathdirs="$rpathdirs $dir"
21098                       fi
21099                                                                   haveit=
21100                       for x in $ltrpathdirs; do
21101                         if test "X$x" = "X$dir"; then
21102                           haveit=yes
21103                           break
21104                         fi
21105                       done
21106                       if test -z "$haveit"; then
21107                         ltrpathdirs="$ltrpathdirs $dir"
21108                       fi
21109                     fi
21110                     ;;
21111                   -l*)
21112                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21113                     ;;
21114                   *.la)
21115                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21116                     ;;
21117                   *)
21118                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21119                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21120                     ;;
21121                 esac
21122               done
21123             fi
21124           else
21125                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21126             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21127           fi
21128         fi
21129       fi
21130     done
21131   done
21132   if test "X$rpathdirs" != "X"; then
21133     if test -n "$hardcode_libdir_separator"; then
21134                         alldirs=
21135       for found_dir in $rpathdirs; do
21136         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21137       done
21138             acl_save_libdir="$libdir"
21139       libdir="$alldirs"
21140       eval flag=\"$hardcode_libdir_flag_spec\"
21141       libdir="$acl_save_libdir"
21142       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21143     else
21144             for found_dir in $rpathdirs; do
21145         acl_save_libdir="$libdir"
21146         libdir="$found_dir"
21147         eval flag=\"$hardcode_libdir_flag_spec\"
21148         libdir="$acl_save_libdir"
21149         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21150       done
21151     fi
21152   fi
21153   if test "X$ltrpathdirs" != "X"; then
21154             for found_dir in $ltrpathdirs; do
21155       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21156     done
21157   fi
21158
21159           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21160 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21161 if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then :
21162   $as_echo_n "(cached) " >&6
21163 else
21164   gt_save_CPPFLAGS="$CPPFLAGS"
21165             CPPFLAGS="$CPPFLAGS $INCINTL"
21166             gt_save_LIBS="$LIBS"
21167             LIBS="$LIBS $LIBINTL"
21168                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21169 /* end confdefs.h.  */
21170 #include <libintl.h>
21171 extern int _nl_msg_cat_cntr;
21172 extern
21173 #ifdef __cplusplus
21174 "C"
21175 #endif
21176 const char *_nl_expand_alias (const char *);
21177 int
21178 main ()
21179 {
21180 bindtextdomain ("", "");
21181 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21182   ;
21183   return 0;
21184 }
21185 _ACEOF
21186 if ac_fn_c_try_link "$LINENO"; then :
21187   gt_cv_func_gnugettext1_libintl=yes
21188 else
21189   gt_cv_func_gnugettext1_libintl=no
21190 fi
21191 rm -f core conftest.err conftest.$ac_objext \
21192     conftest$ac_exeext conftest.$ac_ext
21193                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21194               LIBS="$LIBS $LIBICONV"
21195               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21196 /* end confdefs.h.  */
21197 #include <libintl.h>
21198 extern int _nl_msg_cat_cntr;
21199 extern
21200 #ifdef __cplusplus
21201 "C"
21202 #endif
21203 const char *_nl_expand_alias (const char *);
21204 int
21205 main ()
21206 {
21207 bindtextdomain ("", "");
21208 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21209   ;
21210   return 0;
21211 }
21212 _ACEOF
21213 if ac_fn_c_try_link "$LINENO"; then :
21214   LIBINTL="$LIBINTL $LIBICONV"
21215                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21216                 gt_cv_func_gnugettext1_libintl=yes
21217
21218 fi
21219 rm -f core conftest.err conftest.$ac_objext \
21220     conftest$ac_exeext conftest.$ac_ext
21221             fi
21222             CPPFLAGS="$gt_save_CPPFLAGS"
21223             LIBS="$gt_save_LIBS"
21224 fi
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21226 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21227         fi
21228
21229                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21230            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21231                 && test "$PACKAGE" != gettext-runtime \
21232                 && test "$PACKAGE" != gettext-tools; }; then
21233           gt_use_preinstalled_gnugettext=yes
21234         else
21235                     LIBINTL=
21236           LTLIBINTL=
21237           INCINTL=
21238         fi
21239
21240
21241         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21242                               nls_cv_use_gnu_gettext=yes
21243         fi
21244       fi
21245
21246       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21247                 BUILD_INCLUDED_LIBINTL=yes
21248         USE_INCLUDED_LIBINTL=yes
21249         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21250         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21251         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21252       fi
21253
21254       CATOBJEXT=
21255       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21256          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21257                 CATOBJEXT=.gmo
21258       fi
21259
21260
21261     if test -n "$INTL_MACOSX_LIBS"; then
21262       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21263          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21264                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21265         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21266       fi
21267     fi
21268
21269     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21270        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21271
21272 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21273
21274     else
21275       USE_NLS=no
21276     fi
21277   fi
21278
21279   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21280 $as_echo_n "checking whether to use NLS... " >&6; }
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21282 $as_echo "$USE_NLS" >&6; }
21283   if test "$USE_NLS" = "yes"; then
21284     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21285 $as_echo_n "checking where the gettext function comes from... " >&6; }
21286     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21287       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21288         gt_source="external libintl"
21289       else
21290         gt_source="libc"
21291       fi
21292     else
21293       gt_source="included intl directory"
21294     fi
21295     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21296 $as_echo "$gt_source" >&6; }
21297   fi
21298
21299   if test "$USE_NLS" = "yes"; then
21300
21301     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21302       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21303         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21304 $as_echo_n "checking how to link with libintl... " >&6; }
21305         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21306 $as_echo "$LIBINTL" >&6; }
21307
21308   for element in $INCINTL; do
21309     haveit=
21310     for x in $CPPFLAGS; do
21311
21312   acl_save_prefix="$prefix"
21313   prefix="$acl_final_prefix"
21314   acl_save_exec_prefix="$exec_prefix"
21315   exec_prefix="$acl_final_exec_prefix"
21316   eval x=\"$x\"
21317   exec_prefix="$acl_save_exec_prefix"
21318   prefix="$acl_save_prefix"
21319
21320       if test "X$x" = "X$element"; then
21321         haveit=yes
21322         break
21323       fi
21324     done
21325     if test -z "$haveit"; then
21326       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21327     fi
21328   done
21329
21330       fi
21331
21332
21333 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21334
21335
21336 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21337
21338     fi
21339
21340         POSUB=po
21341   fi
21342
21343
21344             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21345       BUILD_INCLUDED_LIBINTL=yes
21346     fi
21347
21348
21349
21350
21351
21352         nls_cv_header_intl=
21353     nls_cv_header_libgt=
21354
21355         DATADIRNAME=share
21356
21357
21358         INSTOBJEXT=.mo
21359
21360
21361         GENCAT=gencat
21362
21363
21364         INTLOBJS=
21365     if test "$USE_INCLUDED_LIBINTL" = yes; then
21366       INTLOBJS="\$(GETTOBJS)"
21367     fi
21368
21369
21370         INTL_LIBTOOL_SUFFIX_PREFIX=
21371
21372
21373
21374     INTLLIBS="$LIBINTL"
21375
21376
21377
21378
21379
21380
21381 fi
21382
21383 support_smartalloc=yes
21384 support_readline=yes
21385 support_conio=yes
21386 support_gnome=no
21387 support_bat=no
21388 support_wx_console=no
21389 support_tray_monitor=no
21390 support_tls=no
21391 support_crypto=no
21392 gnome_version=
21393 wx_version=
21394 support_static_tools=no
21395 support_static_fd=no
21396 support_static_sd=no
21397 support_static_dir=no
21398 support_static_cons=no
21399 support_python=no
21400 build_client_only=no
21401 build_dird=yes
21402 build_stored=yes
21403 db_backends=""
21404 support_lockmgr=no
21405
21406
21407 # Check whether --enable-gnome was given.
21408 if test "${enable_gnome+set}" = set; then :
21409   enableval=$enable_gnome;
21410        if test x$enableval = xyes; then
21411           support_gnome=yes
21412        fi
21413
21414
21415 fi
21416
21417
21418 GNOME_DIR=
21419 if test x$support_gnome = xyes; then
21420    as_fn_error "bgnome-console no longer supported" "$LINENO" 5
21421    as_fn_error "--enable-gnome option no longer supported" "$LINENO" 5
21422 fi
21423 # AC_SUBST(GNOME_DIR)
21424
21425 # Check whether --enable-bat was given.
21426 if test "${enable_bat+set}" = set; then :
21427   enableval=$enable_bat;
21428        if test x$enableval = xyes; then
21429
21430 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21431
21432           support_bat=yes
21433        fi
21434
21435
21436 fi
21437
21438
21439 BAT_DIR=
21440 if test x$support_bat = xyes; then
21441    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21442    pkg=$?
21443    if test $pkg = 0; then
21444       BAT_DIR=src/qt-console
21445    else
21446       as_fn_error "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21447    fi
21448 fi
21449
21450 got_qwt=no
21451 QWT_INC=
21452 QWT_LDFLAGS=
21453 QWT_LIB=
21454 QWT=
21455 no_qwt=no
21456
21457
21458
21459
21460
21461
21462
21463
21464 # Check whether --enable-bwx-console was given.
21465 if test "${enable_bwx_console+set}" = set; then :
21466   enableval=$enable_bwx_console;
21467        if test x$enableval = xyes; then
21468           support_wx_console=yes
21469        fi
21470
21471
21472 fi
21473
21474
21475 WX_DIR=
21476 if test x$support_wx_console = xyes; then
21477    abc=`$WXCONFIG $WXFLAGS --cppflags`
21478    pkg=$?
21479    if test $pkg = 0; then
21480       wx_version="wxWidgets `$WXCONFIG $WXFLAGS --release`"
21481       WXCONS_CPPFLAGS=`$WXCONFIG $WXFLAGS --cppflags`
21482       WXCONS_LDFLAGS=`$WXCONFIG $WXFLAGS --libs`
21483
21484
21485
21486       WX_DIR="src/wx-console"
21487    else
21488       echo " "
21489       echo "wx-config program not found. bwx-console disabled."
21490       echo " "
21491       support_wx_console=no
21492    fi
21493 fi
21494
21495
21496 # Check whether --enable-tray-monitor was given.
21497 if test "${enable_tray_monitor+set}" = set; then :
21498   enableval=$enable_tray_monitor;
21499        if test x$enableval = xyes; then
21500           support_tray_monitor=yes
21501        fi
21502
21503
21504 fi
21505
21506
21507 TRAY_MONITOR_DIR=
21508 if test x$support_tray_monitor = xyes; then
21509    abc=`$PKGCONFIG --exists gtk+-2.0`
21510    pkg=$?
21511    if test $pkg = 0; then
21512       TRAY_MONITOR_CPPFLAGS=`$PKGCONFIG --cflags gtk+-2.0`
21513       TRAY_MONITOR_LDFLAGS=`$PKGCONFIG --libs gtk+-2.0`
21514
21515
21516       TRAY_MONITOR_DIR=src/tray-monitor
21517       abc=`$PKGCONFIG --atleast-version=2.4 gtk+-2.0`
21518       pkg=$?
21519       if test $pkg = 0; then
21520
21521 $as_echo "#define HAVE_GTK_2_4 1" >>confdefs.h
21522
21523       fi
21524    fi
21525 fi
21526
21527
21528 # Check whether --enable-smartalloc was given.
21529 if test "${enable_smartalloc+set}" = set; then :
21530   enableval=$enable_smartalloc;
21531        if test x$enableval = xno; then
21532           support_smartalloc=no
21533        fi
21534
21535
21536 fi
21537
21538
21539 if test x$support_smartalloc = xyes; then
21540
21541 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21542
21543 fi
21544
21545 # Check whether --enable-lockmgr was given.
21546 if test "${enable_lockmgr+set}" = set; then :
21547   enableval=$enable_lockmgr;
21548        if test x$enableval = xyes; then
21549           support_lockmgr=yes
21550        fi
21551
21552
21553 fi
21554
21555
21556 if test x$support_lockmgr = xyes; then
21557
21558 $as_echo "#define _USE_LOCKMGR 1" >>confdefs.h
21559
21560 fi
21561
21562
21563 # Check whether --enable-static-tools was given.
21564 if test "${enable_static_tools+set}" = set; then :
21565   enableval=$enable_static_tools;
21566        if test x$enableval = xyes; then
21567           if test x$use_libtool = xyes; then
21568              as_fn_error "Libtool is enabled, not compatible with static tools,
21569   please rerun configure with --disable-libtool" "$LINENO" 5
21570           fi
21571           support_static_tools=yes
21572        fi
21573
21574
21575 fi
21576
21577
21578 TTOOL_LDFLAGS=
21579 if test x$support_static_tools = xyes; then
21580    TTOOL_LDFLAGS="-static"
21581 fi
21582
21583
21584 # Check whether --enable-static-fd was given.
21585 if test "${enable_static_fd+set}" = set; then :
21586   enableval=$enable_static_fd;
21587        if test x$enableval = xyes; then
21588           if test x$use_libtool = xyes; then
21589              as_fn_error "Libtool is enabled, not compatible with static tools,
21590   please rerun configure with --disable-libtool" "$LINENO" 5
21591           fi
21592           support_static_fd=yes
21593        fi
21594
21595
21596 fi
21597
21598
21599 STATIC_FD=
21600 if test x$support_static_fd = xyes; then
21601    STATIC_FD="static-bacula-fd"
21602 fi
21603
21604
21605 # Check whether --enable-static-sd was given.
21606 if test "${enable_static_sd+set}" = set; then :
21607   enableval=$enable_static_sd;
21608        if test x$enableval = xyes; then
21609           if test x$use_libtool = xyes; then
21610              as_fn_error "Libtool is enabled, not compatible with static tools,
21611   please rerun configure with --disable-libtool" "$LINENO" 5
21612           fi
21613           support_static_sd=yes
21614        fi
21615
21616
21617 fi
21618
21619
21620 STATIC_SD=
21621 if test x$support_static_sd = xyes; then
21622    STATIC_SD="static-bacula-sd"
21623 fi
21624
21625
21626 # Check whether --enable-static-dir was given.
21627 if test "${enable_static_dir+set}" = set; then :
21628   enableval=$enable_static_dir;
21629        if test x$enableval = xyes; then
21630           if test x$use_libtool = xyes; then
21631              as_fn_error "Libtool is enabled, not compatible with static tools,
21632   please rerun configure with --disable-libtool" "$LINENO" 5
21633           fi
21634           support_static_dir=yes
21635        fi
21636
21637
21638 fi
21639
21640
21641 STATIC_DIR=
21642 if test x$support_static_dir = xyes; then
21643    STATIC_DIR="static-bacula-dir"
21644 fi
21645
21646
21647 # Check whether --enable-static-cons was given.
21648 if test "${enable_static_cons+set}" = set; then :
21649   enableval=$enable_static_cons;
21650        if test x$enableval = xyes; then
21651           if test x$use_libtool = xyes; then
21652              as_fn_error "Libtool is enabled, not compatible with static tools,
21653   please rerun configure with --disable-libtool" "$LINENO" 5
21654           fi
21655           support_static_cons=yes
21656        fi
21657
21658
21659 fi
21660
21661
21662 STATIC_CONS=
21663 STATIC_GNOME_CONS=
21664 STATIC_WX_CONS=
21665 if test x$support_static_cons = xyes; then
21666    STATIC_CONS="static-bconsole"
21667    STATIC_GNOME_CONS="static-bgnome-console"
21668    STATIC_WX_CONS="static-bwx-console"
21669 fi
21670
21671
21672
21673
21674 # Check whether --enable-client-only was given.
21675 if test "${enable_client_only+set}" = set; then :
21676   enableval=$enable_client_only;
21677        if test x$enableval = xyes; then
21678           build_client_only=yes
21679           db_backends="None"
21680           DB_BACKENDS="none"
21681        fi
21682
21683
21684 fi
21685
21686 if test x$build_client_only = xno; then
21687    ALL_DIRS="subdirs"
21688 else
21689    ALL_DIRS=""
21690 fi
21691
21692
21693 # Check whether --enable-build-dird was given.
21694 if test "${enable_build_dird+set}" = set; then :
21695   enableval=$enable_build_dird;
21696        if test x$enableval = xno; then
21697           build_dird=no
21698        fi
21699
21700
21701 fi
21702
21703 if test x$build_dird = xyes; then
21704    DIRD_DIR="src/dird"
21705    DIR_TOOLS="DIRTOOLS"
21706 else
21707    DIRD_DIR=""
21708    DIR_TOOLS="NODIRTOOLS"
21709 fi
21710
21711
21712
21713 # Check whether --enable-build-stored was given.
21714 if test "${enable_build_stored+set}" = set; then :
21715   enableval=$enable_build_stored;
21716       if test x$enableval = xno; then
21717          build_stored=no
21718       fi
21719
21720
21721 fi
21722
21723 if test x$build_stored = xyes; then
21724    STORED_DIR="src/stored"
21725 else
21726    STORED_DIR=""
21727 fi
21728
21729
21730 # Check whether --enable-conio was given.
21731 if test "${enable_conio+set}" = set; then :
21732   enableval=$enable_conio;
21733        if test x$enableval = xno; then
21734           support_conio=no
21735        fi
21736
21737
21738 fi
21739
21740
21741
21742 support_ipv6=yes
21743 # Check whether --enable-ipv6 was given.
21744 if test "${enable_ipv6+set}" = set; then :
21745   enableval=$enable_ipv6;
21746        if test x$enableval = xno; then
21747           support_ipv6=no
21748        fi
21749
21750
21751 fi
21752
21753
21754 if test x$support_ipv6 = xyes; then
21755     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21756 /* end confdefs.h.  */
21757  #include <sys/types.h>
21758 #include <sys/socket.h>
21759 #include <netinet/in.h>
21760 int
21761 main ()
21762 {
21763 struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
21764   ;
21765   return 0;
21766 }
21767 _ACEOF
21768 if ac_fn_c_try_link "$LINENO"; then :
21769   support_ipv6=yes
21770 else
21771   support_ipv6=no
21772 fi
21773 rm -f core conftest.err conftest.$ac_objext \
21774     conftest$ac_exeext conftest.$ac_ext
21775 fi
21776
21777 if test x$support_ipv6 = xyes; then
21778
21779 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
21780
21781 fi
21782
21783 TERM_LIB=""
21784 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21785 if test "x$ac_cv_header_curses_h" = x""yes; then :
21786
21787     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
21788 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
21789 if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
21790   $as_echo_n "(cached) " >&6
21791 else
21792   ac_check_lib_save_LIBS=$LIBS
21793 LIBS="-ltinfo  $LIBS"
21794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21795 /* end confdefs.h.  */
21796
21797 /* Override any GCC internal prototype to avoid an error.
21798    Use char because int might match the return type of a GCC
21799    builtin and then its argument prototype would still apply.  */
21800 #ifdef __cplusplus
21801 extern "C"
21802 #endif
21803 char tgetent ();
21804 int
21805 main ()
21806 {
21807 return tgetent ();
21808   ;
21809   return 0;
21810 }
21811 _ACEOF
21812 if ac_fn_c_try_link "$LINENO"; then :
21813   ac_cv_lib_tinfo_tgetent=yes
21814 else
21815   ac_cv_lib_tinfo_tgetent=no
21816 fi
21817 rm -f core conftest.err conftest.$ac_objext \
21818     conftest$ac_exeext conftest.$ac_ext
21819 LIBS=$ac_check_lib_save_LIBS
21820 fi
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
21822 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
21823 if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
21824    TERM_LIB="-ltinfo"
21825 else
21826
21827       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
21828 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
21829 if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
21830   $as_echo_n "(cached) " >&6
21831 else
21832   ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-lncurses  $LIBS"
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h.  */
21836
21837 /* Override any GCC internal prototype to avoid an error.
21838    Use char because int might match the return type of a GCC
21839    builtin and then its argument prototype would still apply.  */
21840 #ifdef __cplusplus
21841 extern "C"
21842 #endif
21843 char tgetent ();
21844 int
21845 main ()
21846 {
21847 return tgetent ();
21848   ;
21849   return 0;
21850 }
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853   ac_cv_lib_ncurses_tgetent=yes
21854 else
21855   ac_cv_lib_ncurses_tgetent=no
21856 fi
21857 rm -f core conftest.err conftest.$ac_objext \
21858     conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21860 fi
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
21862 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
21863 if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
21864    TERM_LIB="-lncurses"
21865 else
21866
21867         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
21868 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
21869 if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
21870   $as_echo_n "(cached) " >&6
21871 else
21872   ac_check_lib_save_LIBS=$LIBS
21873 LIBS="-ltermcap  $LIBS"
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h.  */
21876
21877 /* Override any GCC internal prototype to avoid an error.
21878    Use char because int might match the return type of a GCC
21879    builtin and then its argument prototype would still apply.  */
21880 #ifdef __cplusplus
21881 extern "C"
21882 #endif
21883 char tgetent ();
21884 int
21885 main ()
21886 {
21887 return tgetent ();
21888   ;
21889   return 0;
21890 }
21891 _ACEOF
21892 if ac_fn_c_try_link "$LINENO"; then :
21893   ac_cv_lib_termcap_tgetent=yes
21894 else
21895   ac_cv_lib_termcap_tgetent=no
21896 fi
21897 rm -f core conftest.err conftest.$ac_objext \
21898     conftest$ac_exeext conftest.$ac_ext
21899 LIBS=$ac_check_lib_save_LIBS
21900 fi
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
21902 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
21903 if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
21904    TERM_LIB="-ltermcap"
21905 fi
21906
21907
21908 fi
21909
21910
21911 fi
21912
21913
21914 else
21915     for ac_header in curses.h
21916 do :
21917   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
21918 if test "x$ac_cv_header_curses_h" = x""yes; then :
21919   cat >>confdefs.h <<_ACEOF
21920 #define HAVE_CURSES_H 1
21921 _ACEOF
21922
21923 fi
21924
21925 done
21926
21927      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
21928 if test "x$ac_cv_header_term_h" = x""yes; then :
21929    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
21930 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
21931 if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
21932   $as_echo_n "(cached) " >&6
21933 else
21934   ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lcurses  $LIBS"
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h.  */
21938
21939 /* Override any GCC internal prototype to avoid an error.
21940    Use char because int might match the return type of a GCC
21941    builtin and then its argument prototype would still apply.  */
21942 #ifdef __cplusplus
21943 extern "C"
21944 #endif
21945 char tgetent ();
21946 int
21947 main ()
21948 {
21949 return tgetent ();
21950   ;
21951   return 0;
21952 }
21953 _ACEOF
21954 if ac_fn_c_try_link "$LINENO"; then :
21955   ac_cv_lib_curses_tgetent=yes
21956 else
21957   ac_cv_lib_curses_tgetent=no
21958 fi
21959 rm -f core conftest.err conftest.$ac_objext \
21960     conftest$ac_exeext conftest.$ac_ext
21961 LIBS=$ac_check_lib_save_LIBS
21962 fi
21963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
21964 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
21965 if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
21966    TERM_LIB="-lcurses"
21967 fi
21968
21969
21970 fi
21971
21972
21973
21974 fi
21975
21976
21977
21978
21979 got_conio="no"
21980 if test x$support_conio = xyes; then
21981    if test x$TERM_LIB != x; then
21982       CONS_LIBS=$TERM_LIB
21983       CONS_OBJ="conio.o"
21984       CONS_SRC="conio.c"
21985       got_conio="yes"
21986       support_readline=no
21987
21988 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
21989
21990    else
21991       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
21992    fi
21993 fi
21994
21995
21996 # Check whether --enable-readline was given.
21997 if test "${enable_readline+set}" = set; then :
21998   enableval=$enable_readline;
21999        if test x$enableval = xno; then
22000           support_readline=no
22001        fi
22002
22003
22004 fi
22005
22006 if test x$TERM_LIB = x ; then
22007    support_readline=no
22008 fi
22009
22010 got_readline="no"
22011 READLINE_SRC=
22012 if test x$support_readline = xyes; then
22013
22014 # Check whether --with-readline was given.
22015 if test "${with_readline+set}" = set; then :
22016   withval=$with_readline;
22017           case "$with_readline" in
22018           no)
22019              :
22020              ;;
22021           yes|*)
22022              if test -f ${with_readline}/readline.h; then
22023                 CONS_INC="-I${with_readline}"
22024                 CONS_LDFLAGS="-L$with_readline"
22025              elif test -f ${with_readline}/include/readline/readline.h; then
22026                 CONS_INC="-I${with_readline}/include/readline"
22027                 CONS_LDFLAGS="-L${with_readline}/lib"
22028                 with_readline="${with_readline}/include/readline"
22029              else
22030                 with_readline="/usr/include/readline"
22031              fi
22032
22033              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22034 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22035 eval as_val=\$$as_ac_Header
22036    if test "x$as_val" = x""yes; then :
22037
22038
22039 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22040
22041                     CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22042                     got_readline="yes"
22043
22044 else
22045
22046                     echo " "
22047                     echo "readline.h not found. readline turned off ..."
22048                     echo " "
22049
22050
22051 fi
22052
22053
22054              ;;
22055           esac
22056
22057 else
22058
22059                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22060 if test "x$ac_cv_header__usr_include_readline_readline_h" = x""yes; then :
22061
22062
22063 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22064
22065                 got_readline="yes"
22066                 CONS_INC="-I/usr/include/readline"
22067                 CONS_LIBS="-lreadline $TERM_LIB"
22068
22069 else
22070
22071                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22072 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22073 eval as_val=\$$as_ac_Header
22074    if test "x$as_val" = x""yes; then :
22075
22076
22077 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22078
22079                         got_readline="yes"
22080                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22081                         CONS_LIBS="-lreadline -lhistory $TERM_LIB"
22082                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22083                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22084
22085 else
22086
22087                         echo " "
22088                         echo "readline.h not found. readline turned off ..."
22089                         echo " "
22090
22091
22092 fi
22093
22094
22095
22096
22097 fi
22098
22099
22100
22101
22102 fi
22103
22104 fi
22105
22106
22107
22108
22109
22110
22111
22112
22113 MAKE_SHELL=/bin/sh
22114
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22116 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22117 if test "${ac_cv_header_stat_broken+set}" = set; then :
22118   $as_echo_n "(cached) " >&6
22119 else
22120   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22121 /* end confdefs.h.  */
22122 #include <sys/types.h>
22123 #include <sys/stat.h>
22124
22125 #if defined S_ISBLK && defined S_IFDIR
22126 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22127 #endif
22128
22129 #if defined S_ISBLK && defined S_IFCHR
22130 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22131 #endif
22132
22133 #if defined S_ISLNK && defined S_IFREG
22134 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22135 #endif
22136
22137 #if defined S_ISSOCK && defined S_IFREG
22138 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22139 #endif
22140
22141 _ACEOF
22142 if ac_fn_c_try_compile "$LINENO"; then :
22143   ac_cv_header_stat_broken=no
22144 else
22145   ac_cv_header_stat_broken=yes
22146 fi
22147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22148 fi
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22150 $as_echo "$ac_cv_header_stat_broken" >&6; }
22151 if test $ac_cv_header_stat_broken = yes; then
22152
22153 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22154
22155 fi
22156
22157 ac_header_dirent=no
22158 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22159   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22161 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
22163   $as_echo_n "(cached) " >&6
22164 else
22165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h.  */
22167 #include <sys/types.h>
22168 #include <$ac_hdr>
22169
22170 int
22171 main ()
22172 {
22173 if ((DIR *) 0)
22174 return 0;
22175   ;
22176   return 0;
22177 }
22178 _ACEOF
22179 if ac_fn_c_try_compile "$LINENO"; then :
22180   eval "$as_ac_Header=yes"
22181 else
22182   eval "$as_ac_Header=no"
22183 fi
22184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22185 fi
22186 eval ac_res=\$$as_ac_Header
22187                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22188 $as_echo "$ac_res" >&6; }
22189 eval as_val=\$$as_ac_Header
22190    if test "x$as_val" = x""yes; then :
22191   cat >>confdefs.h <<_ACEOF
22192 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22193 _ACEOF
22194
22195 ac_header_dirent=$ac_hdr; break
22196 fi
22197
22198 done
22199 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22200 if test $ac_header_dirent = dirent.h; then
22201   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22202 $as_echo_n "checking for library containing opendir... " >&6; }
22203 if test "${ac_cv_search_opendir+set}" = set; then :
22204   $as_echo_n "(cached) " >&6
22205 else
22206   ac_func_search_save_LIBS=$LIBS
22207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22208 /* end confdefs.h.  */
22209
22210 /* Override any GCC internal prototype to avoid an error.
22211    Use char because int might match the return type of a GCC
22212    builtin and then its argument prototype would still apply.  */
22213 #ifdef __cplusplus
22214 extern "C"
22215 #endif
22216 char opendir ();
22217 int
22218 main ()
22219 {
22220 return opendir ();
22221   ;
22222   return 0;
22223 }
22224 _ACEOF
22225 for ac_lib in '' dir; do
22226   if test -z "$ac_lib"; then
22227     ac_res="none required"
22228   else
22229     ac_res=-l$ac_lib
22230     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22231   fi
22232   if ac_fn_c_try_link "$LINENO"; then :
22233   ac_cv_search_opendir=$ac_res
22234 fi
22235 rm -f core conftest.err conftest.$ac_objext \
22236     conftest$ac_exeext
22237   if test "${ac_cv_search_opendir+set}" = set; then :
22238   break
22239 fi
22240 done
22241 if test "${ac_cv_search_opendir+set}" = set; then :
22242
22243 else
22244   ac_cv_search_opendir=no
22245 fi
22246 rm conftest.$ac_ext
22247 LIBS=$ac_func_search_save_LIBS
22248 fi
22249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22250 $as_echo "$ac_cv_search_opendir" >&6; }
22251 ac_res=$ac_cv_search_opendir
22252 if test "$ac_res" != no; then :
22253   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22254
22255 fi
22256
22257 else
22258   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22259 $as_echo_n "checking for library containing opendir... " >&6; }
22260 if test "${ac_cv_search_opendir+set}" = set; then :
22261   $as_echo_n "(cached) " >&6
22262 else
22263   ac_func_search_save_LIBS=$LIBS
22264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22265 /* end confdefs.h.  */
22266
22267 /* Override any GCC internal prototype to avoid an error.
22268    Use char because int might match the return type of a GCC
22269    builtin and then its argument prototype would still apply.  */
22270 #ifdef __cplusplus
22271 extern "C"
22272 #endif
22273 char opendir ();
22274 int
22275 main ()
22276 {
22277 return opendir ();
22278   ;
22279   return 0;
22280 }
22281 _ACEOF
22282 for ac_lib in '' x; do
22283   if test -z "$ac_lib"; then
22284     ac_res="none required"
22285   else
22286     ac_res=-l$ac_lib
22287     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22288   fi
22289   if ac_fn_c_try_link "$LINENO"; then :
22290   ac_cv_search_opendir=$ac_res
22291 fi
22292 rm -f core conftest.err conftest.$ac_objext \
22293     conftest$ac_exeext
22294   if test "${ac_cv_search_opendir+set}" = set; then :
22295   break
22296 fi
22297 done
22298 if test "${ac_cv_search_opendir+set}" = set; then :
22299
22300 else
22301   ac_cv_search_opendir=no
22302 fi
22303 rm conftest.$ac_ext
22304 LIBS=$ac_func_search_save_LIBS
22305 fi
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22307 $as_echo "$ac_cv_search_opendir" >&6; }
22308 ac_res=$ac_cv_search_opendir
22309 if test "$ac_res" != no; then :
22310   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22311
22312 fi
22313
22314 fi
22315
22316 for ac_func in strcasecmp select setenv putenv tcgetattr lstat lchown
22317 do :
22318   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22320 eval as_val=\$$as_ac_var
22321    if test "x$as_val" = x""yes; then :
22322   cat >>confdefs.h <<_ACEOF
22323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22324 _ACEOF
22325
22326 fi
22327 done
22328
22329 for ac_func in nanosleep nl_langinfo
22330 do :
22331   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22332 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22333 eval as_val=\$$as_ac_var
22334    if test "x$as_val" = x""yes; then :
22335   cat >>confdefs.h <<_ACEOF
22336 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22337 _ACEOF
22338
22339 fi
22340 done
22341
22342 for ac_header in varargs.h
22343 do :
22344   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22345 if test "x$ac_cv_header_varargs_h" = x""yes; then :
22346   cat >>confdefs.h <<_ACEOF
22347 #define HAVE_VARARGS_H 1
22348 _ACEOF
22349
22350 fi
22351
22352 done
22353
22354
22355
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python support" >&5
22357 $as_echo_n "checking for Python support... " >&6; }
22358
22359 # Check whether --with-python was given.
22360 if test "${with_python+set}" = set; then :
22361   withval=$with_python;
22362        PYTHON_INCDIR=
22363        PYTHON_LIBS=
22364        if test "$withval" != "no"; then
22365           if test "$withval" = "yes"; then
22366              if test -e /usr/bin/python-config ; then
22367                 PYTHON_INCDIR=`/usr/bin/python-config --includes`
22368                 PYTHON_LIBS=`/usr/bin/python-config --libs`
22369              else
22370                 for python_root in /usr /usr/local /usr/sfw; do
22371                    for ver in python2.2 python2.3 python2.4 python2.5 python2.6 python3; do
22372                       if test -f $python_root/include/${ver}/Python.h; then
22373                          PYTHON_INCDIR=-I$python_root/include/${ver}
22374                          if test -d $python_root/lib64/${ver}/config; then
22375                             PYTHON_LIBS="-L$python_root/lib64/${ver}/config -l${ver}"
22376                          else
22377                             PYTHON_LIBS="-L$python_root/lib/${ver}/config -l${ver}"
22378                          fi
22379                          break
22380                       fi
22381                    done
22382                 done
22383
22384                 if test x$PYTHON_INCDIR = x; then
22385                    if test -f $prefix/include/Python.h; then
22386                       PYTHON_INCDIR=-I$prefix/include
22387                       if test -d $prefix/lib64/config; then
22388                          PYTHON_LIBS="-L$prefix/lib64/config -lpython"
22389                       else
22390                          PYTHON_LIBS="-L$prefix/lib/config -lpython"
22391                       fi
22392                    else
22393                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22394 $as_echo "no" >&6; }
22395                       as_fn_error "Unable to find Python.h in standard locations" "$LINENO" 5
22396                    fi
22397                 fi
22398              fi
22399           else
22400              if test -e $withval/bin/python-config ; then
22401                 PYTHON_INCDIR=`$withval/bin/python-config --includes`
22402                 PYTHON_LIBS=`$withval/bin/python-config --libs`
22403              elif test -f $withval/Python.h; then
22404                 PYTHON_INCDIR=-I$withval
22405                 PYTHON_LIBS="-L$withval/config -lpython"
22406              elif test -f $withval/include/Python.h; then
22407                 PYTHON_INCDIR=-I$withval/include
22408                 if test -d $withval/lib64/config; then
22409                    PYTHON_LIBS="-L$withval/lib64/config -lpython"
22410                 else
22411                    PYTHON_LIBS="-L$withval/lib/config -lpython"
22412                 fi
22413              elif test -f $withval/include/python/Python.h; then
22414                 PYTHON_INCDIR=-I$withval/include/python
22415                 if test -d $withval/lib64/python/config; then
22416                    PYTHON_LIBS="-L$withval/lib64/python/config -lpython"
22417                 else
22418                    PYTHON_LIBS="-L$withval/lib/python/config -lpython"
22419                 fi
22420              else
22421                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22423                 as_fn_error "Invalid Python directory $withval - unable to find Python.h under $withval" "$LINENO" 5
22424              fi
22425           fi
22426
22427           $as_echo "#define HAVE_PYTHON 1" >>confdefs.h
22428
22429           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22430 $as_echo "yes" >&6; }
22431           support_python=yes
22432           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for more Python libs" >&5
22433 $as_echo "$as_me: checking for more Python libs" >&6;}
22434           saved_LIBS="$LIBS"; LIBS=
22435           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing shm_open" >&5
22436 $as_echo_n "checking for library containing shm_open... " >&6; }
22437 if test "${ac_cv_search_shm_open+set}" = set; then :
22438   $as_echo_n "(cached) " >&6
22439 else
22440   ac_func_search_save_LIBS=$LIBS
22441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22442 /* end confdefs.h.  */
22443
22444 /* Override any GCC internal prototype to avoid an error.
22445    Use char because int might match the return type of a GCC
22446    builtin and then its argument prototype would still apply.  */
22447 #ifdef __cplusplus
22448 extern "C"
22449 #endif
22450 char shm_open ();
22451 int
22452 main ()
22453 {
22454 return shm_open ();
22455   ;
22456   return 0;
22457 }
22458 _ACEOF
22459 for ac_lib in '' rt; do
22460   if test -z "$ac_lib"; then
22461     ac_res="none required"
22462   else
22463     ac_res=-l$ac_lib
22464     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22465   fi
22466   if ac_fn_c_try_link "$LINENO"; then :
22467   ac_cv_search_shm_open=$ac_res
22468 fi
22469 rm -f core conftest.err conftest.$ac_objext \
22470     conftest$ac_exeext
22471   if test "${ac_cv_search_shm_open+set}" = set; then :
22472   break
22473 fi
22474 done
22475 if test "${ac_cv_search_shm_open+set}" = set; then :
22476
22477 else
22478   ac_cv_search_shm_open=no
22479 fi
22480 rm conftest.$ac_ext
22481 LIBS=$ac_func_search_save_LIBS
22482 fi
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_shm_open" >&5
22484 $as_echo "$ac_cv_search_shm_open" >&6; }
22485 ac_res=$ac_cv_search_shm_open
22486 if test "$ac_res" != no; then :
22487   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22488
22489 fi
22490
22491           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openpty in -lutil" >&5
22492 $as_echo_n "checking for openpty in -lutil... " >&6; }
22493 if test "${ac_cv_lib_util_openpty+set}" = set; then :
22494   $as_echo_n "(cached) " >&6
22495 else
22496   ac_check_lib_save_LIBS=$LIBS
22497 LIBS="-lutil  $LIBS"
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h.  */
22500
22501 /* Override any GCC internal prototype to avoid an error.
22502    Use char because int might match the return type of a GCC
22503    builtin and then its argument prototype would still apply.  */
22504 #ifdef __cplusplus
22505 extern "C"
22506 #endif
22507 char openpty ();
22508 int
22509 main ()
22510 {
22511 return openpty ();
22512   ;
22513   return 0;
22514 }
22515 _ACEOF
22516 if ac_fn_c_try_link "$LINENO"; then :
22517   ac_cv_lib_util_openpty=yes
22518 else
22519   ac_cv_lib_util_openpty=no
22520 fi
22521 rm -f core conftest.err conftest.$ac_objext \
22522     conftest$ac_exeext conftest.$ac_ext
22523 LIBS=$ac_check_lib_save_LIBS
22524 fi
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_openpty" >&5
22526 $as_echo "$ac_cv_lib_util_openpty" >&6; }
22527 if test "x$ac_cv_lib_util_openpty" = x""yes; then :
22528   cat >>confdefs.h <<_ACEOF
22529 #define HAVE_LIBUTIL 1
22530 _ACEOF
22531
22532   LIBS="-lutil $LIBS"
22533
22534 fi
22535
22536           PYTHON_LIBS="$PYTHON_LIBS $LIBS"
22537           LIBS="$saved_LIBS"
22538        else
22539           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22540 $as_echo "no" >&6; }
22541        fi
22542
22543 else
22544
22545        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22546 $as_echo "no" >&6; }
22547
22548
22549 fi
22550
22551
22552
22553
22554 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22555 if test "x$ac_cv_func_socket" = x""yes; then :
22556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22557 $as_echo "using libc's socket" >&6; }
22558 else
22559   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22560 $as_echo_n "checking for socket in -lxnet... " >&6; }
22561 if test "${ac_cv_lib_xnet_socket+set}" = set; then :
22562   $as_echo_n "(cached) " >&6
22563 else
22564   ac_check_lib_save_LIBS=$LIBS
22565 LIBS="-lxnet  $LIBS"
22566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22567 /* end confdefs.h.  */
22568
22569 /* Override any GCC internal prototype to avoid an error.
22570    Use char because int might match the return type of a GCC
22571    builtin and then its argument prototype would still apply.  */
22572 #ifdef __cplusplus
22573 extern "C"
22574 #endif
22575 char socket ();
22576 int
22577 main ()
22578 {
22579 return socket ();
22580   ;
22581   return 0;
22582 }
22583 _ACEOF
22584 if ac_fn_c_try_link "$LINENO"; then :
22585   ac_cv_lib_xnet_socket=yes
22586 else
22587   ac_cv_lib_xnet_socket=no
22588 fi
22589 rm -f core conftest.err conftest.$ac_objext \
22590     conftest$ac_exeext conftest.$ac_ext
22591 LIBS=$ac_check_lib_save_LIBS
22592 fi
22593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22594 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22595 if test "x$ac_cv_lib_xnet_socket" = x""yes; then :
22596   cat >>confdefs.h <<_ACEOF
22597 #define HAVE_LIBXNET 1
22598 _ACEOF
22599
22600   LIBS="-lxnet $LIBS"
22601
22602 fi
22603
22604     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22605 $as_echo_n "checking for socket in -lsocket... " >&6; }
22606 if test "${ac_cv_lib_socket_socket+set}" = set; then :
22607   $as_echo_n "(cached) " >&6
22608 else
22609   ac_check_lib_save_LIBS=$LIBS
22610 LIBS="-lsocket  $LIBS"
22611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22612 /* end confdefs.h.  */
22613
22614 /* Override any GCC internal prototype to avoid an error.
22615    Use char because int might match the return type of a GCC
22616    builtin and then its argument prototype would still apply.  */
22617 #ifdef __cplusplus
22618 extern "C"
22619 #endif
22620 char socket ();
22621 int
22622 main ()
22623 {
22624 return socket ();
22625   ;
22626   return 0;
22627 }
22628 _ACEOF
22629 if ac_fn_c_try_link "$LINENO"; then :
22630   ac_cv_lib_socket_socket=yes
22631 else
22632   ac_cv_lib_socket_socket=no
22633 fi
22634 rm -f core conftest.err conftest.$ac_objext \
22635     conftest$ac_exeext conftest.$ac_ext
22636 LIBS=$ac_check_lib_save_LIBS
22637 fi
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22639 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22640 if test "x$ac_cv_lib_socket_socket" = x""yes; then :
22641   cat >>confdefs.h <<_ACEOF
22642 #define HAVE_LIBSOCKET 1
22643 _ACEOF
22644
22645   LIBS="-lsocket $LIBS"
22646
22647 fi
22648
22649     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22650 $as_echo_n "checking for socket in -linet... " >&6; }
22651 if test "${ac_cv_lib_inet_socket+set}" = set; then :
22652   $as_echo_n "(cached) " >&6
22653 else
22654   ac_check_lib_save_LIBS=$LIBS
22655 LIBS="-linet  $LIBS"
22656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22657 /* end confdefs.h.  */
22658
22659 /* Override any GCC internal prototype to avoid an error.
22660    Use char because int might match the return type of a GCC
22661    builtin and then its argument prototype would still apply.  */
22662 #ifdef __cplusplus
22663 extern "C"
22664 #endif
22665 char socket ();
22666 int
22667 main ()
22668 {
22669 return socket ();
22670   ;
22671   return 0;
22672 }
22673 _ACEOF
22674 if ac_fn_c_try_link "$LINENO"; then :
22675   ac_cv_lib_inet_socket=yes
22676 else
22677   ac_cv_lib_inet_socket=no
22678 fi
22679 rm -f core conftest.err conftest.$ac_objext \
22680     conftest$ac_exeext conftest.$ac_ext
22681 LIBS=$ac_check_lib_save_LIBS
22682 fi
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22684 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22685 if test "x$ac_cv_lib_inet_socket" = x""yes; then :
22686   cat >>confdefs.h <<_ACEOF
22687 #define HAVE_LIBINET 1
22688 _ACEOF
22689
22690   LIBS="-linet $LIBS"
22691
22692 fi
22693
22694 fi
22695
22696
22697 TCPW_MSG="no"
22698 WRAPLIBS=""
22699
22700 # Check whether --with-tcp-wrappers was given.
22701 if test "${with_tcp_wrappers+set}" = set; then :
22702   withval=$with_tcp_wrappers;
22703        if test "x$withval" != "xno" ; then
22704           saved_LIBS="$LIBS"
22705           LIBS="$saved_LIBS -lwrap"
22706           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22707 $as_echo_n "checking for library containing nanosleep... " >&6; }
22708 if test "${ac_cv_search_nanosleep+set}" = set; then :
22709   $as_echo_n "(cached) " >&6
22710 else
22711   ac_func_search_save_LIBS=$LIBS
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h.  */
22714
22715 /* Override any GCC internal prototype to avoid an error.
22716    Use char because int might match the return type of a GCC
22717    builtin and then its argument prototype would still apply.  */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char nanosleep ();
22722 int
22723 main ()
22724 {
22725 return nanosleep ();
22726   ;
22727   return 0;
22728 }
22729 _ACEOF
22730 for ac_lib in '' rt; do
22731   if test -z "$ac_lib"; then
22732     ac_res="none required"
22733   else
22734     ac_res=-l$ac_lib
22735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22736   fi
22737   if ac_fn_c_try_link "$LINENO"; then :
22738   ac_cv_search_nanosleep=$ac_res
22739 fi
22740 rm -f core conftest.err conftest.$ac_objext \
22741     conftest$ac_exeext
22742   if test "${ac_cv_search_nanosleep+set}" = set; then :
22743   break
22744 fi
22745 done
22746 if test "${ac_cv_search_nanosleep+set}" = set; then :
22747
22748 else
22749   ac_cv_search_nanosleep=no
22750 fi
22751 rm conftest.$ac_ext
22752 LIBS=$ac_func_search_save_LIBS
22753 fi
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22755 $as_echo "$ac_cv_search_nanosleep" >&6; }
22756 ac_res=$ac_cv_search_nanosleep
22757 if test "$ac_res" != no; then :
22758   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22759
22760 fi
22761
22762           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22763 $as_echo_n "checking for libwrap... " >&6; }
22764           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765 /* end confdefs.h.  */
22766
22767                #include <sys/types.h>
22768                #include <tcpd.h>
22769                int deny_severity = 0;
22770                int allow_severity = 0;
22771                struct request_info *req;
22772
22773 int
22774 main ()
22775 {
22776
22777                 hosts_access(req);
22778
22779   ;
22780   return 0;
22781 }
22782 _ACEOF
22783 if ac_fn_c_try_link "$LINENO"; then :
22784
22785                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22786 $as_echo "yes" >&6; }
22787
22788 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22789
22790                  TCPW_MSG="yes"
22791                  LIBS="$saved_LIBS"
22792                  WRAPLIBS="-lwrap"
22793
22794 else
22795
22796                  LIBS="$saved_LIBS -lwrap -lnsl"
22797                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22798                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22799 /* end confdefs.h.  */
22800
22801                        #include <sys/types.h>
22802                        #include <tcpd.h>
22803                        int deny_severity = 0;
22804                        int allow_severity = 0;
22805                        struct request_info *req;
22806
22807 int
22808 main ()
22809 {
22810
22811                        hosts_access(req);
22812
22813   ;
22814   return 0;
22815 }
22816 _ACEOF
22817 if ac_fn_c_try_link "$LINENO"; then :
22818
22819                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22820 $as_echo "yes" >&6; }
22821
22822 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22823
22824                       TCPW_MSG="yes"
22825                       LIBS="$saved_LIBS"
22826                       WRAPLIBS="-lwrap"
22827
22828 else
22829
22830                       as_fn_error "*** libwrap missing" "$LINENO" 5
22831
22832
22833 fi
22834 rm -f core conftest.err conftest.$ac_objext \
22835     conftest$ac_exeext conftest.$ac_ext
22836
22837
22838 fi
22839 rm -f core conftest.err conftest.$ac_objext \
22840     conftest$ac_exeext conftest.$ac_ext
22841        fi
22842
22843
22844 fi
22845
22846
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22848 $as_echo_n "checking for OpenSSL... " >&6; }
22849
22850 # Check whether --with-openssl was given.
22851 if test "${with_openssl+set}" = set; then :
22852   withval=$with_openssl;
22853         with_openssl_directory=${withval}
22854
22855
22856 fi
22857
22858
22859 if test "x$with_openssl_directory" != "xno"; then
22860    OPENSSL_LIBS="-lssl -lcrypto"
22861    OPENSSL_INC=""
22862
22863    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22864       #
22865       # Make sure the $with_openssl_directory also makes sense
22866       #
22867       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22868          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22869          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22870       fi
22871    fi
22872
22873    saved_LIBS="${LIBS}"
22874    saved_CFLAGS="${CFLAGS}"
22875    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22876    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22877
22878    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22879 /* end confdefs.h.  */
22880
22881           #include <openssl/ssl.h>
22882
22883 int
22884 main ()
22885 {
22886
22887            CRYPTO_set_id_callback(NULL);
22888
22889   ;
22890   return 0;
22891 }
22892 _ACEOF
22893 if ac_fn_c_try_link "$LINENO"; then :
22894
22895           support_tls="yes"
22896           support_crypto="yes"
22897
22898 else
22899
22900           support_tls="no"
22901           support_crypto="no"
22902
22903
22904 fi
22905 rm -f core conftest.err conftest.$ac_objext \
22906     conftest$ac_exeext conftest.$ac_ext
22907
22908    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22909 /* end confdefs.h.  */
22910
22911           #include <openssl/evp.h>
22912
22913 int
22914 main ()
22915 {
22916
22917           EVP_sha512();
22918
22919   ;
22920   return 0;
22921 }
22922 _ACEOF
22923 if ac_fn_c_try_link "$LINENO"; then :
22924
22925           ac_cv_openssl_sha2="yes"
22926
22927 else
22928
22929           ac_cv_openssl_sha2="no"
22930
22931
22932 fi
22933 rm -f core conftest.err conftest.$ac_objext \
22934     conftest$ac_exeext conftest.$ac_ext
22935
22936                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22937 /* end confdefs.h.  */
22938
22939           #include <openssl/evp.h>
22940
22941 int
22942 main ()
22943 {
22944
22945           EVP_aes_192_cbc();
22946
22947   ;
22948   return 0;
22949 }
22950 _ACEOF
22951 if ac_fn_c_try_link "$LINENO"; then :
22952
22953           ac_cv_openssl_export="no"
22954
22955 else
22956
22957           ac_cv_openssl_export="yes"
22958
22959
22960 fi
22961 rm -f core conftest.err conftest.$ac_objext \
22962     conftest$ac_exeext conftest.$ac_ext
22963
22964    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
22965 $as_echo "$support_tls" >&6; }
22966    if test "$support_tls" = "yes"; then
22967
22968 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
22969
22970
22971 $as_echo "#define HAVE_TLS 1" >>confdefs.h
22972
22973
22974 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
22975
22976    fi
22977
22978    if test "$ac_cv_openssl_sha2" = "yes"; then
22979
22980 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
22981
22982    fi
22983
22984    if test "$ac_cv_openssl_export" = "yes"; then
22985
22986 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
22987
22988    fi
22989
22990    if test "$support_crypto" = "yes"; then
22991       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
22992 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
22993 if test "${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+set}" = set; then :
22994   $as_echo_n "(cached) " >&6
22995 else
22996   ac_check_lib_save_LIBS=$LIBS
22997 LIBS="-lcrypto  $LIBS"
22998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h.  */
23000
23001 /* Override any GCC internal prototype to avoid an error.
23002    Use char because int might match the return type of a GCC
23003    builtin and then its argument prototype would still apply.  */
23004 #ifdef __cplusplus
23005 extern "C"
23006 #endif
23007 char EVP_PKEY_encrypt_old ();
23008 int
23009 main ()
23010 {
23011 return EVP_PKEY_encrypt_old ();
23012   ;
23013   return 0;
23014 }
23015 _ACEOF
23016 if ac_fn_c_try_link "$LINENO"; then :
23017   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23018 else
23019   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23020 fi
23021 rm -f core conftest.err conftest.$ac_objext \
23022     conftest$ac_exeext conftest.$ac_ext
23023 LIBS=$ac_check_lib_save_LIBS
23024 fi
23025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23026 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23027 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = x""yes; then :
23028
23029 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23030
23031 fi
23032
23033    fi
23034
23035    LIBS="${saved_LIBS}"
23036    CFLAGS="${saved_CFLAGS}"
23037 else
23038    support_tls="no"
23039    support_crypto="no"
23040    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23041 $as_echo "$support_tls" >&6; }
23042 fi
23043
23044 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23045    OPENSSL_LIBS=""
23046    OPENSSL_INC=""
23047 fi
23048
23049
23050
23051
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23053 $as_echo_n "checking for library containing dlopen... " >&6; }
23054 if test "${ac_cv_search_dlopen+set}" = set; then :
23055   $as_echo_n "(cached) " >&6
23056 else
23057   ac_func_search_save_LIBS=$LIBS
23058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23059 /* end confdefs.h.  */
23060
23061 /* Override any GCC internal prototype to avoid an error.
23062    Use char because int might match the return type of a GCC
23063    builtin and then its argument prototype would still apply.  */
23064 #ifdef __cplusplus
23065 extern "C"
23066 #endif
23067 char dlopen ();
23068 int
23069 main ()
23070 {
23071 return dlopen ();
23072   ;
23073   return 0;
23074 }
23075 _ACEOF
23076 for ac_lib in '' dl; do
23077   if test -z "$ac_lib"; then
23078     ac_res="none required"
23079   else
23080     ac_res=-l$ac_lib
23081     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23082   fi
23083   if ac_fn_c_try_link "$LINENO"; then :
23084   ac_cv_search_dlopen=$ac_res
23085 fi
23086 rm -f core conftest.err conftest.$ac_objext \
23087     conftest$ac_exeext
23088   if test "${ac_cv_search_dlopen+set}" = set; then :
23089   break
23090 fi
23091 done
23092 if test "${ac_cv_search_dlopen+set}" = set; then :
23093
23094 else
23095   ac_cv_search_dlopen=no
23096 fi
23097 rm conftest.$ac_ext
23098 LIBS=$ac_func_search_save_LIBS
23099 fi
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23101 $as_echo "$ac_cv_search_dlopen" >&6; }
23102 ac_res=$ac_cv_search_dlopen
23103 if test "$ac_res" != no; then :
23104   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23105
23106 fi
23107
23108
23109 working_dir=`eval echo ${prefix}/var/bacula/working`
23110
23111 # Check whether --with-working-dir was given.
23112 if test "${with_working_dir+set}" = set; then :
23113   withval=$with_working_dir;
23114        if test "x$withval" != "xno" ; then
23115          working_dir=$withval
23116        fi
23117
23118
23119 fi
23120
23121
23122
23123
23124 archivedir=/tmp
23125
23126 # Check whether --with-archivedir was given.
23127 if test "${with_archivedir+set}" = set; then :
23128   withval=$with_archivedir;
23129        if test "x$withval" != "xno" ; then
23130           archivedir=$withval
23131        fi
23132
23133
23134 fi
23135
23136
23137
23138
23139 basename=`hostname`
23140
23141 # Check whether --with-basename was given.
23142 if test "${with_basename+set}" = set; then :
23143   withval=$with_basename;
23144        if test "x$withval" != "xno" ; then
23145           basename=$withval
23146        fi
23147
23148
23149 fi
23150
23151
23152
23153
23154 hostname=`uname -n | cut -d '.' -f 1`
23155 if test x${hostname} = x ; then
23156   hostname="localhost"
23157 fi
23158
23159 # Check whether --with-hostname was given.
23160 if test "${with_hostname+set}" = set; then :
23161   withval=$with_hostname;
23162        if test "x$withval" != "xno" ; then
23163          hostname=$withval
23164        fi
23165
23166
23167 fi
23168
23169
23170
23171
23172
23173 scriptdir=`eval echo ${sysconfdir}`
23174
23175 # Check whether --with-scriptdir was given.
23176 if test "${with_scriptdir+set}" = set; then :
23177   withval=$with_scriptdir;
23178        if test "x$withval" != "xno" ; then
23179           scriptdir=$withval
23180        fi
23181
23182
23183 fi
23184
23185
23186
23187
23188
23189 bsrdir=/tmp
23190
23191 # Check whether --with-bsrdir was given.
23192 if test "${with_bsrdir+set}" = set; then :
23193   withval=$with_bsrdir;
23194        if test "x$withval" != "xno" ; then
23195           bsrdir=$withval
23196        fi
23197
23198
23199 fi
23200
23201
23202
23203
23204 logdir=/tmp
23205
23206 # Check whether --with-logdir was given.
23207 if test "${with_logdir+set}" = set; then :
23208   withval=$with_logdir;
23209        if test "x$withval" != "xno" ; then
23210           logdir=$withval
23211        fi
23212
23213
23214 fi
23215
23216
23217
23218
23219
23220 # ------------------------------------------
23221 # Where to place plugindir (plugin files)
23222 # ------------------------------------------
23223 plugindir=`eval echo ${libdir}`
23224
23225 # Check whether --with-plugindir was given.
23226 if test "${with_plugindir+set}" = set; then :
23227   withval=$with_plugindir;
23228        if test "x$withval" != "xno" ; then
23229           plugindir=$withval
23230        fi
23231
23232
23233 fi
23234
23235
23236
23237
23238 dump_email=root@localhost
23239
23240 # Check whether --with-dump-email was given.
23241 if test "${with_dump_email+set}" = set; then :
23242   withval=$with_dump_email;
23243        if test "x$withval" != "xno" ; then
23244           dump_email=$withval
23245        fi
23246
23247
23248 fi
23249
23250
23251
23252
23253 job_email=root@localhost
23254
23255 # Check whether --with-job-email was given.
23256 if test "${with_job_email+set}" = set; then :
23257   withval=$with_job_email;
23258        if test "x$withval" != "xno" ; then
23259           job_email=$withval
23260        fi
23261
23262
23263 fi
23264
23265
23266
23267
23268 smtp_host=localhost
23269
23270 # Check whether --with-smtp_host was given.
23271 if test "${with_smtp_host+set}" = set; then :
23272   withval=$with_smtp_host;
23273        if test "x$withval" != "xno" ; then
23274           smtp_host=$withval
23275        fi
23276
23277
23278 fi
23279
23280
23281
23282
23283 piddir=/var/run
23284
23285 # Check whether --with-pid-dir was given.
23286 if test "${with_pid_dir+set}" = set; then :
23287   withval=$with_pid_dir;
23288        if test "x$withval" != "xno" ; then
23289           piddir=$withval
23290        fi
23291
23292
23293 fi
23294
23295
23296 cat >>confdefs.h <<_ACEOF
23297 #define _PATH_BACULA_PIDDIR "$piddir"
23298 _ACEOF
23299
23300
23301
23302 subsysdir=/var/run/subsys
23303 if test -d /var/run/subsys; then
23304    subsysdir=/var/run/subsys
23305 elif test -d /var/lock/subsys; then
23306    subsysdir=/var/lock/subsys
23307 else
23308    subsysdir=/var/run/subsys
23309 fi
23310
23311 # Check whether --with-subsys-dir was given.
23312 if test "${with_subsys_dir+set}" = set; then :
23313   withval=$with_subsys_dir;
23314        if test "x$withval" != "xno" ; then
23315           subsysdir=$withval
23316        fi
23317
23318
23319 fi
23320
23321
23322
23323
23324 baseport=9101
23325
23326 # Check whether --with-baseport was given.
23327 if test "${with_baseport+set}" = set; then :
23328   withval=$with_baseport;
23329        if test "x$withval" != "xno" ; then
23330           baseport=$withval
23331        fi
23332
23333
23334 fi
23335
23336
23337
23338 dir_port=`expr $baseport`
23339 fd_port=`expr $baseport + 1`
23340 sd_port=`expr $fd_port + 1`
23341
23342
23343
23344
23345
23346 dir_password=
23347
23348 # Check whether --with-dir-password was given.
23349 if test "${with_dir_password+set}" = set; then :
23350   withval=$with_dir_password;
23351        if test "x$withval" != "xno" ; then
23352           dir_password=$withval
23353        fi
23354
23355
23356 fi
23357
23358
23359 if test "x$dir_password" = "x" ; then
23360    if test "x$OPENSSL" = "xnone" ; then
23361       key=`autoconf/randpass 33`
23362    else
23363       key=`openssl rand -base64 33`
23364    fi
23365    dir_password=$key
23366 fi
23367
23368 fd_password=
23369
23370 # Check whether --with-fd-password was given.
23371 if test "${with_fd_password+set}" = set; then :
23372   withval=$with_fd_password;
23373        if test "x$withval" != "xno" ; then
23374           fd_password=$withval
23375        fi
23376
23377
23378 fi
23379
23380
23381 if test "x$fd_password" = "x" ; then
23382    if test "x$OPENSSL" = "xnone" ; then
23383       key=`autoconf/randpass 37`
23384    else
23385       key=`openssl rand -base64 33`
23386    fi
23387    fd_password=$key
23388 fi
23389
23390 sd_password=
23391
23392 # Check whether --with-sd-password was given.
23393 if test "${with_sd_password+set}" = set; then :
23394   withval=$with_sd_password;
23395        if test "x$withval" != "xno" ; then
23396           sd_password=$withval
23397        fi
23398
23399
23400 fi
23401
23402
23403 if test "x$sd_password" = "x" ; then
23404    if test "x$OPENSSL" = "xnone" ; then
23405       key=`autoconf/randpass 41`
23406    else
23407       key=`openssl rand -base64 33`
23408    fi
23409    sd_password=$key
23410 fi
23411
23412 mon_dir_password=
23413
23414 # Check whether --with-mon-dir-password was given.
23415 if test "${with_mon_dir_password+set}" = set; then :
23416   withval=$with_mon_dir_password;
23417        if test "x$withval" != "xno" ; then
23418           mon_dir_password=$withval
23419        fi
23420
23421
23422 fi
23423
23424
23425 if test "x$mon_dir_password" = "x" ; then
23426    if test "x$OPENSSL" = "xnone" ; then
23427       key=`autoconf/randpass 33`
23428    else
23429       key=`openssl rand -base64 33`
23430    fi
23431    mon_dir_password=$key
23432 fi
23433
23434 mon_fd_password=
23435
23436 # Check whether --with-mon-fd-password was given.
23437 if test "${with_mon_fd_password+set}" = set; then :
23438   withval=$with_mon_fd_password;
23439        if test "x$withval" != "xno" ; then
23440           mon_fd_password=$withval
23441        fi
23442
23443
23444 fi
23445
23446
23447 if test "x$mon_fd_password" = "x" ; then
23448    if test "x$OPENSSL" = "xnone" ; then
23449       key=`autoconf/randpass 37`
23450    else
23451       key=`openssl rand -base64 33`
23452    fi
23453    mon_fd_password=$key
23454 fi
23455
23456 mon_sd_password=
23457
23458 # Check whether --with-mon-sd-password was given.
23459 if test "${with_mon_sd_password+set}" = set; then :
23460   withval=$with_mon_sd_password;
23461        if test "x$withval" != "xno" ; then
23462           mon_sd_password=$withval
23463        fi
23464
23465
23466 fi
23467
23468
23469 if test "x$mon_sd_password" = "x" ; then
23470    if test "x$OPENSSL" = "xnone" ; then
23471       key=`autoconf/randpass 41`
23472    else
23473       key=`openssl rand -base64 33`
23474    fi
23475    mon_sd_password=$key
23476 fi
23477
23478
23479
23480
23481
23482
23483
23484
23485 db_name=bacula
23486
23487 # Check whether --with-db_name was given.
23488 if test "${with_db_name+set}" = set; then :
23489   withval=$with_db_name;
23490        if test "x$withval" != "x" ; then
23491           db_name=$withval
23492        fi
23493
23494
23495 fi
23496
23497
23498
23499 db_user=bacula
23500
23501 # Check whether --with-db_user was given.
23502 if test "${with_db_user+set}" = set; then :
23503   withval=$with_db_user;
23504        if test "x$withval" != "x" ; then
23505           db_user=$withval
23506        fi
23507
23508
23509 fi
23510
23511
23512
23513 db_password=
23514
23515 # Check whether --with-db_password was given.
23516 if test "${with_db_password+set}" = set; then :
23517   withval=$with_db_password;
23518        if test "x$withval" != "x" ; then
23519           db_password=$withval
23520        fi
23521
23522
23523 fi
23524
23525
23526
23527 db_port=" "
23528
23529 # Check whether --with-db_port was given.
23530 if test "${with_db_port+set}" = set; then :
23531   withval=$with_db_port;
23532        if test "x$withval" != "x" ; then
23533           db_port=$withval
23534        fi
23535
23536
23537 fi
23538
23539
23540
23541 #
23542 # Handle users and groups for each daemon
23543 #
23544 dir_user=
23545
23546 # Check whether --with-dir_user was given.
23547 if test "${with_dir_user+set}" = set; then :
23548   withval=$with_dir_user;
23549        if test "x$withval" != "x" ; then
23550            dir_user=$withval
23551        fi
23552
23553
23554 fi
23555
23556
23557 dir_group=
23558
23559 # Check whether --with-dir_group was given.
23560 if test "${with_dir_group+set}" = set; then :
23561   withval=$with_dir_group;
23562        if test "x$withval" != "x" ; then
23563           dir_group=$withval
23564        fi
23565
23566
23567 fi
23568
23569
23570 sd_user=
23571
23572 # Check whether --with-sd_user was given.
23573 if test "${with_sd_user+set}" = set; then :
23574   withval=$with_sd_user;
23575        if test "x$withval" != "x" ; then
23576           sd_user=$withval
23577        fi
23578
23579
23580 fi
23581
23582
23583 sd_group=
23584
23585 # Check whether --with-sd_group was given.
23586 if test "${with_sd_group+set}" = set; then :
23587   withval=$with_sd_group;
23588        if test "x$withval" != "x" ; then
23589           sd_group=$withval
23590        fi
23591
23592
23593 fi
23594
23595
23596 fd_user=
23597
23598 # Check whether --with-fd_user was given.
23599 if test "${with_fd_user+set}" = set; then :
23600   withval=$with_fd_user;
23601        if test "x$withval" != "x" ; then
23602           fd_user=$withval
23603        fi
23604
23605
23606 fi
23607
23608
23609 fd_group=
23610
23611 # Check whether --with-fd_group was given.
23612 if test "${with_fd_group+set}" = set; then :
23613   withval=$with_fd_group;
23614        if test "x$withval" != "x" ; then
23615           fd_group=$withval
23616        fi
23617
23618
23619 fi
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629 SBINPERM=0750
23630
23631 # Check whether --with-sbin-perm was given.
23632 if test "${with_sbin_perm+set}" = set; then :
23633   withval=$with_sbin_perm;
23634        if test "x$withval" != "x" ; then
23635           SBINPERM=$withval
23636        fi
23637
23638
23639 fi
23640
23641
23642
23643
23644
23645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23646 $as_echo_n "checking for PostgreSQL support... " >&6; }
23647
23648 # Check whether --with-postgresql was given.
23649 if test "${with_postgresql+set}" = set; then :
23650   withval=$with_postgresql;
23651   if test "$withval" != "no"; then
23652       if test "$withval" = "yes"; then
23653           PG_CONFIG=`which pg_config`
23654           if test -n "$PG_CONFIG"; then
23655               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23656               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23657               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23658           elif test -f /usr/local/include/libpq-fe.h; then
23659               POSTGRESQL_INCDIR=/usr/local/include
23660               if test -d /usr/local/lib64; then
23661                  POSTGRESQL_LIBDIR=/usr/local/lib64
23662               else
23663                  POSTGRESQL_LIBDIR=/usr/local/lib
23664               fi
23665               POSTGRESQL_BINDIR=/usr/local/bin
23666           elif test -f /usr/include/libpq-fe.h; then
23667               POSTGRESQL_INCDIR=/usr/include
23668               if test -d /usr/lib64; then
23669                  POSTGRESQL_LIBDIR=/usr/lib64
23670               else
23671                  POSTGRESQL_LIBDIR=/usr/lib
23672               fi
23673               POSTGRESQL_BINDIR=/usr/bin
23674           elif test -f /usr/include/pgsql/libpq-fe.h; then
23675               POSTGRESQL_INCDIR=/usr/include/pgsql
23676               if test -d /usr/lib64/pgsql; then
23677                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23678               else
23679                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23680               fi
23681               POSTGRESQL_BINDIR=/usr/bin
23682           elif test -f /usr/include/postgresql/libpq-fe.h; then
23683               POSTGRESQL_INCDIR=/usr/include/postgresql
23684               if test -d /usr/lib64/postgresql; then
23685                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23686               else
23687                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23688               fi
23689               POSTGRESQL_BINDIR=/usr/bin
23690           else
23691               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23692 $as_echo "no" >&6; }
23693               as_fn_error "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23694           fi
23695       elif test -f $withval/include/libpq-fe.h; then
23696           POSTGRESQL_INCDIR=$withval/include
23697           POSTGRESQL_LIBDIR=$withval/lib
23698           POSTGRESQL_BINDIR=$withval/bin
23699       elif test -f $withval/include/postgresql/libpq-fe.h; then
23700           POSTGRESQL_INCDIR=$withval/include/postgresql
23701           if test -d $withval/lib64; then
23702               POSTGRESQL_LIBDIR=$withval/lib64
23703           else
23704               POSTGRESQL_LIBDIR=$withval/lib
23705           fi
23706           POSTGRESQL_BINDIR=$withval/bin
23707       else
23708           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23709 $as_echo "no" >&6; }
23710           as_fn_error "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23711       fi
23712
23713 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23714
23715      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716 $as_echo "yes" >&6; }
23717
23718      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23719      POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23720      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23721 if test "x$ac_cv_func_crypt" = x""yes; then :
23722
23723 else
23724   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23725 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23726 if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
23727   $as_echo_n "(cached) " >&6
23728 else
23729   ac_check_lib_save_LIBS=$LIBS
23730 LIBS="-lcrypt  $LIBS"
23731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23732 /* end confdefs.h.  */
23733
23734 /* Override any GCC internal prototype to avoid an error.
23735    Use char because int might match the return type of a GCC
23736    builtin and then its argument prototype would still apply.  */
23737 #ifdef __cplusplus
23738 extern "C"
23739 #endif
23740 char crypt ();
23741 int
23742 main ()
23743 {
23744 return crypt ();
23745   ;
23746   return 0;
23747 }
23748 _ACEOF
23749 if ac_fn_c_try_link "$LINENO"; then :
23750   ac_cv_lib_crypt_crypt=yes
23751 else
23752   ac_cv_lib_crypt_crypt=no
23753 fi
23754 rm -f core conftest.err conftest.$ac_objext \
23755     conftest$ac_exeext conftest.$ac_ext
23756 LIBS=$ac_check_lib_save_LIBS
23757 fi
23758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23759 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23760 if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
23761   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23762 fi
23763
23764 fi
23765
23766      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23767      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23768
23769      if test -z "${db_backends}"; then
23770          db_backends="PostgreSQL"
23771      else
23772          db_backends="${db_backends} PostgreSQL"
23773      fi
23774      if test -z "${DB_BACKENDS}"; then
23775          DB_BACKENDS="postgresql"
23776      else
23777          DB_BACKENDS="${DB_BACKENDS} postgresql"
23778      fi
23779   else
23780      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23781 $as_echo "no" >&6; }
23782   fi
23783
23784 else
23785
23786   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23787 $as_echo "no" >&6; }
23788
23789 fi
23790
23791
23792
23793
23794
23795
23796
23797
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
23799 $as_echo_n "checking for MySQL support... " >&6; }
23800
23801 # Check whether --with-mysql was given.
23802 if test "${with_mysql+set}" = set; then :
23803   withval=$with_mysql;
23804   if test "$withval" != "no"; then
23805         if test "$withval" = "yes"; then
23806            if test -f /usr/local/mysql/include/mysql/mysql.h; then
23807                    MYSQL_INCDIR=/usr/local/mysql/include/mysql
23808                    if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
23809                         -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
23810                            MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23811                    else
23812                            MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23813                    fi
23814                    MYSQL_BINDIR=/usr/local/mysql/bin
23815            elif test -f /usr/include/mysql/mysql.h; then
23816                    MYSQL_INCDIR=/usr/include/mysql
23817                    if test -f /usr/lib64/mysql/libmysqlclient_r.a \
23818                         -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
23819                            MYSQL_LIBDIR=/usr/lib64/mysql
23820                    elif test -f /usr/lib64/libmysqlclient_r.a \
23821                         -o -f /usr/lib64/libmysqlclient_r.so; then
23822                            MYSQL_LIBDIR=/usr/lib64
23823                    elif test -f /usr/lib/mysql/libmysqlclient_r.a \
23824                           -o -f /usr/lib/mysql/libmysqlclient_r.so; then
23825                            MYSQL_LIBDIR=/usr/lib/mysql
23826                    else
23827                            MYSQL_LIBDIR=/usr/lib
23828                    fi
23829                    MYSQL_BINDIR=/usr/bin
23830            elif test -f /usr/include/mysql.h; then
23831                    MYSQL_INCDIR=/usr/include
23832                    if test -f /usr/lib64/libmysqlclient_r.a \
23833                         -o -f /usr/lib64/libmysqlclient_r.so; then
23834                            MYSQL_LIBDIR=/usr/lib64
23835                    else
23836                            MYSQL_LIBDIR=/usr/lib
23837                    fi
23838                    MYSQL_BINDIR=/usr/bin
23839            elif test -f /usr/local/include/mysql/mysql.h; then
23840                    MYSQL_INCDIR=/usr/local/include/mysql
23841                    if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
23842                         -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
23843                            MYSQL_LIBDIR=/usr/local/lib64/mysql
23844                    else
23845                            MYSQL_LIBDIR=/usr/local/lib/mysql
23846                    fi
23847                    MYSQL_BINDIR=/usr/local/bin
23848            elif test -f /usr/local/include/mysql.h; then
23849                    MYSQL_INCDIR=/usr/local/include
23850                    if test -f /usr/local/lib64/libmysqlclient_r.a \
23851                         -o -f /usr/local/lib64/libmysqlclient_r.so; then
23852                            MYSQL_LIBDIR=/usr/local/lib64
23853                    else
23854                            MYSQL_LIBDIR=/usr/local/lib
23855                    fi
23856                    MYSQL_BINDIR=/usr/local/bin
23857            else
23858               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23859 $as_echo "no" >&6; }
23860               as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23861            fi
23862         else
23863            if test -f $withval/include/mysql/mysql.h; then
23864               MYSQL_INCDIR=$withval/include/mysql
23865               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
23866                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
23867                  MYSQL_LIBDIR=$withval/lib64/mysql
23868               elif test -f $withval/lib64/libmysqlclient_r.a \
23869                    -o -f $withval/lib64/libmysqlclient_r.so; then
23870                  MYSQL_LIBDIR=$withval/lib64
23871               elif test -f $withval/lib/libmysqlclient_r.a \
23872                    -o -f $withval/lib/libmysqlclient_r.so; then
23873                  MYSQL_LIBDIR=$withval/lib
23874               else
23875                  MYSQL_LIBDIR=$withval/lib/mysql
23876               fi
23877               MYSQL_BINDIR=$withval/bin
23878            elif test -f $withval/include/mysql.h; then
23879               MYSQL_INCDIR=$withval/include
23880               if test -f $withval/lib64/libmysqlclient_r.a \
23881                    -o -f $withval/lib64/libmysqlclient_r.so; then
23882                  MYSQL_LIBDIR=$withval/lib64
23883               else
23884                  MYSQL_LIBDIR=$withval/lib
23885               fi
23886               MYSQL_BINDIR=$withval/bin
23887            else
23888               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23889 $as_echo "no" >&6; }
23890               as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
23891            fi
23892         fi
23893      MYSQL_INCLUDE=-I$MYSQL_INCDIR
23894      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
23895           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
23896         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
23897
23898 $as_echo "#define HAVE_THREAD_SAFE_MYSQL 1" >>confdefs.h
23899
23900         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
23901      fi
23902      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
23903
23904
23905 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
23906
23907      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23908 $as_echo "yes" >&6; }
23909
23910      if test -z "${db_backends}" ; then
23911          db_backends="MySQL"
23912      else
23913          db_backends="${db_backends} MySQL"
23914      fi
23915      if test -z "${DB_BACKENDS}" ; then
23916          DB_BACKENDS="mysql"
23917      else
23918          DB_BACKENDS="${DB_BACKENDS} mysql"
23919      fi
23920   else
23921      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23922 $as_echo "no" >&6; }
23923   fi
23924
23925
23926 fi
23927
23928
23929
23930 # Check whether --with-embedded-mysql was given.
23931 if test "${with_embedded_mysql+set}" = set; then :
23932   withval=$with_embedded_mysql;
23933   if test "$withval" != "no"; then
23934         if test "$withval" = "yes"; then
23935                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
23936                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
23937                         if test -d /usr/local/mysql/lib64/mysql; then
23938                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
23939                         else
23940                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
23941                         fi
23942                         MYSQL_BINDIR=/usr/local/mysql/bin
23943                 elif test -f /usr/include/mysql/mysql.h; then
23944                         MYSQL_INCDIR=/usr/include/mysql
23945                         if test -d /usr/lib64/mysql; then
23946                                 MYSQL_LIBDIR=/usr/lib64/mysql
23947                         else
23948                                 MYSQL_LIBDIR=/usr/lib/mysql
23949                         fi
23950                         MYSQL_BINDIR=/usr/bin
23951                 elif test -f /usr/include/mysql.h; then
23952                         MYSQL_INCDIR=/usr/include
23953                         if test -d /usr/lib64; then
23954                                 MYSQL_LIBDIR=/usr/lib64
23955                         else
23956                                 MYSQL_LIBDIR=/usr/lib
23957                         fi
23958                         MYSQL_BINDIR=/usr/bin
23959                 elif test -f /usr/local/include/mysql/mysql.h; then
23960                         MYSQL_INCDIR=/usr/local/include/mysql
23961                         if test -d /usr/local/lib64/mysql; then
23962                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
23963                         else
23964                                 MYSQL_LIBDIR=/usr/local/lib/mysql
23965                         fi
23966                         MYSQL_BINDIR=/usr/local/bin
23967                 elif test -f /usr/local/include/mysql.h; then
23968                         MYSQL_INCDIR=/usr/local/include
23969                         if test -d /usr/local/lib64; then
23970                                 MYSQL_LIBDIR=/usr/local/lib64
23971                         else
23972                                 MYSQL_LIBDIR=/usr/local/lib
23973                         fi
23974                         MYSQL_BINDIR=/usr/local/bin
23975                 else
23976                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23977 $as_echo "no" >&6; }
23978                    as_fn_error "Unable to find mysql.h in standard locations" "$LINENO" 5
23979                 fi
23980         else
23981                 if test -f $withval/include/mysql/mysql.h; then
23982                         MYSQL_INCDIR=$withval/include/mysql
23983                         if test -d $withval/lib64/mysql; then
23984                                 MYSQL_LIBDIR=$withval/lib64/mysql
23985                         else
23986                                 MYSQL_LIBDIR=$withval/lib/mysql
23987                         fi
23988                         MYSQL_BINDIR=$withval/bin
23989                 elif test -f $withval/include/mysql.h; then
23990                         MYSQL_INCDIR=$withval/include
23991                         if test -d $withval/lib64; then
23992                                 MYSQL_LIBDIR=$withval/lib64
23993                         else
23994                                 MYSQL_LIBDIR=$withval/lib
23995                         fi
23996                         MYSQL_BINDIR=$withval/bin
23997                 else
23998                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23999 $as_echo "no" >&6; }
24000                    as_fn_error "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24001                 fi
24002         fi
24003      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24004      MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24005      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24006      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24007
24008
24009 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24010
24011
24012 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24013
24014      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24015 $as_echo "yes" >&6; }
24016
24017      if test -z "${db_backends}"; then
24018          db_backends="MySQL"
24019      else
24020          db_backends="${db_backends} MySQL"
24021      fi
24022      if test -z "${DB_BACKENDS}"; then
24023          DB_BACKENDS="mysql"
24024      else
24025          DB_BACKENDS="${DB_BACKENDS} mysql"
24026      fi
24027   else
24028      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24029 $as_echo "no" >&6; }
24030   fi
24031
24032
24033 fi
24034
24035
24036
24037
24038
24039
24040
24041
24042
24043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24044 $as_echo_n "checking for SQLite3 support... " >&6; }
24045
24046 # Check whether --with-sqlite3 was given.
24047 if test "${with_sqlite3+set}" = set; then :
24048   withval=$with_sqlite3;
24049   if test "$withval" != "no"; then
24050      if test "$withval" = "yes"; then
24051         if test -f /usr/local/include/sqlite3.h; then
24052            SQLITE_INCDIR=/usr/local/include
24053            if test -d /usr/local/lib64; then
24054               SQLITE_LIBDIR=/usr/local/lib64
24055            else
24056               SQLITE_LIBDIR=/usr/local/lib
24057            fi
24058            SQLITE_BINDIR=/usr/local/bin
24059         elif test -f /usr/include/sqlite3.h; then
24060            SQLITE_INCDIR=/usr/include
24061            if test -d /usr/lib64; then
24062               SQLITE_LIBDIR=/usr/lib64
24063            else
24064               SQLITE_LIBDIR=/usr/lib
24065            fi
24066            SQLITE_BINDIR=/usr/bin
24067         elif test -f $prefix/include/sqlite3.h; then
24068            SQLITE_INCDIR=$prefix/include
24069            if test -d $prefix/lib64; then
24070               SQLITE_LIBDIR=$prefix/lib64
24071            else
24072               SQLITE_LIBDIR=$prefix/lib
24073            fi
24074            SQLITE_BINDIR=$prefix/bin
24075         else
24076            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24077 $as_echo "no" >&6; }
24078            as_fn_error "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24079         fi
24080      else
24081         if test -f $withval/sqlite3.h; then
24082            SQLITE_INCDIR=$withval
24083            SQLITE_LIBDIR=$withval
24084            SQLITE_BINDIR=$withval
24085         elif test -f $withval/include/sqlite3.h; then
24086            SQLITE_INCDIR=$withval/include
24087            if test -d $withval/lib64; then
24088               SQLITE_LIBDIR=$withval/lib64
24089            else
24090               SQLITE_LIBDIR=$withval/lib
24091            fi
24092            SQLITE_BINDIR=$withval/bin
24093         else
24094            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24095 $as_echo "no" >&6; }
24096            as_fn_error "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24097         fi
24098      fi
24099      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24100      SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24101      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24102      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24103
24104
24105 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24106
24107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24108 $as_echo "yes" >&6; }
24109
24110      if test -z "${db_backends}"; then
24111          db_backends="SQLite3"
24112      else
24113          db_backends="${db_backends} SQLite3"
24114      fi
24115      if test -z "${DB_BACKENDS}"; then
24116          DB_BACKENDS="sqlite3"
24117      else
24118          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24119      fi
24120   else
24121      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24122 $as_echo "no" >&6; }
24123   fi
24124
24125 else
24126
24127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24128 $as_echo "no" >&6; }
24129
24130 fi
24131
24132
24133
24134
24135
24136
24137
24138 #BA_CHECK_INGRES_DB
24139
24140 #BA_CHECK_DBI_DB
24141
24142 #BA_CHECK_DBI_DRIVER
24143
24144 if test "x${db_backends}" = "x" ; then
24145    echo " "
24146    echo " "
24147    echo "You have not specified either --enable-client-only or one of the"
24148    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24149    echo "This is not permitted. Please reconfigure."
24150    echo " "
24151    echo "Aborting the configuration ..."
24152    echo " "
24153    echo " "
24154    exit 1
24155 fi
24156
24157 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24158    1)
24159       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24160       if test x$use_libtool = xno; then
24161          SHARED_CATALOG_TARGETS=""
24162       else
24163          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24164       fi
24165       ;;
24166    *)
24167                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24168
24169                         if test x$use_libtool = xno; then
24170          echo " "
24171          echo " "
24172          echo "You have specified two or more of the"
24173          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24174          echo "This is not permitted when not using libtool Please reconfigure."
24175          echo " "
24176          echo "Aborting the configuration ..."
24177          echo " "
24178          echo " "
24179          exit 1
24180       fi
24181
24182       SHARED_CATALOG_TARGETS=""
24183       for db_type in ${DB_BACKENDS}
24184       do
24185          if test -z "${SHARED_CATALOG_TARGETS}"; then
24186             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24187          else
24188             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24189          fi
24190       done
24191       ;;
24192 esac
24193
24194 if test x$use_libtool = xyes; then
24195    DB_LIBS=""
24196 fi
24197
24198
24199
24200
24201
24202
24203 support_batch_insert=yes
24204 # Check whether --enable-batch-insert was given.
24205 if test "${enable_batch_insert+set}" = set; then :
24206   enableval=$enable_batch_insert;
24207        if test x$enableval = xno; then
24208           support_batch_insert=no
24209        fi
24210
24211
24212 fi
24213
24214
24215 if test x$support_batch_insert = xyes; then
24216
24217 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
24218
24219 fi
24220
24221 if test ! -z "$MYSQL_LIB"; then
24222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysql_r" >&5
24223 $as_echo_n "checking for mysql_thread_safe in -lmysql_r... " >&6; }
24224 if test "${ac_cv_lib_mysql_r_mysql_thread_safe+set}" = set; then :
24225   $as_echo_n "(cached) " >&6
24226 else
24227   ac_check_lib_save_LIBS=$LIBS
24228 LIBS="-lmysql_r  $LIBS"
24229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24230 /* end confdefs.h.  */
24231
24232 /* Override any GCC internal prototype to avoid an error.
24233    Use char because int might match the return type of a GCC
24234    builtin and then its argument prototype would still apply.  */
24235 #ifdef __cplusplus
24236 extern "C"
24237 #endif
24238 char mysql_thread_safe ();
24239 int
24240 main ()
24241 {
24242 return mysql_thread_safe ();
24243   ;
24244   return 0;
24245 }
24246 _ACEOF
24247 if ac_fn_c_try_link "$LINENO"; then :
24248   ac_cv_lib_mysql_r_mysql_thread_safe=yes
24249 else
24250   ac_cv_lib_mysql_r_mysql_thread_safe=no
24251 fi
24252 rm -f core conftest.err conftest.$ac_objext \
24253     conftest$ac_exeext conftest.$ac_ext
24254 LIBS=$ac_check_lib_save_LIBS
24255 fi
24256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysql_r_mysql_thread_safe" >&5
24257 $as_echo "$ac_cv_lib_mysql_r_mysql_thread_safe" >&6; }
24258 if test "x$ac_cv_lib_mysql_r_mysql_thread_safe" = x""yes; then :
24259
24260 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24261
24262 fi
24263
24264 fi
24265
24266 if test ! -z "SQLITE_LIB"; then
24267    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24268 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24269 if test "${ac_cv_lib_sqlite3_sqlite3_threadsafe+set}" = set; then :
24270   $as_echo_n "(cached) " >&6
24271 else
24272   ac_check_lib_save_LIBS=$LIBS
24273 LIBS="-lsqlite3  $LIBS"
24274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24275 /* end confdefs.h.  */
24276
24277 /* Override any GCC internal prototype to avoid an error.
24278    Use char because int might match the return type of a GCC
24279    builtin and then its argument prototype would still apply.  */
24280 #ifdef __cplusplus
24281 extern "C"
24282 #endif
24283 char sqlite3_threadsafe ();
24284 int
24285 main ()
24286 {
24287 return sqlite3_threadsafe ();
24288   ;
24289   return 0;
24290 }
24291 _ACEOF
24292 if ac_fn_c_try_link "$LINENO"; then :
24293   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24294 else
24295   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24296 fi
24297 rm -f core conftest.err conftest.$ac_objext \
24298     conftest$ac_exeext conftest.$ac_ext
24299 LIBS=$ac_check_lib_save_LIBS
24300 fi
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24302 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24303 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = x""yes; then :
24304
24305 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24306
24307 fi
24308
24309 fi
24310
24311 if test ! -z "$POSTGRESQL_LIB"; then
24312       saved_LIBS="${LIBS}"
24313    LIBS="${saved_LIBS} ${POSTGRESQL_LIB}"
24314
24315    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24316 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24317 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24318   $as_echo_n "(cached) " >&6
24319 else
24320   ac_check_lib_save_LIBS=$LIBS
24321 LIBS="-lpq  $LIBS"
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h.  */
24324
24325 /* Override any GCC internal prototype to avoid an error.
24326    Use char because int might match the return type of a GCC
24327    builtin and then its argument prototype would still apply.  */
24328 #ifdef __cplusplus
24329 extern "C"
24330 #endif
24331 char PQisthreadsafe ();
24332 int
24333 main ()
24334 {
24335 return PQisthreadsafe ();
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 if ac_fn_c_try_link "$LINENO"; then :
24341   ac_cv_lib_pq_PQisthreadsafe=yes
24342 else
24343   ac_cv_lib_pq_PQisthreadsafe=no
24344 fi
24345 rm -f core conftest.err conftest.$ac_objext \
24346     conftest$ac_exeext conftest.$ac_ext
24347 LIBS=$ac_check_lib_save_LIBS
24348 fi
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24350 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24351 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24352
24353 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24354
24355 fi
24356
24357    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24358 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24359 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24360   $as_echo_n "(cached) " >&6
24361 else
24362   ac_check_lib_save_LIBS=$LIBS
24363 LIBS="-lpq  $LIBS"
24364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24365 /* end confdefs.h.  */
24366
24367 /* Override any GCC internal prototype to avoid an error.
24368    Use char because int might match the return type of a GCC
24369    builtin and then its argument prototype would still apply.  */
24370 #ifdef __cplusplus
24371 extern "C"
24372 #endif
24373 char PQputCopyData ();
24374 int
24375 main ()
24376 {
24377 return PQputCopyData ();
24378   ;
24379   return 0;
24380 }
24381 _ACEOF
24382 if ac_fn_c_try_link "$LINENO"; then :
24383   ac_cv_lib_pq_PQputCopyData=yes
24384 else
24385   ac_cv_lib_pq_PQputCopyData=no
24386 fi
24387 rm -f core conftest.err conftest.$ac_objext \
24388     conftest$ac_exeext conftest.$ac_ext
24389 LIBS=$ac_check_lib_save_LIBS
24390 fi
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24392 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24393 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24394
24395 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24396
24397 fi
24398
24399    if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24400       if test $support_batch_insert = yes ; then
24401
24402 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24403
24404       fi
24405    fi
24406
24407    if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24408    then
24409       echo "WARNING: Your PostgreSQL client library is too old to detect "
24410       echo "if it was compiled with --enable-thread-safety, consider to "
24411       echo "upgrade it in order to avoid problems with Batch insert mode"
24412       echo
24413    fi
24414
24415       LIBS="${saved_LIBS}"
24416 fi
24417
24418 if test ! -z "$DBI_LIBS"; then
24419             DB_BACKENDS="${DB_BACKENDS} ${DB_PROG}"
24420
24421             if test $DB_PROG = postgresql; then
24422       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24423 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24424 if test "${ac_cv_lib_pq_PQisthreadsafe+set}" = set; then :
24425   $as_echo_n "(cached) " >&6
24426 else
24427   ac_check_lib_save_LIBS=$LIBS
24428 LIBS="-lpq  $LIBS"
24429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430 /* end confdefs.h.  */
24431
24432 /* Override any GCC internal prototype to avoid an error.
24433    Use char because int might match the return type of a GCC
24434    builtin and then its argument prototype would still apply.  */
24435 #ifdef __cplusplus
24436 extern "C"
24437 #endif
24438 char PQisthreadsafe ();
24439 int
24440 main ()
24441 {
24442 return PQisthreadsafe ();
24443   ;
24444   return 0;
24445 }
24446 _ACEOF
24447 if ac_fn_c_try_link "$LINENO"; then :
24448   ac_cv_lib_pq_PQisthreadsafe=yes
24449 else
24450   ac_cv_lib_pq_PQisthreadsafe=no
24451 fi
24452 rm -f core conftest.err conftest.$ac_objext \
24453     conftest$ac_exeext conftest.$ac_ext
24454 LIBS=$ac_check_lib_save_LIBS
24455 fi
24456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24457 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24458 if test "x$ac_cv_lib_pq_PQisthreadsafe" = x""yes; then :
24459   $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24460
24461 fi
24462
24463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24464 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24465 if test "${ac_cv_lib_pq_PQputCopyData+set}" = set; then :
24466   $as_echo_n "(cached) " >&6
24467 else
24468   ac_check_lib_save_LIBS=$LIBS
24469 LIBS="-lpq  $LIBS"
24470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24471 /* end confdefs.h.  */
24472
24473 /* Override any GCC internal prototype to avoid an error.
24474    Use char because int might match the return type of a GCC
24475    builtin and then its argument prototype would still apply.  */
24476 #ifdef __cplusplus
24477 extern "C"
24478 #endif
24479 char PQputCopyData ();
24480 int
24481 main ()
24482 {
24483 return PQputCopyData ();
24484   ;
24485   return 0;
24486 }
24487 _ACEOF
24488 if ac_fn_c_try_link "$LINENO"; then :
24489   ac_cv_lib_pq_PQputCopyData=yes
24490 else
24491   ac_cv_lib_pq_PQputCopyData=no
24492 fi
24493 rm -f core conftest.err conftest.$ac_objext \
24494     conftest$ac_exeext conftest.$ac_ext
24495 LIBS=$ac_check_lib_save_LIBS
24496 fi
24497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24498 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24499 if test "x$ac_cv_lib_pq_PQputCopyData" = x""yes; then :
24500   $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24501
24502 fi
24503
24504       test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"
24505       pkg=$?
24506       if test $pkg = 0; then
24507          if test $support_batch_insert = yes ; then
24508
24509 $as_echo "#define HAVE_DBI_BATCH_FILE_INSERT 1" >>confdefs.h
24510
24511          fi
24512       fi
24513    fi
24514 else
24515             uncomment_dbi="#"
24516 fi
24517
24518
24519
24520 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24521
24522
24523 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24524    if test -z "$CCOPTS"; then
24525       CCOPTS='-g -O2 -Wall'
24526    fi
24527    CFLAGS="$CCOPTS"
24528 fi
24529
24530
24531
24532 largefile_support="no"
24533
24534    # Check whether --enable-largefile was given.
24535 if test "${enable_largefile+set}" = set; then :
24536   enableval=$enable_largefile;
24537 fi
24538
24539    if test "$enable_largefile" != no; then
24540      if test -n "$ac_tool_prefix"; then
24541   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24542 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24544 $as_echo_n "checking for $ac_word... " >&6; }
24545 if test "${ac_cv_prog_GETCONF+set}" = set; then :
24546   $as_echo_n "(cached) " >&6
24547 else
24548   if test -n "$GETCONF"; then
24549   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24550 else
24551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24552 for as_dir in $PATH
24553 do
24554   IFS=$as_save_IFS
24555   test -z "$as_dir" && as_dir=.
24556     for ac_exec_ext in '' $ac_executable_extensions; do
24557   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24558     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24559     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24560     break 2
24561   fi
24562 done
24563   done
24564 IFS=$as_save_IFS
24565
24566 fi
24567 fi
24568 GETCONF=$ac_cv_prog_GETCONF
24569 if test -n "$GETCONF"; then
24570   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24571 $as_echo "$GETCONF" >&6; }
24572 else
24573   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24574 $as_echo "no" >&6; }
24575 fi
24576
24577
24578 fi
24579 if test -z "$ac_cv_prog_GETCONF"; then
24580   ac_ct_GETCONF=$GETCONF
24581   # Extract the first word of "getconf", so it can be a program name with args.
24582 set dummy getconf; ac_word=$2
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24584 $as_echo_n "checking for $ac_word... " >&6; }
24585 if test "${ac_cv_prog_ac_ct_GETCONF+set}" = set; then :
24586   $as_echo_n "(cached) " >&6
24587 else
24588   if test -n "$ac_ct_GETCONF"; then
24589   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24590 else
24591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24592 for as_dir in $PATH
24593 do
24594   IFS=$as_save_IFS
24595   test -z "$as_dir" && as_dir=.
24596     for ac_exec_ext in '' $ac_executable_extensions; do
24597   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24598     ac_cv_prog_ac_ct_GETCONF="getconf"
24599     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24600     break 2
24601   fi
24602 done
24603   done
24604 IFS=$as_save_IFS
24605
24606 fi
24607 fi
24608 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24609 if test -n "$ac_ct_GETCONF"; then
24610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24611 $as_echo "$ac_ct_GETCONF" >&6; }
24612 else
24613   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24614 $as_echo "no" >&6; }
24615 fi
24616
24617   if test "x$ac_ct_GETCONF" = x; then
24618     GETCONF=""
24619   else
24620     case $cross_compiling:$ac_tool_warned in
24621 yes:)
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24623 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24624 ac_tool_warned=yes ;;
24625 esac
24626     GETCONF=$ac_ct_GETCONF
24627   fi
24628 else
24629   GETCONF="$ac_cv_prog_GETCONF"
24630 fi
24631
24632      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24633 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24634 if test "${ac_cv_sys_largefile_CFLAGS+set}" = set; then :
24635   $as_echo_n "(cached) " >&6
24636 else
24637   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24638         ac_cv_sys_largefile_CFLAGS=no
24639         case "$host_os" in
24640            # IRIX 6.2 and later require cc -n32.
24641            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24642              if test "$GCC" != yes; then
24643                ac_cv_sys_largefile_CFLAGS=-n32
24644              fi
24645              ac_save_CC="$CC"
24646              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24647              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24648 /* end confdefs.h.  */
24649
24650 int
24651 main ()
24652 {
24653
24654   ;
24655   return 0;
24656 }
24657 _ACEOF
24658 if ac_fn_c_try_link "$LINENO"; then :
24659
24660 else
24661   ac_cv_sys_largefile_CFLAGS=no
24662 fi
24663 rm -f core conftest.err conftest.$ac_objext \
24664     conftest$ac_exeext conftest.$ac_ext
24665              CC="$ac_save_CC"
24666            esac
24667       }
24668 fi
24669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24670 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24671      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24672 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24673 if test "${ac_cv_sys_largefile_LDFLAGS+set}" = set; then :
24674   $as_echo_n "(cached) " >&6
24675 else
24676   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24677         ac_cv_sys_largefile_LDFLAGS=no
24678
24679       }
24680 fi
24681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24682 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24683      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24684 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24685 if test "${ac_cv_sys_largefile_LIBS+set}" = set; then :
24686   $as_echo_n "(cached) " >&6
24687 else
24688   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24689         ac_cv_sys_largefile_LIBS=no
24690
24691       }
24692 fi
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24694 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24695
24696      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24697        case "$ac_flag" in
24698        no) ;;
24699        -D_FILE_OFFSET_BITS=*) ;;
24700        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24701        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24702        -D?* | -I?*)
24703          case "$ac_flag" in
24704    no) ;;
24705    ?*)
24706      case "$CPPFLAGS" in
24707      '') CPPFLAGS="$ac_flag" ;;
24708      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24709      esac ;;
24710    esac ;;
24711        *)
24712          case "$ac_flag" in
24713    no) ;;
24714    ?*)
24715      case "$CFLAGS" in
24716      '') CFLAGS="$ac_flag" ;;
24717      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24718      esac ;;
24719    esac ;;
24720        esac
24721      done
24722      case "$ac_cv_sys_largefile_LDFLAGS" in
24723    no) ;;
24724    ?*)
24725      case "$LDFLAGS" in
24726      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24727      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24728      esac ;;
24729    esac
24730      case "$ac_cv_sys_largefile_LIBS" in
24731    no) ;;
24732    ?*)
24733      case "$LIBS" in
24734      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24735      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24736      esac ;;
24737    esac
24738      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24739 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24740 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
24741   $as_echo_n "(cached) " >&6
24742 else
24743   ac_cv_sys_file_offset_bits=no
24744       ac_cv_sys_file_offset_bits=64
24745       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24746         case "$ac_flag" in
24747         -D_FILE_OFFSET_BITS)
24748           ac_cv_sys_file_offset_bits=1 ;;
24749         -D_FILE_OFFSET_BITS=*)
24750           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24751         esac
24752       done
24753
24754 fi
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24756 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24757    if test "$ac_cv_sys_file_offset_bits" != no; then
24758
24759 cat >>confdefs.h <<_ACEOF
24760 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24761 _ACEOF
24762
24763    fi
24764      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24765 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24766 if test "${ac_cv_sys_largefile_source+set}" = set; then :
24767   $as_echo_n "(cached) " >&6
24768 else
24769   ac_cv_sys_largefile_source=no
24770       ac_cv_sys_largefile_source=1
24771       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24772         case "$ac_flag" in
24773         -D_LARGEFILE_SOURCE)
24774           ac_cv_sys_largefile_source=1 ;;
24775         -D_LARGEFILE_SOURCE=*)
24776           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24777         esac
24778       done
24779
24780 fi
24781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24782 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24783    if test "$ac_cv_sys_largefile_source" != no; then
24784
24785 cat >>confdefs.h <<_ACEOF
24786 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24787 _ACEOF
24788
24789    fi
24790      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
24791 $as_echo_n "checking for _LARGE_FILES... " >&6; }
24792 if test "${ac_cv_sys_large_files+set}" = set; then :
24793   $as_echo_n "(cached) " >&6
24794 else
24795   ac_cv_sys_large_files=no
24796       ac_cv_sys_large_files=1
24797       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24798         case "$ac_flag" in
24799         -D_LARGE_FILES)
24800           ac_cv_sys_large_files=1 ;;
24801         -D_LARGE_FILES=*)
24802           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24803         esac
24804       done
24805
24806 fi
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
24808 $as_echo "$ac_cv_sys_large_files" >&6; }
24809    if test "$ac_cv_sys_large_files" != no; then
24810
24811 cat >>confdefs.h <<_ACEOF
24812 #define _LARGE_FILES $ac_cv_sys_large_files
24813 _ACEOF
24814
24815    fi
24816    fi
24817
24818
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
24820 $as_echo_n "checking for X... " >&6; }
24821
24822
24823 # Check whether --with-x was given.
24824 if test "${with_x+set}" = set; then :
24825   withval=$with_x;
24826 fi
24827
24828 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
24829 if test "x$with_x" = xno; then
24830   # The user explicitly disabled X.
24831   have_x=disabled
24832 else
24833   case $x_includes,$x_libraries in #(
24834     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
24835     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
24836   $as_echo_n "(cached) " >&6
24837 else
24838   # One or both of the vars are not set, and there is no cached value.
24839 ac_x_includes=no ac_x_libraries=no
24840 rm -f -r conftest.dir
24841 if mkdir conftest.dir; then
24842   cd conftest.dir
24843   cat >Imakefile <<'_ACEOF'
24844 incroot:
24845         @echo incroot='${INCROOT}'
24846 usrlibdir:
24847         @echo usrlibdir='${USRLIBDIR}'
24848 libdir:
24849         @echo libdir='${LIBDIR}'
24850 _ACEOF
24851   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
24852     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
24853     for ac_var in incroot usrlibdir libdir; do
24854       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
24855     done
24856     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
24857     for ac_extension in a so sl dylib la dll; do
24858       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
24859          test -f "$ac_im_libdir/libX11.$ac_extension"; then
24860         ac_im_usrlibdir=$ac_im_libdir; break
24861       fi
24862     done
24863     # Screen out bogus values from the imake configuration.  They are
24864     # bogus both because they are the default anyway, and because
24865     # using them would break gcc on systems where it needs fixed includes.
24866     case $ac_im_incroot in
24867         /usr/include) ac_x_includes= ;;
24868         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
24869     esac
24870     case $ac_im_usrlibdir in
24871         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
24872         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
24873     esac
24874   fi
24875   cd ..
24876   rm -f -r conftest.dir
24877 fi
24878
24879 # Standard set of common directories for X headers.
24880 # Check X11 before X11Rn because it is often a symlink to the current release.
24881 ac_x_header_dirs='
24882 /usr/X11/include
24883 /usr/X11R7/include
24884 /usr/X11R6/include
24885 /usr/X11R5/include
24886 /usr/X11R4/include
24887
24888 /usr/include/X11
24889 /usr/include/X11R7
24890 /usr/include/X11R6
24891 /usr/include/X11R5
24892 /usr/include/X11R4
24893
24894 /usr/local/X11/include
24895 /usr/local/X11R7/include
24896 /usr/local/X11R6/include
24897 /usr/local/X11R5/include
24898 /usr/local/X11R4/include
24899
24900 /usr/local/include/X11
24901 /usr/local/include/X11R7
24902 /usr/local/include/X11R6
24903 /usr/local/include/X11R5
24904 /usr/local/include/X11R4
24905
24906 /usr/X386/include
24907 /usr/x386/include
24908 /usr/XFree86/include/X11
24909
24910 /usr/include
24911 /usr/local/include
24912 /usr/unsupported/include
24913 /usr/athena/include
24914 /usr/local/x11r5/include
24915 /usr/lpp/Xamples/include
24916
24917 /usr/openwin/include
24918 /usr/openwin/share/include'
24919
24920 if test "$ac_x_includes" = no; then
24921   # Guess where to find include files, by looking for Xlib.h.
24922   # First, try using that file with no special directory specified.
24923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24924 /* end confdefs.h.  */
24925 #include <X11/Xlib.h>
24926 _ACEOF
24927 if ac_fn_c_try_cpp "$LINENO"; then :
24928   # We can compile using X headers with no special include directory.
24929 ac_x_includes=
24930 else
24931   for ac_dir in $ac_x_header_dirs; do
24932   if test -r "$ac_dir/X11/Xlib.h"; then
24933     ac_x_includes=$ac_dir
24934     break
24935   fi
24936 done
24937 fi
24938 rm -f conftest.err conftest.$ac_ext
24939 fi # $ac_x_includes = no
24940
24941 if test "$ac_x_libraries" = no; then
24942   # Check for the libraries.
24943   # See if we find them without any special options.
24944   # Don't add to $LIBS permanently.
24945   ac_save_LIBS=$LIBS
24946   LIBS="-lX11 $LIBS"
24947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24948 /* end confdefs.h.  */
24949 #include <X11/Xlib.h>
24950 int
24951 main ()
24952 {
24953 XrmInitialize ()
24954   ;
24955   return 0;
24956 }
24957 _ACEOF
24958 if ac_fn_c_try_link "$LINENO"; then :
24959   LIBS=$ac_save_LIBS
24960 # We can link X programs with no special library path.
24961 ac_x_libraries=
24962 else
24963   LIBS=$ac_save_LIBS
24964 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
24965 do
24966   # Don't even attempt the hair of trying to link an X program!
24967   for ac_extension in a so sl dylib la dll; do
24968     if test -r "$ac_dir/libX11.$ac_extension"; then
24969       ac_x_libraries=$ac_dir
24970       break 2
24971     fi
24972   done
24973 done
24974 fi
24975 rm -f core conftest.err conftest.$ac_objext \
24976     conftest$ac_exeext conftest.$ac_ext
24977 fi # $ac_x_libraries = no
24978
24979 case $ac_x_includes,$ac_x_libraries in #(
24980   no,* | *,no | *\'*)
24981     # Didn't find X, or a directory has "'" in its name.
24982     ac_cv_have_x="have_x=no";; #(
24983   *)
24984     # Record where we found X for the cache.
24985     ac_cv_have_x="have_x=yes\
24986         ac_x_includes='$ac_x_includes'\
24987         ac_x_libraries='$ac_x_libraries'"
24988 esac
24989 fi
24990 ;; #(
24991     *) have_x=yes;;
24992   esac
24993   eval "$ac_cv_have_x"
24994 fi # $with_x != no
24995
24996 if test "$have_x" != yes; then
24997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
24998 $as_echo "$have_x" >&6; }
24999   no_x=yes
25000 else
25001   # If each of the values was on the command line, it overrides each guess.
25002   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25003   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25004   # Update the cache value to reflect the command line values.
25005   ac_cv_have_x="have_x=yes\
25006         ac_x_includes='$x_includes'\
25007         ac_x_libraries='$x_libraries'"
25008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25009 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25010 fi
25011
25012 if test "$no_x" = yes; then
25013   # Not all programs may use this symbol, but it does not hurt to define it.
25014
25015 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25016
25017   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25018 else
25019   if test -n "$x_includes"; then
25020     X_CFLAGS="$X_CFLAGS -I$x_includes"
25021   fi
25022
25023   # It would also be nice to do this for all -L options, not just this one.
25024   if test -n "$x_libraries"; then
25025     X_LIBS="$X_LIBS -L$x_libraries"
25026     # For Solaris; some versions of Sun CC require a space after -R and
25027     # others require no space.  Words are not sufficient . . . .
25028     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25029 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25030     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25031     ac_xsave_c_werror_flag=$ac_c_werror_flag
25032     ac_c_werror_flag=yes
25033     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25034 /* end confdefs.h.  */
25035
25036 int
25037 main ()
25038 {
25039
25040   ;
25041   return 0;
25042 }
25043 _ACEOF
25044 if ac_fn_c_try_link "$LINENO"; then :
25045   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25046 $as_echo "no" >&6; }
25047        X_LIBS="$X_LIBS -R$x_libraries"
25048 else
25049   LIBS="$ac_xsave_LIBS -R $x_libraries"
25050        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25051 /* end confdefs.h.  */
25052
25053 int
25054 main ()
25055 {
25056
25057   ;
25058   return 0;
25059 }
25060 _ACEOF
25061 if ac_fn_c_try_link "$LINENO"; then :
25062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25063 $as_echo "yes" >&6; }
25064           X_LIBS="$X_LIBS -R $x_libraries"
25065 else
25066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25067 $as_echo "neither works" >&6; }
25068 fi
25069 rm -f core conftest.err conftest.$ac_objext \
25070     conftest$ac_exeext conftest.$ac_ext
25071 fi
25072 rm -f core conftest.err conftest.$ac_objext \
25073     conftest$ac_exeext conftest.$ac_ext
25074     ac_c_werror_flag=$ac_xsave_c_werror_flag
25075     LIBS=$ac_xsave_LIBS
25076   fi
25077
25078   # Check for system-dependent libraries X programs must link with.
25079   # Do this before checking for the system-independent R6 libraries
25080   # (-lICE), since we may need -lsocket or whatever for X linking.
25081
25082   if test "$ISC" = yes; then
25083     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25084   else
25085     # Martyn Johnson says this is needed for Ultrix, if the X
25086     # libraries were built with DECnet support.  And Karl Berry says
25087     # the Alpha needs dnet_stub (dnet does not exist).
25088     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25089     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25090 /* end confdefs.h.  */
25091
25092 /* Override any GCC internal prototype to avoid an error.
25093    Use char because int might match the return type of a GCC
25094    builtin and then its argument prototype would still apply.  */
25095 #ifdef __cplusplus
25096 extern "C"
25097 #endif
25098 char XOpenDisplay ();
25099 int
25100 main ()
25101 {
25102 return XOpenDisplay ();
25103   ;
25104   return 0;
25105 }
25106 _ACEOF
25107 if ac_fn_c_try_link "$LINENO"; then :
25108
25109 else
25110   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25111 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25112 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
25113   $as_echo_n "(cached) " >&6
25114 else
25115   ac_check_lib_save_LIBS=$LIBS
25116 LIBS="-ldnet  $LIBS"
25117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25118 /* end confdefs.h.  */
25119
25120 /* Override any GCC internal prototype to avoid an error.
25121    Use char because int might match the return type of a GCC
25122    builtin and then its argument prototype would still apply.  */
25123 #ifdef __cplusplus
25124 extern "C"
25125 #endif
25126 char dnet_ntoa ();
25127 int
25128 main ()
25129 {
25130 return dnet_ntoa ();
25131   ;
25132   return 0;
25133 }
25134 _ACEOF
25135 if ac_fn_c_try_link "$LINENO"; then :
25136   ac_cv_lib_dnet_dnet_ntoa=yes
25137 else
25138   ac_cv_lib_dnet_dnet_ntoa=no
25139 fi
25140 rm -f core conftest.err conftest.$ac_objext \
25141     conftest$ac_exeext conftest.$ac_ext
25142 LIBS=$ac_check_lib_save_LIBS
25143 fi
25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25145 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25146 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
25147   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25148 fi
25149
25150     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25151       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25152 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25153 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
25154   $as_echo_n "(cached) " >&6
25155 else
25156   ac_check_lib_save_LIBS=$LIBS
25157 LIBS="-ldnet_stub  $LIBS"
25158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25159 /* end confdefs.h.  */
25160
25161 /* Override any GCC internal prototype to avoid an error.
25162    Use char because int might match the return type of a GCC
25163    builtin and then its argument prototype would still apply.  */
25164 #ifdef __cplusplus
25165 extern "C"
25166 #endif
25167 char dnet_ntoa ();
25168 int
25169 main ()
25170 {
25171 return dnet_ntoa ();
25172   ;
25173   return 0;
25174 }
25175 _ACEOF
25176 if ac_fn_c_try_link "$LINENO"; then :
25177   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25178 else
25179   ac_cv_lib_dnet_stub_dnet_ntoa=no
25180 fi
25181 rm -f core conftest.err conftest.$ac_objext \
25182     conftest$ac_exeext conftest.$ac_ext
25183 LIBS=$ac_check_lib_save_LIBS
25184 fi
25185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25186 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25187 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
25188   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25189 fi
25190
25191     fi
25192 fi
25193 rm -f core conftest.err conftest.$ac_objext \
25194     conftest$ac_exeext conftest.$ac_ext
25195     LIBS="$ac_xsave_LIBS"
25196
25197     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25198     # to get the SysV transport functions.
25199     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25200     # needs -lnsl.
25201     # The nsl library prevents programs from opening the X display
25202     # on Irix 5.2, according to T.E. Dickey.
25203     # The functions gethostbyname, getservbyname, and inet_addr are
25204     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25205     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25206 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
25207
25208 fi
25209
25210     if test $ac_cv_func_gethostbyname = no; then
25211       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25212 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25213 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
25214   $as_echo_n "(cached) " >&6
25215 else
25216   ac_check_lib_save_LIBS=$LIBS
25217 LIBS="-lnsl  $LIBS"
25218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25219 /* end confdefs.h.  */
25220
25221 /* Override any GCC internal prototype to avoid an error.
25222    Use char because int might match the return type of a GCC
25223    builtin and then its argument prototype would still apply.  */
25224 #ifdef __cplusplus
25225 extern "C"
25226 #endif
25227 char gethostbyname ();
25228 int
25229 main ()
25230 {
25231 return gethostbyname ();
25232   ;
25233   return 0;
25234 }
25235 _ACEOF
25236 if ac_fn_c_try_link "$LINENO"; then :
25237   ac_cv_lib_nsl_gethostbyname=yes
25238 else
25239   ac_cv_lib_nsl_gethostbyname=no
25240 fi
25241 rm -f core conftest.err conftest.$ac_objext \
25242     conftest$ac_exeext conftest.$ac_ext
25243 LIBS=$ac_check_lib_save_LIBS
25244 fi
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25246 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25247 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
25248   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25249 fi
25250
25251       if test $ac_cv_lib_nsl_gethostbyname = no; then
25252         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25253 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25254 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
25255   $as_echo_n "(cached) " >&6
25256 else
25257   ac_check_lib_save_LIBS=$LIBS
25258 LIBS="-lbsd  $LIBS"
25259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h.  */
25261
25262 /* Override any GCC internal prototype to avoid an error.
25263    Use char because int might match the return type of a GCC
25264    builtin and then its argument prototype would still apply.  */
25265 #ifdef __cplusplus
25266 extern "C"
25267 #endif
25268 char gethostbyname ();
25269 int
25270 main ()
25271 {
25272 return gethostbyname ();
25273   ;
25274   return 0;
25275 }
25276 _ACEOF
25277 if ac_fn_c_try_link "$LINENO"; then :
25278   ac_cv_lib_bsd_gethostbyname=yes
25279 else
25280   ac_cv_lib_bsd_gethostbyname=no
25281 fi
25282 rm -f core conftest.err conftest.$ac_objext \
25283     conftest$ac_exeext conftest.$ac_ext
25284 LIBS=$ac_check_lib_save_LIBS
25285 fi
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25287 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25288 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
25289   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25290 fi
25291
25292       fi
25293     fi
25294
25295     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25296     # socket/setsockopt and other routines are undefined under SCO ODT
25297     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25298     # on later versions), says Simon Leinen: it contains gethostby*
25299     # variants that don't use the name server (or something).  -lsocket
25300     # must be given before -lnsl if both are needed.  We assume that
25301     # if connect needs -lnsl, so does gethostbyname.
25302     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25303 if test "x$ac_cv_func_connect" = x""yes; then :
25304
25305 fi
25306
25307     if test $ac_cv_func_connect = no; then
25308       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25309 $as_echo_n "checking for connect in -lsocket... " >&6; }
25310 if test "${ac_cv_lib_socket_connect+set}" = set; then :
25311   $as_echo_n "(cached) " >&6
25312 else
25313   ac_check_lib_save_LIBS=$LIBS
25314 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25316 /* end confdefs.h.  */
25317
25318 /* Override any GCC internal prototype to avoid an error.
25319    Use char because int might match the return type of a GCC
25320    builtin and then its argument prototype would still apply.  */
25321 #ifdef __cplusplus
25322 extern "C"
25323 #endif
25324 char connect ();
25325 int
25326 main ()
25327 {
25328 return connect ();
25329   ;
25330   return 0;
25331 }
25332 _ACEOF
25333 if ac_fn_c_try_link "$LINENO"; then :
25334   ac_cv_lib_socket_connect=yes
25335 else
25336   ac_cv_lib_socket_connect=no
25337 fi
25338 rm -f core conftest.err conftest.$ac_objext \
25339     conftest$ac_exeext conftest.$ac_ext
25340 LIBS=$ac_check_lib_save_LIBS
25341 fi
25342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25343 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25344 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
25345   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25346 fi
25347
25348     fi
25349
25350     # Guillermo Gomez says -lposix is necessary on A/UX.
25351     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25352 if test "x$ac_cv_func_remove" = x""yes; then :
25353
25354 fi
25355
25356     if test $ac_cv_func_remove = no; then
25357       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25358 $as_echo_n "checking for remove in -lposix... " >&6; }
25359 if test "${ac_cv_lib_posix_remove+set}" = set; then :
25360   $as_echo_n "(cached) " >&6
25361 else
25362   ac_check_lib_save_LIBS=$LIBS
25363 LIBS="-lposix  $LIBS"
25364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25365 /* end confdefs.h.  */
25366
25367 /* Override any GCC internal prototype to avoid an error.
25368    Use char because int might match the return type of a GCC
25369    builtin and then its argument prototype would still apply.  */
25370 #ifdef __cplusplus
25371 extern "C"
25372 #endif
25373 char remove ();
25374 int
25375 main ()
25376 {
25377 return remove ();
25378   ;
25379   return 0;
25380 }
25381 _ACEOF
25382 if ac_fn_c_try_link "$LINENO"; then :
25383   ac_cv_lib_posix_remove=yes
25384 else
25385   ac_cv_lib_posix_remove=no
25386 fi
25387 rm -f core conftest.err conftest.$ac_objext \
25388     conftest$ac_exeext conftest.$ac_ext
25389 LIBS=$ac_check_lib_save_LIBS
25390 fi
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25392 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25393 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
25394   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25395 fi
25396
25397     fi
25398
25399     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25400     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25401 if test "x$ac_cv_func_shmat" = x""yes; then :
25402
25403 fi
25404
25405     if test $ac_cv_func_shmat = no; then
25406       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25407 $as_echo_n "checking for shmat in -lipc... " >&6; }
25408 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
25409   $as_echo_n "(cached) " >&6
25410 else
25411   ac_check_lib_save_LIBS=$LIBS
25412 LIBS="-lipc  $LIBS"
25413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25414 /* end confdefs.h.  */
25415
25416 /* Override any GCC internal prototype to avoid an error.
25417    Use char because int might match the return type of a GCC
25418    builtin and then its argument prototype would still apply.  */
25419 #ifdef __cplusplus
25420 extern "C"
25421 #endif
25422 char shmat ();
25423 int
25424 main ()
25425 {
25426 return shmat ();
25427   ;
25428   return 0;
25429 }
25430 _ACEOF
25431 if ac_fn_c_try_link "$LINENO"; then :
25432   ac_cv_lib_ipc_shmat=yes
25433 else
25434   ac_cv_lib_ipc_shmat=no
25435 fi
25436 rm -f core conftest.err conftest.$ac_objext \
25437     conftest$ac_exeext conftest.$ac_ext
25438 LIBS=$ac_check_lib_save_LIBS
25439 fi
25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25441 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25442 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
25443   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25444 fi
25445
25446     fi
25447   fi
25448
25449   # Check for libraries that X11R6 Xt/Xaw programs need.
25450   ac_save_LDFLAGS=$LDFLAGS
25451   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25452   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25453   # check for ICE first), but we must link in the order -lSM -lICE or
25454   # we get undefined symbols.  So assume we have SM if we have ICE.
25455   # These have to be linked with before -lX11, unlike the other
25456   # libraries we check for below, so use a different variable.
25457   # John Interrante, Karl Berry
25458   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25459 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25460 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
25461   $as_echo_n "(cached) " >&6
25462 else
25463   ac_check_lib_save_LIBS=$LIBS
25464 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25466 /* end confdefs.h.  */
25467
25468 /* Override any GCC internal prototype to avoid an error.
25469    Use char because int might match the return type of a GCC
25470    builtin and then its argument prototype would still apply.  */
25471 #ifdef __cplusplus
25472 extern "C"
25473 #endif
25474 char IceConnectionNumber ();
25475 int
25476 main ()
25477 {
25478 return IceConnectionNumber ();
25479   ;
25480   return 0;
25481 }
25482 _ACEOF
25483 if ac_fn_c_try_link "$LINENO"; then :
25484   ac_cv_lib_ICE_IceConnectionNumber=yes
25485 else
25486   ac_cv_lib_ICE_IceConnectionNumber=no
25487 fi
25488 rm -f core conftest.err conftest.$ac_objext \
25489     conftest$ac_exeext conftest.$ac_ext
25490 LIBS=$ac_check_lib_save_LIBS
25491 fi
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25493 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25494 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
25495   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25496 fi
25497
25498   LDFLAGS=$ac_save_LDFLAGS
25499
25500 fi
25501
25502
25503 for ac_header in \
25504    assert.h \
25505    fcntl.h \
25506    grp.h \
25507    pwd.h \
25508    libc.h \
25509    limits.h \
25510    stdarg.h \
25511    stdlib.h \
25512    stdint.h \
25513    string.h \
25514    strings.h \
25515    termios.h \
25516    termcap.h \
25517    term.h \
25518    unistd.h \
25519    sys/bitypes.h \
25520    sys/byteorder.h \
25521    sys/ioctl.h \
25522    sys/select.h \
25523    sys/socket.h \
25524    sys/sockio.h \
25525    sys/stat.h \
25526    sys/time.h \
25527    sys/types.h \
25528    arpa/nameser.h \
25529    mtio.h \
25530    sys/mtio.h \
25531    sys/tape.h \
25532    regex.h \
25533
25534 do :
25535   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25536 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25537 eval as_val=\$$as_ac_Header
25538    if test "x$as_val" = x""yes; then :
25539   cat >>confdefs.h <<_ACEOF
25540 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25541 _ACEOF
25542
25543 fi
25544
25545 done
25546
25547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25548 $as_echo_n "checking for ANSI C header files... " >&6; }
25549 if test "${ac_cv_header_stdc+set}" = set; then :
25550   $as_echo_n "(cached) " >&6
25551 else
25552   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25553 /* end confdefs.h.  */
25554 #include <stdlib.h>
25555 #include <stdarg.h>
25556 #include <string.h>
25557 #include <float.h>
25558
25559 int
25560 main ()
25561 {
25562
25563   ;
25564   return 0;
25565 }
25566 _ACEOF
25567 if ac_fn_c_try_compile "$LINENO"; then :
25568   ac_cv_header_stdc=yes
25569 else
25570   ac_cv_header_stdc=no
25571 fi
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573
25574 if test $ac_cv_header_stdc = yes; then
25575   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25576   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577 /* end confdefs.h.  */
25578 #include <string.h>
25579
25580 _ACEOF
25581 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25582   $EGREP "memchr" >/dev/null 2>&1; then :
25583
25584 else
25585   ac_cv_header_stdc=no
25586 fi
25587 rm -f conftest*
25588
25589 fi
25590
25591 if test $ac_cv_header_stdc = yes; then
25592   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25593   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25594 /* end confdefs.h.  */
25595 #include <stdlib.h>
25596
25597 _ACEOF
25598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25599   $EGREP "free" >/dev/null 2>&1; then :
25600
25601 else
25602   ac_cv_header_stdc=no
25603 fi
25604 rm -f conftest*
25605
25606 fi
25607
25608 if test $ac_cv_header_stdc = yes; then
25609   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25610   if test "$cross_compiling" = yes; then :
25611   :
25612 else
25613   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25614 /* end confdefs.h.  */
25615 #include <ctype.h>
25616 #include <stdlib.h>
25617 #if ((' ' & 0x0FF) == 0x020)
25618 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25619 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25620 #else
25621 # define ISLOWER(c) \
25622                    (('a' <= (c) && (c) <= 'i') \
25623                      || ('j' <= (c) && (c) <= 'r') \
25624                      || ('s' <= (c) && (c) <= 'z'))
25625 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25626 #endif
25627
25628 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25629 int
25630 main ()
25631 {
25632   int i;
25633   for (i = 0; i < 256; i++)
25634     if (XOR (islower (i), ISLOWER (i))
25635         || toupper (i) != TOUPPER (i))
25636       return 2;
25637   return 0;
25638 }
25639 _ACEOF
25640 if ac_fn_c_try_run "$LINENO"; then :
25641
25642 else
25643   ac_cv_header_stdc=no
25644 fi
25645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25646   conftest.$ac_objext conftest.beam conftest.$ac_ext
25647 fi
25648
25649 fi
25650 fi
25651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25652 $as_echo "$ac_cv_header_stdc" >&6; }
25653 if test $ac_cv_header_stdc = yes; then
25654
25655 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25656
25657 fi
25658
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25660 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25661 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then :
25662   $as_echo_n "(cached) " >&6
25663 else
25664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25665 /* end confdefs.h.  */
25666 #include <sys/types.h>
25667 int
25668 main ()
25669 {
25670 return makedev(0, 0);
25671   ;
25672   return 0;
25673 }
25674 _ACEOF
25675 if ac_fn_c_try_link "$LINENO"; then :
25676   ac_cv_header_sys_types_h_makedev=yes
25677 else
25678   ac_cv_header_sys_types_h_makedev=no
25679 fi
25680 rm -f core conftest.err conftest.$ac_objext \
25681     conftest$ac_exeext conftest.$ac_ext
25682
25683 fi
25684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25685 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25686
25687 if test $ac_cv_header_sys_types_h_makedev = no; then
25688 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25689 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then :
25690
25691 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25692
25693 fi
25694
25695
25696
25697   if test $ac_cv_header_sys_mkdev_h = no; then
25698     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25699 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then :
25700
25701 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25702
25703 fi
25704
25705
25706   fi
25707 fi
25708
25709 ac_header_dirent=no
25710 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25711   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25713 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
25715   $as_echo_n "(cached) " >&6
25716 else
25717   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25718 /* end confdefs.h.  */
25719 #include <sys/types.h>
25720 #include <$ac_hdr>
25721
25722 int
25723 main ()
25724 {
25725 if ((DIR *) 0)
25726 return 0;
25727   ;
25728   return 0;
25729 }
25730 _ACEOF
25731 if ac_fn_c_try_compile "$LINENO"; then :
25732   eval "$as_ac_Header=yes"
25733 else
25734   eval "$as_ac_Header=no"
25735 fi
25736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25737 fi
25738 eval ac_res=\$$as_ac_Header
25739                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25740 $as_echo "$ac_res" >&6; }
25741 eval as_val=\$$as_ac_Header
25742    if test "x$as_val" = x""yes; then :
25743   cat >>confdefs.h <<_ACEOF
25744 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25745 _ACEOF
25746
25747 ac_header_dirent=$ac_hdr; break
25748 fi
25749
25750 done
25751 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25752 if test $ac_header_dirent = dirent.h; then
25753   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25754 $as_echo_n "checking for library containing opendir... " >&6; }
25755 if test "${ac_cv_search_opendir+set}" = set; then :
25756   $as_echo_n "(cached) " >&6
25757 else
25758   ac_func_search_save_LIBS=$LIBS
25759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25760 /* end confdefs.h.  */
25761
25762 /* Override any GCC internal prototype to avoid an error.
25763    Use char because int might match the return type of a GCC
25764    builtin and then its argument prototype would still apply.  */
25765 #ifdef __cplusplus
25766 extern "C"
25767 #endif
25768 char opendir ();
25769 int
25770 main ()
25771 {
25772 return opendir ();
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 for ac_lib in '' dir; do
25778   if test -z "$ac_lib"; then
25779     ac_res="none required"
25780   else
25781     ac_res=-l$ac_lib
25782     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25783   fi
25784   if ac_fn_c_try_link "$LINENO"; then :
25785   ac_cv_search_opendir=$ac_res
25786 fi
25787 rm -f core conftest.err conftest.$ac_objext \
25788     conftest$ac_exeext
25789   if test "${ac_cv_search_opendir+set}" = set; then :
25790   break
25791 fi
25792 done
25793 if test "${ac_cv_search_opendir+set}" = set; then :
25794
25795 else
25796   ac_cv_search_opendir=no
25797 fi
25798 rm conftest.$ac_ext
25799 LIBS=$ac_func_search_save_LIBS
25800 fi
25801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25802 $as_echo "$ac_cv_search_opendir" >&6; }
25803 ac_res=$ac_cv_search_opendir
25804 if test "$ac_res" != no; then :
25805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25806
25807 fi
25808
25809 else
25810   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25811 $as_echo_n "checking for library containing opendir... " >&6; }
25812 if test "${ac_cv_search_opendir+set}" = set; then :
25813   $as_echo_n "(cached) " >&6
25814 else
25815   ac_func_search_save_LIBS=$LIBS
25816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25817 /* end confdefs.h.  */
25818
25819 /* Override any GCC internal prototype to avoid an error.
25820    Use char because int might match the return type of a GCC
25821    builtin and then its argument prototype would still apply.  */
25822 #ifdef __cplusplus
25823 extern "C"
25824 #endif
25825 char opendir ();
25826 int
25827 main ()
25828 {
25829 return opendir ();
25830   ;
25831   return 0;
25832 }
25833 _ACEOF
25834 for ac_lib in '' x; do
25835   if test -z "$ac_lib"; then
25836     ac_res="none required"
25837   else
25838     ac_res=-l$ac_lib
25839     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25840   fi
25841   if ac_fn_c_try_link "$LINENO"; then :
25842   ac_cv_search_opendir=$ac_res
25843 fi
25844 rm -f core conftest.err conftest.$ac_objext \
25845     conftest$ac_exeext
25846   if test "${ac_cv_search_opendir+set}" = set; then :
25847   break
25848 fi
25849 done
25850 if test "${ac_cv_search_opendir+set}" = set; then :
25851
25852 else
25853   ac_cv_search_opendir=no
25854 fi
25855 rm conftest.$ac_ext
25856 LIBS=$ac_func_search_save_LIBS
25857 fi
25858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
25859 $as_echo "$ac_cv_search_opendir" >&6; }
25860 ac_res=$ac_cv_search_opendir
25861 if test "$ac_res" != no; then :
25862   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25863
25864 fi
25865
25866 fi
25867
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
25869 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
25870 if test "${ac_cv_header_stat_broken+set}" = set; then :
25871   $as_echo_n "(cached) " >&6
25872 else
25873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h.  */
25875 #include <sys/types.h>
25876 #include <sys/stat.h>
25877
25878 #if defined S_ISBLK && defined S_IFDIR
25879 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
25880 #endif
25881
25882 #if defined S_ISBLK && defined S_IFCHR
25883 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
25884 #endif
25885
25886 #if defined S_ISLNK && defined S_IFREG
25887 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
25888 #endif
25889
25890 #if defined S_ISSOCK && defined S_IFREG
25891 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
25892 #endif
25893
25894 _ACEOF
25895 if ac_fn_c_try_compile "$LINENO"; then :
25896   ac_cv_header_stat_broken=no
25897 else
25898   ac_cv_header_stat_broken=yes
25899 fi
25900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25901 fi
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
25903 $as_echo "$ac_cv_header_stat_broken" >&6; }
25904 if test $ac_cv_header_stat_broken = yes; then
25905
25906 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
25907
25908 fi
25909
25910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
25911 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
25912 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
25913   $as_echo_n "(cached) " >&6
25914 else
25915   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25916 /* end confdefs.h.  */
25917 #include <sys/types.h>
25918 #include <sys/wait.h>
25919 #ifndef WEXITSTATUS
25920 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
25921 #endif
25922 #ifndef WIFEXITED
25923 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
25924 #endif
25925
25926 int
25927 main ()
25928 {
25929   int s;
25930   wait (&s);
25931   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
25932   ;
25933   return 0;
25934 }
25935 _ACEOF
25936 if ac_fn_c_try_compile "$LINENO"; then :
25937   ac_cv_header_sys_wait_h=yes
25938 else
25939   ac_cv_header_sys_wait_h=no
25940 fi
25941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25942 fi
25943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
25944 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
25945 if test $ac_cv_header_sys_wait_h = yes; then
25946
25947 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
25948
25949 fi
25950
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
25952 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
25953 if test "${ac_cv_header_time+set}" = set; then :
25954   $as_echo_n "(cached) " >&6
25955 else
25956   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25957 /* end confdefs.h.  */
25958 #include <sys/types.h>
25959 #include <sys/time.h>
25960 #include <time.h>
25961
25962 int
25963 main ()
25964 {
25965 if ((struct tm *) 0)
25966 return 0;
25967   ;
25968   return 0;
25969 }
25970 _ACEOF
25971 if ac_fn_c_try_compile "$LINENO"; then :
25972   ac_cv_header_time=yes
25973 else
25974   ac_cv_header_time=no
25975 fi
25976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25977 fi
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
25979 $as_echo "$ac_cv_header_time" >&6; }
25980 if test $ac_cv_header_time = yes; then
25981
25982 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
25983
25984 fi
25985
25986 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
25987 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
25988
25989 cat >>confdefs.h <<_ACEOF
25990 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
25991 _ACEOF
25992
25993
25994 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
25995
25996 fi
25997
25998
25999 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26000 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
26001
26002 cat >>confdefs.h <<_ACEOF
26003 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26004 _ACEOF
26005
26006
26007 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26008
26009 else
26010   case " $LIBOBJS " in
26011   *" fileblocks.$ac_objext "* ) ;;
26012   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26013  ;;
26014 esac
26015
26016 fi
26017
26018
26019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26020 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26021 if test "${ac_cv_struct_tm+set}" = set; then :
26022   $as_echo_n "(cached) " >&6
26023 else
26024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h.  */
26026 #include <sys/types.h>
26027 #include <time.h>
26028
26029 int
26030 main ()
26031 {
26032 struct tm tm;
26033                                      int *p = &tm.tm_sec;
26034                                      return !p;
26035   ;
26036   return 0;
26037 }
26038 _ACEOF
26039 if ac_fn_c_try_compile "$LINENO"; then :
26040   ac_cv_struct_tm=time.h
26041 else
26042   ac_cv_struct_tm=sys/time.h
26043 fi
26044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26045 fi
26046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26047 $as_echo "$ac_cv_struct_tm" >&6; }
26048 if test $ac_cv_struct_tm = sys/time.h; then
26049
26050 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26051
26052 fi
26053
26054 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26055 #include <$ac_cv_struct_tm>
26056
26057 "
26058 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
26059
26060 cat >>confdefs.h <<_ACEOF
26061 #define HAVE_STRUCT_TM_TM_ZONE 1
26062 _ACEOF
26063
26064
26065 fi
26066
26067 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26068
26069 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26070
26071 else
26072   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26073 "
26074 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
26075   ac_have_decl=1
26076 else
26077   ac_have_decl=0
26078 fi
26079
26080 cat >>confdefs.h <<_ACEOF
26081 #define HAVE_DECL_TZNAME $ac_have_decl
26082 _ACEOF
26083
26084   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26085 $as_echo_n "checking for tzname... " >&6; }
26086 if test "${ac_cv_var_tzname+set}" = set; then :
26087   $as_echo_n "(cached) " >&6
26088 else
26089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26090 /* end confdefs.h.  */
26091 #include <time.h>
26092 #if !HAVE_DECL_TZNAME
26093 extern char *tzname[];
26094 #endif
26095
26096 int
26097 main ()
26098 {
26099 return tzname[0][0];
26100   ;
26101   return 0;
26102 }
26103 _ACEOF
26104 if ac_fn_c_try_link "$LINENO"; then :
26105   ac_cv_var_tzname=yes
26106 else
26107   ac_cv_var_tzname=no
26108 fi
26109 rm -f core conftest.err conftest.$ac_objext \
26110     conftest$ac_exeext conftest.$ac_ext
26111 fi
26112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26113 $as_echo "$ac_cv_var_tzname" >&6; }
26114   if test $ac_cv_var_tzname = yes; then
26115
26116 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26117
26118   fi
26119 fi
26120
26121
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26123 $as_echo_n "checking for utime.h... " >&6; }
26124 if test "${ba_cv_header_utime_h+set}" = set; then :
26125   $as_echo_n "(cached) " >&6
26126 else
26127
26128        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26129 /* end confdefs.h.  */
26130
26131               #include <sys/types.h>
26132               #include <utime.h>
26133
26134 int
26135 main ()
26136 {
26137
26138               struct utimbuf foo
26139
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 if ac_fn_c_try_compile "$LINENO"; then :
26145
26146               ba_cv_header_utime_h=yes
26147
26148 else
26149
26150               ba_cv_header_utime_h=no
26151
26152
26153 fi
26154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26155
26156
26157 fi
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26159 $as_echo "$ba_cv_header_utime_h" >&6; }
26160 test $ba_cv_header_utime_h = yes &&
26161 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26162
26163
26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26165 $as_echo_n "checking for socklen_t... " >&6; }
26166 if test "${ba_cv_header_socklen_t+set}" = set; then :
26167   $as_echo_n "(cached) " >&6
26168 else
26169
26170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26171 /* end confdefs.h.  */
26172
26173               #include <sys/types.h>
26174               #include <sys/socket.h>
26175
26176 int
26177 main ()
26178 {
26179
26180               socklen_t x
26181
26182   ;
26183   return 0;
26184 }
26185 _ACEOF
26186 if ac_fn_c_try_compile "$LINENO"; then :
26187
26188              ba_cv_header_socklen_t=yes
26189
26190 else
26191
26192              ba_cv_header_socklen_t=no
26193
26194
26195 fi
26196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26197
26198
26199 fi
26200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26201 $as_echo "$ba_cv_header_socklen_t" >&6; }
26202 test $ba_cv_header_socklen_t = yes &&
26203 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26204
26205
26206 ac_ext=cpp
26207 ac_cpp='$CXXCPP $CPPFLAGS'
26208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26211
26212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26213 $as_echo_n "checking for ioctl_req_t... " >&6; }
26214 if test "${ba_cv_header_ioctl_req_t+set}" = set; then :
26215   $as_echo_n "(cached) " >&6
26216 else
26217
26218        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26219 /* end confdefs.h.  */
26220
26221               #include <unistd.h>
26222               #include <sys/types.h>
26223               #include <sys/ioctl.h>
26224
26225 int
26226 main ()
26227 {
26228
26229               int (*d_ioctl)(int fd, unsigned long int request, ...);
26230               d_ioctl = ::ioctl;
26231
26232   ;
26233   return 0;
26234 }
26235 _ACEOF
26236 if ac_fn_cxx_try_compile "$LINENO"; then :
26237
26238              ba_cv_header_ioctl_req_t=yes
26239
26240 else
26241
26242              ba_cv_header_ioctl_req_t=no
26243
26244
26245 fi
26246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247
26248
26249 fi
26250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26251 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26252 test $ba_cv_header_ioctl_req_t = yes &&
26253 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26254
26255
26256 ac_ext=c
26257 ac_cpp='$CPP $CPPFLAGS'
26258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26261
26262
26263 ac_ext=cpp
26264 ac_cpp='$CXXCPP $CPPFLAGS'
26265 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26266 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26267 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26268
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26270 $as_echo_n "checking for typeof... " >&6; }
26271 if test "${ba_cv_have_typeof+set}" = set; then :
26272   $as_echo_n "(cached) " >&6
26273 else
26274
26275        if test "$cross_compiling" = yes; then :
26276
26277               ba_cv_have_typeof=no
26278
26279
26280 else
26281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26282 /* end confdefs.h.  */
26283
26284               main(){char *a = 0; a = (typeof a)a;}
26285
26286 _ACEOF
26287 if ac_fn_cxx_try_run "$LINENO"; then :
26288
26289               ba_cv_have_typeof=yes
26290
26291 else
26292
26293               ba_cv_have_typeof=no
26294
26295 fi
26296 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26297   conftest.$ac_objext conftest.beam conftest.$ac_ext
26298 fi
26299
26300
26301
26302 fi
26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26304 $as_echo "$ba_cv_have_typeof" >&6; }
26305 test $ba_cv_have_typeof = yes &&
26306 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26307
26308 ac_ext=c
26309 ac_cpp='$CPP $CPPFLAGS'
26310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26313
26314
26315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26316 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26317 if test "${ac_cv_c_const+set}" = set; then :
26318   $as_echo_n "(cached) " >&6
26319 else
26320   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26321 /* end confdefs.h.  */
26322
26323 int
26324 main ()
26325 {
26326 /* FIXME: Include the comments suggested by Paul. */
26327 #ifndef __cplusplus
26328   /* Ultrix mips cc rejects this.  */
26329   typedef int charset[2];
26330   const charset cs;
26331   /* SunOS 4.1.1 cc rejects this.  */
26332   char const *const *pcpcc;
26333   char **ppc;
26334   /* NEC SVR4.0.2 mips cc rejects this.  */
26335   struct point {int x, y;};
26336   static struct point const zero = {0,0};
26337   /* AIX XL C 1.02.0.0 rejects this.
26338      It does not let you subtract one const X* pointer from another in
26339      an arm of an if-expression whose if-part is not a constant
26340      expression */
26341   const char *g = "string";
26342   pcpcc = &g + (g ? g-g : 0);
26343   /* HPUX 7.0 cc rejects these. */
26344   ++pcpcc;
26345   ppc = (char**) pcpcc;
26346   pcpcc = (char const *const *) ppc;
26347   { /* SCO 3.2v4 cc rejects this.  */
26348     char *t;
26349     char const *s = 0 ? (char *) 0 : (char const *) 0;
26350
26351     *t++ = 0;
26352     if (s) return 0;
26353   }
26354   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26355     int x[] = {25, 17};
26356     const int *foo = &x[0];
26357     ++foo;
26358   }
26359   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26360     typedef const int *iptr;
26361     iptr p = 0;
26362     ++p;
26363   }
26364   { /* AIX XL C 1.02.0.0 rejects this saying
26365        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26366     struct s { int j; const int *ap[3]; };
26367     struct s *b; b->j = 5;
26368   }
26369   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26370     const int foo = 10;
26371     if (!foo) return 0;
26372   }
26373   return !cs[0] && !zero.x;
26374 #endif
26375
26376   ;
26377   return 0;
26378 }
26379 _ACEOF
26380 if ac_fn_c_try_compile "$LINENO"; then :
26381   ac_cv_c_const=yes
26382 else
26383   ac_cv_c_const=no
26384 fi
26385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26386 fi
26387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26388 $as_echo "$ac_cv_c_const" >&6; }
26389 if test $ac_cv_c_const = no; then
26390
26391 $as_echo "#define const /**/" >>confdefs.h
26392
26393 fi
26394
26395
26396  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26397 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26398 if test "${ac_cv_c_bigendian+set}" = set; then :
26399   $as_echo_n "(cached) " >&6
26400 else
26401   ac_cv_c_bigendian=unknown
26402     # See if we're dealing with a universal compiler.
26403     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26404 /* end confdefs.h.  */
26405 #ifndef __APPLE_CC__
26406                not a universal capable compiler
26407              #endif
26408              typedef int dummy;
26409
26410 _ACEOF
26411 if ac_fn_c_try_compile "$LINENO"; then :
26412
26413         # Check for potential -arch flags.  It is not universal unless
26414         # there are at least two -arch flags with different values.
26415         ac_arch=
26416         ac_prev=
26417         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26418          if test -n "$ac_prev"; then
26419            case $ac_word in
26420              i?86 | x86_64 | ppc | ppc64)
26421                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26422                  ac_arch=$ac_word
26423                else
26424                  ac_cv_c_bigendian=universal
26425                  break
26426                fi
26427                ;;
26428            esac
26429            ac_prev=
26430          elif test "x$ac_word" = "x-arch"; then
26431            ac_prev=arch
26432          fi
26433        done
26434 fi
26435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26436     if test $ac_cv_c_bigendian = unknown; then
26437       # See if sys/param.h defines the BYTE_ORDER macro.
26438       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26439 /* end confdefs.h.  */
26440 #include <sys/types.h>
26441              #include <sys/param.h>
26442
26443 int
26444 main ()
26445 {
26446 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26447                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26448                      && LITTLE_ENDIAN)
26449               bogus endian macros
26450              #endif
26451
26452   ;
26453   return 0;
26454 }
26455 _ACEOF
26456 if ac_fn_c_try_compile "$LINENO"; then :
26457   # It does; now see whether it defined to BIG_ENDIAN or not.
26458          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26459 /* end confdefs.h.  */
26460 #include <sys/types.h>
26461                 #include <sys/param.h>
26462
26463 int
26464 main ()
26465 {
26466 #if BYTE_ORDER != BIG_ENDIAN
26467                  not big endian
26468                 #endif
26469
26470   ;
26471   return 0;
26472 }
26473 _ACEOF
26474 if ac_fn_c_try_compile "$LINENO"; then :
26475   ac_cv_c_bigendian=yes
26476 else
26477   ac_cv_c_bigendian=no
26478 fi
26479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26480 fi
26481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26482     fi
26483     if test $ac_cv_c_bigendian = unknown; then
26484       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26485       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26486 /* end confdefs.h.  */
26487 #include <limits.h>
26488
26489 int
26490 main ()
26491 {
26492 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26493               bogus endian macros
26494              #endif
26495
26496   ;
26497   return 0;
26498 }
26499 _ACEOF
26500 if ac_fn_c_try_compile "$LINENO"; then :
26501   # It does; now see whether it defined to _BIG_ENDIAN or not.
26502          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h.  */
26504 #include <limits.h>
26505
26506 int
26507 main ()
26508 {
26509 #ifndef _BIG_ENDIAN
26510                  not big endian
26511                 #endif
26512
26513   ;
26514   return 0;
26515 }
26516 _ACEOF
26517 if ac_fn_c_try_compile "$LINENO"; then :
26518   ac_cv_c_bigendian=yes
26519 else
26520   ac_cv_c_bigendian=no
26521 fi
26522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26523 fi
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26525     fi
26526     if test $ac_cv_c_bigendian = unknown; then
26527       # Compile a test program.
26528       if test "$cross_compiling" = yes; then :
26529   # Try to guess by grepping values from an object file.
26530          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26531 /* end confdefs.h.  */
26532 short int ascii_mm[] =
26533                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26534                 short int ascii_ii[] =
26535                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26536                 int use_ascii (int i) {
26537                   return ascii_mm[i] + ascii_ii[i];
26538                 }
26539                 short int ebcdic_ii[] =
26540                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26541                 short int ebcdic_mm[] =
26542                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26543                 int use_ebcdic (int i) {
26544                   return ebcdic_mm[i] + ebcdic_ii[i];
26545                 }
26546                 extern int foo;
26547
26548 int
26549 main ()
26550 {
26551 return use_ascii (foo) == use_ebcdic (foo);
26552   ;
26553   return 0;
26554 }
26555 _ACEOF
26556 if ac_fn_c_try_compile "$LINENO"; then :
26557   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26558               ac_cv_c_bigendian=yes
26559             fi
26560             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26561               if test "$ac_cv_c_bigendian" = unknown; then
26562                 ac_cv_c_bigendian=no
26563               else
26564                 # finding both strings is unlikely to happen, but who knows?
26565                 ac_cv_c_bigendian=unknown
26566               fi
26567             fi
26568 fi
26569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26570 else
26571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26572 /* end confdefs.h.  */
26573 $ac_includes_default
26574 int
26575 main ()
26576 {
26577
26578              /* Are we little or big endian?  From Harbison&Steele.  */
26579              union
26580              {
26581                long int l;
26582                char c[sizeof (long int)];
26583              } u;
26584              u.l = 1;
26585              return u.c[sizeof (long int) - 1] == 1;
26586
26587   ;
26588   return 0;
26589 }
26590 _ACEOF
26591 if ac_fn_c_try_run "$LINENO"; then :
26592   ac_cv_c_bigendian=no
26593 else
26594   ac_cv_c_bigendian=yes
26595 fi
26596 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26597   conftest.$ac_objext conftest.beam conftest.$ac_ext
26598 fi
26599
26600     fi
26601 fi
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26603 $as_echo "$ac_cv_c_bigendian" >&6; }
26604  case $ac_cv_c_bigendian in #(
26605    yes)
26606
26607 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26608 ;; #(
26609    no)
26610
26611 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26612  ;; #(
26613    universal)
26614
26615 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26616
26617      ;; #(
26618    *)
26619      as_fn_error "unknown endianness
26620  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26621  esac
26622
26623
26624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26625 $as_echo_n "checking how to get filesystem type... " >&6; }
26626 fstype=no
26627 # The order of these tests is important.
26628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26629 /* end confdefs.h.  */
26630
26631        #include <sys/statvfs.h>
26632        #include <sys/fstyp.h>
26633
26634 _ACEOF
26635 if ac_fn_c_try_cpp "$LINENO"; then :
26636   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26637  fstype=SVR4
26638
26639 fi
26640 rm -f conftest.err conftest.$ac_ext
26641 if test $fstype = no; then
26642    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26643 /* end confdefs.h.  */
26644
26645           #include <sys/statfs.h>
26646           #include <sys/fstyp.h>
26647
26648 _ACEOF
26649 if ac_fn_c_try_cpp "$LINENO"; then :
26650   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26651  fstype=SVR3
26652
26653 fi
26654 rm -f conftest.err conftest.$ac_ext
26655 fi
26656 if test $fstype = no; then
26657    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26658 /* end confdefs.h.  */
26659
26660           #include <sys/statfs.h>
26661           #include <sys/vmount.h>
26662
26663 _ACEOF
26664 if ac_fn_c_try_cpp "$LINENO"; then :
26665   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26666  fstype=AIX
26667
26668 fi
26669 rm -f conftest.err conftest.$ac_ext
26670 fi
26671 if test $fstype = no; then
26672    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26673 /* end confdefs.h.  */
26674
26675           #include <mntent.h>
26676
26677 _ACEOF
26678 if ac_fn_c_try_cpp "$LINENO"; then :
26679   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26680  fstype=4.3BSD
26681
26682 fi
26683 rm -f conftest.err conftest.$ac_ext
26684 fi
26685 if test $fstype = no; then
26686    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26687 /* end confdefs.h.  */
26688 #include <sys/mount.h>
26689
26690 _ACEOF
26691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26692   $EGREP "f_type;" >/dev/null 2>&1; then :
26693   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26694  fstype=4.4BSD/OSF1
26695 fi
26696 rm -f conftest*
26697
26698 fi
26699 if test $fstype = no; then
26700    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26701 /* end confdefs.h.  */
26702
26703           #include <sys/mount.h>
26704           #include <sys/fs_types.h>
26705
26706 _ACEOF
26707 if ac_fn_c_try_cpp "$LINENO"; then :
26708   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26709  fstype=Ultrix
26710
26711 fi
26712 rm -f conftest.err conftest.$ac_ext
26713 fi
26714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26715 $as_echo "$fstype" >&6; }
26716
26717 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26718 if test "x$ac_cv_header_sys_statvfs_h" = x""yes; then :
26719
26720 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26721
26722 fi
26723
26724
26725
26726 ac_ext=cpp
26727 ac_cpp='$CXXCPP $CPPFLAGS'
26728 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26729 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26730 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26731
26732 for ac_func in backtrace
26733 do :
26734   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26735 if test "x$ac_cv_func_backtrace" = x""yes; then :
26736   cat >>confdefs.h <<_ACEOF
26737 #define HAVE_BACKTRACE 1
26738 _ACEOF
26739
26740 fi
26741 done
26742
26743 ac_ext=c
26744 ac_cpp='$CPP $CPPFLAGS'
26745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26748
26749
26750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26751 $as_echo_n "checking return type of signal handlers... " >&6; }
26752 if test "${ac_cv_type_signal+set}" = set; then :
26753   $as_echo_n "(cached) " >&6
26754 else
26755   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26756 /* end confdefs.h.  */
26757 #include <sys/types.h>
26758 #include <signal.h>
26759
26760 int
26761 main ()
26762 {
26763 return *(signal (0, 0)) (0) == 1;
26764   ;
26765   return 0;
26766 }
26767 _ACEOF
26768 if ac_fn_c_try_compile "$LINENO"; then :
26769   ac_cv_type_signal=int
26770 else
26771   ac_cv_type_signal=void
26772 fi
26773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26774 fi
26775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26776 $as_echo "$ac_cv_type_signal" >&6; }
26777
26778 cat >>confdefs.h <<_ACEOF
26779 #define RETSIGTYPE $ac_cv_type_signal
26780 _ACEOF
26781
26782
26783
26784   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26785 $as_echo_n "checking for type of signal functions... " >&6; }
26786   if test "${bash_cv_signal_vintage+set}" = set; then :
26787   $as_echo_n "(cached) " >&6
26788 else
26789
26790     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26791 /* end confdefs.h.  */
26792 #include <signal.h>
26793 int
26794 main ()
26795 {
26796
26797       sigset_t ss;
26798       struct sigaction sa;
26799       sigemptyset(&ss); sigsuspend(&ss);
26800       sigaction(SIGINT, &sa, (struct sigaction *) 0);
26801       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
26802
26803   ;
26804   return 0;
26805 }
26806 _ACEOF
26807 if ac_fn_c_try_link "$LINENO"; then :
26808   bash_cv_signal_vintage="posix"
26809 else
26810
26811       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26812 /* end confdefs.h.  */
26813 #include <signal.h>
26814 int
26815 main ()
26816 {
26817
26818           int mask = sigmask(SIGINT);
26819           sigsetmask(mask); sigblock(mask); sigpause(mask);
26820
26821   ;
26822   return 0;
26823 }
26824 _ACEOF
26825 if ac_fn_c_try_link "$LINENO"; then :
26826   bash_cv_signal_vintage="4.2bsd"
26827 else
26828
26829         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26830 /* end confdefs.h.  */
26831
26832           #include <signal.h>
26833           RETSIGTYPE foo() { }
26834 int
26835 main ()
26836 {
26837
26838                   int mask = sigmask(SIGINT);
26839                   sigset(SIGINT, foo); sigrelse(SIGINT);
26840                   sighold(SIGINT); sigpause(SIGINT);
26841
26842   ;
26843   return 0;
26844 }
26845 _ACEOF
26846 if ac_fn_c_try_link "$LINENO"; then :
26847   bash_cv_signal_vintage="svr3"
26848 else
26849   bash_cv_signal_vintage="v7"
26850
26851 fi
26852 rm -f core conftest.err conftest.$ac_objext \
26853     conftest$ac_exeext conftest.$ac_ext
26854
26855 fi
26856 rm -f core conftest.err conftest.$ac_objext \
26857     conftest$ac_exeext conftest.$ac_ext
26858
26859 fi
26860 rm -f core conftest.err conftest.$ac_objext \
26861     conftest$ac_exeext conftest.$ac_ext
26862
26863 fi
26864
26865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
26866 $as_echo "$bash_cv_signal_vintage" >&6; }
26867   if test "$bash_cv_signal_vintage" = "posix"; then
26868     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
26869
26870   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
26871     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
26872
26873   elif test "$bash_cv_signal_vintage" = "svr3"; then
26874     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
26875
26876   fi
26877
26878 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
26879 if test "x$ac_cv_type_mode_t" = x""yes; then :
26880
26881 else
26882
26883 cat >>confdefs.h <<_ACEOF
26884 #define mode_t int
26885 _ACEOF
26886
26887 fi
26888
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
26890 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
26891 if test "${ac_cv_type_uid_t+set}" = set; then :
26892   $as_echo_n "(cached) " >&6
26893 else
26894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26895 /* end confdefs.h.  */
26896 #include <sys/types.h>
26897
26898 _ACEOF
26899 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26900   $EGREP "uid_t" >/dev/null 2>&1; then :
26901   ac_cv_type_uid_t=yes
26902 else
26903   ac_cv_type_uid_t=no
26904 fi
26905 rm -f conftest*
26906
26907 fi
26908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
26909 $as_echo "$ac_cv_type_uid_t" >&6; }
26910 if test $ac_cv_type_uid_t = no; then
26911
26912 $as_echo "#define uid_t int" >>confdefs.h
26913
26914
26915 $as_echo "#define gid_t int" >>confdefs.h
26916
26917 fi
26918
26919 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26920 if test "x$ac_cv_type_size_t" = x""yes; then :
26921
26922 else
26923
26924 cat >>confdefs.h <<_ACEOF
26925 #define size_t unsigned int
26926 _ACEOF
26927
26928 fi
26929
26930 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
26931 if test "x$ac_cv_type_pid_t" = x""yes; then :
26932
26933 else
26934
26935 cat >>confdefs.h <<_ACEOF
26936 #define pid_t int
26937 _ACEOF
26938
26939 fi
26940
26941 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
26942 if test "x$ac_cv_type_off_t" = x""yes; then :
26943
26944 else
26945
26946 cat >>confdefs.h <<_ACEOF
26947 #define off_t long int
26948 _ACEOF
26949
26950 fi
26951
26952
26953   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
26954 if test "x$ac_cv_type_intptr_t" = x""yes; then :
26955
26956 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
26957
26958 else
26959   for ac_type in 'int' 'long int' 'long long int'; do
26960        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26961 /* end confdefs.h.  */
26962 $ac_includes_default
26963 int
26964 main ()
26965 {
26966 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
26967 test_array [0] = 0
26968
26969   ;
26970   return 0;
26971 }
26972 _ACEOF
26973 if ac_fn_c_try_compile "$LINENO"; then :
26974
26975 cat >>confdefs.h <<_ACEOF
26976 #define intptr_t $ac_type
26977 _ACEOF
26978
26979           ac_type=
26980 fi
26981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26982        test -z "$ac_type" && break
26983      done
26984 fi
26985
26986
26987
26988   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
26989 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
26990
26991 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
26992
26993 else
26994   for ac_type in 'unsigned int' 'unsigned long int' \
26995         'unsigned long long int'; do
26996        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26997 /* end confdefs.h.  */
26998 $ac_includes_default
26999 int
27000 main ()
27001 {
27002 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27003 test_array [0] = 0
27004
27005   ;
27006   return 0;
27007 }
27008 _ACEOF
27009 if ac_fn_c_try_compile "$LINENO"; then :
27010
27011 cat >>confdefs.h <<_ACEOF
27012 #define uintptr_t $ac_type
27013 _ACEOF
27014
27015           ac_type=
27016 fi
27017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27018        test -z "$ac_type" && break
27019      done
27020 fi
27021
27022
27023 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27024 if test "x$ac_cv_type_ino_t" = x""yes; then :
27025
27026 else
27027
27028 cat >>confdefs.h <<_ACEOF
27029 #define ino_t unsigned long
27030 _ACEOF
27031
27032 fi
27033
27034 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27035 if test "x$ac_cv_type_dev_t" = x""yes; then :
27036
27037 else
27038
27039 cat >>confdefs.h <<_ACEOF
27040 #define dev_t unsigned long
27041 _ACEOF
27042
27043 fi
27044
27045 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27046 if test "x$ac_cv_type_daddr_t" = x""yes; then :
27047
27048 else
27049
27050 cat >>confdefs.h <<_ACEOF
27051 #define daddr_t long
27052 _ACEOF
27053
27054 fi
27055
27056 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27057 if test "x$ac_cv_type_major_t" = x""yes; then :
27058
27059 else
27060
27061 cat >>confdefs.h <<_ACEOF
27062 #define major_t int
27063 _ACEOF
27064
27065 fi
27066
27067 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27068 if test "x$ac_cv_type_minor_t" = x""yes; then :
27069
27070 else
27071
27072 cat >>confdefs.h <<_ACEOF
27073 #define minor_t int
27074 _ACEOF
27075
27076 fi
27077
27078 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27079 if test "x$ac_cv_type_ssize_t" = x""yes; then :
27080
27081 else
27082
27083 cat >>confdefs.h <<_ACEOF
27084 #define ssize_t int
27085 _ACEOF
27086
27087 fi
27088
27089 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27090 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
27091
27092 cat >>confdefs.h <<_ACEOF
27093 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27094 _ACEOF
27095
27096
27097 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27098
27099 else
27100   case " $LIBOBJS " in
27101   *" fileblocks.$ac_objext "* ) ;;
27102   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27103  ;;
27104 esac
27105
27106 fi
27107
27108
27109 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27110 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
27111
27112 cat >>confdefs.h <<_ACEOF
27113 #define HAVE_STRUCT_STAT_ST_RDEV 1
27114 _ACEOF
27115
27116
27117 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27118
27119 fi
27120
27121
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27123 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27124 if test "${ac_cv_struct_tm+set}" = set; then :
27125   $as_echo_n "(cached) " >&6
27126 else
27127   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27128 /* end confdefs.h.  */
27129 #include <sys/types.h>
27130 #include <time.h>
27131
27132 int
27133 main ()
27134 {
27135 struct tm tm;
27136                                      int *p = &tm.tm_sec;
27137                                      return !p;
27138   ;
27139   return 0;
27140 }
27141 _ACEOF
27142 if ac_fn_c_try_compile "$LINENO"; then :
27143   ac_cv_struct_tm=time.h
27144 else
27145   ac_cv_struct_tm=sys/time.h
27146 fi
27147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27148 fi
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27150 $as_echo "$ac_cv_struct_tm" >&6; }
27151 if test $ac_cv_struct_tm = sys/time.h; then
27152
27153 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27154
27155 fi
27156
27157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27158 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27159 if test "${ac_cv_c_const+set}" = set; then :
27160   $as_echo_n "(cached) " >&6
27161 else
27162   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27163 /* end confdefs.h.  */
27164
27165 int
27166 main ()
27167 {
27168 /* FIXME: Include the comments suggested by Paul. */
27169 #ifndef __cplusplus
27170   /* Ultrix mips cc rejects this.  */
27171   typedef int charset[2];
27172   const charset cs;
27173   /* SunOS 4.1.1 cc rejects this.  */
27174   char const *const *pcpcc;
27175   char **ppc;
27176   /* NEC SVR4.0.2 mips cc rejects this.  */
27177   struct point {int x, y;};
27178   static struct point const zero = {0,0};
27179   /* AIX XL C 1.02.0.0 rejects this.
27180      It does not let you subtract one const X* pointer from another in
27181      an arm of an if-expression whose if-part is not a constant
27182      expression */
27183   const char *g = "string";
27184   pcpcc = &g + (g ? g-g : 0);
27185   /* HPUX 7.0 cc rejects these. */
27186   ++pcpcc;
27187   ppc = (char**) pcpcc;
27188   pcpcc = (char const *const *) ppc;
27189   { /* SCO 3.2v4 cc rejects this.  */
27190     char *t;
27191     char const *s = 0 ? (char *) 0 : (char const *) 0;
27192
27193     *t++ = 0;
27194     if (s) return 0;
27195   }
27196   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27197     int x[] = {25, 17};
27198     const int *foo = &x[0];
27199     ++foo;
27200   }
27201   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27202     typedef const int *iptr;
27203     iptr p = 0;
27204     ++p;
27205   }
27206   { /* AIX XL C 1.02.0.0 rejects this saying
27207        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27208     struct s { int j; const int *ap[3]; };
27209     struct s *b; b->j = 5;
27210   }
27211   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27212     const int foo = 10;
27213     if (!foo) return 0;
27214   }
27215   return !cs[0] && !zero.x;
27216 #endif
27217
27218   ;
27219   return 0;
27220 }
27221 _ACEOF
27222 if ac_fn_c_try_compile "$LINENO"; then :
27223   ac_cv_c_const=yes
27224 else
27225   ac_cv_c_const=no
27226 fi
27227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27228 fi
27229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27230 $as_echo "$ac_cv_c_const" >&6; }
27231 if test $ac_cv_c_const = no; then
27232
27233 $as_echo "#define const /**/" >>confdefs.h
27234
27235 fi
27236
27237
27238 # The cast to long int works around a bug in the HP C Compiler
27239 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27240 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27241 # This bug is HP SR number 8606223364.
27242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27243 $as_echo_n "checking size of char... " >&6; }
27244 if test "${ac_cv_sizeof_char+set}" = set; then :
27245   $as_echo_n "(cached) " >&6
27246 else
27247   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27248
27249 else
27250   if test "$ac_cv_type_char" = yes; then
27251      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27252 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27253 { as_fn_set_status 77
27254 as_fn_error "cannot compute sizeof (char)
27255 See \`config.log' for more details." "$LINENO" 5; }; }
27256    else
27257      ac_cv_sizeof_char=0
27258    fi
27259 fi
27260
27261 fi
27262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27263 $as_echo "$ac_cv_sizeof_char" >&6; }
27264
27265
27266
27267 cat >>confdefs.h <<_ACEOF
27268 #define SIZEOF_CHAR $ac_cv_sizeof_char
27269 _ACEOF
27270
27271
27272 # The cast to long int works around a bug in the HP C Compiler
27273 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27274 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27275 # This bug is HP SR number 8606223364.
27276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27277 $as_echo_n "checking size of short int... " >&6; }
27278 if test "${ac_cv_sizeof_short_int+set}" = set; then :
27279   $as_echo_n "(cached) " >&6
27280 else
27281   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27282
27283 else
27284   if test "$ac_cv_type_short_int" = yes; then
27285      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27287 { as_fn_set_status 77
27288 as_fn_error "cannot compute sizeof (short int)
27289 See \`config.log' for more details." "$LINENO" 5; }; }
27290    else
27291      ac_cv_sizeof_short_int=0
27292    fi
27293 fi
27294
27295 fi
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27297 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27298
27299
27300
27301 cat >>confdefs.h <<_ACEOF
27302 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27303 _ACEOF
27304
27305
27306 # The cast to long int works around a bug in the HP C Compiler
27307 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27308 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27309 # This bug is HP SR number 8606223364.
27310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27311 $as_echo_n "checking size of int... " >&6; }
27312 if test "${ac_cv_sizeof_int+set}" = set; then :
27313   $as_echo_n "(cached) " >&6
27314 else
27315   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27316
27317 else
27318   if test "$ac_cv_type_int" = yes; then
27319      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27321 { as_fn_set_status 77
27322 as_fn_error "cannot compute sizeof (int)
27323 See \`config.log' for more details." "$LINENO" 5; }; }
27324    else
27325      ac_cv_sizeof_int=0
27326    fi
27327 fi
27328
27329 fi
27330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27331 $as_echo "$ac_cv_sizeof_int" >&6; }
27332
27333
27334
27335 cat >>confdefs.h <<_ACEOF
27336 #define SIZEOF_INT $ac_cv_sizeof_int
27337 _ACEOF
27338
27339
27340 # The cast to long int works around a bug in the HP C Compiler
27341 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27342 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27343 # This bug is HP SR number 8606223364.
27344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27345 $as_echo_n "checking size of long int... " >&6; }
27346 if test "${ac_cv_sizeof_long_int+set}" = set; then :
27347   $as_echo_n "(cached) " >&6
27348 else
27349   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27350
27351 else
27352   if test "$ac_cv_type_long_int" = yes; then
27353      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27355 { as_fn_set_status 77
27356 as_fn_error "cannot compute sizeof (long int)
27357 See \`config.log' for more details." "$LINENO" 5; }; }
27358    else
27359      ac_cv_sizeof_long_int=0
27360    fi
27361 fi
27362
27363 fi
27364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27365 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27366
27367
27368
27369 cat >>confdefs.h <<_ACEOF
27370 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27371 _ACEOF
27372
27373
27374 # The cast to long int works around a bug in the HP C Compiler
27375 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27376 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27377 # This bug is HP SR number 8606223364.
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27379 $as_echo_n "checking size of long long int... " >&6; }
27380 if test "${ac_cv_sizeof_long_long_int+set}" = set; then :
27381   $as_echo_n "(cached) " >&6
27382 else
27383   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27384
27385 else
27386   if test "$ac_cv_type_long_long_int" = yes; then
27387      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27388 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27389 { as_fn_set_status 77
27390 as_fn_error "cannot compute sizeof (long long int)
27391 See \`config.log' for more details." "$LINENO" 5; }; }
27392    else
27393      ac_cv_sizeof_long_long_int=0
27394    fi
27395 fi
27396
27397 fi
27398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27399 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27400
27401
27402
27403 cat >>confdefs.h <<_ACEOF
27404 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27405 _ACEOF
27406
27407
27408 # The cast to long int works around a bug in the HP C Compiler
27409 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27410 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27411 # This bug is HP SR number 8606223364.
27412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27413 $as_echo_n "checking size of int *... " >&6; }
27414 if test "${ac_cv_sizeof_int_p+set}" = set; then :
27415   $as_echo_n "(cached) " >&6
27416 else
27417   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27418
27419 else
27420   if test "$ac_cv_type_int_p" = yes; then
27421      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27422 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27423 { as_fn_set_status 77
27424 as_fn_error "cannot compute sizeof (int *)
27425 See \`config.log' for more details." "$LINENO" 5; }; }
27426    else
27427      ac_cv_sizeof_int_p=0
27428    fi
27429 fi
27430
27431 fi
27432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27433 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27434
27435
27436
27437 cat >>confdefs.h <<_ACEOF
27438 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27439 _ACEOF
27440
27441
27442
27443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27444 $as_echo_n "checking for u_int type... " >&6; }
27445 if test "${ac_cv_have_u_int+set}" = set; then :
27446   $as_echo_n "(cached) " >&6
27447 else
27448
27449        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27450 /* end confdefs.h.  */
27451
27452               #include <sys/types.h>
27453
27454 int
27455 main ()
27456 {
27457
27458               u_int a; a = 1;
27459
27460   ;
27461   return 0;
27462 }
27463 _ACEOF
27464 if ac_fn_c_try_compile "$LINENO"; then :
27465
27466               ac_cv_have_u_int="yes"
27467
27468 else
27469
27470               ac_cv_have_u_int="no"
27471
27472
27473 fi
27474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27475
27476
27477 fi
27478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27479 $as_echo "$ac_cv_have_u_int" >&6; }
27480 if test "x$ac_cv_have_u_int" = "xyes" ; then
27481    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27482
27483    have_u_int=1
27484 fi
27485
27486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27487 $as_echo_n "checking for intmax_t type... " >&6; }
27488 if test "${ac_cv_have_intmax_t+set}" = set; then :
27489   $as_echo_n "(cached) " >&6
27490 else
27491
27492        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27493 /* end confdefs.h.  */
27494
27495               #include <sys/types.h>
27496
27497 int
27498 main ()
27499 {
27500
27501               intmax_t a; a = 1;
27502
27503   ;
27504   return 0;
27505 }
27506 _ACEOF
27507 if ac_fn_c_try_compile "$LINENO"; then :
27508
27509               ac_cv_have_intmax_t="yes"
27510
27511 else
27512
27513               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h.  */
27515
27516                      #include <stdint.h>
27517
27518 int
27519 main ()
27520 {
27521
27522                      intmax_t a; a = 1;
27523
27524   ;
27525   return 0;
27526 }
27527 _ACEOF
27528 if ac_fn_c_try_compile "$LINENO"; then :
27529
27530                      ac_cv_have_intmax_t="yes"
27531
27532 else
27533
27534                      ac_cv_have_intmax_t="no"
27535
27536
27537 fi
27538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27539
27540
27541 fi
27542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27543
27544
27545 fi
27546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27547 $as_echo "$ac_cv_have_intmax_t" >&6; }
27548 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27549    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27550
27551    have_intmax_t=1
27552 fi
27553
27554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27555 $as_echo_n "checking for u_intmax_t type... " >&6; }
27556 if test "${ac_cv_have_u_intmax_t+set}" = set; then :
27557   $as_echo_n "(cached) " >&6
27558 else
27559
27560        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27561 /* end confdefs.h.  */
27562
27563               #include <sys/types.h>
27564
27565 int
27566 main ()
27567 {
27568
27569               u_intmax_t a; a = 1;
27570
27571   ;
27572   return 0;
27573 }
27574 _ACEOF
27575 if ac_fn_c_try_compile "$LINENO"; then :
27576
27577               ac_cv_have_u_intmax_t="yes"
27578
27579 else
27580
27581               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27582 /* end confdefs.h.  */
27583
27584                      #include <stdint.h>
27585
27586 int
27587 main ()
27588 {
27589
27590                     u_intmax_t a; a = 1;
27591
27592   ;
27593   return 0;
27594 }
27595 _ACEOF
27596 if ac_fn_c_try_compile "$LINENO"; then :
27597
27598                     ac_cv_have_u_intmax_t="yes"
27599
27600 else
27601
27602                     ac_cv_have_u_intmax_t="no"
27603
27604
27605 fi
27606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27607
27608
27609 fi
27610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27611
27612
27613 fi
27614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27615 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27616 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27617    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27618
27619    have_u_intmax_t=1
27620 fi
27621
27622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27623 $as_echo_n "checking for intXX_t types... " >&6; }
27624 if test "${ac_cv_have_intxx_t+set}" = set; then :
27625   $as_echo_n "(cached) " >&6
27626 else
27627
27628        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27629 /* end confdefs.h.  */
27630
27631               #include <sys/types.h>
27632
27633 int
27634 main ()
27635 {
27636
27637               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27638
27639   ;
27640   return 0;
27641 }
27642 _ACEOF
27643 if ac_fn_c_try_compile "$LINENO"; then :
27644
27645               ac_cv_have_intxx_t="yes"
27646
27647 else
27648
27649               ac_cv_have_intxx_t="no"
27650
27651
27652 fi
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654
27655
27656 fi
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27658 $as_echo "$ac_cv_have_intxx_t" >&6; }
27659 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27660    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27661
27662    have_intxx_t=1
27663 fi
27664
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27666 $as_echo_n "checking for int64_t type... " >&6; }
27667 if test "${ac_cv_have_int64_t+set}" = set; then :
27668   $as_echo_n "(cached) " >&6
27669 else
27670
27671        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27672 /* end confdefs.h.  */
27673
27674               #include <sys/types.h>
27675
27676 int
27677 main ()
27678 {
27679
27680               int64_t a; a = 1;
27681
27682   ;
27683   return 0;
27684 }
27685 _ACEOF
27686 if ac_fn_c_try_compile "$LINENO"; then :
27687
27688               ac_cv_have_int64_t="yes"
27689
27690 else
27691
27692               ac_cv_have_int64_t="no"
27693
27694
27695 fi
27696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27697
27698
27699 fi
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27701 $as_echo "$ac_cv_have_int64_t" >&6; }
27702 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27703    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27704
27705    have_int64_t=1
27706 fi
27707
27708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27709 $as_echo_n "checking for u_intXX_t types... " >&6; }
27710 if test "${ac_cv_have_u_intxx_t+set}" = set; then :
27711   $as_echo_n "(cached) " >&6
27712 else
27713
27714        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27715 /* end confdefs.h.  */
27716
27717               #include <sys/types.h>
27718
27719 int
27720 main ()
27721 {
27722
27723               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27724
27725   ;
27726   return 0;
27727 }
27728 _ACEOF
27729 if ac_fn_c_try_compile "$LINENO"; then :
27730
27731              ac_cv_have_u_intxx_t="yes"
27732
27733 else
27734
27735              ac_cv_have_u_intxx_t="no"
27736
27737
27738 fi
27739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27740
27741
27742 fi
27743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27744 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27745 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27746    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27747
27748    have_u_intxx_t=1
27749 fi
27750
27751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
27752 $as_echo_n "checking for u_int64_t types... " >&6; }
27753 if test "${ac_cv_have_u_int64_t+set}" = set; then :
27754   $as_echo_n "(cached) " >&6
27755 else
27756
27757        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27758 /* end confdefs.h.  */
27759
27760               #include <sys/types.h>
27761
27762 int
27763 main ()
27764 {
27765
27766               u_int64_t a; a = 1;
27767
27768   ;
27769   return 0;
27770 }
27771 _ACEOF
27772 if ac_fn_c_try_compile "$LINENO"; then :
27773
27774              ac_cv_have_u_int64_t="yes"
27775
27776 else
27777
27778              ac_cv_have_u_int64_t="no"
27779
27780
27781 fi
27782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27783
27784
27785 fi
27786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
27787 $as_echo "$ac_cv_have_u_int64_t" >&6; }
27788 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
27789    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27790
27791    have_u_int64_t=1
27792 fi
27793
27794 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
27795     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27796 then
27797    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
27798 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
27799    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27800 /* end confdefs.h.  */
27801
27802           #include <sys/bitypes.h>
27803
27804 int
27805 main ()
27806 {
27807
27808           int8_t a; int16_t b; int32_t c;
27809           u_int8_t e; u_int16_t f; u_int32_t g;
27810           a = b = c = e = f = g = 1;
27811
27812   ;
27813   return 0;
27814 }
27815 _ACEOF
27816 if ac_fn_c_try_compile "$LINENO"; then :
27817
27818           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27819
27820           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27821
27822           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
27823
27824           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27825 $as_echo "yes" >&6; }
27826
27827 else
27828
27829           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27830 $as_echo "no" >&6; }
27831
27832
27833 fi
27834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27835 fi
27836
27837 if test -z "$have_u_intxx_t" ; then
27838    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
27839 $as_echo_n "checking for uintXX_t types... " >&6; }
27840 if test "${ac_cv_have_uintxx_t+set}" = set; then :
27841   $as_echo_n "(cached) " >&6
27842 else
27843
27844           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27845 /* end confdefs.h.  */
27846
27847                  #include <sys/types.h>
27848
27849 int
27850 main ()
27851 {
27852
27853                  uint8_t a; uint16_t b;
27854                  uint32_t c; a = b = c = 1;
27855
27856   ;
27857   return 0;
27858 }
27859 _ACEOF
27860 if ac_fn_c_try_compile "$LINENO"; then :
27861
27862                 ac_cv_have_uintxx_t="yes"
27863
27864 else
27865
27866                 ac_cv_have_uintxx_t="no"
27867
27868
27869 fi
27870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27871
27872
27873 fi
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
27875 $as_echo "$ac_cv_have_uintxx_t" >&6; }
27876    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
27877       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27878
27879    fi
27880 fi
27881
27882 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
27883     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27884 then
27885    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
27886 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
27887    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27888 /* end confdefs.h.  */
27889
27890           #include <sys/bitypes.h>
27891
27892 int
27893 main ()
27894 {
27895
27896           int64_t a; u_int64_t b;
27897           a = b = 1;
27898
27899   ;
27900   return 0;
27901 }
27902 _ACEOF
27903 if ac_fn_c_try_compile "$LINENO"; then :
27904
27905           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
27906
27907           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27908
27909           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27910 $as_echo "yes" >&6; }
27911
27912 else
27913
27914           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27915 $as_echo "no" >&6; }
27916
27917
27918 fi
27919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27920 fi
27921
27922 if (test -z "$have_uintxx_t" && \
27923     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
27924 then
27925    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
27926 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
27927    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27928 /* end confdefs.h.  */
27929
27930           #include <sys/bitypes.h>
27931
27932 int
27933 main ()
27934 {
27935
27936           uint8_t a; uint16_t b;
27937           uint32_t c; a = b = c = 1;
27938
27939   ;
27940   return 0;
27941 }
27942 _ACEOF
27943 if ac_fn_c_try_compile "$LINENO"; then :
27944
27945           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
27946
27947           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27948 $as_echo "yes" >&6; }
27949
27950 else
27951
27952           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27954
27955
27956 fi
27957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27958 fi
27959
27960 for ac_func in \
27961    fork \
27962    getcwd \
27963    gethostname \
27964    getpid \
27965    gettimeofday \
27966    setpgid \
27967    setpgrp \
27968    setsid \
27969    signal \
27970    strerror \
27971    strncmp \
27972    strncpy \
27973    vfprintf \
27974
27975 do :
27976   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27977 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
27978 eval as_val=\$$as_ac_var
27979    if test "x$as_val" = x""yes; then :
27980   cat >>confdefs.h <<_ACEOF
27981 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27982 _ACEOF
27983
27984 else
27985   echo 'configure: cannot find needed function.'; exit 1
27986
27987 fi
27988 done
27989
27990
27991 for ac_func in getpagesize
27992 do :
27993   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
27994 if test "x$ac_cv_func_getpagesize" = x""yes; then :
27995   cat >>confdefs.h <<_ACEOF
27996 #define HAVE_GETPAGESIZE 1
27997 _ACEOF
27998
27999 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28000
28001 fi
28002 done
28003
28004 for ac_func in malloc_trim
28005 do :
28006   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28007 if test "x$ac_cv_func_malloc_trim" = x""yes; then :
28008   cat >>confdefs.h <<_ACEOF
28009 #define HAVE_MALLOC_TRIM 1
28010 _ACEOF
28011
28012 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28013
28014 fi
28015 done
28016
28017
28018 for ac_func in fchdir
28019 do :
28020   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28021 if test "x$ac_cv_func_fchdir" = x""yes; then :
28022   cat >>confdefs.h <<_ACEOF
28023 #define HAVE_FCHDIR 1
28024 _ACEOF
28025  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28026
28027 fi
28028 done
28029
28030 for ac_func in strtoll
28031 do :
28032   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28033 if test "x$ac_cv_func_strtoll" = x""yes; then :
28034   cat >>confdefs.h <<_ACEOF
28035 #define HAVE_STRTOLL 1
28036 _ACEOF
28037  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28038
28039 fi
28040 done
28041
28042 for ac_func in posix_fadvise
28043 do :
28044   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28045 if test "x$ac_cv_func_posix_fadvise" = x""yes; then :
28046   cat >>confdefs.h <<_ACEOF
28047 #define HAVE_POSIX_FADVISE 1
28048 _ACEOF
28049
28050 fi
28051 done
28052
28053 for ac_func in fdatasync
28054 do :
28055   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28056 if test "x$ac_cv_func_fdatasync" = x""yes; then :
28057   cat >>confdefs.h <<_ACEOF
28058 #define HAVE_FDATASYNC 1
28059 _ACEOF
28060
28061 fi
28062 done
28063
28064
28065 for ac_func in chflags
28066 do :
28067   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28068 if test "x$ac_cv_func_chflags" = x""yes; then :
28069   cat >>confdefs.h <<_ACEOF
28070 #define HAVE_CHFLAGS 1
28071 _ACEOF
28072
28073 fi
28074 done
28075
28076
28077 for ac_func in snprintf vsnprintf gethostid fseeko
28078 do :
28079   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28080 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28081 eval as_val=\$$as_ac_var
28082    if test "x$as_val" = x""yes; then :
28083   cat >>confdefs.h <<_ACEOF
28084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28085 _ACEOF
28086
28087 fi
28088 done
28089
28090
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28092 $as_echo_n "checking for va_copy... " >&6; }
28093 if test "${ba_cv_va_copy+set}" = set; then :
28094   $as_echo_n "(cached) " >&6
28095 else
28096
28097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h.  */
28099
28100               #include <stdarg.h>
28101               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28102               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28103
28104 int
28105 main ()
28106 {
28107
28108               call_use_va_copy(1,2,3)
28109
28110   ;
28111   return 0;
28112 }
28113 _ACEOF
28114 if ac_fn_c_try_link "$LINENO"; then :
28115
28116               ba_cv_va_copy=yes,
28117
28118 else
28119
28120               ba_cv_va_copy=no
28121
28122
28123 fi
28124 rm -f core conftest.err conftest.$ac_objext \
28125     conftest$ac_exeext conftest.$ac_ext
28126
28127
28128 fi
28129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28130 $as_echo "$ba_cv_va_copy" >&6; }
28131 test $ba_cv_va_copy = yes &&
28132 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28133
28134
28135 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28136 do :
28137   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28138 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28139 eval as_val=\$$as_ac_var
28140    if test "x$as_val" = x""yes; then :
28141   cat >>confdefs.h <<_ACEOF
28142 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28143 _ACEOF
28144
28145 fi
28146 done
28147
28148
28149 # If resolver functions are not in libc check for -lnsl or -lresolv.
28150 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28151 if test "x$ac_cv_func_gethostbyname_r" = x""yes; then :
28152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28153 $as_echo "using libc's resolver" >&6; }
28154 else
28155   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28156 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28157 if test "${ac_cv_lib_nsl_gethostbyname_r+set}" = set; then :
28158   $as_echo_n "(cached) " >&6
28159 else
28160   ac_check_lib_save_LIBS=$LIBS
28161 LIBS="-lnsl  $LIBS"
28162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28163 /* end confdefs.h.  */
28164
28165 /* Override any GCC internal prototype to avoid an error.
28166    Use char because int might match the return type of a GCC
28167    builtin and then its argument prototype would still apply.  */
28168 #ifdef __cplusplus
28169 extern "C"
28170 #endif
28171 char gethostbyname_r ();
28172 int
28173 main ()
28174 {
28175 return gethostbyname_r ();
28176   ;
28177   return 0;
28178 }
28179 _ACEOF
28180 if ac_fn_c_try_link "$LINENO"; then :
28181   ac_cv_lib_nsl_gethostbyname_r=yes
28182 else
28183   ac_cv_lib_nsl_gethostbyname_r=no
28184 fi
28185 rm -f core conftest.err conftest.$ac_objext \
28186     conftest$ac_exeext conftest.$ac_ext
28187 LIBS=$ac_check_lib_save_LIBS
28188 fi
28189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28190 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28191 if test "x$ac_cv_lib_nsl_gethostbyname_r" = x""yes; then :
28192   cat >>confdefs.h <<_ACEOF
28193 #define HAVE_LIBNSL 1
28194 _ACEOF
28195
28196   LIBS="-lnsl $LIBS"
28197
28198 fi
28199
28200     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28201 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28202 if test "${ac_cv_lib_resolv_gethostbyname_r+set}" = set; then :
28203   $as_echo_n "(cached) " >&6
28204 else
28205   ac_check_lib_save_LIBS=$LIBS
28206 LIBS="-lresolv  $LIBS"
28207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28208 /* end confdefs.h.  */
28209
28210 /* Override any GCC internal prototype to avoid an error.
28211    Use char because int might match the return type of a GCC
28212    builtin and then its argument prototype would still apply.  */
28213 #ifdef __cplusplus
28214 extern "C"
28215 #endif
28216 char gethostbyname_r ();
28217 int
28218 main ()
28219 {
28220 return gethostbyname_r ();
28221   ;
28222   return 0;
28223 }
28224 _ACEOF
28225 if ac_fn_c_try_link "$LINENO"; then :
28226   ac_cv_lib_resolv_gethostbyname_r=yes
28227 else
28228   ac_cv_lib_resolv_gethostbyname_r=no
28229 fi
28230 rm -f core conftest.err conftest.$ac_objext \
28231     conftest$ac_exeext conftest.$ac_ext
28232 LIBS=$ac_check_lib_save_LIBS
28233 fi
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28235 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28236 if test "x$ac_cv_lib_resolv_gethostbyname_r" = x""yes; then :
28237   cat >>confdefs.h <<_ACEOF
28238 #define HAVE_LIBRESOLV 1
28239 _ACEOF
28240
28241   LIBS="-lresolv $LIBS"
28242
28243 fi
28244
28245 fi
28246
28247
28248 for ac_func in inet_pton
28249 do :
28250   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28251 if test "x$ac_cv_func_inet_pton" = x""yes; then :
28252   cat >>confdefs.h <<_ACEOF
28253 #define HAVE_INET_PTON 1
28254 _ACEOF
28255  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28256
28257 fi
28258 done
28259
28260 for ac_func in inet_ntop
28261 do :
28262   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28263 if test "x$ac_cv_func_inet_ntop" = x""yes; then :
28264   cat >>confdefs.h <<_ACEOF
28265 #define HAVE_INET_NTOP 1
28266 _ACEOF
28267  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28268
28269 fi
28270 done
28271
28272 for ac_func in gethostbyname2
28273 do :
28274   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28275 if test "x$ac_cv_func_gethostbyname2" = x""yes; then :
28276   cat >>confdefs.h <<_ACEOF
28277 #define HAVE_GETHOSTBYNAME2 1
28278 _ACEOF
28279  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28280
28281 fi
28282 done
28283
28284
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28286 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28287 if test "${ac_cv_struct_sockaddr_sa_len+set}" = set; then :
28288   $as_echo_n "(cached) " >&6
28289 else
28290
28291        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28292 /* end confdefs.h.  */
28293
28294               #include <sys/socket.h>
28295
28296 int
28297 main ()
28298 {
28299
28300               struct sockaddr s; s.sa_len;
28301
28302   ;
28303   return 0;
28304 }
28305 _ACEOF
28306 if ac_fn_c_try_compile "$LINENO"; then :
28307
28308              ac_cv_struct_sockaddr_sa_len=yes
28309
28310 else
28311   ac_cv_struct_sockaddr_sa_len=no
28312
28313
28314 fi
28315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28316
28317
28318 fi
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28320 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28321
28322 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28323
28324 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28325
28326 fi
28327
28328 for ac_func in strftime
28329 do :
28330   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28331 if test "x$ac_cv_func_strftime" = x""yes; then :
28332   cat >>confdefs.h <<_ACEOF
28333 #define HAVE_STRFTIME 1
28334 _ACEOF
28335
28336 else
28337   # strftime is in -lintl on SCO UNIX.
28338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28339 $as_echo_n "checking for strftime in -lintl... " >&6; }
28340 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
28341   $as_echo_n "(cached) " >&6
28342 else
28343   ac_check_lib_save_LIBS=$LIBS
28344 LIBS="-lintl  $LIBS"
28345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28346 /* end confdefs.h.  */
28347
28348 /* Override any GCC internal prototype to avoid an error.
28349    Use char because int might match the return type of a GCC
28350    builtin and then its argument prototype would still apply.  */
28351 #ifdef __cplusplus
28352 extern "C"
28353 #endif
28354 char strftime ();
28355 int
28356 main ()
28357 {
28358 return strftime ();
28359   ;
28360   return 0;
28361 }
28362 _ACEOF
28363 if ac_fn_c_try_link "$LINENO"; then :
28364   ac_cv_lib_intl_strftime=yes
28365 else
28366   ac_cv_lib_intl_strftime=no
28367 fi
28368 rm -f core conftest.err conftest.$ac_objext \
28369     conftest$ac_exeext conftest.$ac_ext
28370 LIBS=$ac_check_lib_save_LIBS
28371 fi
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28373 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28374 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
28375   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28376
28377 LIBS="-lintl $LIBS"
28378 fi
28379
28380 fi
28381 done
28382
28383 for ac_func in vprintf
28384 do :
28385   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28386 if test "x$ac_cv_func_vprintf" = x""yes; then :
28387   cat >>confdefs.h <<_ACEOF
28388 #define HAVE_VPRINTF 1
28389 _ACEOF
28390
28391 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28392 if test "x$ac_cv_func__doprnt" = x""yes; then :
28393
28394 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28395
28396 fi
28397
28398 fi
28399 done
28400
28401
28402 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28403 # for constant arguments.  Useless!
28404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28405 $as_echo_n "checking for working alloca.h... " >&6; }
28406 if test "${ac_cv_working_alloca_h+set}" = set; then :
28407   $as_echo_n "(cached) " >&6
28408 else
28409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28410 /* end confdefs.h.  */
28411 #include <alloca.h>
28412 int
28413 main ()
28414 {
28415 char *p = (char *) alloca (2 * sizeof (int));
28416                           if (p) return 0;
28417   ;
28418   return 0;
28419 }
28420 _ACEOF
28421 if ac_fn_c_try_link "$LINENO"; then :
28422   ac_cv_working_alloca_h=yes
28423 else
28424   ac_cv_working_alloca_h=no
28425 fi
28426 rm -f core conftest.err conftest.$ac_objext \
28427     conftest$ac_exeext conftest.$ac_ext
28428 fi
28429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28430 $as_echo "$ac_cv_working_alloca_h" >&6; }
28431 if test $ac_cv_working_alloca_h = yes; then
28432
28433 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28434
28435 fi
28436
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28438 $as_echo_n "checking for alloca... " >&6; }
28439 if test "${ac_cv_func_alloca_works+set}" = set; then :
28440   $as_echo_n "(cached) " >&6
28441 else
28442   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28443 /* end confdefs.h.  */
28444 #ifdef __GNUC__
28445 # define alloca __builtin_alloca
28446 #else
28447 # ifdef _MSC_VER
28448 #  include <malloc.h>
28449 #  define alloca _alloca
28450 # else
28451 #  ifdef HAVE_ALLOCA_H
28452 #   include <alloca.h>
28453 #  else
28454 #   ifdef _AIX
28455  #pragma alloca
28456 #   else
28457 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28458 char *alloca ();
28459 #    endif
28460 #   endif
28461 #  endif
28462 # endif
28463 #endif
28464
28465 int
28466 main ()
28467 {
28468 char *p = (char *) alloca (1);
28469                                     if (p) return 0;
28470   ;
28471   return 0;
28472 }
28473 _ACEOF
28474 if ac_fn_c_try_link "$LINENO"; then :
28475   ac_cv_func_alloca_works=yes
28476 else
28477   ac_cv_func_alloca_works=no
28478 fi
28479 rm -f core conftest.err conftest.$ac_objext \
28480     conftest$ac_exeext conftest.$ac_ext
28481 fi
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28483 $as_echo "$ac_cv_func_alloca_works" >&6; }
28484
28485 if test $ac_cv_func_alloca_works = yes; then
28486
28487 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28488
28489 else
28490   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28491 # that cause trouble.  Some versions do not even contain alloca or
28492 # contain a buggy version.  If you still want to use their alloca,
28493 # use ar to extract alloca.o from them instead of compiling alloca.c.
28494
28495 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28496
28497 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28498
28499
28500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28501 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28502 if test "${ac_cv_os_cray+set}" = set; then :
28503   $as_echo_n "(cached) " >&6
28504 else
28505   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28506 /* end confdefs.h.  */
28507 #if defined CRAY && ! defined CRAY2
28508 webecray
28509 #else
28510 wenotbecray
28511 #endif
28512
28513 _ACEOF
28514 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28515   $EGREP "webecray" >/dev/null 2>&1; then :
28516   ac_cv_os_cray=yes
28517 else
28518   ac_cv_os_cray=no
28519 fi
28520 rm -f conftest*
28521
28522 fi
28523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28524 $as_echo "$ac_cv_os_cray" >&6; }
28525 if test $ac_cv_os_cray = yes; then
28526   for ac_func in _getb67 GETB67 getb67; do
28527     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28529 eval as_val=\$$as_ac_var
28530    if test "x$as_val" = x""yes; then :
28531
28532 cat >>confdefs.h <<_ACEOF
28533 #define CRAY_STACKSEG_END $ac_func
28534 _ACEOF
28535
28536     break
28537 fi
28538
28539   done
28540 fi
28541
28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28543 $as_echo_n "checking stack direction for C alloca... " >&6; }
28544 if test "${ac_cv_c_stack_direction+set}" = set; then :
28545   $as_echo_n "(cached) " >&6
28546 else
28547   if test "$cross_compiling" = yes; then :
28548   ac_cv_c_stack_direction=0
28549 else
28550   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28551 /* end confdefs.h.  */
28552 $ac_includes_default
28553 int
28554 find_stack_direction ()
28555 {
28556   static char *addr = 0;
28557   auto char dummy;
28558   if (addr == 0)
28559     {
28560       addr = &dummy;
28561       return find_stack_direction ();
28562     }
28563   else
28564     return (&dummy > addr) ? 1 : -1;
28565 }
28566
28567 int
28568 main ()
28569 {
28570   return find_stack_direction () < 0;
28571 }
28572 _ACEOF
28573 if ac_fn_c_try_run "$LINENO"; then :
28574   ac_cv_c_stack_direction=1
28575 else
28576   ac_cv_c_stack_direction=-1
28577 fi
28578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28579   conftest.$ac_objext conftest.beam conftest.$ac_ext
28580 fi
28581
28582 fi
28583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28584 $as_echo "$ac_cv_c_stack_direction" >&6; }
28585 cat >>confdefs.h <<_ACEOF
28586 #define STACK_DIRECTION $ac_cv_c_stack_direction
28587 _ACEOF
28588
28589
28590 fi
28591
28592 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28593 # -lseq on Dynix/PTX, -lgen on Unixware.
28594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28595 $as_echo_n "checking for library containing getmntent... " >&6; }
28596 if test "${ac_cv_search_getmntent+set}" = set; then :
28597   $as_echo_n "(cached) " >&6
28598 else
28599   ac_func_search_save_LIBS=$LIBS
28600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28601 /* end confdefs.h.  */
28602
28603 /* Override any GCC internal prototype to avoid an error.
28604    Use char because int might match the return type of a GCC
28605    builtin and then its argument prototype would still apply.  */
28606 #ifdef __cplusplus
28607 extern "C"
28608 #endif
28609 char getmntent ();
28610 int
28611 main ()
28612 {
28613 return getmntent ();
28614   ;
28615   return 0;
28616 }
28617 _ACEOF
28618 for ac_lib in '' sun seq gen; do
28619   if test -z "$ac_lib"; then
28620     ac_res="none required"
28621   else
28622     ac_res=-l$ac_lib
28623     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28624   fi
28625   if ac_fn_c_try_link "$LINENO"; then :
28626   ac_cv_search_getmntent=$ac_res
28627 fi
28628 rm -f core conftest.err conftest.$ac_objext \
28629     conftest$ac_exeext
28630   if test "${ac_cv_search_getmntent+set}" = set; then :
28631   break
28632 fi
28633 done
28634 if test "${ac_cv_search_getmntent+set}" = set; then :
28635
28636 else
28637   ac_cv_search_getmntent=no
28638 fi
28639 rm conftest.$ac_ext
28640 LIBS=$ac_func_search_save_LIBS
28641 fi
28642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
28643 $as_echo "$ac_cv_search_getmntent" >&6; }
28644 ac_res=$ac_cv_search_getmntent
28645 if test "$ac_res" != no; then :
28646   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28647   ac_cv_func_getmntent=yes
28648
28649 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
28650
28651 else
28652   ac_cv_func_getmntent=no
28653 fi
28654
28655
28656 for ac_func in getmntinfo
28657 do :
28658   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
28659 if test "x$ac_cv_func_getmntinfo" = x""yes; then :
28660   cat >>confdefs.h <<_ACEOF
28661 #define HAVE_GETMNTINFO 1
28662 _ACEOF
28663  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
28664
28665 fi
28666 done
28667
28668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
28669 $as_echo_n "checking whether closedir returns void... " >&6; }
28670 if test "${ac_cv_func_closedir_void+set}" = set; then :
28671   $as_echo_n "(cached) " >&6
28672 else
28673   if test "$cross_compiling" = yes; then :
28674   ac_cv_func_closedir_void=yes
28675 else
28676   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28677 /* end confdefs.h.  */
28678 $ac_includes_default
28679 #include <$ac_header_dirent>
28680 #ifndef __cplusplus
28681 int closedir ();
28682 #endif
28683
28684 int
28685 main ()
28686 {
28687 return closedir (opendir (".")) != 0;
28688   ;
28689   return 0;
28690 }
28691 _ACEOF
28692 if ac_fn_c_try_run "$LINENO"; then :
28693   ac_cv_func_closedir_void=no
28694 else
28695   ac_cv_func_closedir_void=yes
28696 fi
28697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28698   conftest.$ac_objext conftest.beam conftest.$ac_ext
28699 fi
28700
28701 fi
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
28703 $as_echo "$ac_cv_func_closedir_void" >&6; }
28704 if test $ac_cv_func_closedir_void = yes; then
28705
28706 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
28707
28708 fi
28709
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
28711 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
28712 if test "${ac_cv_func_setpgrp_void+set}" = set; then :
28713   $as_echo_n "(cached) " >&6
28714 else
28715   if test "$cross_compiling" = yes; then :
28716   as_fn_error "cannot check setpgrp when cross compiling" "$LINENO" 5
28717 else
28718   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28719 /* end confdefs.h.  */
28720 $ac_includes_default
28721 int
28722 main ()
28723 {
28724 /* If this system has a BSD-style setpgrp which takes arguments,
28725   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
28726   exit successfully. */
28727   return setpgrp (1,1) != -1;
28728   ;
28729   return 0;
28730 }
28731 _ACEOF
28732 if ac_fn_c_try_run "$LINENO"; then :
28733   ac_cv_func_setpgrp_void=no
28734 else
28735   ac_cv_func_setpgrp_void=yes
28736 fi
28737 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28738   conftest.$ac_objext conftest.beam conftest.$ac_ext
28739 fi
28740
28741 fi
28742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
28743 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
28744 if test $ac_cv_func_setpgrp_void = yes; then
28745
28746 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
28747
28748 fi
28749             # AC_FUNC_FNMATCH    dnl use local version
28750
28751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
28752 $as_echo_n "checking for gettext in -lintl... " >&6; }
28753 if test "${ac_cv_lib_intl_gettext+set}" = set; then :
28754   $as_echo_n "(cached) " >&6
28755 else
28756   ac_check_lib_save_LIBS=$LIBS
28757 LIBS="-lintl  $LIBS"
28758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28759 /* end confdefs.h.  */
28760
28761 /* Override any GCC internal prototype to avoid an error.
28762    Use char because int might match the return type of a GCC
28763    builtin and then its argument prototype would still apply.  */
28764 #ifdef __cplusplus
28765 extern "C"
28766 #endif
28767 char gettext ();
28768 int
28769 main ()
28770 {
28771 return gettext ();
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 if ac_fn_c_try_link "$LINENO"; then :
28777   ac_cv_lib_intl_gettext=yes
28778 else
28779   ac_cv_lib_intl_gettext=no
28780 fi
28781 rm -f core conftest.err conftest.$ac_objext \
28782     conftest$ac_exeext conftest.$ac_ext
28783 LIBS=$ac_check_lib_save_LIBS
28784 fi
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
28786 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
28787 if test "x$ac_cv_lib_intl_gettext" = x""yes; then :
28788   LIBS="$LIBS -lintl"
28789 fi
28790
28791
28792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
28793 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
28794 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then :
28795   $as_echo_n "(cached) " >&6
28796 else
28797   ac_check_lib_save_LIBS=$LIBS
28798 LIBS="-lsun  $LIBS"
28799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28800 /* end confdefs.h.  */
28801
28802 /* Override any GCC internal prototype to avoid an error.
28803    Use char because int might match the return type of a GCC
28804    builtin and then its argument prototype would still apply.  */
28805 #ifdef __cplusplus
28806 extern "C"
28807 #endif
28808 char getpwnam ();
28809 int
28810 main ()
28811 {
28812 return getpwnam ();
28813   ;
28814   return 0;
28815 }
28816 _ACEOF
28817 if ac_fn_c_try_link "$LINENO"; then :
28818   ac_cv_lib_sun_getpwnam=yes
28819 else
28820   ac_cv_lib_sun_getpwnam=no
28821 fi
28822 rm -f core conftest.err conftest.$ac_objext \
28823     conftest$ac_exeext conftest.$ac_ext
28824 LIBS=$ac_check_lib_save_LIBS
28825 fi
28826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
28827 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
28828 if test "x$ac_cv_lib_sun_getpwnam" = x""yes; then :
28829   cat >>confdefs.h <<_ACEOF
28830 #define HAVE_LIBSUN 1
28831 _ACEOF
28832
28833   LIBS="-lsun $LIBS"
28834
28835 fi
28836
28837
28838 for ac_header in zlib.h
28839 do :
28840   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
28841 if test "x$ac_cv_header_zlib_h" = x""yes; then :
28842   cat >>confdefs.h <<_ACEOF
28843 #define HAVE_ZLIB_H 1
28844 _ACEOF
28845
28846 fi
28847
28848 done
28849
28850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
28851 $as_echo_n "checking for deflate in -lz... " >&6; }
28852 if test "${ac_cv_lib_z_deflate+set}" = set; then :
28853   $as_echo_n "(cached) " >&6
28854 else
28855   ac_check_lib_save_LIBS=$LIBS
28856 LIBS="-lz  $LIBS"
28857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28858 /* end confdefs.h.  */
28859
28860 /* Override any GCC internal prototype to avoid an error.
28861    Use char because int might match the return type of a GCC
28862    builtin and then its argument prototype would still apply.  */
28863 #ifdef __cplusplus
28864 extern "C"
28865 #endif
28866 char deflate ();
28867 int
28868 main ()
28869 {
28870 return deflate ();
28871   ;
28872   return 0;
28873 }
28874 _ACEOF
28875 if ac_fn_c_try_link "$LINENO"; then :
28876   ac_cv_lib_z_deflate=yes
28877 else
28878   ac_cv_lib_z_deflate=no
28879 fi
28880 rm -f core conftest.err conftest.$ac_objext \
28881     conftest$ac_exeext conftest.$ac_ext
28882 LIBS=$ac_check_lib_save_LIBS
28883 fi
28884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
28885 $as_echo "$ac_cv_lib_z_deflate" >&6; }
28886 if test "x$ac_cv_lib_z_deflate" = x""yes; then :
28887   ZLIBS="-lz"
28888 fi
28889
28890 have_zlib=no
28891 if test x$ZLIBS = x-lz; then
28892    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
28893
28894    have_zlib=yes
28895 fi
28896
28897
28898 for ac_header in lzo/lzoconf.h
28899 do :
28900   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
28901 if test "x$ac_cv_header_lzo_lzoconf_h" = x""yes; then :
28902   cat >>confdefs.h <<_ACEOF
28903 #define HAVE_LZO_LZOCONF_H 1
28904 _ACEOF
28905
28906 fi
28907
28908 done
28909
28910 for ac_header in lzo/lzo1x.h
28911 do :
28912   ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
28913 if test "x$ac_cv_header_lzo_lzo1x_h" = x""yes; then :
28914   cat >>confdefs.h <<_ACEOF
28915 #define HAVE_LZO_LZO1X_H 1
28916 _ACEOF
28917
28918 fi
28919
28920 done
28921
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
28923 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
28924 if test "${ac_cv_lib_lzo2_lzo1x_1_compress+set}" = set; then :
28925   $as_echo_n "(cached) " >&6
28926 else
28927   ac_check_lib_save_LIBS=$LIBS
28928 LIBS="-llzo2  $LIBS"
28929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28930 /* end confdefs.h.  */
28931
28932 /* Override any GCC internal prototype to avoid an error.
28933    Use char because int might match the return type of a GCC
28934    builtin and then its argument prototype would still apply.  */
28935 #ifdef __cplusplus
28936 extern "C"
28937 #endif
28938 char lzo1x_1_compress ();
28939 int
28940 main ()
28941 {
28942 return lzo1x_1_compress ();
28943   ;
28944   return 0;
28945 }
28946 _ACEOF
28947 if ac_fn_c_try_link "$LINENO"; then :
28948   ac_cv_lib_lzo2_lzo1x_1_compress=yes
28949 else
28950   ac_cv_lib_lzo2_lzo1x_1_compress=no
28951 fi
28952 rm -f core conftest.err conftest.$ac_objext \
28953     conftest$ac_exeext conftest.$ac_ext
28954 LIBS=$ac_check_lib_save_LIBS
28955 fi
28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
28957 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
28958 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = x""yes; then :
28959   LZOLIBS="-llzo2"
28960 fi
28961
28962 have_lzo=no
28963 if test x$LZOLIBS = x-llzo2; then
28964    $as_echo "#define HAVE_LZO 1" >>confdefs.h
28965
28966    have_lzo=yes
28967 fi
28968
28969
28970 support_acl=auto
28971 # Check whether --enable-acl was given.
28972 if test "${enable_acl+set}" = set; then :
28973   enableval=$enable_acl;
28974        if test x$enableval = xyes; then
28975           support_acl=yes
28976        elif test x$enableval = xno; then
28977           support_acl=no
28978        fi
28979
28980
28981 fi
28982
28983
28984 have_acl=no
28985 have_extended_acl=no
28986 if test x$support_acl = xyes -o x$support_acl = xauto; then
28987    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
28988 if test "x$ac_cv_header_sys_acl_h" = x""yes; then :
28989
28990 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
28991
28992 fi
28993
28994
28995
28996             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
28997 if test "x$ac_cv_func_acl_get_file" = x""yes; then :
28998
28999           have_acl=yes
29000
29001
29002 fi
29003
29004
29005             if test $have_acl = no; then
29006       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29007 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29008 if test "${ac_cv_lib_acl_acl_get_file+set}" = set; then :
29009   $as_echo_n "(cached) " >&6
29010 else
29011   ac_check_lib_save_LIBS=$LIBS
29012 LIBS="-lacl  $LIBS"
29013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29014 /* end confdefs.h.  */
29015
29016 /* Override any GCC internal prototype to avoid an error.
29017    Use char because int might match the return type of a GCC
29018    builtin and then its argument prototype would still apply.  */
29019 #ifdef __cplusplus
29020 extern "C"
29021 #endif
29022 char acl_get_file ();
29023 int
29024 main ()
29025 {
29026 return acl_get_file ();
29027   ;
29028   return 0;
29029 }
29030 _ACEOF
29031 if ac_fn_c_try_link "$LINENO"; then :
29032   ac_cv_lib_acl_acl_get_file=yes
29033 else
29034   ac_cv_lib_acl_acl_get_file=no
29035 fi
29036 rm -f core conftest.err conftest.$ac_objext \
29037     conftest$ac_exeext conftest.$ac_ext
29038 LIBS=$ac_check_lib_save_LIBS
29039 fi
29040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29041 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29042 if test "x$ac_cv_lib_acl_acl_get_file" = x""yes; then :
29043
29044              have_acl=yes
29045              FDLIBS="-lacl $FDLIBS"
29046
29047
29048 fi
29049
29050    fi
29051
29052                if test $have_acl = no -a \
29053            x${HAVE_OSF1_OS_TRUE} = x; then
29054       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29055 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29056 if test "${ac_cv_lib_pacl_acl_get_file+set}" = set; then :
29057   $as_echo_n "(cached) " >&6
29058 else
29059   ac_check_lib_save_LIBS=$LIBS
29060 LIBS="-lpacl  $LIBS"
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h.  */
29063
29064 /* Override any GCC internal prototype to avoid an error.
29065    Use char because int might match the return type of a GCC
29066    builtin and then its argument prototype would still apply.  */
29067 #ifdef __cplusplus
29068 extern "C"
29069 #endif
29070 char acl_get_file ();
29071 int
29072 main ()
29073 {
29074 return acl_get_file ();
29075   ;
29076   return 0;
29077 }
29078 _ACEOF
29079 if ac_fn_c_try_link "$LINENO"; then :
29080   ac_cv_lib_pacl_acl_get_file=yes
29081 else
29082   ac_cv_lib_pacl_acl_get_file=no
29083 fi
29084 rm -f core conftest.err conftest.$ac_objext \
29085     conftest$ac_exeext conftest.$ac_ext
29086 LIBS=$ac_check_lib_save_LIBS
29087 fi
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29089 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29090 if test "x$ac_cv_lib_pacl_acl_get_file" = x""yes; then :
29091
29092              have_acl=yes
29093              FDLIBS="-lpacl $FDLIBS"
29094
29095
29096 fi
29097
29098
29099       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29100 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29101       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29102       if test $? = 0; then
29103
29104 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29105
29106          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29107 $as_echo "yes" >&6; }
29108       else
29109          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29110 $as_echo "no" >&6; }
29111       fi
29112    fi
29113
29114             if test $have_acl = yes -a \
29115            x${HAVE_DARWIN_OS_TRUE} = x; then
29116       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29117 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29118       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29119       if test $? = 0; then
29120
29121 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29122
29123          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29124 $as_echo "yes" >&6; }
29125       else
29126          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29127 $as_echo "no" >&6; }
29128       fi
29129    fi
29130
29131             if test $have_acl = yes -a \
29132            x${HAVE_FREEBSD_OS_TRUE} = x; then
29133       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29134 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29135       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29136       if test $? = 0; then
29137
29138 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29139
29140          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29141 $as_echo "yes" >&6; }
29142       else
29143          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29144 $as_echo "no" >&6; }
29145       fi
29146    fi
29147
29148             if test $have_acl = no -a \
29149            x${HAVE_SUN_OS_TRUE} = x; then
29150       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29151 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29152 if test "${ac_cv_lib_sec_acltotext+set}" = set; then :
29153   $as_echo_n "(cached) " >&6
29154 else
29155   ac_check_lib_save_LIBS=$LIBS
29156 LIBS="-lsec  $LIBS"
29157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29158 /* end confdefs.h.  */
29159
29160 /* Override any GCC internal prototype to avoid an error.
29161    Use char because int might match the return type of a GCC
29162    builtin and then its argument prototype would still apply.  */
29163 #ifdef __cplusplus
29164 extern "C"
29165 #endif
29166 char acltotext ();
29167 int
29168 main ()
29169 {
29170 return acltotext ();
29171   ;
29172   return 0;
29173 }
29174 _ACEOF
29175 if ac_fn_c_try_link "$LINENO"; then :
29176   ac_cv_lib_sec_acltotext=yes
29177 else
29178   ac_cv_lib_sec_acltotext=no
29179 fi
29180 rm -f core conftest.err conftest.$ac_objext \
29181     conftest$ac_exeext conftest.$ac_ext
29182 LIBS=$ac_check_lib_save_LIBS
29183 fi
29184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29185 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29186 if test "x$ac_cv_lib_sec_acltotext" = x""yes; then :
29187
29188              have_acl=yes
29189              FDLIBS="-lsec $FDLIBS"
29190
29191              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29192 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29193 if test "${ac_cv_lib_sec_acl_totext+set}" = set; then :
29194   $as_echo_n "(cached) " >&6
29195 else
29196   ac_check_lib_save_LIBS=$LIBS
29197 LIBS="-lsec  $LIBS"
29198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29199 /* end confdefs.h.  */
29200
29201 /* Override any GCC internal prototype to avoid an error.
29202    Use char because int might match the return type of a GCC
29203    builtin and then its argument prototype would still apply.  */
29204 #ifdef __cplusplus
29205 extern "C"
29206 #endif
29207 char acl_totext ();
29208 int
29209 main ()
29210 {
29211 return acl_totext ();
29212   ;
29213   return 0;
29214 }
29215 _ACEOF
29216 if ac_fn_c_try_link "$LINENO"; then :
29217   ac_cv_lib_sec_acl_totext=yes
29218 else
29219   ac_cv_lib_sec_acl_totext=no
29220 fi
29221 rm -f core conftest.err conftest.$ac_objext \
29222     conftest$ac_exeext conftest.$ac_ext
29223 LIBS=$ac_check_lib_save_LIBS
29224 fi
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29226 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29227 if test "x$ac_cv_lib_sec_acl_totext" = x""yes; then :
29228
29229                     have_extended_acl=yes
29230
29231
29232 fi
29233
29234
29235
29236 fi
29237
29238    fi
29239
29240             if test $have_acl = no -a \
29241            x${HAVE_AIX_OS_TRUE} = x; then
29242       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29243 if test "x$ac_cv_func_acl_get" = x""yes; then :
29244
29245              have_acl=yes
29246
29247              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29248 if test "x$ac_cv_func_aclx_get" = x""yes; then :
29249
29250                     have_extended_acl=yes
29251
29252
29253 fi
29254
29255
29256
29257 fi
29258
29259    fi
29260
29261    if test x$support_acl = xyes -a $have_acl != yes; then
29262       as_fn_error "acl support explicitly enabled but no supported acl implementation found,
29263   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29264    else
29265       if test $have_acl = yes; then
29266
29267 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29268
29269       fi
29270
29271       if test $have_extended_acl = yes; then
29272
29273 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29274
29275       fi
29276    fi
29277 fi
29278
29279 support_xattr=auto
29280 # Check whether --enable-xattr was given.
29281 if test "${enable_xattr+set}" = set; then :
29282   enableval=$enable_xattr;
29283        if test x$enableval = xyes; then
29284           support_xattr=yes
29285        elif test x$enableval = xno; then
29286           support_xattr=no
29287        fi
29288
29289
29290 fi
29291
29292
29293 have_xattr=no
29294 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29295                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29296            x${HAVE_NETBSD_OS_TRUE} = x -o \
29297            x${HAVE_OPENBSD_OS_TRUE} = x; then
29298       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29299 if test "x$ac_cv_header_sys_extattr_h" = x""yes; then :
29300
29301 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29302
29303 fi
29304
29305
29306       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29307 if test "x$ac_cv_header_libutil_h" = x""yes; then :
29308
29309 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29310
29311 fi
29312
29313
29314       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29315 do :
29316   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29317 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29318 eval as_val=\$$as_ac_var
29319    if test "x$as_val" = x""yes; then :
29320   cat >>confdefs.h <<_ACEOF
29321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29322 _ACEOF
29323
29324              have_xattr=yes
29325
29326 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29327
29328
29329 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29330
29331
29332 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29333
29334
29335
29336 fi
29337 done
29338
29339
29340       if test $have_xattr = no; then
29341          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29342 do :
29343   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29345 eval as_val=\$$as_ac_var
29346    if test "x$as_val" = x""yes; then :
29347   cat >>confdefs.h <<_ACEOF
29348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29349 _ACEOF
29350
29351                 have_xattr=yes
29352
29353 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29354
29355
29356 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29357
29358
29359 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29360
29361
29362
29363 fi
29364 done
29365
29366       fi
29367
29368       if test $have_xattr = yes; then
29369          have_extattr_string_in_libc=no
29370          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29371 do :
29372   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29373 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29374 eval as_val=\$$as_ac_var
29375    if test "x$as_val" = x""yes; then :
29376   cat >>confdefs.h <<_ACEOF
29377 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29378 _ACEOF
29379
29380                 have_extattr_string_in_libc=yes
29381
29382 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29383
29384
29385 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29386
29387
29388
29389 fi
29390 done
29391
29392
29393                                  if test $have_extattr_string_in_libc = no; then
29394             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29395 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29396 if test "${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+set}" = set; then :
29397   $as_echo_n "(cached) " >&6
29398 else
29399   ac_check_lib_save_LIBS=$LIBS
29400 LIBS="-lutil  $LIBS"
29401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29402 /* end confdefs.h.  */
29403
29404 /* Override any GCC internal prototype to avoid an error.
29405    Use char because int might match the return type of a GCC
29406    builtin and then its argument prototype would still apply.  */
29407 #ifdef __cplusplus
29408 extern "C"
29409 #endif
29410 char extattr_namespace_to_string extattr_string_to_namespace ();
29411 int
29412 main ()
29413 {
29414 return extattr_namespace_to_string extattr_string_to_namespace ();
29415   ;
29416   return 0;
29417 }
29418 _ACEOF
29419 if ac_fn_c_try_link "$LINENO"; then :
29420   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29421 else
29422   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29423 fi
29424 rm -f core conftest.err conftest.$ac_objext \
29425     conftest$ac_exeext conftest.$ac_ext
29426 LIBS=$ac_check_lib_save_LIBS
29427 fi
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29429 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29430 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = x""yes; then :
29431
29432
29433 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29434
29435
29436 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29437
29438                    FDLIBS="-lutil $FDLIBS"
29439
29440
29441 fi
29442
29443          fi
29444       fi
29445    fi
29446
29447                if test $have_xattr = no -a \
29448            x${HAVE_AIX_OS_TRUE} = x; then
29449       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
29450 if test "x$ac_cv_header_sys_ea_h" = x""yes; then :
29451
29452 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
29453
29454 fi
29455
29456
29457       for ac_func in llistea lgetea lsetea
29458 do :
29459   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29460 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29461 eval as_val=\$$as_ac_var
29462    if test "x$as_val" = x""yes; then :
29463   cat >>confdefs.h <<_ACEOF
29464 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29465 _ACEOF
29466
29467              have_xattr=yes
29468
29469 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
29470
29471
29472 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
29473
29474
29475 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
29476
29477
29478
29479 fi
29480 done
29481
29482
29483       if test $have_xattr = no; then
29484          for ac_func in listea getea setea
29485 do :
29486   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29487 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29488 eval as_val=\$$as_ac_var
29489    if test "x$as_val" = x""yes; then :
29490   cat >>confdefs.h <<_ACEOF
29491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29492 _ACEOF
29493
29494                 have_xattr=yes
29495
29496 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
29497
29498
29499 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
29500
29501
29502 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
29503
29504
29505
29506 fi
29507 done
29508
29509       fi
29510    fi
29511
29512                if test $have_xattr = no -a \
29513            x${HAVE_OSF1_OS_TRUE} = x; then
29514       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
29515 if test "x$ac_cv_header_sys_proplist_h" = x""yes; then :
29516
29517 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
29518
29519 fi
29520
29521
29522       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
29523 do :
29524   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29525 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29526 eval as_val=\$$as_ac_var
29527    if test "x$as_val" = x""yes; then :
29528   cat >>confdefs.h <<_ACEOF
29529 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29530 _ACEOF
29531
29532              have_xattr=yes
29533
29534 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
29535
29536
29537 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
29538
29539
29540 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
29541
29542
29543 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
29544
29545
29546 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
29547
29548
29549
29550 fi
29551 done
29552
29553    fi
29554
29555                if test $have_xattr = no -a \
29556            x${HAVE_SUN_OS_TRUE} = x; then
29557       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
29558 if test "x$ac_cv_header_sys_attr_h" = x""yes; then :
29559
29560 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
29561
29562 fi
29563
29564
29565       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
29566 if test "x$ac_cv_header_sys_nvpair_h" = x""yes; then :
29567
29568 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
29569
29570 fi
29571
29572
29573       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
29574 if test "x$ac_cv_header_attr_h" = x""yes; then :
29575
29576 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
29577
29578 fi
29579
29580
29581
29582       for ac_func in openat fstatat unlinkat fchownat futimesat
29583 do :
29584   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29585 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29586 eval as_val=\$$as_ac_var
29587    if test "x$as_val" = x""yes; then :
29588   cat >>confdefs.h <<_ACEOF
29589 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29590 _ACEOF
29591
29592              have_xattr=yes
29593
29594 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
29595
29596
29597 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
29598
29599
29600 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
29601
29602
29603 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
29604
29605
29606 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
29607
29608
29609
29610 fi
29611 done
29612
29613
29614       if test $have_xattr = yes; then
29615          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
29616 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
29617 if test "${ac_cv_lib_nvpair_nvlist_next_nvpair+set}" = set; then :
29618   $as_echo_n "(cached) " >&6
29619 else
29620   ac_check_lib_save_LIBS=$LIBS
29621 LIBS="-lnvpair  $LIBS"
29622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29623 /* end confdefs.h.  */
29624
29625 /* Override any GCC internal prototype to avoid an error.
29626    Use char because int might match the return type of a GCC
29627    builtin and then its argument prototype would still apply.  */
29628 #ifdef __cplusplus
29629 extern "C"
29630 #endif
29631 char nvlist_next_nvpair ();
29632 int
29633 main ()
29634 {
29635 return nvlist_next_nvpair ();
29636   ;
29637   return 0;
29638 }
29639 _ACEOF
29640 if ac_fn_c_try_link "$LINENO"; then :
29641   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
29642 else
29643   ac_cv_lib_nvpair_nvlist_next_nvpair=no
29644 fi
29645 rm -f core conftest.err conftest.$ac_objext \
29646     conftest$ac_exeext conftest.$ac_ext
29647 LIBS=$ac_check_lib_save_LIBS
29648 fi
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
29650 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
29651 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = x""yes; then :
29652
29653
29654 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
29655
29656                 FDLIBS="-lnvpair $FDLIBS"
29657
29658
29659 fi
29660
29661       fi
29662    fi
29663
29664             if test $have_xattr = no; then
29665       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
29666 if test "x$ac_cv_header_sys_xattr_h" = x""yes; then :
29667
29668 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
29669
29670 fi
29671
29672
29673       for ac_func in llistxattr lgetxattr lsetxattr
29674 do :
29675   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29676 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29677 eval as_val=\$$as_ac_var
29678    if test "x$as_val" = x""yes; then :
29679   cat >>confdefs.h <<_ACEOF
29680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29681 _ACEOF
29682
29683              have_xattr=yes
29684
29685 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
29686
29687
29688 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
29689
29690
29691 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
29692
29693
29694
29695 fi
29696 done
29697
29698
29699       if test $have_xattr = no; then
29700          for ac_func in listxattr getxattr setxattr
29701 do :
29702   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29703 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29704 eval as_val=\$$as_ac_var
29705    if test "x$as_val" = x""yes; then :
29706   cat >>confdefs.h <<_ACEOF
29707 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29708 _ACEOF
29709
29710                 have_xattr=yes
29711
29712 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
29713
29714
29715 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
29716
29717
29718 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
29719
29720
29721
29722 fi
29723 done
29724
29725       fi
29726    fi
29727
29728    if test x$support_xattr = xyes -a $have_xattr != yes; then
29729       as_fn_error "xattr support explicitly enabled but no supported xattr implementation found,
29730   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
29731    else
29732       if test $have_xattr = yes; then
29733
29734 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
29735
29736       fi
29737    fi
29738 fi
29739
29740 PTHREAD_LIB=""
29741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
29742 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
29743 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
29744   $as_echo_n "(cached) " >&6
29745 else
29746   ac_check_lib_save_LIBS=$LIBS
29747 LIBS="-lpthread  $LIBS"
29748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29749 /* end confdefs.h.  */
29750
29751 /* Override any GCC internal prototype to avoid an error.
29752    Use char because int might match the return type of a GCC
29753    builtin and then its argument prototype would still apply.  */
29754 #ifdef __cplusplus
29755 extern "C"
29756 #endif
29757 char pthread_create ();
29758 int
29759 main ()
29760 {
29761 return pthread_create ();
29762   ;
29763   return 0;
29764 }
29765 _ACEOF
29766 if ac_fn_c_try_link "$LINENO"; then :
29767   ac_cv_lib_pthread_pthread_create=yes
29768 else
29769   ac_cv_lib_pthread_pthread_create=no
29770 fi
29771 rm -f core conftest.err conftest.$ac_objext \
29772     conftest$ac_exeext conftest.$ac_ext
29773 LIBS=$ac_check_lib_save_LIBS
29774 fi
29775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
29776 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
29777 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
29778   PTHREAD_LIB="-lpthread"
29779 else
29780
29781        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
29782 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
29783 if test "${ac_cv_lib_pthreads_pthread_create+set}" = set; then :
29784   $as_echo_n "(cached) " >&6
29785 else
29786   ac_check_lib_save_LIBS=$LIBS
29787 LIBS="-lpthreads  $LIBS"
29788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29789 /* end confdefs.h.  */
29790
29791 /* Override any GCC internal prototype to avoid an error.
29792    Use char because int might match the return type of a GCC
29793    builtin and then its argument prototype would still apply.  */
29794 #ifdef __cplusplus
29795 extern "C"
29796 #endif
29797 char pthread_create ();
29798 int
29799 main ()
29800 {
29801 return pthread_create ();
29802   ;
29803   return 0;
29804 }
29805 _ACEOF
29806 if ac_fn_c_try_link "$LINENO"; then :
29807   ac_cv_lib_pthreads_pthread_create=yes
29808 else
29809   ac_cv_lib_pthreads_pthread_create=no
29810 fi
29811 rm -f core conftest.err conftest.$ac_objext \
29812     conftest$ac_exeext conftest.$ac_ext
29813 LIBS=$ac_check_lib_save_LIBS
29814 fi
29815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
29816 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
29817 if test "x$ac_cv_lib_pthreads_pthread_create" = x""yes; then :
29818   PTHREAD_LIB="-lpthreads"
29819 else
29820
29821               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
29822 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
29823 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then :
29824   $as_echo_n "(cached) " >&6
29825 else
29826   ac_check_lib_save_LIBS=$LIBS
29827 LIBS="-lc_r  $LIBS"
29828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29829 /* end confdefs.h.  */
29830
29831 /* Override any GCC internal prototype to avoid an error.
29832    Use char because int might match the return type of a GCC
29833    builtin and then its argument prototype would still apply.  */
29834 #ifdef __cplusplus
29835 extern "C"
29836 #endif
29837 char pthread_create ();
29838 int
29839 main ()
29840 {
29841 return pthread_create ();
29842   ;
29843   return 0;
29844 }
29845 _ACEOF
29846 if ac_fn_c_try_link "$LINENO"; then :
29847   ac_cv_lib_c_r_pthread_create=yes
29848 else
29849   ac_cv_lib_c_r_pthread_create=no
29850 fi
29851 rm -f core conftest.err conftest.$ac_objext \
29852     conftest$ac_exeext conftest.$ac_ext
29853 LIBS=$ac_check_lib_save_LIBS
29854 fi
29855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
29856 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
29857 if test "x$ac_cv_lib_c_r_pthread_create" = x""yes; then :
29858   PTHREAD_LIB="-lc_r"
29859 else
29860
29861                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
29862 if test "x$ac_cv_func_pthread_create" = x""yes; then :
29863
29864 fi
29865
29866
29867
29868 fi
29869
29870
29871
29872 fi
29873
29874
29875
29876 fi
29877
29878
29879 for ac_header in sys/prctl.h sys/capability.h
29880 do :
29881   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29882 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29883 eval as_val=\$$as_ac_Header
29884    if test "x$as_val" = x""yes; then :
29885   cat >>confdefs.h <<_ACEOF
29886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29887 _ACEOF
29888
29889 fi
29890
29891 done
29892
29893 for ac_func in prctl setreuid
29894 do :
29895   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29896 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29897 eval as_val=\$$as_ac_var
29898    if test "x$as_val" = x""yes; then :
29899   cat >>confdefs.h <<_ACEOF
29900 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29901 _ACEOF
29902
29903 fi
29904 done
29905
29906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
29907 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
29908 if test "${ac_cv_lib_cap_cap_set_proc+set}" = set; then :
29909   $as_echo_n "(cached) " >&6
29910 else
29911   ac_check_lib_save_LIBS=$LIBS
29912 LIBS="-lcap  $LIBS"
29913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29914 /* end confdefs.h.  */
29915
29916 /* Override any GCC internal prototype to avoid an error.
29917    Use char because int might match the return type of a GCC
29918    builtin and then its argument prototype would still apply.  */
29919 #ifdef __cplusplus
29920 extern "C"
29921 #endif
29922 char cap_set_proc ();
29923 int
29924 main ()
29925 {
29926 return cap_set_proc ();
29927   ;
29928   return 0;
29929 }
29930 _ACEOF
29931 if ac_fn_c_try_link "$LINENO"; then :
29932   ac_cv_lib_cap_cap_set_proc=yes
29933 else
29934   ac_cv_lib_cap_cap_set_proc=no
29935 fi
29936 rm -f core conftest.err conftest.$ac_objext \
29937     conftest$ac_exeext conftest.$ac_ext
29938 LIBS=$ac_check_lib_save_LIBS
29939 fi
29940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
29941 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
29942 if test "x$ac_cv_lib_cap_cap_set_proc" = x""yes; then :
29943   CAP_LIBS="-lcap"
29944 else
29945   CAP_LIBS=
29946 fi
29947
29948 if test x$CAP_LIBS = x-lcap; then
29949
29950 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
29951
29952 fi
29953
29954
29955
29956 $as_echo "#define FDLIBS 1" >>confdefs.h
29957
29958
29959 CFLAGS=${CFLAGS--O}
29960
29961 if test x$have_gcc = xyes ; then
29962    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29963    CFLAGS="$CFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
29964 fi
29965 LDFLAGS=${LDFLAGS--O}
29966 CPPFLAGS="$CPPFLAGS"
29967 CFLAGS="$CFLAGS"
29968
29969
29970
29971
29972
29973
29974
29975
29976
29977
29978
29979
29980
29981
29982
29983 OBJLIST=
29984
29985
29986 lld="lld"
29987 llu="llu"
29988
29989 WCFLAGS=
29990 WLDFLAGS=
29991
29992 PFILES="platforms/Makefile"
29993 PSCMD="ps -e"
29994 WIN32=
29995 MACOSX=
29996 COMPRESS_MANPAGES=yes
29997
29998 hostname=`uname -n | cut -d '.' -f 1`
29999 if test x${hostname} = x ; then
30000    hostname="localhost"
30001 fi
30002 ping -c 1 $hostname 2>/dev/null 1>/dev/null
30003 if test ! $? = 0; then
30004   hostname="localhost"
30005 fi
30006
30007 case "$DISTNAME" in
30008 aix)
30009    DISTVER=`uname -r`
30010    PSCMD="ps -e -o pid,comm"
30011    PFILES="${PFILES} \
30012       platforms/aix/Makefile"
30013    TAPEDRIVE="/dev/rmt0.1"
30014   ;;
30015 alpha)
30016    DISTVER=`uname -r`
30017    PTHREAD_LIB="-lpthread -lexc"
30018    if test "${CC}" = "gcc" ; then
30019       lld="lld"
30020       llu="llu"
30021    else
30022       lld="ld"
30023       llu="lu"
30024    fi
30025    TAPEDRIVE="/dev/nrmt0"
30026   ;;
30027 bsdi)
30028    DISTVER=`uname -a |awk '{print $3}'`
30029    TAPEDRIVE="/dev/nrmt0"
30030    PTHREAD_LIB="-pthread"
30031    CFLAGS="${CFLAGS} -pthread"
30032    PSCMD="ps -ax -o pid,command"
30033    lld="qd"
30034    llu="qu"
30035    PFILES="${PFILES} \
30036        platforms/bsdi/Makefile \
30037        platforms/bsdi/bacula-fd \
30038        platforms/bsdi/bacula-sd \
30039        platforms/bsdi/bacula-dir"
30040    largefile_support="yes"
30041   ;;
30042 cygwin)
30043    DISTVER=`uname -a |awk '{print $3}'`
30044    TAPEDRIVE="/dev/nrst0"
30045    WIN32=win32
30046    WCFLAGS="-mwindows"
30047    WLDFLAGS="-mwindows"
30048   ;;
30049 darwin)
30050    DISTVER=`uname -r`
30051    TAPEDRIVE="/dev/nst0"
30052    PSCMD="ps -e -o pid,command"
30053    MACOSX=macosx
30054    PFILES="${PFILES} \
30055       platforms/darwin/Makefile"
30056   ;;
30057 osx)
30058    DISTVER=`uname -r`
30059    TAPEDRIVE="/dev/nst0"
30060    PSCMD="ps -e -o pid,command"
30061    MACOSX=macosx
30062    PFILES="${PFILES} \
30063       platforms/osx/Makefile"
30064   ;;
30065 debian)
30066    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30067       DISTNAME="ubuntu"
30068    fi
30069    DISTVER=`cat /etc/debian_version`
30070    if test -f /etc/lsb-release ; then
30071       . /etc/lsb-release
30072       if test "x$DISTRIB_ID" != "x" ; then
30073          DISTNAME=$DISTRIB_ID
30074       fi
30075       if test "x$DISTRIB_RELEASE" != "x" ; then
30076          DISTVER=$DISTRIB_RELEASE
30077       fi
30078    fi
30079    if test "$DISTNAME" = "Ubuntu" ; then
30080       DISTNAME="ubuntu"
30081    fi
30082    TAPEDRIVE="/dev/nst0"
30083    PSCMD="ps -e -o pid,command"
30084    if test "$DISTNAME" = "ubuntu" ; then
30085       PFILES="${PFILES} \
30086          platforms/ubuntu/Makefile \
30087          platforms/ubuntu/bacula-fd \
30088          platforms/ubuntu/bacula-sd \
30089          platforms/ubuntu/bacula-dir"
30090    else
30091       PFILES="${PFILES} \
30092          platforms/debian/Makefile \
30093          platforms/debian/bacula-fd \
30094          platforms/debian/bacula-sd \
30095          platforms/debian/bacula-dir"
30096    fi
30097   ;;
30098 freebsd)
30099    DISTVER=`uname -a |awk '{print $3}'`
30100    VER=`echo $DISTVER | cut -c 1`
30101    if test x$VER = x4 ; then
30102       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30103       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30104    fi
30105    lld="qd"
30106    llu="qu"
30107    TAPEDRIVE="/dev/nrsa0"
30108    PSCMD="ps -ax -o pid,command"
30109    PFILES="${PFILES} \
30110        platforms/freebsd/Makefile \
30111        platforms/freebsd/bacula-fd \
30112        platforms/freebsd/bacula-sd \
30113        platforms/freebsd/bacula-dir"
30114    largefile_support="yes"
30115   ;;
30116 hpux)
30117    PSCMD="UNIX95=1; ps -e -o pid,comm"
30118    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30119    DISTVER=`uname -r`
30120    TAPEDRIVE="/dev/rmt/0hnb"
30121    PTHREAD_LIB="-lpthread"
30122    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30123
30124   ;;
30125 irix)
30126    DISTVER=`uname -r`
30127    TAPEDRIVE="/dev/rmt/0cbn"
30128    PSCMD="ps -e -o pid,comm"
30129    PFILES="${PFILES} \
30130        platforms/irix/Makefile \
30131        platforms/irix/bacula-fd \
30132        platforms/irix/bacula-sd \
30133        platforms/irix/bacula-dir"
30134   ;;
30135 netbsd)
30136    DISTVER=`uname -a |awk '{print $3}'`
30137    lld="qd"
30138    llu="qu"
30139    TAPEDRIVE="/dev/nrst0"
30140    PSCMD="ps -ax -o pid,command"
30141    PTHREAD_LIB="-pthread"
30142    CFLAGS="${CFLAGS} -pthread"
30143   ;;
30144 openbsd)
30145    DISTVER=`uname -a |awk '{print $3}'`
30146    lld="qd"
30147    llu="qu"
30148    TAPEDRIVE="/dev/nrst0"
30149    PSCMD="ps -ax -o pid,command"
30150    PTHREAD_LIB="-pthread"
30151    CFLAGS="${CFLAGS} -pthread"
30152    PFILES="${PFILES} \
30153        platforms/openbsd/Makefile \
30154        platforms/openbsd/bacula-fd \
30155        platforms/openbsd/bacula-sd \
30156        platforms/openbsd/bacula-dir"
30157   ;;
30158 redhat)
30159    if test -f /etc/whitebox-release ; then
30160       f=/etc/whitebox-release
30161    else
30162       f=/etc/redhat-release
30163    fi
30164    if test `cat $f | grep release |\
30165          cut -f 3 -d ' '`x = "Enterprise"x ; then
30166       DISTVER="Enterprise "`cat $f | grep release |\
30167           cut -f 6 -d ' '`
30168    else
30169        DISTVER=`cat /etc/redhat-release | grep release |\
30170            cut -f 5 -d ' '`
30171    fi
30172    TAPEDRIVE="/dev/nst0"
30173    PSCMD="ps -e -o pid,command"
30174    PFILES="${PFILES} \
30175        platforms/redhat/Makefile \
30176        platforms/redhat/bacula-fd \
30177        platforms/redhat/bacula-sd \
30178        platforms/redhat/bacula-dir
30179        "
30180   ;;
30181 mandrake)
30182    DISTVER=`cat /etc/mandrake-release | grep release |\
30183       cut -f 5 -d ' '`
30184    TAPEDRIVE="/dev/nst0"
30185    PSCMD="ps -e -o pid,command"
30186    PFILES="${PFILES} \
30187        platforms/mandrake/Makefile \
30188        platforms/mandrake/bacula-fd \
30189        platforms/mandrake/bacula-sd \
30190        platforms/mandrake/bacula-dir \
30191        "
30192   ;;
30193 gentoo)
30194    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30195    TAPEDRIVE="/dev/nst0"
30196    PSCMD="ps -e -o pid,command"
30197    PFILES="${PFILES} \
30198        platforms/gentoo/Makefile \
30199     platforms/gentoo/bacula-init \
30200        platforms/gentoo/bacula-fd \
30201        platforms/gentoo/bacula-sd \
30202        platforms/gentoo/bacula-dir"
30203   ;;
30204 slackware)
30205    DISTVER=`cat /etc/slackware-version`
30206    TAPEDRIVE="/dev/nst0"
30207    PSCMD="ps -e -o pid,command"
30208    PFILES="${PFILES} \
30209        platforms/slackware/Makefile \
30210        platforms/slackware/rc.bacula-fd \
30211        platforms/slackware/rc.bacula-sd \
30212        platforms/slackware/rc.bacula-dir\
30213        platforms/slackware/functions.bacula"
30214   ;;
30215 solaris)
30216    DISTVER=`uname -r`
30217    TAPEDRIVE="/dev/rmt/0cbn"
30218    PSCMD="ps -e -o pid,comm"
30219    PFILES="${PFILES} \
30220        platforms/solaris/Makefile \
30221        platforms/solaris/bacula-fd \
30222        platforms/solaris/bacula-sd \
30223        platforms/solaris/bacula-dir"
30224    COMPRESS_MANPAGES=
30225    case ${DISTVER} in
30226    5.5|5.6)
30227       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30228
30229       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30230
30231       ;;
30232    5.7|5.8)
30233       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30234
30235       ;;
30236    *)
30237       ;;
30238    esac
30239    LIBS="$LIBS -lresolv -lrt"
30240   ;;
30241 suse)
30242    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30243        cut -f 3 -d ' '`
30244    TAPEDRIVE="/dev/nst0"
30245    PSCMD="ps -e -o pid,command"
30246    PFILES="${PFILES} \
30247        platforms/suse/Makefile \
30248        platforms/suse/bacula-fd \
30249        platforms/suse/bacula-sd \
30250        platforms/suse/bacula-dir \
30251        platforms/suse/bacula"
30252   ;;
30253 suse5)
30254    DISTNAME=suse
30255    DISTVER=5.x
30256    TAPEDRIVE="/dev/nst0"
30257    PSCMD="ps -e -o pid,command"
30258    PFILES="${PFILES} \
30259        platforms/suse/Makefile \
30260        platforms/suse/bacula-fd \
30261        platforms/suse/bacula-sd \
30262        platforms/suse/bacula-dir"
30263   ;;
30264 unknown)
30265    DISTVER=unknown
30266    TAPEDRIVE="/dev/nst0"
30267   ;;
30268 *)
30269   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30270   ;;
30271 esac
30272
30273
30274
30275 LIBS="$PTHREAD_LIB $LIBS"
30276
30277 cat >>confdefs.h <<_ACEOF
30278 #define lld "$lld"
30279 _ACEOF
30280
30281 cat >>confdefs.h <<_ACEOF
30282 #define llu "$llu"
30283 _ACEOF
30284
30285
30286
30287
30288
30289
30290
30291
30292
30293 MCOMMON=./autoconf/Make.common
30294
30295
30296 if test "x${subsysdir}" = "x${sbindir}" ; then
30297    echo " "
30298    echo " "
30299    echo "You have set both --sbindir and --with-subsys-dir"
30300    echo "  equal to: ${subsysdir} "
30301    echo "This is not permitted. Please reconfigure."
30302    echo " "
30303    echo "Aborting configuration ..."
30304    echo " "
30305    echo " "
30306    exit 1
30307 fi
30308
30309 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/bacula.desktop.gnome1 scripts/bacula.desktop.gnome2 scripts/bacula.desktop.gnome1.consolehelper scripts/bacula.desktop.gnome2.consolehelper scripts/bacula.desktop.gnome1.xsu scripts/bacula.desktop.gnome2.xsu scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/bacula-tray-monitor.desktop scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/wxconsole.console_apps scripts/wxconsole.desktop.consolehelper scripts/wxconsole.desktop.xsu scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/install_conf_file src/wx-console/Makefile src/wx-console/bwx-console.conf src/tray-monitor/Makefile src/tray-monitor/tray-monitor.conf src/dird/Makefile src/dird/bacula-dir.conf src/lib/Makefile src/stored/Makefile src/stored/bacula-sd.conf src/filed/Makefile src/filed/bacula-fd.conf src/cats/Makefile src/cats/make_catalog_backup.pl src/cats/make_catalog_backup src/cats/delete_catalog_backup src/cats/create_postgresql_database src/cats/update_postgresql_tables src/cats/make_postgresql_tables src/cats/grant_postgresql_privileges src/cats/drop_postgresql_tables src/cats/drop_postgresql_database src/cats/create_mysql_database src/cats/update_mysql_tables src/cats/make_mysql_tables src/cats/grant_mysql_privileges src/cats/drop_mysql_tables src/cats/drop_mysql_database src/cats/create_sqlite3_database src/cats/update_sqlite3_tables src/cats/make_sqlite3_tables src/cats/grant_sqlite3_privileges src/cats/drop_sqlite3_tables src/cats/drop_sqlite3_database src/cats/sqlite src/cats/mysql src/cats/create_bacula_database src/cats/update_bacula_tables src/cats/grant_bacula_privileges src/cats/make_bacula_tables src/cats/drop_bacula_tables src/cats/drop_bacula_database src/cats/install-default-backend src/findlib/Makefile src/tools/Makefile src/plugins/fd/Makefile src/plugins/sd/Makefile src/plugins/dir/Makefile src/win32/Makefile.inc po/Makefile.in updatedb/update_mysql_tables_9_to_10 updatedb/update_sqlite3_tables_9_to_10 updatedb/update_postgresql_tables_9_to_10 updatedb/update_mysql_tables_10_to_11 updatedb/update_sqlite3_tables_10_to_11 updatedb/update_postgresql_tables_10_to_11 updatedb/update_mysql_tables_11_to_12 updatedb/update_sqlite3_tables_11_to_12 updatedb/update_postgresql_tables_11_to_12 updatedb/update_mysql_tables_12_to_14 updatedb/update_sqlite3_tables_12_to_14 updatedb/update_postgresql_tables_12_to_14 examples/nagios/check_bacula/Makefile $PFILES"
30310
30311 ac_config_commands="$ac_config_commands default"
30312
30313 cat >confcache <<\_ACEOF
30314 # This file is a shell script that caches the results of configure
30315 # tests run on this system so they can be shared between configure
30316 # scripts and configure runs, see configure's option --config-cache.
30317 # It is not useful on other systems.  If it contains results you don't
30318 # want to keep, you may remove or edit it.
30319 #
30320 # config.status only pays attention to the cache file if you give it
30321 # the --recheck option to rerun configure.
30322 #
30323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30325 # following values.
30326
30327 _ACEOF
30328
30329 # The following way of writing the cache mishandles newlines in values,
30330 # but we know of no workaround that is simple, portable, and efficient.
30331 # So, we kill variables containing newlines.
30332 # Ultrix sh set writes to stderr and can't be redirected directly,
30333 # and sets the high bit in the cache file unless we assign to the vars.
30334 (
30335   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30336     eval ac_val=\$$ac_var
30337     case $ac_val in #(
30338     *${as_nl}*)
30339       case $ac_var in #(
30340       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30341 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30342       esac
30343       case $ac_var in #(
30344       _ | IFS | as_nl) ;; #(
30345       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30346       *) { eval $ac_var=; unset $ac_var;} ;;
30347       esac ;;
30348     esac
30349   done
30350
30351   (set) 2>&1 |
30352     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30353     *${as_nl}ac_space=\ *)
30354       # `set' does not quote correctly, so add quotes: double-quote
30355       # substitution turns \\\\ into \\, and sed turns \\ into \.
30356       sed -n \
30357         "s/'/'\\\\''/g;
30358           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30359       ;; #(
30360     *)
30361       # `set' quotes correctly as required by POSIX, so do not add quotes.
30362       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30363       ;;
30364     esac |
30365     sort
30366 ) |
30367   sed '
30368      /^ac_cv_env_/b end
30369      t clear
30370      :clear
30371      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30372      t end
30373      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30374      :end' >>confcache
30375 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30376   if test -w "$cache_file"; then
30377     test "x$cache_file" != "x/dev/null" &&
30378       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30379 $as_echo "$as_me: updating cache $cache_file" >&6;}
30380     cat confcache >$cache_file
30381   else
30382     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30383 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30384   fi
30385 fi
30386 rm -f confcache
30387
30388 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30389 # Let make expand exec_prefix.
30390 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30391
30392 DEFS=-DHAVE_CONFIG_H
30393
30394 ac_libobjs=
30395 ac_ltlibobjs=
30396 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30397   # 1. Remove the extension, and $U if already installed.
30398   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30399   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
30400   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30401   #    will be set to the directory where LIBOBJS objects are built.
30402   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30403   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30404 done
30405 LIBOBJS=$ac_libobjs
30406
30407 LTLIBOBJS=$ac_ltlibobjs
30408
30409
30410
30411
30412 : ${CONFIG_STATUS=./config.status}
30413 ac_write_fail=0
30414 ac_clean_files_save=$ac_clean_files
30415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
30417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
30418 as_write_fail=0
30419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
30420 #! $SHELL
30421 # Generated by $as_me.
30422 # Run this file to recreate the current configuration.
30423 # Compiler output produced by configure, useful for debugging
30424 # configure, is in config.log if it exists.
30425
30426 debug=false
30427 ac_cs_recheck=false
30428 ac_cs_silent=false
30429
30430 SHELL=\${CONFIG_SHELL-$SHELL}
30431 export SHELL
30432 _ASEOF
30433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
30434 ## -------------------- ##
30435 ## M4sh Initialization. ##
30436 ## -------------------- ##
30437
30438 # Be more Bourne compatible
30439 DUALCASE=1; export DUALCASE # for MKS sh
30440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
30441   emulate sh
30442   NULLCMD=:
30443   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
30444   # is contrary to our usage.  Disable this feature.
30445   alias -g '${1+"$@"}'='"$@"'
30446   setopt NO_GLOB_SUBST
30447 else
30448   case `(set -o) 2>/dev/null` in #(
30449   *posix*) :
30450     set -o posix ;; #(
30451   *) :
30452      ;;
30453 esac
30454 fi
30455
30456
30457 as_nl='
30458 '
30459 export as_nl
30460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
30461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
30462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
30463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
30464 # Prefer a ksh shell builtin over an external printf program on Solaris,
30465 # but without wasting forks for bash or zsh.
30466 if test -z "$BASH_VERSION$ZSH_VERSION" \
30467     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
30468   as_echo='print -r --'
30469   as_echo_n='print -rn --'
30470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
30471   as_echo='printf %s\n'
30472   as_echo_n='printf %s'
30473 else
30474   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
30475     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
30476     as_echo_n='/usr/ucb/echo -n'
30477   else
30478     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
30479     as_echo_n_body='eval
30480       arg=$1;
30481       case $arg in #(
30482       *"$as_nl"*)
30483         expr "X$arg" : "X\\(.*\\)$as_nl";
30484         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
30485       esac;
30486       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
30487     '
30488     export as_echo_n_body
30489     as_echo_n='sh -c $as_echo_n_body as_echo'
30490   fi
30491   export as_echo_body
30492   as_echo='sh -c $as_echo_body as_echo'
30493 fi
30494
30495 # The user is always right.
30496 if test "${PATH_SEPARATOR+set}" != set; then
30497   PATH_SEPARATOR=:
30498   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
30499     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
30500       PATH_SEPARATOR=';'
30501   }
30502 fi
30503
30504
30505 # IFS
30506 # We need space, tab and new line, in precisely that order.  Quoting is
30507 # there to prevent editors from complaining about space-tab.
30508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
30509 # splitting by setting IFS to empty value.)
30510 IFS=" ""        $as_nl"
30511
30512 # Find who we are.  Look in the path if we contain no directory separator.
30513 case $0 in #((
30514   *[\\/]* ) as_myself=$0 ;;
30515   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30516 for as_dir in $PATH
30517 do
30518   IFS=$as_save_IFS
30519   test -z "$as_dir" && as_dir=.
30520     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30521   done
30522 IFS=$as_save_IFS
30523
30524      ;;
30525 esac
30526 # We did not find ourselves, most probably we were run as `sh COMMAND'
30527 # in which case we are not to be found in the path.
30528 if test "x$as_myself" = x; then
30529   as_myself=$0
30530 fi
30531 if test ! -f "$as_myself"; then
30532   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
30533   exit 1
30534 fi
30535
30536 # Unset variables that we do not need and which cause bugs (e.g. in
30537 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
30538 # suppresses any "Segmentation fault" message there.  '((' could
30539 # trigger a bug in pdksh 5.2.14.
30540 for as_var in BASH_ENV ENV MAIL MAILPATH
30541 do eval test x\${$as_var+set} = xset \
30542   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
30543 done
30544 PS1='$ '
30545 PS2='> '
30546 PS4='+ '
30547
30548 # NLS nuisances.
30549 LC_ALL=C
30550 export LC_ALL
30551 LANGUAGE=C
30552 export LANGUAGE
30553
30554 # CDPATH.
30555 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
30556
30557
30558 # as_fn_error ERROR [LINENO LOG_FD]
30559 # ---------------------------------
30560 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
30561 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
30562 # script with status $?, using 1 if that was 0.
30563 as_fn_error ()
30564 {
30565   as_status=$?; test $as_status -eq 0 && as_status=1
30566   if test "$3"; then
30567     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
30568     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
30569   fi
30570   $as_echo "$as_me: error: $1" >&2
30571   as_fn_exit $as_status
30572 } # as_fn_error
30573
30574
30575 # as_fn_set_status STATUS
30576 # -----------------------
30577 # Set $? to STATUS, without forking.
30578 as_fn_set_status ()
30579 {
30580   return $1
30581 } # as_fn_set_status
30582
30583 # as_fn_exit STATUS
30584 # -----------------
30585 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
30586 as_fn_exit ()
30587 {
30588   set +e
30589   as_fn_set_status $1
30590   exit $1
30591 } # as_fn_exit
30592
30593 # as_fn_unset VAR
30594 # ---------------
30595 # Portably unset VAR.
30596 as_fn_unset ()
30597 {
30598   { eval $1=; unset $1;}
30599 }
30600 as_unset=as_fn_unset
30601 # as_fn_append VAR VALUE
30602 # ----------------------
30603 # Append the text in VALUE to the end of the definition contained in VAR. Take
30604 # advantage of any shell optimizations that allow amortized linear growth over
30605 # repeated appends, instead of the typical quadratic growth present in naive
30606 # implementations.
30607 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
30608   eval 'as_fn_append ()
30609   {
30610     eval $1+=\$2
30611   }'
30612 else
30613   as_fn_append ()
30614   {
30615     eval $1=\$$1\$2
30616   }
30617 fi # as_fn_append
30618
30619 # as_fn_arith ARG...
30620 # ------------------
30621 # Perform arithmetic evaluation on the ARGs, and store the result in the
30622 # global $as_val. Take advantage of shells that can avoid forks. The arguments
30623 # must be portable across $(()) and expr.
30624 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
30625   eval 'as_fn_arith ()
30626   {
30627     as_val=$(( $* ))
30628   }'
30629 else
30630   as_fn_arith ()
30631   {
30632     as_val=`expr "$@" || test $? -eq 1`
30633   }
30634 fi # as_fn_arith
30635
30636
30637 if expr a : '\(a\)' >/dev/null 2>&1 &&
30638    test "X`expr 00001 : '.*\(...\)'`" = X001; then
30639   as_expr=expr
30640 else
30641   as_expr=false
30642 fi
30643
30644 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
30645   as_basename=basename
30646 else
30647   as_basename=false
30648 fi
30649
30650 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
30651   as_dirname=dirname
30652 else
30653   as_dirname=false
30654 fi
30655
30656 as_me=`$as_basename -- "$0" ||
30657 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30658          X"$0" : 'X\(//\)$' \| \
30659          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
30660 $as_echo X/"$0" |
30661     sed '/^.*\/\([^/][^/]*\)\/*$/{
30662             s//\1/
30663             q
30664           }
30665           /^X\/\(\/\/\)$/{
30666             s//\1/
30667             q
30668           }
30669           /^X\/\(\/\).*/{
30670             s//\1/
30671             q
30672           }
30673           s/.*/./; q'`
30674
30675 # Avoid depending upon Character Ranges.
30676 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30677 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30678 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30679 as_cr_digits='0123456789'
30680 as_cr_alnum=$as_cr_Letters$as_cr_digits
30681
30682 ECHO_C= ECHO_N= ECHO_T=
30683 case `echo -n x` in #(((((
30684 -n*)
30685   case `echo 'xy\c'` in
30686   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
30687   xy)  ECHO_C='\c';;
30688   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
30689        ECHO_T=' ';;
30690   esac;;
30691 *)
30692   ECHO_N='-n';;
30693 esac
30694
30695 rm -f conf$$ conf$$.exe conf$$.file
30696 if test -d conf$$.dir; then
30697   rm -f conf$$.dir/conf$$.file
30698 else
30699   rm -f conf$$.dir
30700   mkdir conf$$.dir 2>/dev/null
30701 fi
30702 if (echo >conf$$.file) 2>/dev/null; then
30703   if ln -s conf$$.file conf$$ 2>/dev/null; then
30704     as_ln_s='ln -s'
30705     # ... but there are two gotchas:
30706     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
30707     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
30708     # In both cases, we have to default to `cp -p'.
30709     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
30710       as_ln_s='cp -p'
30711   elif ln conf$$.file conf$$ 2>/dev/null; then
30712     as_ln_s=ln
30713   else
30714     as_ln_s='cp -p'
30715   fi
30716 else
30717   as_ln_s='cp -p'
30718 fi
30719 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
30720 rmdir conf$$.dir 2>/dev/null
30721
30722
30723 # as_fn_mkdir_p
30724 # -------------
30725 # Create "$as_dir" as a directory, including parents if necessary.
30726 as_fn_mkdir_p ()
30727 {
30728
30729   case $as_dir in #(
30730   -*) as_dir=./$as_dir;;
30731   esac
30732   test -d "$as_dir" || eval $as_mkdir_p || {
30733     as_dirs=
30734     while :; do
30735       case $as_dir in #(
30736       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
30737       *) as_qdir=$as_dir;;
30738       esac
30739       as_dirs="'$as_qdir' $as_dirs"
30740       as_dir=`$as_dirname -- "$as_dir" ||
30741 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30742          X"$as_dir" : 'X\(//\)[^/]' \| \
30743          X"$as_dir" : 'X\(//\)$' \| \
30744          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
30745 $as_echo X"$as_dir" |
30746     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30747             s//\1/
30748             q
30749           }
30750           /^X\(\/\/\)[^/].*/{
30751             s//\1/
30752             q
30753           }
30754           /^X\(\/\/\)$/{
30755             s//\1/
30756             q
30757           }
30758           /^X\(\/\).*/{
30759             s//\1/
30760             q
30761           }
30762           s/.*/./; q'`
30763       test -d "$as_dir" && break
30764     done
30765     test -z "$as_dirs" || eval "mkdir $as_dirs"
30766   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
30767
30768
30769 } # as_fn_mkdir_p
30770 if mkdir -p . 2>/dev/null; then
30771   as_mkdir_p='mkdir -p "$as_dir"'
30772 else
30773   test -d ./-p && rmdir ./-p
30774   as_mkdir_p=false
30775 fi
30776
30777 if test -x / >/dev/null 2>&1; then
30778   as_test_x='test -x'
30779 else
30780   if ls -dL / >/dev/null 2>&1; then
30781     as_ls_L_option=L
30782   else
30783     as_ls_L_option=
30784   fi
30785   as_test_x='
30786     eval sh -c '\''
30787       if test -d "$1"; then
30788         test -d "$1/.";
30789       else
30790         case $1 in #(
30791         -*)set "./$1";;
30792         esac;
30793         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
30794         ???[sx]*):;;*)false;;esac;fi
30795     '\'' sh
30796   '
30797 fi
30798 as_executable_p=$as_test_x
30799
30800 # Sed expression to map a string onto a valid CPP name.
30801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30802
30803 # Sed expression to map a string onto a valid variable name.
30804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30805
30806
30807 exec 6>&1
30808 ## ----------------------------------- ##
30809 ## Main body of $CONFIG_STATUS script. ##
30810 ## ----------------------------------- ##
30811 _ASEOF
30812 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
30813
30814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30815 # Save the log message, to keep $0 and so on meaningful, and to
30816 # report actual input values of CONFIG_FILES etc. instead of their
30817 # values after options handling.
30818 ac_log="
30819 This file was extended by bacula $as_me 5.2.0, which was
30820 generated by GNU Autoconf 2.65.  Invocation command line was
30821
30822   CONFIG_FILES    = $CONFIG_FILES
30823   CONFIG_HEADERS  = $CONFIG_HEADERS
30824   CONFIG_LINKS    = $CONFIG_LINKS
30825   CONFIG_COMMANDS = $CONFIG_COMMANDS
30826   $ $0 $@
30827
30828 on `(hostname || uname -n) 2>/dev/null | sed 1q`
30829 "
30830
30831 _ACEOF
30832
30833 case $ac_config_files in *"
30834 "*) set x $ac_config_files; shift; ac_config_files=$*;;
30835 esac
30836
30837 case $ac_config_headers in *"
30838 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
30839 esac
30840
30841
30842 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30843 # Files that config.status was made for.
30844 config_files="$ac_config_files"
30845 config_headers="$ac_config_headers"
30846 config_commands="$ac_config_commands"
30847
30848 _ACEOF
30849
30850 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30851 ac_cs_usage="\
30852 \`$as_me' instantiates files and other configuration actions
30853 from templates according to the current configuration.  Unless the files
30854 and actions are specified as TAGs, all are instantiated by default.
30855
30856 Usage: $0 [OPTION]... [TAG]...
30857
30858   -h, --help       print this help, then exit
30859   -V, --version    print version number and configuration settings, then exit
30860       --config     print configuration, then exit
30861   -q, --quiet, --silent
30862                    do not print progress messages
30863   -d, --debug      don't remove temporary files
30864       --recheck    update $as_me by reconfiguring in the same conditions
30865       --file=FILE[:TEMPLATE]
30866                    instantiate the configuration file FILE
30867       --header=FILE[:TEMPLATE]
30868                    instantiate the configuration header FILE
30869
30870 Configuration files:
30871 $config_files
30872
30873 Configuration headers:
30874 $config_headers
30875
30876 Configuration commands:
30877 $config_commands
30878
30879 Report bugs to the package provider."
30880
30881 _ACEOF
30882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30883 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
30884 ac_cs_version="\\
30885 bacula config.status 5.2.0
30886 configured by $0, generated by GNU Autoconf 2.65,
30887   with options \\"\$ac_cs_config\\"
30888
30889 Copyright (C) 2009 Free Software Foundation, Inc.
30890 This config.status script is free software; the Free Software Foundation
30891 gives unlimited permission to copy, distribute and modify it."
30892
30893 ac_pwd='$ac_pwd'
30894 srcdir='$srcdir'
30895 INSTALL='$INSTALL'
30896 AWK='$AWK'
30897 test -n "\$AWK" || AWK=awk
30898 _ACEOF
30899
30900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30901 # The default lists apply if the user does not specify any file.
30902 ac_need_defaults=:
30903 while test $# != 0
30904 do
30905   case $1 in
30906   --*=*)
30907     ac_option=`expr "X$1" : 'X\([^=]*\)='`
30908     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
30909     ac_shift=:
30910     ;;
30911   *)
30912     ac_option=$1
30913     ac_optarg=$2
30914     ac_shift=shift
30915     ;;
30916   esac
30917
30918   case $ac_option in
30919   # Handling of the options.
30920   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30921     ac_cs_recheck=: ;;
30922   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
30923     $as_echo "$ac_cs_version"; exit ;;
30924   --config | --confi | --conf | --con | --co | --c )
30925     $as_echo "$ac_cs_config"; exit ;;
30926   --debug | --debu | --deb | --de | --d | -d )
30927     debug=: ;;
30928   --file | --fil | --fi | --f )
30929     $ac_shift
30930     case $ac_optarg in
30931     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30932     esac
30933     as_fn_append CONFIG_FILES " '$ac_optarg'"
30934     ac_need_defaults=false;;
30935   --header | --heade | --head | --hea )
30936     $ac_shift
30937     case $ac_optarg in
30938     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
30939     esac
30940     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
30941     ac_need_defaults=false;;
30942   --he | --h)
30943     # Conflict between --help and --header
30944     as_fn_error "ambiguous option: \`$1'
30945 Try \`$0 --help' for more information.";;
30946   --help | --hel | -h )
30947     $as_echo "$ac_cs_usage"; exit ;;
30948   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30949   | -silent | --silent | --silen | --sile | --sil | --si | --s)
30950     ac_cs_silent=: ;;
30951
30952   # This is an error.
30953   -*) as_fn_error "unrecognized option: \`$1'
30954 Try \`$0 --help' for more information." ;;
30955
30956   *) as_fn_append ac_config_targets " $1"
30957      ac_need_defaults=false ;;
30958
30959   esac
30960   shift
30961 done
30962
30963 ac_configure_extra_args=
30964
30965 if $ac_cs_silent; then
30966   exec 6>/dev/null
30967   ac_configure_extra_args="$ac_configure_extra_args --silent"
30968 fi
30969
30970 _ACEOF
30971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30972 if \$ac_cs_recheck; then
30973   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30974   shift
30975   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
30976   CONFIG_SHELL='$SHELL'
30977   export CONFIG_SHELL
30978   exec "\$@"
30979 fi
30980
30981 _ACEOF
30982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30983 exec 5>>config.log
30984 {
30985   echo
30986   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30987 ## Running $as_me. ##
30988 _ASBOX
30989   $as_echo "$ac_log"
30990 } >&5
30991
30992 _ACEOF
30993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30994 #
30995 # INIT-COMMANDS
30996 #
30997
30998
30999 # The HP-UX ksh and POSIX shell print the target directory to stdout
31000 # if CDPATH is set.
31001 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31002
31003 sed_quote_subst='$sed_quote_subst'
31004 double_quote_subst='$double_quote_subst'
31005 delay_variable_subst='$delay_variable_subst'
31006 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31007 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31008 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31009 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31010 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31011 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31012 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31013 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31014 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31015 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31016 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31017 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31018 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31019 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31020 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31021 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31022 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31023 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31024 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31025 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31026 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31027 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31028 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31029 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31030 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31031 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31032 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31033 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31034 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31035 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31036 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31037 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31038 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31039 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31040 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31041 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31042 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31043 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31044 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31045 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31046 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31047 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31048 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31049 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31050 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31051 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31052 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31053 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31054 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31055 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31056 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31057 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31058 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31059 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31060 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31061 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
31062 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31063 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31064 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31065 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31066 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31067 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31068 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31069 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31070 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31071 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31072 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31073 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31074 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31075 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31076 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31077 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31078 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31079 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31080 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31081 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31082 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31083 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31084 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31085 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31086 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31087 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31088 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31089 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31090 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31091 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31092 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31093 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31094 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31095 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31096 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
31097 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31098 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31099 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31100 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31101 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31102 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31103 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31104 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31105 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31106 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31107 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31108 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31109 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31110 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31111 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31112 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31113 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31114 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31115 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31116 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31117 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31118 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31119 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31120 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31121 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31122 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31123 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31124 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31125 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31126 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31127 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31128 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31129 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31130 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31131 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31132 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31133 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31134 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31135 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31136 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31137 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31138 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31139 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31140 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31141 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31142 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31143 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31144 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31145 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31146 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31147 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31148 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31149 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31150 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31151 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31152 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31153 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31154 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31155 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31156 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31157 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31158 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31159 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31160 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31161 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31162 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31163 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31164 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31165 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31166 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31167 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31168 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
31169 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31170 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31171 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31172 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31173 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31174 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31175 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31176 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31177 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31178 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31179 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31180 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31181 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31182 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31183 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31184 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31185 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31186 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31187 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31188 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31189 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31190 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31191
31192 LTCC='$LTCC'
31193 LTCFLAGS='$LTCFLAGS'
31194 compiler='$compiler_DEFAULT'
31195
31196 # A function that is used when there is no print builtin or printf.
31197 func_fallback_echo ()
31198 {
31199   eval 'cat <<_LTECHO_EOF
31200 \$1
31201 _LTECHO_EOF'
31202 }
31203
31204 # Quote evaled strings.
31205 for var in SHELL \
31206 ECHO \
31207 SED \
31208 GREP \
31209 EGREP \
31210 FGREP \
31211 LD \
31212 NM \
31213 LN_S \
31214 lt_SP2NL \
31215 lt_NL2SP \
31216 reload_flag \
31217 OBJDUMP \
31218 deplibs_check_method \
31219 file_magic_cmd \
31220 file_magic_glob \
31221 want_nocaseglob \
31222 DLLTOOL \
31223 sharedlib_from_linklib_cmd \
31224 AR \
31225 AR_FLAGS \
31226 archiver_list_spec \
31227 STRIP \
31228 RANLIB \
31229 CC \
31230 CFLAGS \
31231 compiler \
31232 lt_cv_sys_global_symbol_pipe \
31233 lt_cv_sys_global_symbol_to_cdecl \
31234 lt_cv_sys_global_symbol_to_c_name_address \
31235 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31236 nm_file_list_spec \
31237 lt_prog_compiler_no_builtin_flag \
31238 lt_prog_compiler_pic \
31239 lt_prog_compiler_wl \
31240 lt_prog_compiler_static \
31241 lt_cv_prog_compiler_c_o \
31242 need_locks \
31243 MANIFEST_TOOL \
31244 DSYMUTIL \
31245 NMEDIT \
31246 LIPO \
31247 OTOOL \
31248 OTOOL64 \
31249 shrext_cmds \
31250 export_dynamic_flag_spec \
31251 whole_archive_flag_spec \
31252 compiler_needs_object \
31253 with_gnu_ld \
31254 allow_undefined_flag \
31255 no_undefined_flag \
31256 hardcode_libdir_flag_spec \
31257 hardcode_libdir_flag_spec_ld \
31258 hardcode_libdir_separator \
31259 exclude_expsyms \
31260 include_expsyms \
31261 file_list_spec \
31262 variables_saved_for_relink \
31263 libname_spec \
31264 library_names_spec \
31265 soname_spec \
31266 install_override_mode \
31267 finish_eval \
31268 old_striplib \
31269 striplib \
31270 compiler_lib_search_dirs \
31271 predep_objects \
31272 postdep_objects \
31273 predeps \
31274 postdeps \
31275 compiler_lib_search_path \
31276 LD_CXX \
31277 reload_flag_CXX \
31278 compiler_CXX \
31279 lt_prog_compiler_no_builtin_flag_CXX \
31280 lt_prog_compiler_pic_CXX \
31281 lt_prog_compiler_wl_CXX \
31282 lt_prog_compiler_static_CXX \
31283 lt_cv_prog_compiler_c_o_CXX \
31284 export_dynamic_flag_spec_CXX \
31285 whole_archive_flag_spec_CXX \
31286 compiler_needs_object_CXX \
31287 with_gnu_ld_CXX \
31288 allow_undefined_flag_CXX \
31289 no_undefined_flag_CXX \
31290 hardcode_libdir_flag_spec_CXX \
31291 hardcode_libdir_flag_spec_ld_CXX \
31292 hardcode_libdir_separator_CXX \
31293 exclude_expsyms_CXX \
31294 include_expsyms_CXX \
31295 file_list_spec_CXX \
31296 compiler_lib_search_dirs_CXX \
31297 predep_objects_CXX \
31298 postdep_objects_CXX \
31299 predeps_CXX \
31300 postdeps_CXX \
31301 compiler_lib_search_path_CXX; do
31302     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31303     *[\\\\\\\`\\"\\\$]*)
31304       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31305       ;;
31306     *)
31307       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31308       ;;
31309     esac
31310 done
31311
31312 # Double-quote double-evaled strings.
31313 for var in reload_cmds \
31314 old_postinstall_cmds \
31315 old_postuninstall_cmds \
31316 old_archive_cmds \
31317 extract_expsyms_cmds \
31318 old_archive_from_new_cmds \
31319 old_archive_from_expsyms_cmds \
31320 archive_cmds \
31321 archive_expsym_cmds \
31322 module_cmds \
31323 module_expsym_cmds \
31324 export_symbols_cmds \
31325 prelink_cmds \
31326 postlink_cmds \
31327 postinstall_cmds \
31328 postuninstall_cmds \
31329 finish_cmds \
31330 sys_lib_search_path_spec \
31331 sys_lib_dlsearch_path_spec \
31332 reload_cmds_CXX \
31333 old_archive_cmds_CXX \
31334 old_archive_from_new_cmds_CXX \
31335 old_archive_from_expsyms_cmds_CXX \
31336 archive_cmds_CXX \
31337 archive_expsym_cmds_CXX \
31338 module_cmds_CXX \
31339 module_expsym_cmds_CXX \
31340 export_symbols_cmds_CXX \
31341 prelink_cmds_CXX \
31342 postlink_cmds_CXX; do
31343     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31344     *[\\\\\\\`\\"\\\$]*)
31345       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31346       ;;
31347     *)
31348       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31349       ;;
31350     esac
31351 done
31352
31353 ac_aux_dir='$ac_aux_dir'
31354 xsi_shell='$xsi_shell'
31355 lt_shell_append='$lt_shell_append'
31356
31357 # See if we are running on zsh, and set the options which allow our
31358 # commands through without removal of \ escapes INIT.
31359 if test -n "\${ZSH_VERSION+set}" ; then
31360    setopt NO_GLOB_SUBST
31361 fi
31362
31363
31364     PACKAGE='$PACKAGE'
31365     VERSION='$VERSION'
31366     TIMESTAMP='$TIMESTAMP'
31367     RM='$RM'
31368     ofile='$ofile'
31369
31370
31371
31372
31373
31374 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31375     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31376     # from automake.
31377     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31378     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31379     LINGUAS="${LINGUAS-%UNSET%}"
31380
31381
31382 _ACEOF
31383
31384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31385
31386 # Handling of arguments.
31387 for ac_config_target in $ac_config_targets
31388 do
31389   case $ac_config_target in
31390     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31391     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31392     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31393     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31394     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31395     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31396     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31397     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31398     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31399     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31400     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31401     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
31402     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
31403     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
31404     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
31405     "scripts/bacula.desktop.gnome1") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1" ;;
31406     "scripts/bacula.desktop.gnome2") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2" ;;
31407     "scripts/bacula.desktop.gnome1.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.consolehelper" ;;
31408     "scripts/bacula.desktop.gnome2.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.consolehelper" ;;
31409     "scripts/bacula.desktop.gnome1.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome1.xsu" ;;
31410     "scripts/bacula.desktop.gnome2.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bacula.desktop.gnome2.xsu" ;;
31411     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
31412     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
31413     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
31414     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
31415     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
31416     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
31417     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
31418     "scripts/wxconsole.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.console_apps" ;;
31419     "scripts/wxconsole.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.consolehelper" ;;
31420     "scripts/wxconsole.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/wxconsole.desktop.xsu" ;;
31421     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
31422     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
31423     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
31424     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
31425     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
31426     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
31427     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
31428     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
31429     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
31430     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
31431     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
31432     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
31433     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
31434     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
31435     "src/wx-console/Makefile") CONFIG_FILES="$CONFIG_FILES src/wx-console/Makefile" ;;
31436     "src/wx-console/bwx-console.conf") CONFIG_FILES="$CONFIG_FILES src/wx-console/bwx-console.conf" ;;
31437     "src/tray-monitor/Makefile") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/Makefile" ;;
31438     "src/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/tray-monitor/tray-monitor.conf" ;;
31439     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
31440     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
31441     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
31442     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
31443     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
31444     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
31445     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
31446     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
31447     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
31448     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
31449     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
31450     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
31451     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
31452     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
31453     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
31454     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
31455     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
31456     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
31457     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
31458     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
31459     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
31460     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
31461     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
31462     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
31463     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
31464     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
31465     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
31466     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
31467     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
31468     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
31469     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
31470     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
31471     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
31472     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
31473     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
31474     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
31475     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
31476     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
31477     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
31478     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
31479     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
31480     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
31481     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
31482     "src/win32/Makefile.inc") CONFIG_FILES="$CONFIG_FILES src/win32/Makefile.inc" ;;
31483     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
31484     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
31485     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
31486     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
31487     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
31488     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
31489     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
31490     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
31491     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
31492     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
31493     "updatedb/update_mysql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_14" ;;
31494     "updatedb/update_sqlite3_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_12_to_14" ;;
31495     "updatedb/update_postgresql_tables_12_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_14" ;;
31496     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
31497     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
31498     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
31499
31500   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31501   esac
31502 done
31503
31504
31505 # If the user did not use the arguments to specify the items to instantiate,
31506 # then the envvar interface is used.  Set only those that are not.
31507 # We use the long form for the default assignment because of an extremely
31508 # bizarre bug on SunOS 4.1.3.
31509 if $ac_need_defaults; then
31510   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
31511   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
31512   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
31513 fi
31514
31515 # Have a temporary directory for convenience.  Make it in the build tree
31516 # simply because there is no reason against having it here, and in addition,
31517 # creating and moving files from /tmp can sometimes cause problems.
31518 # Hook for its removal unless debugging.
31519 # Note that there is a small window in which the directory will not be cleaned:
31520 # after its creation but before its name has been assigned to `$tmp'.
31521 $debug ||
31522 {
31523   tmp=
31524   trap 'exit_status=$?
31525   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
31526 ' 0
31527   trap 'as_fn_exit 1' 1 2 13 15
31528 }
31529 # Create a (secure) tmp directory for tmp files.
31530
31531 {
31532   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31533   test -n "$tmp" && test -d "$tmp"
31534 }  ||
31535 {
31536   tmp=./conf$$-$RANDOM
31537   (umask 077 && mkdir "$tmp")
31538 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
31539
31540 # Set up the scripts for CONFIG_FILES section.
31541 # No need to generate them if there are no CONFIG_FILES.
31542 # This happens for instance with `./config.status config.h'.
31543 if test -n "$CONFIG_FILES"; then
31544
31545 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
31546   ac_cs_awk_getline=:
31547   ac_cs_awk_pipe_init=
31548   ac_cs_awk_read_file='
31549       while ((getline aline < (F[key])) > 0)
31550         print(aline)
31551       close(F[key])'
31552   ac_cs_awk_pipe_fini=
31553 else
31554   ac_cs_awk_getline=false
31555   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
31556   ac_cs_awk_read_file='
31557       print "|#_!!_#|"
31558       print "cat " F[key] " &&"
31559       '$ac_cs_awk_pipe_init
31560   # The final `:' finishes the AND list.
31561   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
31562 fi
31563 ac_cr=`echo X | tr X '\015'`
31564 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31565 # But we know of no other shell where ac_cr would be empty at this
31566 # point, so we can use a bashism as a fallback.
31567 if test "x$ac_cr" = x; then
31568   eval ac_cr=\$\'\\r\'
31569 fi
31570 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31571 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31572   ac_cs_awk_cr='\r'
31573 else
31574   ac_cs_awk_cr=$ac_cr
31575 fi
31576
31577 echo 'BEGIN {' >"$tmp/subs1.awk" &&
31578 _ACEOF
31579
31580 # Create commands to substitute file output variables.
31581 {
31582   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
31583   echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
31584   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
31585   echo "_ACAWK" &&
31586   echo "_ACEOF"
31587 } >conf$$files.sh &&
31588 . ./conf$$files.sh ||
31589   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31590 rm -f conf$$files.sh
31591
31592 {
31593   echo "cat >conf$$subs.awk <<_ACEOF" &&
31594   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31595   echo "_ACEOF"
31596 } >conf$$subs.sh ||
31597   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31598 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
31599 ac_delim='%!_!# '
31600 for ac_last_try in false false false false false :; do
31601   . ./conf$$subs.sh ||
31602     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31603
31604   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31605   if test $ac_delim_n = $ac_delim_num; then
31606     break
31607   elif $ac_last_try; then
31608     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
31609   else
31610     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31611   fi
31612 done
31613 rm -f conf$$subs.sh
31614
31615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31616 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
31617 _ACEOF
31618 sed -n '
31619 h
31620 s/^/S["/; s/!.*/"]=/
31621 p
31622 g
31623 s/^[^!]*!//
31624 :repl
31625 t repl
31626 s/'"$ac_delim"'$//
31627 t delim
31628 :nl
31629 h
31630 s/\(.\{148\}\)..*/\1/
31631 t more1
31632 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31633 p
31634 n
31635 b repl
31636 :more1
31637 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31638 p
31639 g
31640 s/.\{148\}//
31641 t nl
31642 :delim
31643 h
31644 s/\(.\{148\}\)..*/\1/
31645 t more2
31646 s/["\\]/\\&/g; s/^/"/; s/$/"/
31647 p
31648 b
31649 :more2
31650 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31651 p
31652 g
31653 s/.\{148\}//
31654 t delim
31655 ' <conf$$subs.awk | sed '
31656 /^[^""]/{
31657   N
31658   s/\n//
31659 }
31660 ' >>$CONFIG_STATUS || ac_write_fail=1
31661 rm -f conf$$subs.awk
31662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31663 _ACAWK
31664 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
31665   for (key in S) S_is_set[key] = 1
31666   FS = "\a"
31667   \$ac_cs_awk_pipe_init
31668 }
31669 {
31670   line = $ 0
31671   nfields = split(line, field, "@")
31672   substed = 0
31673   len = length(field[1])
31674   for (i = 2; i < nfields; i++) {
31675     key = field[i]
31676     keylen = length(key)
31677     if (S_is_set[key]) {
31678       value = S[key]
31679       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31680       len += length(value) + length(field[++i])
31681       substed = 1
31682     } else
31683       len += 1 + keylen
31684   }
31685   if (nfields == 3 && !substed) {
31686     key = field[2]
31687     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
31688       \$ac_cs_awk_read_file
31689       next
31690     }
31691   }
31692   print line
31693 }
31694 \$ac_cs_awk_pipe_fini
31695 _ACAWK
31696 _ACEOF
31697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31699   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31700 else
31701   cat
31702 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
31703   || as_fn_error "could not setup config files machinery" "$LINENO" 5
31704 _ACEOF
31705
31706 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31707 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31708 # trailing colons and then remove the whole line if VPATH becomes empty
31709 # (actually we leave an empty line to preserve line numbers).
31710 if test "x$srcdir" = x.; then
31711   ac_vpsub='/^[  ]*VPATH[        ]*=/{
31712 s/:*\$(srcdir):*/:/
31713 s/:*\${srcdir}:*/:/
31714 s/:*@srcdir@:*/:/
31715 s/^\([^=]*=[     ]*\):*/\1/
31716 s/:*$//
31717 s/^[^=]*=[       ]*$//
31718 }'
31719 fi
31720
31721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31722 fi # test -n "$CONFIG_FILES"
31723
31724 # Set up the scripts for CONFIG_HEADERS section.
31725 # No need to generate them if there are no CONFIG_HEADERS.
31726 # This happens for instance with `./config.status Makefile'.
31727 if test -n "$CONFIG_HEADERS"; then
31728 cat >"$tmp/defines.awk" <<\_ACAWK ||
31729 BEGIN {
31730 _ACEOF
31731
31732 # Transform confdefs.h into an awk script `defines.awk', embedded as
31733 # here-document in config.status, that substitutes the proper values into
31734 # config.h.in to produce config.h.
31735
31736 # Create a delimiter string that does not exist in confdefs.h, to ease
31737 # handling of long lines.
31738 ac_delim='%!_!# '
31739 for ac_last_try in false false :; do
31740   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
31741   if test -z "$ac_t"; then
31742     break
31743   elif $ac_last_try; then
31744     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
31745   else
31746     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31747   fi
31748 done
31749
31750 # For the awk script, D is an array of macro values keyed by name,
31751 # likewise P contains macro parameters if any.  Preserve backslash
31752 # newline sequences.
31753
31754 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31755 sed -n '
31756 s/.\{148\}/&'"$ac_delim"'/g
31757 t rset
31758 :rset
31759 s/^[     ]*#[    ]*define[       ][      ]*/ /
31760 t def
31761 d
31762 :def
31763 s/\\$//
31764 t bsnl
31765 s/["\\]/\\&/g
31766 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31767 D["\1"]=" \3"/p
31768 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31769 d
31770 :bsnl
31771 s/["\\]/\\&/g
31772 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31773 D["\1"]=" \3\\\\\\n"\\/p
31774 t cont
31775 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31776 t cont
31777 d
31778 :cont
31779 n
31780 s/.\{148\}/&'"$ac_delim"'/g
31781 t clear
31782 :clear
31783 s/\\$//
31784 t bsnlc
31785 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31786 d
31787 :bsnlc
31788 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31789 b cont
31790 ' <confdefs.h | sed '
31791 s/'"$ac_delim"'/"\\\
31792 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31793
31794 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31795   for (key in D) D_is_set[key] = 1
31796   FS = "\a"
31797 }
31798 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31799   line = \$ 0
31800   split(line, arg, " ")
31801   if (arg[1] == "#") {
31802     defundef = arg[2]
31803     mac1 = arg[3]
31804   } else {
31805     defundef = substr(arg[1], 2)
31806     mac1 = arg[2]
31807   }
31808   split(mac1, mac2, "(") #)
31809   macro = mac2[1]
31810   prefix = substr(line, 1, index(line, defundef) - 1)
31811   if (D_is_set[macro]) {
31812     # Preserve the white space surrounding the "#".
31813     print prefix "define", macro P[macro] D[macro]
31814     next
31815   } else {
31816     # Replace #undef with comments.  This is necessary, for example,
31817     # in the case of _POSIX_SOURCE, which is predefined and required
31818     # on some systems where configure will not decide to define it.
31819     if (defundef == "undef") {
31820       print "/*", prefix defundef, macro, "*/"
31821       next
31822     }
31823   }
31824 }
31825 { print }
31826 _ACAWK
31827 _ACEOF
31828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31829   as_fn_error "could not setup config headers machinery" "$LINENO" 5
31830 fi # test -n "$CONFIG_HEADERS"
31831
31832
31833 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
31834 shift
31835 for ac_tag
31836 do
31837   case $ac_tag in
31838   :[FHLC]) ac_mode=$ac_tag; continue;;
31839   esac
31840   case $ac_mode$ac_tag in
31841   :[FHL]*:*);;
31842   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
31843   :[FH]-) ac_tag=-:-;;
31844   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31845   esac
31846   ac_save_IFS=$IFS
31847   IFS=:
31848   set x $ac_tag
31849   IFS=$ac_save_IFS
31850   shift
31851   ac_file=$1
31852   shift
31853
31854   case $ac_mode in
31855   :L) ac_source=$1;;
31856   :[FH])
31857     ac_file_inputs=
31858     for ac_f
31859     do
31860       case $ac_f in
31861       -) ac_f="$tmp/stdin";;
31862       *) # Look for the file first in the build tree, then in the source tree
31863          # (if the path is not absolute).  The absolute path cannot be DOS-style,
31864          # because $ac_f cannot contain `:'.
31865          test -f "$ac_f" ||
31866            case $ac_f in
31867            [\\/$]*) false;;
31868            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
31869            esac ||
31870            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31871       esac
31872       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
31873       as_fn_append ac_file_inputs " '$ac_f'"
31874     done
31875
31876     # Let's still pretend it is `configure' which instantiates (i.e., don't
31877     # use $as_me), people would be surprised to read:
31878     #    /* config.h.  Generated by config.status.  */
31879     configure_input='Generated from '`
31880           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
31881         `' by configure.'
31882     if test x"$ac_file" != x-; then
31883       configure_input="$ac_file.  $configure_input"
31884       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
31885 $as_echo "$as_me: creating $ac_file" >&6;}
31886     fi
31887     # Neutralize special characters interpreted by sed in replacement strings.
31888     case $configure_input in #(
31889     *\&* | *\|* | *\\* )
31890        ac_sed_conf_input=`$as_echo "$configure_input" |
31891        sed 's/[\\\\&|]/\\\\&/g'`;; #(
31892     *) ac_sed_conf_input=$configure_input;;
31893     esac
31894
31895     case $ac_tag in
31896     *:-:* | *:-) cat >"$tmp/stdin" \
31897       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
31898     esac
31899     ;;
31900   esac
31901
31902   ac_dir=`$as_dirname -- "$ac_file" ||
31903 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31904          X"$ac_file" : 'X\(//\)[^/]' \| \
31905          X"$ac_file" : 'X\(//\)$' \| \
31906          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
31907 $as_echo X"$ac_file" |
31908     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31909             s//\1/
31910             q
31911           }
31912           /^X\(\/\/\)[^/].*/{
31913             s//\1/
31914             q
31915           }
31916           /^X\(\/\/\)$/{
31917             s//\1/
31918             q
31919           }
31920           /^X\(\/\).*/{
31921             s//\1/
31922             q
31923           }
31924           s/.*/./; q'`
31925   as_dir="$ac_dir"; as_fn_mkdir_p
31926   ac_builddir=.
31927
31928 case "$ac_dir" in
31929 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
31930 *)
31931   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31932   # A ".." for each directory in $ac_dir_suffix.
31933   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31934   case $ac_top_builddir_sub in
31935   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
31936   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
31937   esac ;;
31938 esac
31939 ac_abs_top_builddir=$ac_pwd
31940 ac_abs_builddir=$ac_pwd$ac_dir_suffix
31941 # for backward compatibility:
31942 ac_top_builddir=$ac_top_build_prefix
31943
31944 case $srcdir in
31945   .)  # We are building in place.
31946     ac_srcdir=.
31947     ac_top_srcdir=$ac_top_builddir_sub
31948     ac_abs_top_srcdir=$ac_pwd ;;
31949   [\\/]* | ?:[\\/]* )  # Absolute name.
31950     ac_srcdir=$srcdir$ac_dir_suffix;
31951     ac_top_srcdir=$srcdir
31952     ac_abs_top_srcdir=$srcdir ;;
31953   *) # Relative name.
31954     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
31955     ac_top_srcdir=$ac_top_build_prefix$srcdir
31956     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
31957 esac
31958 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
31959
31960
31961   case $ac_mode in
31962   :F)
31963   #
31964   # CONFIG_FILE
31965   #
31966
31967   case $INSTALL in
31968   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31969   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
31970   esac
31971 _ACEOF
31972
31973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31974 # If the template does not know about datarootdir, expand it.
31975 # FIXME: This hack should be removed a few years after 2.60.
31976 ac_datarootdir_hack=; ac_datarootdir_seen=
31977 ac_sed_dataroot='
31978 /datarootdir/ {
31979   p
31980   q
31981 }
31982 /@datadir@/p
31983 /@docdir@/p
31984 /@infodir@/p
31985 /@localedir@/p
31986 /@mandir@/p'
31987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31988 *datarootdir*) ac_datarootdir_seen=yes;;
31989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
31990   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
31991 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
31992 _ACEOF
31993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31994   ac_datarootdir_hack='
31995   s&@datadir@&$datadir&g
31996   s&@docdir@&$docdir&g
31997   s&@infodir@&$infodir&g
31998   s&@localedir@&$localedir&g
31999   s&@mandir@&$mandir&g
32000   s&\\\${datarootdir}&$datarootdir&g' ;;
32001 esac
32002 _ACEOF
32003
32004 # Neutralize VPATH when `$srcdir' = `.'.
32005 # Shell code in configure.ac might set extrasub.
32006 # FIXME: do we really want to maintain this feature?
32007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32008 ac_sed_extra="$ac_vpsub
32009 $extrasub
32010 _ACEOF
32011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32012 :t
32013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32014 s|@configure_input@|$ac_sed_conf_input|;t t
32015 s&@top_builddir@&$ac_top_builddir_sub&;t t
32016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32017 s&@srcdir@&$ac_srcdir&;t t
32018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32019 s&@top_srcdir@&$ac_top_srcdir&;t t
32020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32021 s&@builddir@&$ac_builddir&;t t
32022 s&@abs_builddir@&$ac_abs_builddir&;t t
32023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32024 s&@INSTALL@&$ac_INSTALL&;t t
32025 $ac_datarootdir_hack
32026 "
32027 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32028 if $ac_cs_awk_getline; then
32029   $AWK -f "$tmp/subs.awk"
32030 else
32031   $AWK -f "$tmp/subs.awk" | $SHELL
32032 fi >$tmp/out \
32033   || as_fn_error "could not create $ac_file" "$LINENO" 5
32034
32035 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32036   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
32037   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
32038   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32039 which seems to be undefined.  Please make sure it is defined." >&5
32040 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32041 which seems to be undefined.  Please make sure it is defined." >&2;}
32042
32043   rm -f "$tmp/stdin"
32044   case $ac_file in
32045   -) cat "$tmp/out" && rm -f "$tmp/out";;
32046   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
32047   esac \
32048   || as_fn_error "could not create $ac_file" "$LINENO" 5
32049  ;;
32050   :H)
32051   #
32052   # CONFIG_HEADER
32053   #
32054   if test x"$ac_file" != x-; then
32055     {
32056       $as_echo "/* $configure_input  */" \
32057       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
32058     } >"$tmp/config.h" \
32059       || as_fn_error "could not create $ac_file" "$LINENO" 5
32060     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
32061       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32062 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32063     else
32064       rm -f "$ac_file"
32065       mv "$tmp/config.h" "$ac_file" \
32066         || as_fn_error "could not create $ac_file" "$LINENO" 5
32067     fi
32068   else
32069     $as_echo "/* $configure_input  */" \
32070       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
32071       || as_fn_error "could not create -" "$LINENO" 5
32072   fi
32073  ;;
32074
32075   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32076 $as_echo "$as_me: executing $ac_file commands" >&6;}
32077  ;;
32078   esac
32079
32080
32081   case $ac_file$ac_mode in
32082     "libtool":C)
32083
32084     # See if we are running on zsh, and set the options which allow our
32085     # commands through without removal of \ escapes.
32086     if test -n "${ZSH_VERSION+set}" ; then
32087       setopt NO_GLOB_SUBST
32088     fi
32089
32090     cfgfile="${ofile}T"
32091     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32092     $RM "$cfgfile"
32093
32094     cat <<_LT_EOF >> "$cfgfile"
32095 #! $SHELL
32096
32097 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32098 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32099 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32100 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32101 #
32102 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32103 #                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
32104 #                 Inc.
32105 #   Written by Gordon Matzigkeit, 1996
32106 #
32107 #   This file is part of GNU Libtool.
32108 #
32109 # GNU Libtool is free software; you can redistribute it and/or
32110 # modify it under the terms of the GNU General Public License as
32111 # published by the Free Software Foundation; either version 2 of
32112 # the License, or (at your option) any later version.
32113 #
32114 # As a special exception to the GNU General Public License,
32115 # if you distribute this file as part of a program or library that
32116 # is built using GNU Libtool, you may include this file under the
32117 # same distribution terms that you use for the rest of that program.
32118 #
32119 # GNU Libtool is distributed in the hope that it will be useful,
32120 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32121 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32122 # GNU General Public License for more details.
32123 #
32124 # You should have received a copy of the GNU General Public License
32125 # along with GNU Libtool; see the file COPYING.  If not, a copy
32126 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32127 # obtained by writing to the Free Software Foundation, Inc.,
32128 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32129
32130
32131 # The names of the tagged configurations supported by this script.
32132 available_tags="CXX "
32133
32134 # ### BEGIN LIBTOOL CONFIG
32135
32136 # Which release of libtool.m4 was used?
32137 macro_version=$macro_version
32138 macro_revision=$macro_revision
32139
32140 # Whether or not to build shared libraries.
32141 build_libtool_libs=$enable_shared
32142
32143 # Whether or not to build static libraries.
32144 build_old_libs=$enable_static
32145
32146 # What type of objects to build.
32147 pic_mode=$pic_mode
32148
32149 # Whether or not to optimize for fast installation.
32150 fast_install=$enable_fast_install
32151
32152 # Shell to use when invoking shell scripts.
32153 SHELL=$lt_SHELL
32154
32155 # An echo program that protects backslashes.
32156 ECHO=$lt_ECHO
32157
32158 # The host system.
32159 host_alias=$host_alias
32160 host=$host
32161 host_os=$host_os
32162
32163 # The build system.
32164 build_alias=$build_alias
32165 build=$build
32166 build_os=$build_os
32167
32168 # A sed program that does not truncate output.
32169 SED=$lt_SED
32170
32171 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32172 Xsed="\$SED -e 1s/^X//"
32173
32174 # A grep program that handles long lines.
32175 GREP=$lt_GREP
32176
32177 # An ERE matcher.
32178 EGREP=$lt_EGREP
32179
32180 # A literal string matcher.
32181 FGREP=$lt_FGREP
32182
32183 # A BSD- or MS-compatible name lister.
32184 NM=$lt_NM
32185
32186 # Whether we need soft or hard links.
32187 LN_S=$lt_LN_S
32188
32189 # What is the maximum length of a command?
32190 max_cmd_len=$max_cmd_len
32191
32192 # Object file suffix (normally "o").
32193 objext=$ac_objext
32194
32195 # Executable file suffix (normally "").
32196 exeext=$exeext
32197
32198 # whether the shell understands "unset".
32199 lt_unset=$lt_unset
32200
32201 # turn spaces into newlines.
32202 SP2NL=$lt_lt_SP2NL
32203
32204 # turn newlines into spaces.
32205 NL2SP=$lt_lt_NL2SP
32206
32207 # convert \$build file names to \$host format.
32208 to_host_file_cmd=$lt_cv_to_host_file_cmd
32209
32210 # convert \$build files to toolchain format.
32211 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32212
32213 # An object symbol dumper.
32214 OBJDUMP=$lt_OBJDUMP
32215
32216 # Method to check whether dependent libraries are shared objects.
32217 deplibs_check_method=$lt_deplibs_check_method
32218
32219 # Command to use when deplibs_check_method = "file_magic".
32220 file_magic_cmd=$lt_file_magic_cmd
32221
32222 # How to find potential files when deplibs_check_method = "file_magic".
32223 file_magic_glob=$lt_file_magic_glob
32224
32225 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32226 want_nocaseglob=$lt_want_nocaseglob
32227
32228 # DLL creation program.
32229 DLLTOOL=$lt_DLLTOOL
32230
32231 # Command to associate shared and link libraries.
32232 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32233
32234 # The archiver.
32235 AR=$lt_AR
32236
32237 # Flags to create an archive.
32238 AR_FLAGS=$lt_AR_FLAGS
32239
32240 # How to feed a file listing to the archiver.
32241 archiver_list_spec=$lt_archiver_list_spec
32242
32243 # A symbol stripping program.
32244 STRIP=$lt_STRIP
32245
32246 # Commands used to install an old-style archive.
32247 RANLIB=$lt_RANLIB
32248 old_postinstall_cmds=$lt_old_postinstall_cmds
32249 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32250
32251 # Whether to use a lock for old archive extraction.
32252 lock_old_archive_extraction=$lock_old_archive_extraction
32253
32254 # A C compiler.
32255 LTCC=$lt_CC
32256
32257 # LTCC compiler flags.
32258 LTCFLAGS=$lt_CFLAGS
32259
32260 # Take the output of nm and produce a listing of raw symbols and C names.
32261 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32262
32263 # Transform the output of nm in a proper C declaration.
32264 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32265
32266 # Transform the output of nm in a C name address pair.
32267 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32268
32269 # Transform the output of nm in a C name address pair when lib prefix is needed.
32270 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32271
32272 # Specify filename containing input files for \$NM.
32273 nm_file_list_spec=$lt_nm_file_list_spec
32274
32275 # The root where to search for dependent libraries,and in which our libraries should be installed.
32276 lt_sysroot=$lt_sysroot
32277
32278 # The name of the directory that contains temporary libtool files.
32279 objdir=$objdir
32280
32281 # Used to examine libraries when file_magic_cmd begins with "file".
32282 MAGIC_CMD=$MAGIC_CMD
32283
32284 # Must we lock files when doing compilation?
32285 need_locks=$lt_need_locks
32286
32287 # Manifest tool.
32288 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32289
32290 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32291 DSYMUTIL=$lt_DSYMUTIL
32292
32293 # Tool to change global to local symbols on Mac OS X.
32294 NMEDIT=$lt_NMEDIT
32295
32296 # Tool to manipulate fat objects and archives on Mac OS X.
32297 LIPO=$lt_LIPO
32298
32299 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32300 OTOOL=$lt_OTOOL
32301
32302 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32303 OTOOL64=$lt_OTOOL64
32304
32305 # Old archive suffix (normally "a").
32306 libext=$libext
32307
32308 # Shared library suffix (normally ".so").
32309 shrext_cmds=$lt_shrext_cmds
32310
32311 # The commands to extract the exported symbol list from a shared archive.
32312 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32313
32314 # Variables whose values should be saved in libtool wrapper scripts and
32315 # restored at link time.
32316 variables_saved_for_relink=$lt_variables_saved_for_relink
32317
32318 # Do we need the "lib" prefix for modules?
32319 need_lib_prefix=$need_lib_prefix
32320
32321 # Do we need a version for libraries?
32322 need_version=$need_version
32323
32324 # Library versioning type.
32325 version_type=$version_type
32326
32327 # Shared library runtime path variable.
32328 runpath_var=$runpath_var
32329
32330 # Shared library path variable.
32331 shlibpath_var=$shlibpath_var
32332
32333 # Is shlibpath searched before the hard-coded library search path?
32334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32335
32336 # Format of library name prefix.
32337 libname_spec=$lt_libname_spec
32338
32339 # List of archive names.  First name is the real one, the rest are links.
32340 # The last name is the one that the linker finds with -lNAME
32341 library_names_spec=$lt_library_names_spec
32342
32343 # The coded name of the library, if different from the real name.
32344 soname_spec=$lt_soname_spec
32345
32346 # Permission mode override for installation of shared libraries.
32347 install_override_mode=$lt_install_override_mode
32348
32349 # Command to use after installation of a shared archive.
32350 postinstall_cmds=$lt_postinstall_cmds
32351
32352 # Command to use after uninstallation of a shared archive.
32353 postuninstall_cmds=$lt_postuninstall_cmds
32354
32355 # Commands used to finish a libtool library installation in a directory.
32356 finish_cmds=$lt_finish_cmds
32357
32358 # As "finish_cmds", except a single script fragment to be evaled but
32359 # not shown.
32360 finish_eval=$lt_finish_eval
32361
32362 # Whether we should hardcode library paths into libraries.
32363 hardcode_into_libs=$hardcode_into_libs
32364
32365 # Compile-time system search path for libraries.
32366 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32367
32368 # Run-time system search path for libraries.
32369 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32370
32371 # Whether dlopen is supported.
32372 dlopen_support=$enable_dlopen
32373
32374 # Whether dlopen of programs is supported.
32375 dlopen_self=$enable_dlopen_self
32376
32377 # Whether dlopen of statically linked programs is supported.
32378 dlopen_self_static=$enable_dlopen_self_static
32379
32380 # Commands to strip libraries.
32381 old_striplib=$lt_old_striplib
32382 striplib=$lt_striplib
32383
32384
32385 # The linker used to build libraries.
32386 LD=$lt_LD
32387
32388 # How to create reloadable object files.
32389 reload_flag=$lt_reload_flag
32390 reload_cmds=$lt_reload_cmds
32391
32392 # Commands used to build an old-style archive.
32393 old_archive_cmds=$lt_old_archive_cmds
32394
32395 # A language specific compiler.
32396 CC=$lt_compiler
32397
32398 # Is the compiler the GNU compiler?
32399 with_gcc=$GCC
32400
32401 # Compiler flag to turn off builtin functions.
32402 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
32403
32404 # Additional compiler flags for building library objects.
32405 pic_flag=$lt_lt_prog_compiler_pic
32406
32407 # How to pass a linker flag through the compiler.
32408 wl=$lt_lt_prog_compiler_wl
32409
32410 # Compiler flag to prevent dynamic linking.
32411 link_static_flag=$lt_lt_prog_compiler_static
32412
32413 # Does compiler simultaneously support -c and -o options?
32414 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
32415
32416 # Whether or not to add -lc for building shared libraries.
32417 build_libtool_need_lc=$archive_cmds_need_lc
32418
32419 # Whether or not to disallow shared libs when runtime libs are static.
32420 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
32421
32422 # Compiler flag to allow reflexive dlopens.
32423 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
32424
32425 # Compiler flag to generate shared objects directly from archives.
32426 whole_archive_flag_spec=$lt_whole_archive_flag_spec
32427
32428 # Whether the compiler copes with passing no objects directly.
32429 compiler_needs_object=$lt_compiler_needs_object
32430
32431 # Create an old-style archive from a shared archive.
32432 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
32433
32434 # Create a temporary old-style archive to link instead of a shared archive.
32435 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
32436
32437 # Commands used to build a shared archive.
32438 archive_cmds=$lt_archive_cmds
32439 archive_expsym_cmds=$lt_archive_expsym_cmds
32440
32441 # Commands used to build a loadable module if different from building
32442 # a shared archive.
32443 module_cmds=$lt_module_cmds
32444 module_expsym_cmds=$lt_module_expsym_cmds
32445
32446 # Whether we are building with GNU ld or not.
32447 with_gnu_ld=$lt_with_gnu_ld
32448
32449 # Flag that allows shared libraries with undefined symbols to be built.
32450 allow_undefined_flag=$lt_allow_undefined_flag
32451
32452 # Flag that enforces no undefined symbols.
32453 no_undefined_flag=$lt_no_undefined_flag
32454
32455 # Flag to hardcode \$libdir into a binary during linking.
32456 # This must work even if \$libdir does not exist
32457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
32458
32459 # If ld is used when linking, flag to hardcode \$libdir into a binary
32460 # during linking.  This must work even if \$libdir does not exist.
32461 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
32462
32463 # Whether we need a single "-rpath" flag with a separated argument.
32464 hardcode_libdir_separator=$lt_hardcode_libdir_separator
32465
32466 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32467 # DIR into the resulting binary.
32468 hardcode_direct=$hardcode_direct
32469
32470 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32471 # DIR into the resulting binary and the resulting library dependency is
32472 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32473 # library is relocated.
32474 hardcode_direct_absolute=$hardcode_direct_absolute
32475
32476 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32477 # into the resulting binary.
32478 hardcode_minus_L=$hardcode_minus_L
32479
32480 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32481 # into the resulting binary.
32482 hardcode_shlibpath_var=$hardcode_shlibpath_var
32483
32484 # Set to "yes" if building a shared library automatically hardcodes DIR
32485 # into the library and all subsequent libraries and executables linked
32486 # against it.
32487 hardcode_automatic=$hardcode_automatic
32488
32489 # Set to yes if linker adds runtime paths of dependent libraries
32490 # to runtime path list.
32491 inherit_rpath=$inherit_rpath
32492
32493 # Whether libtool must link a program against all its dependency libraries.
32494 link_all_deplibs=$link_all_deplibs
32495
32496 # Set to "yes" if exported symbols are required.
32497 always_export_symbols=$always_export_symbols
32498
32499 # The commands to list exported symbols.
32500 export_symbols_cmds=$lt_export_symbols_cmds
32501
32502 # Symbols that should not be listed in the preloaded symbols.
32503 exclude_expsyms=$lt_exclude_expsyms
32504
32505 # Symbols that must always be exported.
32506 include_expsyms=$lt_include_expsyms
32507
32508 # Commands necessary for linking programs (against libraries) with templates.
32509 prelink_cmds=$lt_prelink_cmds
32510
32511 # Commands necessary for finishing linking programs.
32512 postlink_cmds=$lt_postlink_cmds
32513
32514 # Specify filename containing input files.
32515 file_list_spec=$lt_file_list_spec
32516
32517 # How to hardcode a shared library path into an executable.
32518 hardcode_action=$hardcode_action
32519
32520 # The directories searched by this compiler when creating a shared library.
32521 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
32522
32523 # Dependencies to place before and after the objects being linked to
32524 # create a shared library.
32525 predep_objects=$lt_predep_objects
32526 postdep_objects=$lt_postdep_objects
32527 predeps=$lt_predeps
32528 postdeps=$lt_postdeps
32529
32530 # The library search path used internally by the compiler when linking
32531 # a shared library.
32532 compiler_lib_search_path=$lt_compiler_lib_search_path
32533
32534 # ### END LIBTOOL CONFIG
32535
32536 _LT_EOF
32537
32538   case $host_os in
32539   aix3*)
32540     cat <<\_LT_EOF >> "$cfgfile"
32541 # AIX sometimes has problems with the GCC collect2 program.  For some
32542 # reason, if we set the COLLECT_NAMES environment variable, the problems
32543 # vanish in a puff of smoke.
32544 if test "X${COLLECT_NAMES+set}" != Xset; then
32545   COLLECT_NAMES=
32546   export COLLECT_NAMES
32547 fi
32548 _LT_EOF
32549     ;;
32550   esac
32551
32552
32553 ltmain="$ac_aux_dir/ltmain.sh"
32554
32555
32556   # We use sed instead of cat because bash on DJGPP gets confused if
32557   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
32558   # text mode, it properly converts lines to CR/LF.  This bash problem
32559   # is reportedly fixed, but why not run on old versions too?
32560   sed '$q' "$ltmain" >> "$cfgfile" \
32561      || (rm -f "$cfgfile"; exit 1)
32562
32563   if test x"$xsi_shell" = xyes; then
32564   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
32565 func_dirname ()\
32566 {\
32567 \    case ${1} in\
32568 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32569 \      *  ) func_dirname_result="${3}" ;;\
32570 \    esac\
32571 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
32572   && mv -f "$cfgfile.tmp" "$cfgfile" \
32573     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32574 test 0 -eq $? || _lt_function_replace_fail=:
32575
32576
32577   sed -e '/^func_basename ()$/,/^} # func_basename /c\
32578 func_basename ()\
32579 {\
32580 \    func_basename_result="${1##*/}"\
32581 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
32582   && mv -f "$cfgfile.tmp" "$cfgfile" \
32583     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32584 test 0 -eq $? || _lt_function_replace_fail=:
32585
32586
32587   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
32588 func_dirname_and_basename ()\
32589 {\
32590 \    case ${1} in\
32591 \      */*) func_dirname_result="${1%/*}${2}" ;;\
32592 \      *  ) func_dirname_result="${3}" ;;\
32593 \    esac\
32594 \    func_basename_result="${1##*/}"\
32595 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
32596   && mv -f "$cfgfile.tmp" "$cfgfile" \
32597     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32598 test 0 -eq $? || _lt_function_replace_fail=:
32599
32600
32601   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
32602 func_stripname ()\
32603 {\
32604 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
32605 \    # positional parameters, so assign one to ordinary parameter first.\
32606 \    func_stripname_result=${3}\
32607 \    func_stripname_result=${func_stripname_result#"${1}"}\
32608 \    func_stripname_result=${func_stripname_result%"${2}"}\
32609 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
32610   && mv -f "$cfgfile.tmp" "$cfgfile" \
32611     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32612 test 0 -eq $? || _lt_function_replace_fail=:
32613
32614
32615   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
32616 func_split_long_opt ()\
32617 {\
32618 \    func_split_long_opt_name=${1%%=*}\
32619 \    func_split_long_opt_arg=${1#*=}\
32620 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
32621   && mv -f "$cfgfile.tmp" "$cfgfile" \
32622     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32623 test 0 -eq $? || _lt_function_replace_fail=:
32624
32625
32626   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
32627 func_split_short_opt ()\
32628 {\
32629 \    func_split_short_opt_arg=${1#??}\
32630 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
32631 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
32632   && mv -f "$cfgfile.tmp" "$cfgfile" \
32633     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32634 test 0 -eq $? || _lt_function_replace_fail=:
32635
32636
32637   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
32638 func_lo2o ()\
32639 {\
32640 \    case ${1} in\
32641 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
32642 \      *)    func_lo2o_result=${1} ;;\
32643 \    esac\
32644 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
32645   && mv -f "$cfgfile.tmp" "$cfgfile" \
32646     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32647 test 0 -eq $? || _lt_function_replace_fail=:
32648
32649
32650   sed -e '/^func_xform ()$/,/^} # func_xform /c\
32651 func_xform ()\
32652 {\
32653     func_xform_result=${1%.*}.lo\
32654 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
32655   && mv -f "$cfgfile.tmp" "$cfgfile" \
32656     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32657 test 0 -eq $? || _lt_function_replace_fail=:
32658
32659
32660   sed -e '/^func_arith ()$/,/^} # func_arith /c\
32661 func_arith ()\
32662 {\
32663     func_arith_result=$(( $* ))\
32664 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
32665   && mv -f "$cfgfile.tmp" "$cfgfile" \
32666     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32667 test 0 -eq $? || _lt_function_replace_fail=:
32668
32669
32670   sed -e '/^func_len ()$/,/^} # func_len /c\
32671 func_len ()\
32672 {\
32673     func_len_result=${#1}\
32674 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
32675   && mv -f "$cfgfile.tmp" "$cfgfile" \
32676     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32677 test 0 -eq $? || _lt_function_replace_fail=:
32678
32679 fi
32680
32681 if test x"$lt_shell_append" = xyes; then
32682   sed -e '/^func_append ()$/,/^} # func_append /c\
32683 func_append ()\
32684 {\
32685     eval "${1}+=\\${2}"\
32686 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
32687   && mv -f "$cfgfile.tmp" "$cfgfile" \
32688     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32689 test 0 -eq $? || _lt_function_replace_fail=:
32690
32691
32692   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
32693 func_append_quoted ()\
32694 {\
32695 \    func_quote_for_eval "${2}"\
32696 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
32697 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
32698   && mv -f "$cfgfile.tmp" "$cfgfile" \
32699     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32700 test 0 -eq $? || _lt_function_replace_fail=:
32701
32702
32703   # Save a `func_append' function call where possible by direct use of '+='
32704   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
32705     && mv -f "$cfgfile.tmp" "$cfgfile" \
32706       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32707   test 0 -eq $? || _lt_function_replace_fail=:
32708 else
32709   # Save a `func_append' function call even when '+=' is not available
32710   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
32711     && mv -f "$cfgfile.tmp" "$cfgfile" \
32712       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
32713   test 0 -eq $? || _lt_function_replace_fail=:
32714 fi
32715
32716 if test x"$_lt_function_replace_fail" = x":"; then
32717   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
32718 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
32719 fi
32720
32721
32722    mv -f "$cfgfile" "$ofile" ||
32723     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
32724   chmod +x "$ofile"
32725
32726
32727     cat <<_LT_EOF >> "$ofile"
32728
32729 # ### BEGIN LIBTOOL TAG CONFIG: CXX
32730
32731 # The linker used to build libraries.
32732 LD=$lt_LD_CXX
32733
32734 # How to create reloadable object files.
32735 reload_flag=$lt_reload_flag_CXX
32736 reload_cmds=$lt_reload_cmds_CXX
32737
32738 # Commands used to build an old-style archive.
32739 old_archive_cmds=$lt_old_archive_cmds_CXX
32740
32741 # A language specific compiler.
32742 CC=$lt_compiler_CXX
32743
32744 # Is the compiler the GNU compiler?
32745 with_gcc=$GCC_CXX
32746
32747 # Compiler flag to turn off builtin functions.
32748 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
32749
32750 # Additional compiler flags for building library objects.
32751 pic_flag=$lt_lt_prog_compiler_pic_CXX
32752
32753 # How to pass a linker flag through the compiler.
32754 wl=$lt_lt_prog_compiler_wl_CXX
32755
32756 # Compiler flag to prevent dynamic linking.
32757 link_static_flag=$lt_lt_prog_compiler_static_CXX
32758
32759 # Does compiler simultaneously support -c and -o options?
32760 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
32761
32762 # Whether or not to add -lc for building shared libraries.
32763 build_libtool_need_lc=$archive_cmds_need_lc_CXX
32764
32765 # Whether or not to disallow shared libs when runtime libs are static.
32766 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
32767
32768 # Compiler flag to allow reflexive dlopens.
32769 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
32770
32771 # Compiler flag to generate shared objects directly from archives.
32772 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
32773
32774 # Whether the compiler copes with passing no objects directly.
32775 compiler_needs_object=$lt_compiler_needs_object_CXX
32776
32777 # Create an old-style archive from a shared archive.
32778 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
32779
32780 # Create a temporary old-style archive to link instead of a shared archive.
32781 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
32782
32783 # Commands used to build a shared archive.
32784 archive_cmds=$lt_archive_cmds_CXX
32785 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
32786
32787 # Commands used to build a loadable module if different from building
32788 # a shared archive.
32789 module_cmds=$lt_module_cmds_CXX
32790 module_expsym_cmds=$lt_module_expsym_cmds_CXX
32791
32792 # Whether we are building with GNU ld or not.
32793 with_gnu_ld=$lt_with_gnu_ld_CXX
32794
32795 # Flag that allows shared libraries with undefined symbols to be built.
32796 allow_undefined_flag=$lt_allow_undefined_flag_CXX
32797
32798 # Flag that enforces no undefined symbols.
32799 no_undefined_flag=$lt_no_undefined_flag_CXX
32800
32801 # Flag to hardcode \$libdir into a binary during linking.
32802 # This must work even if \$libdir does not exist
32803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
32804
32805 # If ld is used when linking, flag to hardcode \$libdir into a binary
32806 # during linking.  This must work even if \$libdir does not exist.
32807 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
32808
32809 # Whether we need a single "-rpath" flag with a separated argument.
32810 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
32811
32812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32813 # DIR into the resulting binary.
32814 hardcode_direct=$hardcode_direct_CXX
32815
32816 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
32817 # DIR into the resulting binary and the resulting library dependency is
32818 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
32819 # library is relocated.
32820 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
32821
32822 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
32823 # into the resulting binary.
32824 hardcode_minus_L=$hardcode_minus_L_CXX
32825
32826 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
32827 # into the resulting binary.
32828 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
32829
32830 # Set to "yes" if building a shared library automatically hardcodes DIR
32831 # into the library and all subsequent libraries and executables linked
32832 # against it.
32833 hardcode_automatic=$hardcode_automatic_CXX
32834
32835 # Set to yes if linker adds runtime paths of dependent libraries
32836 # to runtime path list.
32837 inherit_rpath=$inherit_rpath_CXX
32838
32839 # Whether libtool must link a program against all its dependency libraries.
32840 link_all_deplibs=$link_all_deplibs_CXX
32841
32842 # Set to "yes" if exported symbols are required.
32843 always_export_symbols=$always_export_symbols_CXX
32844
32845 # The commands to list exported symbols.
32846 export_symbols_cmds=$lt_export_symbols_cmds_CXX
32847
32848 # Symbols that should not be listed in the preloaded symbols.
32849 exclude_expsyms=$lt_exclude_expsyms_CXX
32850
32851 # Symbols that must always be exported.
32852 include_expsyms=$lt_include_expsyms_CXX
32853
32854 # Commands necessary for linking programs (against libraries) with templates.
32855 prelink_cmds=$lt_prelink_cmds_CXX
32856
32857 # Commands necessary for finishing linking programs.
32858 postlink_cmds=$lt_postlink_cmds_CXX
32859
32860 # Specify filename containing input files.
32861 file_list_spec=$lt_file_list_spec_CXX
32862
32863 # How to hardcode a shared library path into an executable.
32864 hardcode_action=$hardcode_action_CXX
32865
32866 # The directories searched by this compiler when creating a shared library.
32867 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
32868
32869 # Dependencies to place before and after the objects being linked to
32870 # create a shared library.
32871 predep_objects=$lt_predep_objects_CXX
32872 postdep_objects=$lt_postdep_objects_CXX
32873 predeps=$lt_predeps_CXX
32874 postdeps=$lt_postdeps_CXX
32875
32876 # The library search path used internally by the compiler when linking
32877 # a shared library.
32878 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
32879
32880 # ### END LIBTOOL TAG CONFIG: CXX
32881 _LT_EOF
32882
32883  ;;
32884     "default-1":C)
32885     for ac_file in $CONFIG_FILES; do
32886       # Support "outfile[:infile[:infile...]]"
32887       case "$ac_file" in
32888         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
32889       esac
32890       # PO directories have a Makefile.in generated from Makefile.in.in.
32891       case "$ac_file" in */Makefile.in)
32892         # Adjust a relative srcdir.
32893         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
32894         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
32895         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
32896         # In autoconf-2.13 it is called $ac_given_srcdir.
32897         # In autoconf-2.50 it is called $srcdir.
32898         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
32899         case "$ac_given_srcdir" in
32900           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
32901           /*) top_srcdir="$ac_given_srcdir" ;;
32902           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
32903         esac
32904         # Treat a directory as a PO directory if and only if it has a
32905         # POTFILES.in file. This allows packages to have multiple PO
32906         # directories under different names or in different locations.
32907         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
32908           rm -f "$ac_dir/POTFILES"
32909           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
32910           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
32911           POMAKEFILEDEPS="POTFILES.in"
32912           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
32913           # on $ac_dir but don't depend on user-specified configuration
32914           # parameters.
32915           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
32916             # The LINGUAS file contains the set of available languages.
32917             if test -n "$OBSOLETE_ALL_LINGUAS"; then
32918               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
32919             fi
32920             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
32921             # Hide the ALL_LINGUAS assigment from automake.
32922             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
32923             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
32924           else
32925             # The set of available languages was given in configure.in.
32926             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
32927           fi
32928           # Compute POFILES
32929           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
32930           # Compute UPDATEPOFILES
32931           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
32932           # Compute DUMMYPOFILES
32933           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
32934           # Compute GMOFILES
32935           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
32936           case "$ac_given_srcdir" in
32937             .) srcdirpre= ;;
32938             *) srcdirpre='$(srcdir)/' ;;
32939           esac
32940           POFILES=
32941           UPDATEPOFILES=
32942           DUMMYPOFILES=
32943           GMOFILES=
32944           for lang in $ALL_LINGUAS; do
32945             POFILES="$POFILES $srcdirpre$lang.po"
32946             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
32947             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
32948             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
32949           done
32950           # CATALOGS depends on both $ac_dir and the user's LINGUAS
32951           # environment variable.
32952           INST_LINGUAS=
32953           if test -n "$ALL_LINGUAS"; then
32954             for presentlang in $ALL_LINGUAS; do
32955               useit=no
32956               if test "%UNSET%" != "$LINGUAS"; then
32957                 desiredlanguages="$LINGUAS"
32958               else
32959                 desiredlanguages="$ALL_LINGUAS"
32960               fi
32961               for desiredlang in $desiredlanguages; do
32962                 # Use the presentlang catalog if desiredlang is
32963                 #   a. equal to presentlang, or
32964                 #   b. a variant of presentlang (because in this case,
32965                 #      presentlang can be used as a fallback for messages
32966                 #      which are not translated in the desiredlang catalog).
32967                 case "$desiredlang" in
32968                   "$presentlang"*) useit=yes;;
32969                 esac
32970               done
32971               if test $useit = yes; then
32972                 INST_LINGUAS="$INST_LINGUAS $presentlang"
32973               fi
32974             done
32975           fi
32976           CATALOGS=
32977           if test -n "$INST_LINGUAS"; then
32978             for lang in $INST_LINGUAS; do
32979               CATALOGS="$CATALOGS $lang.gmo"
32980             done
32981           fi
32982           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
32983           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"
32984           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
32985             if test -f "$f"; then
32986               case "$f" in
32987                 *.orig | *.bak | *~) ;;
32988                 *) cat "$f" >> "$ac_dir/Makefile" ;;
32989               esac
32990             fi
32991           done
32992         fi
32993         ;;
32994       esac
32995     done ;;
32996     "default":C)
32997  ;;
32998
32999   esac
33000 done # for ac_tag
33001
33002
33003 as_fn_exit 0
33004 _ACEOF
33005 ac_clean_files=$ac_clean_files_save
33006
33007 test $ac_write_fail = 0 ||
33008   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
33009
33010
33011 # configure is writing to config.log, and then calls config.status.
33012 # config.status does its own redirection, appending to config.log.
33013 # Unfortunately, on DOS this fails, as config.log is still kept open
33014 # by configure, so config.status won't be able to write to it; its
33015 # output is simply discarded.  So we exec the FD to /dev/null,
33016 # effectively closing config.log, so it can be properly (re)opened and
33017 # appended to by config.status.  When coming back to configure, we
33018 # need to make the FD available again.
33019 if test "$no_create" != yes; then
33020   ac_cs_success=:
33021   ac_config_status_args=
33022   test "$silent" = yes &&
33023     ac_config_status_args="$ac_config_status_args --quiet"
33024   exec 5>/dev/null
33025   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33026   exec 5>>config.log
33027   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33028   # would make configure fail if this is the last instruction.
33029   $ac_cs_success || as_fn_exit $?
33030 fi
33031 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33032   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33033 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33034 fi
33035
33036
33037 if test "${support_bat}" = "yes" ; then
33038    if test "x$QMAKE" = "xnone"; then
33039       as_fn_error "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33040    fi
33041
33042    cd src/qt-console
33043    echo "Creating bat Makefile"
33044    touch bat
33045    chmod 755 bat
33046    rm -f Makefile
33047    $QMAKE
33048    ${MAKE:-make} clean
33049    cd ${BUILD_DIR}
33050 fi
33051
33052 if test X"$GCC" = "Xyes" ; then
33053   echo "Doing make of dependencies"
33054   ${MAKE:-make} depend
33055 fi
33056
33057 cd src/qt-console
33058 chmod 755 install_conf_file build-depkgs-qt-console
33059 cd ${BUILD_DIR}
33060
33061 cd scripts
33062 chmod 755 bacula btraceback mtx-changer
33063 chmod 755 dvd-handler dvd-simulator
33064 chmod 755 bconsole mtx-changer devel_bacula logrotate
33065 cd ..
33066
33067 c=updatedb
33068 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33069 chmod 755 $c/update_postgresql_tables_10_to_11
33070 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33071 chmod 755 $c/update_postgresql_tables_11_to_12
33072
33073
33074 c=src/cats
33075
33076 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33077 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33078
33079 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33080 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33081
33082 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33083 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33084
33085 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33086 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33087
33088 #chmod 755 $c/create_ingres_database  $c/update_ingres_tables $c/make_ingres_tables
33089 #chmod 755 $c/grant_ingres_privileges $c/drop_ingres_tables   $c/drop_ingres_database
33090
33091
33092 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33093 chmod 755 $c/sqlite
33094 chmod 755 $c/mysql
33095
33096 chmod 755 $c/install-default-backend
33097
33098 chmod 755 src/win32/build-depkgs-mingw32
33099
33100 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33101    largefile_support="yes"
33102 fi
33103
33104 if test X"$GCC" = "Xyes" ; then
33105                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33106    if test "x${CCVERSION}" = "x" ; then
33107       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33108    fi
33109    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33110    if test x"${CXXVERSION}" = x ; then
33111       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33112    fi
33113 fi
33114
33115 # clean up any old junk
33116 echo " "
33117 echo "Cleaning up"
33118 echo " "
33119 ${MAKE:-make} clean
33120
33121 echo "
33122 Configuration on `date`:
33123
33124    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33125    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33126    Source code location:     ${srcdir}
33127    Install binaries:         ${sbindir}
33128    Install libraries:        ${libdir}
33129    Install config files:     ${sysconfdir}
33130    Scripts directory:        ${scriptdir}
33131    Archive directory:        ${archivedir}
33132    Working directory:        ${working_dir}
33133    PID directory:            ${piddir}
33134    Subsys directory:         ${subsysdir}
33135    Man directory:            ${mandir}
33136    Data directory:           ${datarootdir}
33137    Plugin directory:         ${plugindir}
33138    C Compiler:               ${CC} ${CCVERSION}
33139    C++ Compiler:             ${CXX} ${CXXVERSION}
33140    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33141    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33142    Libraries:                ${LIBS}
33143    Statically Linked Tools:  ${support_static_tools}
33144    Statically Linked FD:     ${support_static_fd}
33145    Statically Linked SD:     ${support_static_sd}
33146    Statically Linked DIR:    ${support_static_dir}
33147    Statically Linked CONS:   ${support_static_cons}
33148    Database backends:        ${db_backends}
33149    Database port:            ${db_port}
33150    Database name:            ${db_name}
33151    Database user:            ${db_user}
33152
33153    Job Output Email:         ${job_email}
33154    Traceback Email:          ${dump_email}
33155    SMTP Host Address:        ${smtp_host}
33156
33157    Director Port:            ${dir_port}
33158    File daemon Port:         ${fd_port}
33159    Storage daemon Port:      ${sd_port}
33160
33161    Director User:            ${dir_user}
33162    Director Group:           ${dir_group}
33163    Storage Daemon User:      ${sd_user}
33164    Storage DaemonGroup:      ${sd_group}
33165    File Daemon User:         ${fd_user}
33166    File Daemon Group:        ${fd_group}
33167
33168    Large file support:      $largefile_support
33169    Bacula conio support:    ${got_conio} ${CONS_LIBS}
33170    readline support:        ${got_readline} ${PRTREADLINE_SRC}
33171    TCP Wrappers support:    ${TCPW_MSG} ${WRAPLIBS}
33172    TLS support:             ${support_tls}
33173    Encryption support:      ${support_crypto}
33174    ZLIB support:            ${have_zlib}
33175    LZO support:             ${have_lzo}
33176    enable-smartalloc:       ${support_smartalloc}
33177    enable-lockmgr:          ${support_lockmgr}
33178    bat support:             ${support_bat}
33179    enable-gnome:            ${support_gnome} ${gnome_version}
33180    enable-bwx-console:      ${support_wx_console} ${wx_version}
33181    enable-tray-monitor:     ${support_tray_monitor}
33182    client-only:             ${build_client_only}
33183    build-dird:              ${build_dird}
33184    build-stored:            ${build_stored}
33185    Plugin support:          ${have_plugins}
33186    ACL support:             ${have_acl}
33187    XATTR support:           ${have_xattr}
33188    Python support:          ${support_python} ${PYTHON_LIBS}
33189    Batch insert enabled:    ${support_batch_insert}
33190
33191   " > config.out
33192
33193 # create a small shell script useful for support with
33194 # configure options and config.out info
33195 cat > scripts/bacula_config << EOF
33196 #!/bin/sh
33197 cat << __EOC__
33198 $ $0 $ac_configure_args
33199 EOF
33200 cat config.out >> scripts/bacula_config
33201 echo __EOC__ >> scripts/bacula_config
33202 chmod 755 scripts/bacula_config
33203
33204 cat config.out