]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
8ae8e33442e3b99343834095f28ae049e67ad2bf
[bacula/bacula] / bacula / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for bacula 9.0.6.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18   emulate sh
19   NULLCMD=:
20   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in #(
26   *posix*) :
27     set -o posix ;; #(
28   *) :
29      ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45   as_echo='print -r --'
46   as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48   as_echo='printf %s\n'
49   as_echo_n='printf %s'
50 else
51   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53     as_echo_n='/usr/ucb/echo -n'
54   else
55     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56     as_echo_n_body='eval
57       arg=$1;
58       case $arg in #(
59       *"$as_nl"*)
60         expr "X$arg" : "X\\(.*\\)$as_nl";
61         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62       esac;
63       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64     '
65     export as_echo_n_body
66     as_echo_n='sh -c $as_echo_n_body as_echo'
67   fi
68   export as_echo_body
69   as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74   PATH_SEPARATOR=:
75   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77       PATH_SEPARATOR=';'
78   }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order.  Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" ""        $as_nl"
88
89 # Find who we are.  Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92   *[\\/]* ) as_myself=$0 ;;
93   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96   IFS=$as_save_IFS
97   test -z "$as_dir" && as_dir=.
98     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there.  '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136   # into an infinite loop, continuously re-executing ourselves.
137   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138     _as_can_reexec=no; export _as_can_reexec;
139     # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147   *v*x* | *x*v* ) as_opts=-vx ;;
148   *v* ) as_opts=-v ;;
149   *x* ) as_opts=-x ;;
150   * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157   fi
158   # We don't want this to propagate to other subprocesses.
159           { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162   emulate sh
163   NULLCMD=:
164   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165   # is contrary to our usage.  Disable this feature.
166   alias -g '\${1+\"\$@\"}'='\"\$@\"'
167   setopt NO_GLOB_SUBST
168 else
169   case \`(set -o) 2>/dev/null\` in #(
170   *posix*) :
171     set -o posix ;; #(
172   *) :
173      ;;
174 esac
175 fi
176 "
177   as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191   exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
200
201   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205     PATH=/empty FPATH=/empty; export PATH FPATH
206     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208   if (eval "$as_required") 2>/dev/null; then :
209   as_have_required=yes
210 else
211   as_have_required=no
212 fi
213   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220   IFS=$as_save_IFS
221   test -z "$as_dir" && as_dir=.
222   as_found=:
223   case $as_dir in #(
224          /*)
225            for as_base in sh bash ksh sh5; do
226              # Try only shells that exist, to save several forks.
227              as_shell=$as_dir/$as_base
228              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230   CONFIG_SHELL=$as_shell as_have_required=yes
231                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232   break 2
233 fi
234 fi
235            done;;
236        esac
237   as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241   CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246       if test "x$CONFIG_SHELL" != x; then :
247   export CONFIG_SHELL
248              # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256   *v*x* | *x*v* ) as_opts=-vx ;;
257   *v* ) as_opts=-v ;;
258   *x* ) as_opts=-x ;;
259   * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268     if test x$as_have_required = xno; then :
269   $as_echo "$0: This script requires a shell more modern than all"
270   $as_echo "$0: the shells that I found on your system."
271   if test x${ZSH_VERSION+set} = xset ; then
272     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274   else
275     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279   fi
280   exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298   { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307   return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315   set +e
316   as_fn_set_status $1
317   exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326   case $as_dir in #(
327   -*) as_dir=./$as_dir;;
328   esac
329   test -d "$as_dir" || eval $as_mkdir_p || {
330     as_dirs=
331     while :; do
332       case $as_dir in #(
333       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334       *) as_qdir=$as_dir;;
335       esac
336       as_dirs="'$as_qdir' $as_dirs"
337       as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339          X"$as_dir" : 'X\(//\)[^/]' \| \
340          X"$as_dir" : 'X\(//\)$' \| \
341          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344             s//\1/
345             q
346           }
347           /^X\(\/\/\)[^/].*/{
348             s//\1/
349             q
350           }
351           /^X\(\/\/\)$/{
352             s//\1/
353             q
354           }
355           /^X\(\/\).*/{
356             s//\1/
357             q
358           }
359           s/.*/./; q'`
360       test -d "$as_dir" && break
361     done
362     test -z "$as_dirs" || eval "mkdir $as_dirs"
363   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373   test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382   eval 'as_fn_append ()
383   {
384     eval $1+=\$2
385   }'
386 else
387   as_fn_append ()
388   {
389     eval $1=\$$1\$2
390   }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399   eval 'as_fn_arith ()
400   {
401     as_val=$(( $* ))
402   }'
403 else
404   as_fn_arith ()
405   {
406     as_val=`expr "$@" || test $? -eq 1`
407   }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418   as_status=$1; test $as_status -eq 0 && as_status=1
419   if test "$4"; then
420     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422   fi
423   $as_echo "$as_me: error: $2" >&2
424   as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428    test "X`expr 00001 : '.*\(...\)'`" = X001; then
429   as_expr=expr
430 else
431   as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435   as_basename=basename
436 else
437   as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441   as_dirname=dirname
442 else
443   as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448          X"$0" : 'X\(//\)$' \| \
449          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451     sed '/^.*\/\([^/][^/]*\)\/*$/{
452             s//\1/
453             q
454           }
455           /^X\/\(\/\/\)$/{
456             s//\1/
457             q
458           }
459           /^X\/\(\/\).*/{
460             s//\1/
461             q
462           }
463           s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473   as_lineno_1=$LINENO as_lineno_1a=$LINENO
474   as_lineno_2=$LINENO as_lineno_2a=$LINENO
475   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
478   sed -n '
479     p
480     /[$]LINENO/=
481   ' <$as_myself |
482     sed '
483       s/[$]LINENO.*/&-/
484       t lineno
485       b
486       :lineno
487       N
488       :loop
489       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490       t loop
491       s/-\n.*//
492     ' >$as_me.lineno &&
493   chmod +x "$as_me.lineno" ||
494     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497   # already done that, so ensure we don't try to do so again and fall
498   # in an infinite loop.  This has already happened in practice.
499   _as_can_reexec=no; export _as_can_reexec
500   # Don't try to exec as it changes $[0], causing all sort of problems
501   # (the dirname of $[0] is not the place where we might find the
502   # original and so on.  Autoconf is especially sensitive to this).
503   . "./$as_me.lineno"
504   # Exit status is that of the last command.
505   exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511   case `echo 'xy\c'` in
512   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
513   xy)  ECHO_C='\c';;
514   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
515        ECHO_T=' ';;
516   esac;;
517 *)
518   ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523   rm -f conf$$.dir/conf$$.file
524 else
525   rm -f conf$$.dir
526   mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529   if ln -s conf$$.file conf$$ 2>/dev/null; then
530     as_ln_s='ln -s'
531     # ... but there are two gotchas:
532     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534     # In both cases, we have to default to `cp -pR'.
535     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536       as_ln_s='cp -pR'
537   elif ln conf$$.file conf$$ 2>/dev/null; then
538     as_ln_s=ln
539   else
540     as_ln_s='cp -pR'
541   fi
542 else
543   as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549   as_mkdir_p='mkdir -p "$as_dir"'
550 else
551   test -d ./-p && rmdir ./-p
552   as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='bacula'
589 PACKAGE_TARNAME='bacula'
590 PACKAGE_VERSION='9.0.6'
591 PACKAGE_STRING='bacula 9.0.6'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="src/version.h"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 #  include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 #  include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_header_list=
633 ac_subst_vars='LTLIBOBJS
634 COMPRESS_MANPAGES
635 DISTVER
636 DISTNAME
637 MACOSX
638 WIN32
639 PSCMD
640 TAPEDRIVE
641 SYSTEMD_UNITDIR
642 OBJLIST
643 WRAPLIBS
644 WLDFLAGS
645 WCFLAGS
646 DLIB
647 DINCLUDE
648 DEBUG
649 FDLIBS
650 CAP_LIBS
651 LZO_LIBS
652 LZO_INC
653 AFS_LIBS
654 AFS_CFLAGS
655 ZLIBS
656 S3_LIBS
657 S3_INC
658 LIBOBJS
659 X_EXTRA_LIBS
660 X_LIBS
661 X_PRE_LIBS
662 X_CFLAGS
663 XMKMF
664 GETCONF
665 SHARED_CATALOG_TARGETS
666 DEFAULT_DB_TYPE
667 DB_LIBS
668 DB_BACKENDS
669 uncomment_dbi
670 SQLITE_BINDIR
671 SQLITE_INCLUDE
672 SQLITE_LIBS
673 MYSQL_BINDIR
674 MYSQL_INCLUDE
675 MYSQL_LIBS
676 POSTGRESQL_BINDIR
677 POSTGRESQL_INCLUDE
678 POSTGRESQL_LIBS
679 SBINPERM
680 fd_group
681 fd_user
682 sd_group
683 sd_user
684 dir_group
685 dir_user
686 db_ssl_options
687 db_port
688 db_password
689 db_user
690 db_name
691 mon_sd_password
692 mon_fd_password
693 mon_dir_password
694 sd_password
695 fd_password
696 dir_password
697 sd_port
698 fd_port
699 dir_port
700 baseport
701 subsysdir
702 piddir
703 smtp_host
704 job_email
705 dump_email
706 plugindir
707 logdir
708 bsrdir
709 scriptdir
710 hostname
711 basename
712 archivedir
713 working_dir
714 OPENSSL_INC
715 OPENSSL_LIBS
716 READLINE_SRC
717 CONS_LDFLAGS
718 CONS_LIBS
719 CONS_SRC
720 CONS_OBJ
721 CONS_INC
722 STORED_DIR
723 DIR_TOOLS
724 DIRD_DIR
725 ALL_DIRS
726 STATIC_CONS
727 STATIC_DIR
728 STATIC_SD
729 STATIC_FD
730 TTOOL_LDFLAGS
731 QWT
732 QWT_LIB
733 QWT_LDFLAGS
734 QWT_INC
735 BAT_DIR
736 INTL_LIBTOOL_SUFFIX_PREFIX
737 INTLOBJS
738 GENCAT
739 INSTOBJEXT
740 DATADIRNAME
741 CATOBJEXT
742 USE_INCLUDED_LIBINTL
743 BUILD_INCLUDED_LIBINTL
744 INTLBISON
745 HAVE_WPRINTF
746 HAVE_SNPRINTF
747 HAVE_ASPRINTF
748 HAVE_POSIX_PRINTF
749 GLIBC21
750 ALLOCA
751 GLIBC2
752 POSUB
753 LTLIBINTL
754 LIBINTL
755 INTLLIBS
756 LTLIBICONV
757 LIBICONV
758 INTL_MACOSX_LIBS
759 MSGMERGE
760 XGETTEXT
761 GMSGFMT
762 MSGFMT
763 USE_NLS
764 MKINSTALLDIRS
765 SET_MAKE
766 HAVE_KFREEBSD_OS_FALSE
767 HAVE_KFREEBSD_OS_TRUE
768 HAVE_DARWIN_OS_FALSE
769 HAVE_DARWIN_OS_TRUE
770 HAVE_IRIX_OS_FALSE
771 HAVE_IRIX_OS_TRUE
772 HAVE_SGI_OS_FALSE
773 HAVE_SGI_OS_TRUE
774 HAVE_BSDI_OS_FALSE
775 HAVE_BSDI_OS_TRUE
776 HAVE_OPENBSD_OS_FALSE
777 HAVE_OPENBSD_OS_TRUE
778 HAVE_NETBSD_OS_FALSE
779 HAVE_NETBSD_OS_TRUE
780 HAVE_FREEBSD_OS_FALSE
781 HAVE_FREEBSD_OS_TRUE
782 HAVE_LINUX_OS_FALSE
783 HAVE_LINUX_OS_TRUE
784 HAVE_HPUX_OS_FALSE
785 HAVE_HPUX_OS_TRUE
786 HAVE_AIX_OS_FALSE
787 HAVE_AIX_OS_TRUE
788 HAVE_OSF1_OS_FALSE
789 HAVE_OSF1_OS_TRUE
790 HAVE_HURD_OS_FALSE
791 HAVE_HURD_OS_TRUE
792 HAVE_SUN_OS_FALSE
793 HAVE_SUN_OS_TRUE
794 INCLUDE_UNINSTALL_TARGET
795 INCLUDE_INSTALL_TARGET
796 FD_PLUGIN_DIR
797 QMAKE_LIBTOOL
798 LIBTOOL_CLEAN_TARGET
799 LIBTOOL_UNINSTALL_TARGET
800 LIBTOOL_INSTALL_TARGET
801 DEFAULT_SHARED_OBJECT_TYPE
802 DEFAULT_ARCHIVE_TYPE
803 DEFAULT_OBJECT_TYPE
804 LIBADD_DL
805 LT_DLPREOPEN
806 LIBADD_DLD_LINK
807 LIBADD_SHL_LOAD
808 LIBADD_DLOPEN
809 LT_DLLOADERS
810 CXXCPP
811 OTOOL64
812 OTOOL
813 LIPO
814 NMEDIT
815 DSYMUTIL
816 MANIFEST_TOOL
817 RANLIB
818 STRIP
819 ac_ct_AR
820 DLLTOOL
821 OBJDUMP
822 LN_S
823 NM
824 ac_ct_DUMPBIN
825 DUMPBIN
826 LD
827 FGREP
828 host_os
829 host_vendor
830 host_cpu
831 host
832 build_os
833 build_vendor
834 build_cpu
835 build
836 LIBTOOL
837 LOCAL_DEFS
838 LOCAL_LDFLAGS
839 LOCAL_CFLAGS
840 LOCAL_LIBS
841 MAKE_SHELL
842 ARFLAGS
843 AWK
844 PIDOF
845 GMAKE
846 QMAKE
847 PKGCONFIG
848 DVDRWFORMAT
849 DVDRWMEDIAINFO
850 GROWISOFS
851 PYTHON
852 MKISOFS
853 DD
854 MTX
855 OPENSSL
856 AR
857 TBL
858 CMP
859 ECHO
860 SED
861 CP
862 REMOVE
863 MV
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 EGREP
868 GREP
869 CPP
870 ac_ct_CXX
871 CXXFLAGS
872 CXX
873 OBJEXT
874 EXEEXT
875 ac_ct_CC
876 CPPFLAGS
877 LDFLAGS
878 CFLAGS
879 CC
880 LIBBACFIND_LT_RELEASE
881 LIBBACCATS_LT_RELEASE
882 LIBBACSQL_LT_RELEASE
883 LIBBACCFG_LT_RELEASE
884 LIBBAC_LT_RELEASE
885 LIBRSYNC_VERSION
886 NDMP_VERSION
887 JAVA_VERSION
888 VIX_VERSION
889 DEPKGS_VERSION
890 DEPKGS_QT_VERSION
891 BDB_VERSION
892 post_host
893 BACULA
894 LSMDATE
895 DATE
896 VERSION
897 FALSEPRG
898 TRUEPRG
899 TOP_DIR
900 BUILD_DIR
901 target_alias
902 host_alias
903 build_alias
904 LIBS
905 ECHO_T
906 ECHO_N
907 ECHO_C
908 DEFS
909 mandir
910 localedir
911 libdir
912 psdir
913 pdfdir
914 dvidir
915 htmldir
916 infodir
917 docdir
918 oldincludedir
919 includedir
920 runstatedir
921 localstatedir
922 sharedstatedir
923 sysconfdir
924 datadir
925 datarootdir
926 libexecdir
927 sbindir
928 bindir
929 program_transform_name
930 prefix
931 exec_prefix
932 PACKAGE_URL
933 PACKAGE_BUGREPORT
934 PACKAGE_STRING
935 PACKAGE_VERSION
936 PACKAGE_TARNAME
937 PACKAGE_NAME
938 PATH_SEPARATOR
939 SHELL'
940 ac_subst_files='MCOMMON'
941 ac_user_opts='
942 enable_option_checking
943 enable_libtool
944 enable_shared
945 enable_static
946 with_pic
947 enable_fast_install
948 with_gnu_ld
949 with_sysroot
950 enable_libtool_lock
951 enable_includes
952 enable_nls
953 enable_rpath
954 with_libiconv_prefix
955 with_libintl_prefix
956 with_included_gettext
957 enable_bat
958 enable_smartalloc
959 enable_lockmgr
960 enable_static_tools
961 enable_static_fd
962 enable_static_sd
963 enable_static_dir
964 enable_static_cons
965 enable_client_only
966 enable_build_dird
967 enable_build_stored
968 enable_conio
969 enable_ipv6
970 enable_readline
971 with_readline
972 with_tcp_wrappers
973 with_openssl
974 with_working_dir
975 with_archivedir
976 with_basename
977 with_hostname
978 with_scriptdir
979 with_bsrdir
980 with_logdir
981 with_plugindir
982 with_dump_email
983 with_job_email
984 with_smtp_host
985 with_pid_dir
986 with_subsys_dir
987 with_baseport
988 with_dir_password
989 with_fd_password
990 with_sd_password
991 with_mon_dir_password
992 with_mon_fd_password
993 with_mon_sd_password
994 with_db_name
995 with_db_user
996 with_db_password
997 with_db_port
998 with_db_ssl_options
999 with_dir_user
1000 with_dir_group
1001 with_sd_user
1002 with_sd_group
1003 with_fd_user
1004 with_fd_group
1005 with_sbin_perm
1006 enable_batch_insert
1007 with_postgresql
1008 with_mysql
1009 with_embedded_mysql
1010 with_sqlite3
1011 enable_largefile
1012 with_x
1013 with_s3
1014 enable_afs
1015 with_afsdir
1016 enable_lzo
1017 with_lzo
1018 enable_acl
1019 enable_xattr
1020 with_systemd
1021 '
1022       ac_precious_vars='build_alias
1023 host_alias
1024 target_alias
1025 CC
1026 CFLAGS
1027 LDFLAGS
1028 LIBS
1029 CPPFLAGS
1030 CXX
1031 CXXFLAGS
1032 CCC
1033 CPP
1034 CXXCPP
1035 XMKMF'
1036
1037
1038 # Initialize some variables set by options.
1039 ac_init_help=
1040 ac_init_version=false
1041 ac_unrecognized_opts=
1042 ac_unrecognized_sep=
1043 # The variables have the same names as the options, with
1044 # dashes changed to underlines.
1045 cache_file=/dev/null
1046 exec_prefix=NONE
1047 no_create=
1048 no_recursion=
1049 prefix=NONE
1050 program_prefix=NONE
1051 program_suffix=NONE
1052 program_transform_name=s,x,x,
1053 silent=
1054 site=
1055 srcdir=
1056 verbose=
1057 x_includes=NONE
1058 x_libraries=NONE
1059
1060 # Installation directory options.
1061 # These are left unexpanded so users can "make install exec_prefix=/foo"
1062 # and all the variables that are supposed to be based on exec_prefix
1063 # by default will actually change.
1064 # Use braces instead of parens because sh, perl, etc. also accept them.
1065 # (The list follows the same order as the GNU Coding Standards.)
1066 bindir='${exec_prefix}/bin'
1067 sbindir='${exec_prefix}/sbin'
1068 libexecdir='${exec_prefix}/libexec'
1069 datarootdir='${prefix}/share'
1070 datadir='${datarootdir}'
1071 sysconfdir='${prefix}/etc'
1072 sharedstatedir='${prefix}/com'
1073 localstatedir='${prefix}/var'
1074 runstatedir='${localstatedir}/run'
1075 includedir='${prefix}/include'
1076 oldincludedir='/usr/include'
1077 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1078 infodir='${datarootdir}/info'
1079 htmldir='${docdir}'
1080 dvidir='${docdir}'
1081 pdfdir='${docdir}'
1082 psdir='${docdir}'
1083 libdir='${exec_prefix}/lib'
1084 localedir='${datarootdir}/locale'
1085 mandir='${datarootdir}/man'
1086
1087 ac_prev=
1088 ac_dashdash=
1089 for ac_option
1090 do
1091   # If the previous option needs an argument, assign it.
1092   if test -n "$ac_prev"; then
1093     eval $ac_prev=\$ac_option
1094     ac_prev=
1095     continue
1096   fi
1097
1098   case $ac_option in
1099   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1100   *=)   ac_optarg= ;;
1101   *)    ac_optarg=yes ;;
1102   esac
1103
1104   # Accept the important Cygnus configure options, so we can diagnose typos.
1105
1106   case $ac_dashdash$ac_option in
1107   --)
1108     ac_dashdash=yes ;;
1109
1110   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1111     ac_prev=bindir ;;
1112   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1113     bindir=$ac_optarg ;;
1114
1115   -build | --build | --buil | --bui | --bu)
1116     ac_prev=build_alias ;;
1117   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1118     build_alias=$ac_optarg ;;
1119
1120   -cache-file | --cache-file | --cache-fil | --cache-fi \
1121   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1122     ac_prev=cache_file ;;
1123   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1124   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1125     cache_file=$ac_optarg ;;
1126
1127   --config-cache | -C)
1128     cache_file=config.cache ;;
1129
1130   -datadir | --datadir | --datadi | --datad)
1131     ac_prev=datadir ;;
1132   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1133     datadir=$ac_optarg ;;
1134
1135   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1136   | --dataroo | --dataro | --datar)
1137     ac_prev=datarootdir ;;
1138   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1139   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1140     datarootdir=$ac_optarg ;;
1141
1142   -disable-* | --disable-*)
1143     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1144     # Reject names that are not valid shell variable names.
1145     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146       as_fn_error $? "invalid feature name: $ac_useropt"
1147     ac_useropt_orig=$ac_useropt
1148     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149     case $ac_user_opts in
1150       *"
1151 "enable_$ac_useropt"
1152 "*) ;;
1153       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1154          ac_unrecognized_sep=', ';;
1155     esac
1156     eval enable_$ac_useropt=no ;;
1157
1158   -docdir | --docdir | --docdi | --doc | --do)
1159     ac_prev=docdir ;;
1160   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161     docdir=$ac_optarg ;;
1162
1163   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1164     ac_prev=dvidir ;;
1165   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166     dvidir=$ac_optarg ;;
1167
1168   -enable-* | --enable-*)
1169     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1172       as_fn_error $? "invalid feature name: $ac_useropt"
1173     ac_useropt_orig=$ac_useropt
1174     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1175     case $ac_user_opts in
1176       *"
1177 "enable_$ac_useropt"
1178 "*) ;;
1179       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1180          ac_unrecognized_sep=', ';;
1181     esac
1182     eval enable_$ac_useropt=\$ac_optarg ;;
1183
1184   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1185   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1186   | --exec | --exe | --ex)
1187     ac_prev=exec_prefix ;;
1188   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1189   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1190   | --exec=* | --exe=* | --ex=*)
1191     exec_prefix=$ac_optarg ;;
1192
1193   -gas | --gas | --ga | --g)
1194     # Obsolete; use --with-gas.
1195     with_gas=yes ;;
1196
1197   -help | --help | --hel | --he | -h)
1198     ac_init_help=long ;;
1199   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1200     ac_init_help=recursive ;;
1201   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1202     ac_init_help=short ;;
1203
1204   -host | --host | --hos | --ho)
1205     ac_prev=host_alias ;;
1206   -host=* | --host=* | --hos=* | --ho=*)
1207     host_alias=$ac_optarg ;;
1208
1209   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1210     ac_prev=htmldir ;;
1211   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1212   | --ht=*)
1213     htmldir=$ac_optarg ;;
1214
1215   -includedir | --includedir | --includedi | --included | --include \
1216   | --includ | --inclu | --incl | --inc)
1217     ac_prev=includedir ;;
1218   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1219   | --includ=* | --inclu=* | --incl=* | --inc=*)
1220     includedir=$ac_optarg ;;
1221
1222   -infodir | --infodir | --infodi | --infod | --info | --inf)
1223     ac_prev=infodir ;;
1224   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1225     infodir=$ac_optarg ;;
1226
1227   -libdir | --libdir | --libdi | --libd)
1228     ac_prev=libdir ;;
1229   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1230     libdir=$ac_optarg ;;
1231
1232   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1233   | --libexe | --libex | --libe)
1234     ac_prev=libexecdir ;;
1235   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1236   | --libexe=* | --libex=* | --libe=*)
1237     libexecdir=$ac_optarg ;;
1238
1239   -localedir | --localedir | --localedi | --localed | --locale)
1240     ac_prev=localedir ;;
1241   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1242     localedir=$ac_optarg ;;
1243
1244   -localstatedir | --localstatedir | --localstatedi | --localstated \
1245   | --localstate | --localstat | --localsta | --localst | --locals)
1246     ac_prev=localstatedir ;;
1247   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1248   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1249     localstatedir=$ac_optarg ;;
1250
1251   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1252     ac_prev=mandir ;;
1253   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1254     mandir=$ac_optarg ;;
1255
1256   -nfp | --nfp | --nf)
1257     # Obsolete; use --without-fp.
1258     with_fp=no ;;
1259
1260   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1261   | --no-cr | --no-c | -n)
1262     no_create=yes ;;
1263
1264   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1265   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1266     no_recursion=yes ;;
1267
1268   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1269   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1270   | --oldin | --oldi | --old | --ol | --o)
1271     ac_prev=oldincludedir ;;
1272   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1273   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1274   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1275     oldincludedir=$ac_optarg ;;
1276
1277   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1278     ac_prev=prefix ;;
1279   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1280     prefix=$ac_optarg ;;
1281
1282   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1283   | --program-pre | --program-pr | --program-p)
1284     ac_prev=program_prefix ;;
1285   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1286   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1287     program_prefix=$ac_optarg ;;
1288
1289   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1290   | --program-suf | --program-su | --program-s)
1291     ac_prev=program_suffix ;;
1292   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1293   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1294     program_suffix=$ac_optarg ;;
1295
1296   -program-transform-name | --program-transform-name \
1297   | --program-transform-nam | --program-transform-na \
1298   | --program-transform-n | --program-transform- \
1299   | --program-transform | --program-transfor \
1300   | --program-transfo | --program-transf \
1301   | --program-trans | --program-tran \
1302   | --progr-tra | --program-tr | --program-t)
1303     ac_prev=program_transform_name ;;
1304   -program-transform-name=* | --program-transform-name=* \
1305   | --program-transform-nam=* | --program-transform-na=* \
1306   | --program-transform-n=* | --program-transform-=* \
1307   | --program-transform=* | --program-transfor=* \
1308   | --program-transfo=* | --program-transf=* \
1309   | --program-trans=* | --program-tran=* \
1310   | --progr-tra=* | --program-tr=* | --program-t=*)
1311     program_transform_name=$ac_optarg ;;
1312
1313   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1314     ac_prev=pdfdir ;;
1315   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1316     pdfdir=$ac_optarg ;;
1317
1318   -psdir | --psdir | --psdi | --psd | --ps)
1319     ac_prev=psdir ;;
1320   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1321     psdir=$ac_optarg ;;
1322
1323   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1324   | -silent | --silent | --silen | --sile | --sil)
1325     silent=yes ;;
1326
1327   -runstatedir | --runstatedir | --runstatedi | --runstated \
1328   | --runstate | --runstat | --runsta | --runst | --runs \
1329   | --run | --ru | --r)
1330     ac_prev=runstatedir ;;
1331   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1332   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1333   | --run=* | --ru=* | --r=*)
1334     runstatedir=$ac_optarg ;;
1335
1336   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1337     ac_prev=sbindir ;;
1338   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1339   | --sbi=* | --sb=*)
1340     sbindir=$ac_optarg ;;
1341
1342   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1343   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1344   | --sharedst | --shareds | --shared | --share | --shar \
1345   | --sha | --sh)
1346     ac_prev=sharedstatedir ;;
1347   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1348   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1349   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1350   | --sha=* | --sh=*)
1351     sharedstatedir=$ac_optarg ;;
1352
1353   -site | --site | --sit)
1354     ac_prev=site ;;
1355   -site=* | --site=* | --sit=*)
1356     site=$ac_optarg ;;
1357
1358   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1359     ac_prev=srcdir ;;
1360   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1361     srcdir=$ac_optarg ;;
1362
1363   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1364   | --syscon | --sysco | --sysc | --sys | --sy)
1365     ac_prev=sysconfdir ;;
1366   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1367   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1368     sysconfdir=$ac_optarg ;;
1369
1370   -target | --target | --targe | --targ | --tar | --ta | --t)
1371     ac_prev=target_alias ;;
1372   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1373     target_alias=$ac_optarg ;;
1374
1375   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1376     verbose=yes ;;
1377
1378   -version | --version | --versio | --versi | --vers | -V)
1379     ac_init_version=: ;;
1380
1381   -with-* | --with-*)
1382     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1383     # Reject names that are not valid shell variable names.
1384     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385       as_fn_error $? "invalid package name: $ac_useropt"
1386     ac_useropt_orig=$ac_useropt
1387     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1388     case $ac_user_opts in
1389       *"
1390 "with_$ac_useropt"
1391 "*) ;;
1392       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1393          ac_unrecognized_sep=', ';;
1394     esac
1395     eval with_$ac_useropt=\$ac_optarg ;;
1396
1397   -without-* | --without-*)
1398     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1399     # Reject names that are not valid shell variable names.
1400     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1401       as_fn_error $? "invalid package name: $ac_useropt"
1402     ac_useropt_orig=$ac_useropt
1403     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1404     case $ac_user_opts in
1405       *"
1406 "with_$ac_useropt"
1407 "*) ;;
1408       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1409          ac_unrecognized_sep=', ';;
1410     esac
1411     eval with_$ac_useropt=no ;;
1412
1413   --x)
1414     # Obsolete; use --with-x.
1415     with_x=yes ;;
1416
1417   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1418   | --x-incl | --x-inc | --x-in | --x-i)
1419     ac_prev=x_includes ;;
1420   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1421   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1422     x_includes=$ac_optarg ;;
1423
1424   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1425   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1426     ac_prev=x_libraries ;;
1427   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1428   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1429     x_libraries=$ac_optarg ;;
1430
1431   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1432 Try \`$0 --help' for more information"
1433     ;;
1434
1435   *=*)
1436     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1437     # Reject names that are not valid shell variable names.
1438     case $ac_envvar in #(
1439       '' | [0-9]* | *[!_$as_cr_alnum]* )
1440       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1441     esac
1442     eval $ac_envvar=\$ac_optarg
1443     export $ac_envvar ;;
1444
1445   *)
1446     # FIXME: should be removed in autoconf 3.0.
1447     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1448     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1449       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1450     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1451     ;;
1452
1453   esac
1454 done
1455
1456 if test -n "$ac_prev"; then
1457   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1458   as_fn_error $? "missing argument to $ac_option"
1459 fi
1460
1461 if test -n "$ac_unrecognized_opts"; then
1462   case $enable_option_checking in
1463     no) ;;
1464     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1465     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1466   esac
1467 fi
1468
1469 # Check all directory arguments for consistency.
1470 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1471                 datadir sysconfdir sharedstatedir localstatedir includedir \
1472                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1473                 libdir localedir mandir runstatedir
1474 do
1475   eval ac_val=\$$ac_var
1476   # Remove trailing slashes.
1477   case $ac_val in
1478     */ )
1479       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1480       eval $ac_var=\$ac_val;;
1481   esac
1482   # Be sure to have absolute directory names.
1483   case $ac_val in
1484     [\\/$]* | ?:[\\/]* )  continue;;
1485     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1486   esac
1487   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1488 done
1489
1490 # There might be people who depend on the old broken behavior: `$host'
1491 # used to hold the argument of --host etc.
1492 # FIXME: To remove some day.
1493 build=$build_alias
1494 host=$host_alias
1495 target=$target_alias
1496
1497 # FIXME: To remove some day.
1498 if test "x$host_alias" != x; then
1499   if test "x$build_alias" = x; then
1500     cross_compiling=maybe
1501   elif test "x$build_alias" != "x$host_alias"; then
1502     cross_compiling=yes
1503   fi
1504 fi
1505
1506 ac_tool_prefix=
1507 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1508
1509 test "$silent" = yes && exec 6>/dev/null
1510
1511
1512 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1513 ac_ls_di=`ls -di .` &&
1514 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1515   as_fn_error $? "working directory cannot be determined"
1516 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1517   as_fn_error $? "pwd does not report name of working directory"
1518
1519
1520 # Find the source files, if location was not specified.
1521 if test -z "$srcdir"; then
1522   ac_srcdir_defaulted=yes
1523   # Try the directory containing this script, then the parent directory.
1524   ac_confdir=`$as_dirname -- "$as_myself" ||
1525 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1526          X"$as_myself" : 'X\(//\)[^/]' \| \
1527          X"$as_myself" : 'X\(//\)$' \| \
1528          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1529 $as_echo X"$as_myself" |
1530     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1531             s//\1/
1532             q
1533           }
1534           /^X\(\/\/\)[^/].*/{
1535             s//\1/
1536             q
1537           }
1538           /^X\(\/\/\)$/{
1539             s//\1/
1540             q
1541           }
1542           /^X\(\/\).*/{
1543             s//\1/
1544             q
1545           }
1546           s/.*/./; q'`
1547   srcdir=$ac_confdir
1548   if test ! -r "$srcdir/$ac_unique_file"; then
1549     srcdir=..
1550   fi
1551 else
1552   ac_srcdir_defaulted=no
1553 fi
1554 if test ! -r "$srcdir/$ac_unique_file"; then
1555   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1556   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1557 fi
1558 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1559 ac_abs_confdir=`(
1560         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1561         pwd)`
1562 # When building in place, set srcdir=.
1563 if test "$ac_abs_confdir" = "$ac_pwd"; then
1564   srcdir=.
1565 fi
1566 # Remove unnecessary trailing slashes from srcdir.
1567 # Double slashes in file names in object file debugging info
1568 # mess up M-x gdb in Emacs.
1569 case $srcdir in
1570 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1571 esac
1572 for ac_var in $ac_precious_vars; do
1573   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1574   eval ac_env_${ac_var}_value=\$${ac_var}
1575   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1576   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1577 done
1578
1579 #
1580 # Report the --help message.
1581 #
1582 if test "$ac_init_help" = "long"; then
1583   # Omit some internal or obsolete options to make the list less imposing.
1584   # This message is too long to be a string in the A/UX 3.1 sh.
1585   cat <<_ACEOF
1586 \`configure' configures bacula 9.0.6 to adapt to many kinds of systems.
1587
1588 Usage: $0 [OPTION]... [VAR=VALUE]...
1589
1590 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1591 VAR=VALUE.  See below for descriptions of some of the useful variables.
1592
1593 Defaults for the options are specified in brackets.
1594
1595 Configuration:
1596   -h, --help              display this help and exit
1597       --help=short        display options specific to this package
1598       --help=recursive    display the short help of all the included packages
1599   -V, --version           display version information and exit
1600   -q, --quiet, --silent   do not print \`checking ...' messages
1601       --cache-file=FILE   cache test results in FILE [disabled]
1602   -C, --config-cache      alias for \`--cache-file=config.cache'
1603   -n, --no-create         do not create output files
1604       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1605
1606 Installation directories:
1607   --prefix=PREFIX         install architecture-independent files in PREFIX
1608                           [$ac_default_prefix]
1609   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1610                           [PREFIX]
1611
1612 By default, \`make install' will install all the files in
1613 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1614 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1615 for instance \`--prefix=\$HOME'.
1616
1617 For better control, use the options below.
1618
1619 Fine tuning of the installation directories:
1620   --bindir=DIR            user executables [EPREFIX/bin]
1621   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1622   --libexecdir=DIR        program executables [EPREFIX/libexec]
1623   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1624   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1625   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1626   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1627   --libdir=DIR            object code libraries [EPREFIX/lib]
1628   --includedir=DIR        C header files [PREFIX/include]
1629   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1630   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1631   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1632   --infodir=DIR           info documentation [DATAROOTDIR/info]
1633   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1634   --mandir=DIR            man documentation [DATAROOTDIR/man]
1635   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1636   --htmldir=DIR           html documentation [DOCDIR]
1637   --dvidir=DIR            dvi documentation [DOCDIR]
1638   --pdfdir=DIR            pdf documentation [DOCDIR]
1639   --psdir=DIR             ps documentation [DOCDIR]
1640 _ACEOF
1641
1642   cat <<\_ACEOF
1643
1644 X features:
1645   --x-includes=DIR    X include files are in DIR
1646   --x-libraries=DIR   X library files are in DIR
1647
1648 System types:
1649   --build=BUILD     configure for building on BUILD [guessed]
1650   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1651 _ACEOF
1652 fi
1653
1654 if test -n "$ac_init_help"; then
1655   case $ac_init_help in
1656      short | recursive ) echo "Configuration of bacula 9.0.6:";;
1657    esac
1658   cat <<\_ACEOF
1659
1660 Optional Features:
1661   --disable-option-checking  ignore unrecognized --enable/--with options
1662   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1663   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1664   --enable-libtool        enable building using GNU libtool [default=yes]
1665   --enable-shared[=PKGS]  build shared libraries [default=yes]
1666   --enable-static[=PKGS]  build static libraries [default=no]
1667   --enable-fast-install[=PKGS]
1668                           optimize for fast installation [default=yes]
1669   --disable-libtool-lock  avoid locking (might break parallel builds)
1670   --enable-includes       enable installing of include files [default=no]
1671   --disable-nls           do not use Native Language Support
1672   --disable-rpath         do not hardcode runtime library paths
1673   --enable-bat            enable build of bat Qt GUI [default=no]
1674   --enable-smartalloc     enable smartalloc debugging support [default=no]
1675   --enable-lockmgr        enable lock manager support [default=no]
1676   --enable-static-tools   enable static tape tools [default=no]
1677   --enable-static-fd      enable static File daemon [default=no]
1678   --enable-static-sd      enable static Storage daemon [default=no]
1679   --enable-static-dir     enable static Director [default=no]
1680   --enable-static-cons    enable static Console [default=no]
1681   --enable-client-only    build client (File daemon) only [default=no]
1682   --enable-build-dird     enable building of dird (Director) [default=yes]
1683   --enable-build-stored   enable building of stored (Storage daemon)
1684                           [default=yes]
1685   --disable-conio         disable conio support [default=no]
1686   --enable-ipv6           enable ipv6 support [default=yes]
1687   --disable-readline      disable readline support [default=yes]
1688   --enable-batch-insert   enable the DB batch insert code [default=yes]
1689   --disable-largefile     omit support for large files
1690   --disable-afs           disable afs support [default=auto]
1691   --disable-lzo           disable lzo support [default=yes]
1692   --disable-acl           disable acl support [default=auto]
1693   --disable-xattr         disable xattr support [default=auto]
1694
1695 Optional Packages:
1696   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1697   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1698   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1699                           both]
1700   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1701   --with-sysroot=DIR Search for dependent libraries within DIR
1702                         (or the compiler's sysroot if not specified).
1703   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1704   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1705   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1706   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1707   --without-libintl-prefix     don't search for libintl in includedir and libdir
1708   --with-included-gettext use the GNU gettext library included here
1709   --with-readline[=DIR]   specify readline library directory
1710   --with-tcp-wrappers[=DIR]
1711                           enable tcpwrappers support
1712   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1713   --with-working-dir=PATH specify path of Bacula working directory
1714   --with-archivedir=PATH  specify path of SD archive directory
1715   --with-basename=RESNAME specify base resource name for daemons
1716   --with-hostname=RESNAME specify host name for daemons
1717   --with-scriptdir=PATH   specify path of Bacula scripts directory
1718   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1719   --with-logdir=PATH      specify path of Bacula logs directory
1720   --with-plugindir=PATH   specify path of Bacula plugins directory
1721   --with-dump-email=EMAIL dump email address
1722   --with-job-email=EMAIL  job output email address
1723   --with-smtp-host=HOST   SMTP mail host address
1724   --with-pid-dir=PATH     specify location of Bacula pid files
1725   --with-subsys-dir=PATH  specify location of Bacula subsys file
1726   --with-baseport=PORT    specify base port address for daemons
1727   --with-dir-password=PASSWORD
1728                           specify Director's password
1729   --with-fd-password=PASSWORD
1730                           specify Client's password
1731   --with-sd-password=PASSWORD
1732                           specify Storage daemon's password
1733   --with-mon-dir-password=PASSWORD
1734                           specify Director's password used by the monitor
1735   --with-mon-fd-password=PASSWORD
1736                           specify Client's password used by the monitor
1737   --with-mon-sd-password=PASSWORD
1738                           specify Storage daemon's password used by the
1739                           monitor
1740   --with-db-name=DBNAME   specify database name [default=bacula]
1741   --with-db-user=UNAME    specify database user [default=bacula]
1742   --with-db-password=PWD  specify database password [default=*none*]
1743   --with-db-port=DBPORT   specify a database port [default=null]
1744   --with-db-ssl-options=DBSSLOPTIONS
1745                           specify SSL options for database user connection
1746                           [default=null]
1747   --with-dir-user=USER    specify user for Director daemon
1748   --with-dir-group=GROUP  specify group for Director daemon
1749   --with-sd-user=USER     specify user for Storage daemon
1750   --with-sd-group=GROUP   specify group for Storage daemon
1751   --with-fd-user=USER     specify user for File daemon
1752   --with-fd-group=GROUP   specify group for File daemon
1753   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1754   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1755                           base install directory, [default=/usr/local/pgsql]
1756   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1757                           directory, default is to search through a number of
1758                           common places for the MySQL files.
1759   --with-embedded-mysql[=DIR]
1760                           Include MySQL support. DIR is the MySQL base install
1761                           directory, default is to search through a number of
1762                           common places for the MySQL files.
1763   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1764                           install directory, default is to search through a
1765                           number of common places for the SQLite3 files.
1766   --with-x                use the X Window System
1767   --with-s3[=DIR]         specify s3 library directory
1768   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1769   --with-lzo[=DIR]        specify lzo library directory
1770   --with-systemd[=UNITDIR]
1771                           Include systemd support. UNITDIR is where systemd
1772                           system .service files are located, default is to ask
1773                           systemctl.
1774
1775 Some influential environment variables:
1776   CC          C compiler command
1777   CFLAGS      C compiler flags
1778   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1779               nonstandard directory <lib dir>
1780   LIBS        libraries to pass to the linker, e.g. -l<library>
1781   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1782               you have headers in a nonstandard directory <include dir>
1783   CXX         C++ compiler command
1784   CXXFLAGS    C++ compiler flags
1785   CPP         C preprocessor
1786   CXXCPP      C++ preprocessor
1787   XMKMF       Path to xmkmf, Makefile generator for X Window System
1788
1789 Use these variables to override the choices made by `configure' or to help
1790 it to find libraries and programs with nonstandard names/locations.
1791
1792 Report bugs to the package provider.
1793 _ACEOF
1794 ac_status=$?
1795 fi
1796
1797 if test "$ac_init_help" = "recursive"; then
1798   # If there are subdirs, report their specific --help.
1799   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1800     test -d "$ac_dir" ||
1801       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1802       continue
1803     ac_builddir=.
1804
1805 case "$ac_dir" in
1806 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1807 *)
1808   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1809   # A ".." for each directory in $ac_dir_suffix.
1810   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1811   case $ac_top_builddir_sub in
1812   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1813   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1814   esac ;;
1815 esac
1816 ac_abs_top_builddir=$ac_pwd
1817 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1818 # for backward compatibility:
1819 ac_top_builddir=$ac_top_build_prefix
1820
1821 case $srcdir in
1822   .)  # We are building in place.
1823     ac_srcdir=.
1824     ac_top_srcdir=$ac_top_builddir_sub
1825     ac_abs_top_srcdir=$ac_pwd ;;
1826   [\\/]* | ?:[\\/]* )  # Absolute name.
1827     ac_srcdir=$srcdir$ac_dir_suffix;
1828     ac_top_srcdir=$srcdir
1829     ac_abs_top_srcdir=$srcdir ;;
1830   *) # Relative name.
1831     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1832     ac_top_srcdir=$ac_top_build_prefix$srcdir
1833     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1834 esac
1835 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1836
1837     cd "$ac_dir" || { ac_status=$?; continue; }
1838     # Check for guested configure.
1839     if test -f "$ac_srcdir/configure.gnu"; then
1840       echo &&
1841       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1842     elif test -f "$ac_srcdir/configure"; then
1843       echo &&
1844       $SHELL "$ac_srcdir/configure" --help=recursive
1845     else
1846       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1847     fi || ac_status=$?
1848     cd "$ac_pwd" || { ac_status=$?; break; }
1849   done
1850 fi
1851
1852 test -n "$ac_init_help" && exit $ac_status
1853 if $ac_init_version; then
1854   cat <<\_ACEOF
1855 bacula configure 9.0.6
1856 generated by GNU Autoconf 2.69
1857
1858 Copyright (C) 2012 Free Software Foundation, Inc.
1859 This configure script is free software; the Free Software Foundation
1860 gives unlimited permission to copy, distribute and modify it.
1861 _ACEOF
1862   exit
1863 fi
1864
1865 ## ------------------------ ##
1866 ## Autoconf initialization. ##
1867 ## ------------------------ ##
1868
1869 # ac_fn_c_try_compile LINENO
1870 # --------------------------
1871 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1872 ac_fn_c_try_compile ()
1873 {
1874   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875   rm -f conftest.$ac_objext
1876   if { { ac_try="$ac_compile"
1877 case "(($ac_try" in
1878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1879   *) ac_try_echo=$ac_try;;
1880 esac
1881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1882 $as_echo "$ac_try_echo"; } >&5
1883   (eval "$ac_compile") 2>conftest.err
1884   ac_status=$?
1885   if test -s conftest.err; then
1886     grep -v '^ *+' conftest.err >conftest.er1
1887     cat conftest.er1 >&5
1888     mv -f conftest.er1 conftest.err
1889   fi
1890   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891   test $ac_status = 0; } && {
1892          test -z "$ac_c_werror_flag" ||
1893          test ! -s conftest.err
1894        } && test -s conftest.$ac_objext; then :
1895   ac_retval=0
1896 else
1897   $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1899
1900         ac_retval=1
1901 fi
1902   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903   as_fn_set_status $ac_retval
1904
1905 } # ac_fn_c_try_compile
1906
1907 # ac_fn_cxx_try_compile LINENO
1908 # ----------------------------
1909 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1910 ac_fn_cxx_try_compile ()
1911 {
1912   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913   rm -f conftest.$ac_objext
1914   if { { ac_try="$ac_compile"
1915 case "(($ac_try" in
1916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1917   *) ac_try_echo=$ac_try;;
1918 esac
1919 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921   (eval "$ac_compile") 2>conftest.err
1922   ac_status=$?
1923   if test -s conftest.err; then
1924     grep -v '^ *+' conftest.err >conftest.er1
1925     cat conftest.er1 >&5
1926     mv -f conftest.er1 conftest.err
1927   fi
1928   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929   test $ac_status = 0; } && {
1930          test -z "$ac_cxx_werror_flag" ||
1931          test ! -s conftest.err
1932        } && test -s conftest.$ac_objext; then :
1933   ac_retval=0
1934 else
1935   $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938         ac_retval=1
1939 fi
1940   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941   as_fn_set_status $ac_retval
1942
1943 } # ac_fn_cxx_try_compile
1944
1945 # ac_fn_c_try_cpp LINENO
1946 # ----------------------
1947 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1948 ac_fn_c_try_cpp ()
1949 {
1950   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951   if { { ac_try="$ac_cpp conftest.$ac_ext"
1952 case "(($ac_try" in
1953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1954   *) ac_try_echo=$ac_try;;
1955 esac
1956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1957 $as_echo "$ac_try_echo"; } >&5
1958   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1959   ac_status=$?
1960   if test -s conftest.err; then
1961     grep -v '^ *+' conftest.err >conftest.er1
1962     cat conftest.er1 >&5
1963     mv -f conftest.er1 conftest.err
1964   fi
1965   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1966   test $ac_status = 0; } > conftest.i && {
1967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1968          test ! -s conftest.err
1969        }; then :
1970   ac_retval=0
1971 else
1972   $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975     ac_retval=1
1976 fi
1977   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1978   as_fn_set_status $ac_retval
1979
1980 } # ac_fn_c_try_cpp
1981
1982 # ac_fn_c_try_link LINENO
1983 # -----------------------
1984 # Try to link conftest.$ac_ext, and return whether this succeeded.
1985 ac_fn_c_try_link ()
1986 {
1987   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1988   rm -f conftest.$ac_objext conftest$ac_exeext
1989   if { { ac_try="$ac_link"
1990 case "(($ac_try" in
1991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1992   *) ac_try_echo=$ac_try;;
1993 esac
1994 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1995 $as_echo "$ac_try_echo"; } >&5
1996   (eval "$ac_link") 2>conftest.err
1997   ac_status=$?
1998   if test -s conftest.err; then
1999     grep -v '^ *+' conftest.err >conftest.er1
2000     cat conftest.er1 >&5
2001     mv -f conftest.er1 conftest.err
2002   fi
2003   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2004   test $ac_status = 0; } && {
2005          test -z "$ac_c_werror_flag" ||
2006          test ! -s conftest.err
2007        } && test -s conftest$ac_exeext && {
2008          test "$cross_compiling" = yes ||
2009          test -x conftest$ac_exeext
2010        }; then :
2011   ac_retval=0
2012 else
2013   $as_echo "$as_me: failed program was:" >&5
2014 sed 's/^/| /' conftest.$ac_ext >&5
2015
2016         ac_retval=1
2017 fi
2018   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2019   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2020   # interfere with the next link command; also delete a directory that is
2021   # left behind by Apple's compiler.  We do this before executing the actions.
2022   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2023   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024   as_fn_set_status $ac_retval
2025
2026 } # ac_fn_c_try_link
2027
2028 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2029 # -------------------------------------------------------
2030 # Tests whether HEADER exists and can be compiled using the include files in
2031 # INCLUDES, setting the cache variable VAR accordingly.
2032 ac_fn_c_check_header_compile ()
2033 {
2034   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2036 $as_echo_n "checking for $2... " >&6; }
2037 if eval \${$3+:} false; then :
2038   $as_echo_n "(cached) " >&6
2039 else
2040   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041 /* end confdefs.h.  */
2042 $4
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_compile "$LINENO"; then :
2046   eval "$3=yes"
2047 else
2048   eval "$3=no"
2049 fi
2050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2051 fi
2052 eval ac_res=\$$3
2053                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054 $as_echo "$ac_res" >&6; }
2055   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056
2057 } # ac_fn_c_check_header_compile
2058
2059 # ac_fn_c_try_run LINENO
2060 # ----------------------
2061 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2062 # that executables *can* be run.
2063 ac_fn_c_try_run ()
2064 {
2065   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2066   if { { ac_try="$ac_link"
2067 case "(($ac_try" in
2068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069   *) ac_try_echo=$ac_try;;
2070 esac
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073   (eval "$ac_link") 2>&5
2074   ac_status=$?
2075   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2076   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2077   { { case "(($ac_try" in
2078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079   *) ac_try_echo=$ac_try;;
2080 esac
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083   (eval "$ac_try") 2>&5
2084   ac_status=$?
2085   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2086   test $ac_status = 0; }; }; then :
2087   ac_retval=0
2088 else
2089   $as_echo "$as_me: program exited with status $ac_status" >&5
2090        $as_echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093        ac_retval=$ac_status
2094 fi
2095   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2096   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097   as_fn_set_status $ac_retval
2098
2099 } # ac_fn_c_try_run
2100
2101 # ac_fn_c_check_func LINENO FUNC VAR
2102 # ----------------------------------
2103 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2104 ac_fn_c_check_func ()
2105 {
2106   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110   $as_echo_n "(cached) " >&6
2111 else
2112   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h.  */
2114 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2115    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2116 #define $2 innocuous_$2
2117
2118 /* System header to define __stub macros and hopefully few prototypes,
2119     which can conflict with char $2 (); below.
2120     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2121     <limits.h> exists even on freestanding compilers.  */
2122
2123 #ifdef __STDC__
2124 # include <limits.h>
2125 #else
2126 # include <assert.h>
2127 #endif
2128
2129 #undef $2
2130
2131 /* Override any GCC internal prototype to avoid an error.
2132    Use char because int might match the return type of a GCC
2133    builtin and then its argument prototype would still apply.  */
2134 #ifdef __cplusplus
2135 extern "C"
2136 #endif
2137 char $2 ();
2138 /* The GNU C library defines this for functions which it implements
2139     to always fail with ENOSYS.  Some functions are actually named
2140     something starting with __ and the normal name is an alias.  */
2141 #if defined __stub_$2 || defined __stub___$2
2142 choke me
2143 #endif
2144
2145 int
2146 main ()
2147 {
2148 return $2 ();
2149   ;
2150   return 0;
2151 }
2152 _ACEOF
2153 if ac_fn_c_try_link "$LINENO"; then :
2154   eval "$3=yes"
2155 else
2156   eval "$3=no"
2157 fi
2158 rm -f core conftest.err conftest.$ac_objext \
2159     conftest$ac_exeext conftest.$ac_ext
2160 fi
2161 eval ac_res=\$$3
2162                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163 $as_echo "$ac_res" >&6; }
2164   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166 } # ac_fn_c_check_func
2167
2168 # ac_fn_cxx_try_cpp LINENO
2169 # ------------------------
2170 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2171 ac_fn_cxx_try_cpp ()
2172 {
2173   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2174   if { { ac_try="$ac_cpp conftest.$ac_ext"
2175 case "(($ac_try" in
2176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2177   *) ac_try_echo=$ac_try;;
2178 esac
2179 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2180 $as_echo "$ac_try_echo"; } >&5
2181   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2182   ac_status=$?
2183   if test -s conftest.err; then
2184     grep -v '^ *+' conftest.err >conftest.er1
2185     cat conftest.er1 >&5
2186     mv -f conftest.er1 conftest.err
2187   fi
2188   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2189   test $ac_status = 0; } > conftest.i && {
2190          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2191          test ! -s conftest.err
2192        }; then :
2193   ac_retval=0
2194 else
2195   $as_echo "$as_me: failed program was:" >&5
2196 sed 's/^/| /' conftest.$ac_ext >&5
2197
2198     ac_retval=1
2199 fi
2200   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2201   as_fn_set_status $ac_retval
2202
2203 } # ac_fn_cxx_try_cpp
2204
2205 # ac_fn_cxx_try_link LINENO
2206 # -------------------------
2207 # Try to link conftest.$ac_ext, and return whether this succeeded.
2208 ac_fn_cxx_try_link ()
2209 {
2210   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211   rm -f conftest.$ac_objext conftest$ac_exeext
2212   if { { ac_try="$ac_link"
2213 case "(($ac_try" in
2214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2215   *) ac_try_echo=$ac_try;;
2216 esac
2217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2218 $as_echo "$ac_try_echo"; } >&5
2219   (eval "$ac_link") 2>conftest.err
2220   ac_status=$?
2221   if test -s conftest.err; then
2222     grep -v '^ *+' conftest.err >conftest.er1
2223     cat conftest.er1 >&5
2224     mv -f conftest.er1 conftest.err
2225   fi
2226   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2227   test $ac_status = 0; } && {
2228          test -z "$ac_cxx_werror_flag" ||
2229          test ! -s conftest.err
2230        } && test -s conftest$ac_exeext && {
2231          test "$cross_compiling" = yes ||
2232          test -x conftest$ac_exeext
2233        }; then :
2234   ac_retval=0
2235 else
2236   $as_echo "$as_me: failed program was:" >&5
2237 sed 's/^/| /' conftest.$ac_ext >&5
2238
2239         ac_retval=1
2240 fi
2241   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2242   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2243   # interfere with the next link command; also delete a directory that is
2244   # left behind by Apple's compiler.  We do this before executing the actions.
2245   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2246   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247   as_fn_set_status $ac_retval
2248
2249 } # ac_fn_cxx_try_link
2250
2251 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2252 # ---------------------------------------------
2253 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2254 # accordingly.
2255 ac_fn_c_check_decl ()
2256 {
2257   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2258   as_decl_name=`echo $2|sed 's/ *(.*//'`
2259   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2261 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2262 if eval \${$3+:} false; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $4
2268 int
2269 main ()
2270 {
2271 #ifndef $as_decl_name
2272 #ifdef __cplusplus
2273   (void) $as_decl_use;
2274 #else
2275   (void) $as_decl_name;
2276 #endif
2277 #endif
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_compile "$LINENO"; then :
2284   eval "$3=yes"
2285 else
2286   eval "$3=no"
2287 fi
2288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2289 fi
2290 eval ac_res=\$$3
2291                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2292 $as_echo "$ac_res" >&6; }
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294
2295 } # ac_fn_c_check_decl
2296
2297 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2298 # -------------------------------------------
2299 # Tests whether TYPE exists after having included INCLUDES, setting cache
2300 # variable VAR accordingly.
2301 ac_fn_c_check_type ()
2302 {
2303   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2304   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2305 $as_echo_n "checking for $2... " >&6; }
2306 if eval \${$3+:} false; then :
2307   $as_echo_n "(cached) " >&6
2308 else
2309   eval "$3=no"
2310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $4
2313 int
2314 main ()
2315 {
2316 if (sizeof ($2))
2317          return 0;
2318   ;
2319   return 0;
2320 }
2321 _ACEOF
2322 if ac_fn_c_try_compile "$LINENO"; then :
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int
2327 main ()
2328 {
2329 if (sizeof (($2)))
2330             return 0;
2331   ;
2332   return 0;
2333 }
2334 _ACEOF
2335 if ac_fn_c_try_compile "$LINENO"; then :
2336
2337 else
2338   eval "$3=yes"
2339 fi
2340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2341 fi
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2343 fi
2344 eval ac_res=\$$3
2345                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2348
2349 } # ac_fn_c_check_type
2350
2351 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2352 # -------------------------------------------------------
2353 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2354 # the include files in INCLUDES and setting the cache variable VAR
2355 # accordingly.
2356 ac_fn_c_check_header_mongrel ()
2357 {
2358   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2359   if eval \${$3+:} false; then :
2360   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2361 $as_echo_n "checking for $2... " >&6; }
2362 if eval \${$3+:} false; then :
2363   $as_echo_n "(cached) " >&6
2364 fi
2365 eval ac_res=\$$3
2366                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 else
2369   # Is the header compilable?
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2371 $as_echo_n "checking $2 usability... " >&6; }
2372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2373 /* end confdefs.h.  */
2374 $4
2375 #include <$2>
2376 _ACEOF
2377 if ac_fn_c_try_compile "$LINENO"; then :
2378   ac_header_compiler=yes
2379 else
2380   ac_header_compiler=no
2381 fi
2382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2384 $as_echo "$ac_header_compiler" >&6; }
2385
2386 # Is the header present?
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2388 $as_echo_n "checking $2 presence... " >&6; }
2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2390 /* end confdefs.h.  */
2391 #include <$2>
2392 _ACEOF
2393 if ac_fn_c_try_cpp "$LINENO"; then :
2394   ac_header_preproc=yes
2395 else
2396   ac_header_preproc=no
2397 fi
2398 rm -f conftest.err conftest.i conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2400 $as_echo "$ac_header_preproc" >&6; }
2401
2402 # So?  What about this header?
2403 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2404   yes:no: )
2405     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2406 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2407     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2408 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2409     ;;
2410   no:yes:* )
2411     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2412 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2413     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2414 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2415     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2416 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2417     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2418 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2419     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2420 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2421     ;;
2422 esac
2423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 $as_echo_n "checking for $2... " >&6; }
2425 if eval \${$3+:} false; then :
2426   $as_echo_n "(cached) " >&6
2427 else
2428   eval "$3=\$ac_header_compiler"
2429 fi
2430 eval ac_res=\$$3
2431                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 fi
2434   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435
2436 } # ac_fn_c_check_header_mongrel
2437
2438 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2439 # --------------------------------------------
2440 # Tries to find the compile-time value of EXPR in a program that includes
2441 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2442 # computed
2443 ac_fn_c_compute_int ()
2444 {
2445   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446   if test "$cross_compiling" = yes; then
2447     # Depending upon the size, compute the lo and hi bounds.
2448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2449 /* end confdefs.h.  */
2450 $4
2451 int
2452 main ()
2453 {
2454 static int test_array [1 - 2 * !(($2) >= 0)];
2455 test_array [0] = 0;
2456 return test_array [0];
2457
2458   ;
2459   return 0;
2460 }
2461 _ACEOF
2462 if ac_fn_c_try_compile "$LINENO"; then :
2463   ac_lo=0 ac_mid=0
2464   while :; do
2465     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2466 /* end confdefs.h.  */
2467 $4
2468 int
2469 main ()
2470 {
2471 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2472 test_array [0] = 0;
2473 return test_array [0];
2474
2475   ;
2476   return 0;
2477 }
2478 _ACEOF
2479 if ac_fn_c_try_compile "$LINENO"; then :
2480   ac_hi=$ac_mid; break
2481 else
2482   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2483                         if test $ac_lo -le $ac_mid; then
2484                           ac_lo= ac_hi=
2485                           break
2486                         fi
2487                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2488 fi
2489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2490   done
2491 else
2492   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2493 /* end confdefs.h.  */
2494 $4
2495 int
2496 main ()
2497 {
2498 static int test_array [1 - 2 * !(($2) < 0)];
2499 test_array [0] = 0;
2500 return test_array [0];
2501
2502   ;
2503   return 0;
2504 }
2505 _ACEOF
2506 if ac_fn_c_try_compile "$LINENO"; then :
2507   ac_hi=-1 ac_mid=-1
2508   while :; do
2509     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2510 /* end confdefs.h.  */
2511 $4
2512 int
2513 main ()
2514 {
2515 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2516 test_array [0] = 0;
2517 return test_array [0];
2518
2519   ;
2520   return 0;
2521 }
2522 _ACEOF
2523 if ac_fn_c_try_compile "$LINENO"; then :
2524   ac_lo=$ac_mid; break
2525 else
2526   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2527                         if test $ac_mid -le $ac_hi; then
2528                           ac_lo= ac_hi=
2529                           break
2530                         fi
2531                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2532 fi
2533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2534   done
2535 else
2536   ac_lo= ac_hi=
2537 fi
2538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2539 fi
2540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2541 # Binary search between lo and hi bounds.
2542 while test "x$ac_lo" != "x$ac_hi"; do
2543   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2545 /* end confdefs.h.  */
2546 $4
2547 int
2548 main ()
2549 {
2550 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2551 test_array [0] = 0;
2552 return test_array [0];
2553
2554   ;
2555   return 0;
2556 }
2557 _ACEOF
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559   ac_hi=$ac_mid
2560 else
2561   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2562 fi
2563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2564 done
2565 case $ac_lo in #((
2566 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2567 '') ac_retval=1 ;;
2568 esac
2569   else
2570     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2571 /* end confdefs.h.  */
2572 $4
2573 static long int longval () { return $2; }
2574 static unsigned long int ulongval () { return $2; }
2575 #include <stdio.h>
2576 #include <stdlib.h>
2577 int
2578 main ()
2579 {
2580
2581   FILE *f = fopen ("conftest.val", "w");
2582   if (! f)
2583     return 1;
2584   if (($2) < 0)
2585     {
2586       long int i = longval ();
2587       if (i != ($2))
2588         return 1;
2589       fprintf (f, "%ld", i);
2590     }
2591   else
2592     {
2593       unsigned long int i = ulongval ();
2594       if (i != ($2))
2595         return 1;
2596       fprintf (f, "%lu", i);
2597     }
2598   /* Do not output a trailing newline, as this causes \r\n confusion
2599      on some platforms.  */
2600   return ferror (f) || fclose (f) != 0;
2601
2602   ;
2603   return 0;
2604 }
2605 _ACEOF
2606 if ac_fn_c_try_run "$LINENO"; then :
2607   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2608 else
2609   ac_retval=1
2610 fi
2611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2612   conftest.$ac_objext conftest.beam conftest.$ac_ext
2613 rm -f conftest.val
2614
2615   fi
2616   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617   as_fn_set_status $ac_retval
2618
2619 } # ac_fn_c_compute_int
2620
2621 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2622 # ----------------------------------------------------
2623 # Tries to find if the field MEMBER exists in type AGGR, after including
2624 # INCLUDES, setting cache variable VAR accordingly.
2625 ac_fn_c_check_member ()
2626 {
2627   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2628   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2629 $as_echo_n "checking for $2.$3... " >&6; }
2630 if eval \${$4+:} false; then :
2631   $as_echo_n "(cached) " >&6
2632 else
2633   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2634 /* end confdefs.h.  */
2635 $5
2636 int
2637 main ()
2638 {
2639 static $2 ac_aggr;
2640 if (ac_aggr.$3)
2641 return 0;
2642   ;
2643   return 0;
2644 }
2645 _ACEOF
2646 if ac_fn_c_try_compile "$LINENO"; then :
2647   eval "$4=yes"
2648 else
2649   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2650 /* end confdefs.h.  */
2651 $5
2652 int
2653 main ()
2654 {
2655 static $2 ac_aggr;
2656 if (sizeof ac_aggr.$3)
2657 return 0;
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 if ac_fn_c_try_compile "$LINENO"; then :
2663   eval "$4=yes"
2664 else
2665   eval "$4=no"
2666 fi
2667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2668 fi
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 fi
2671 eval ac_res=\$$4
2672                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2673 $as_echo "$ac_res" >&6; }
2674   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675
2676 } # ac_fn_c_check_member
2677
2678 # ac_fn_cxx_try_run LINENO
2679 # ------------------------
2680 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2681 # that executables *can* be run.
2682 ac_fn_cxx_try_run ()
2683 {
2684   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2685   if { { ac_try="$ac_link"
2686 case "(($ac_try" in
2687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2688   *) ac_try_echo=$ac_try;;
2689 esac
2690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2691 $as_echo "$ac_try_echo"; } >&5
2692   (eval "$ac_link") 2>&5
2693   ac_status=$?
2694   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2695   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2696   { { case "(($ac_try" in
2697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2698   *) ac_try_echo=$ac_try;;
2699 esac
2700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2701 $as_echo "$ac_try_echo"; } >&5
2702   (eval "$ac_try") 2>&5
2703   ac_status=$?
2704   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2705   test $ac_status = 0; }; }; then :
2706   ac_retval=0
2707 else
2708   $as_echo "$as_me: program exited with status $ac_status" >&5
2709        $as_echo "$as_me: failed program was:" >&5
2710 sed 's/^/| /' conftest.$ac_ext >&5
2711
2712        ac_retval=$ac_status
2713 fi
2714   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2715   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2716   as_fn_set_status $ac_retval
2717
2718 } # ac_fn_cxx_try_run
2719
2720 # ac_fn_cxx_check_func LINENO FUNC VAR
2721 # ------------------------------------
2722 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2723 ac_fn_cxx_check_func ()
2724 {
2725   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2727 $as_echo_n "checking for $2... " >&6; }
2728 if eval \${$3+:} false; then :
2729   $as_echo_n "(cached) " >&6
2730 else
2731   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2732 /* end confdefs.h.  */
2733 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2734    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2735 #define $2 innocuous_$2
2736
2737 /* System header to define __stub macros and hopefully few prototypes,
2738     which can conflict with char $2 (); below.
2739     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2740     <limits.h> exists even on freestanding compilers.  */
2741
2742 #ifdef __STDC__
2743 # include <limits.h>
2744 #else
2745 # include <assert.h>
2746 #endif
2747
2748 #undef $2
2749
2750 /* Override any GCC internal prototype to avoid an error.
2751    Use char because int might match the return type of a GCC
2752    builtin and then its argument prototype would still apply.  */
2753 #ifdef __cplusplus
2754 extern "C"
2755 #endif
2756 char $2 ();
2757 /* The GNU C library defines this for functions which it implements
2758     to always fail with ENOSYS.  Some functions are actually named
2759     something starting with __ and the normal name is an alias.  */
2760 #if defined __stub_$2 || defined __stub___$2
2761 choke me
2762 #endif
2763
2764 int
2765 main ()
2766 {
2767 return $2 ();
2768   ;
2769   return 0;
2770 }
2771 _ACEOF
2772 if ac_fn_cxx_try_link "$LINENO"; then :
2773   eval "$3=yes"
2774 else
2775   eval "$3=no"
2776 fi
2777 rm -f core conftest.err conftest.$ac_objext \
2778     conftest$ac_exeext conftest.$ac_ext
2779 fi
2780 eval ac_res=\$$3
2781                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2782 $as_echo "$ac_res" >&6; }
2783   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2784
2785 } # ac_fn_cxx_check_func
2786 cat >config.log <<_ACEOF
2787 This file contains any messages produced by compilers while
2788 running configure, to aid debugging if configure makes a mistake.
2789
2790 It was created by bacula $as_me 9.0.6, which was
2791 generated by GNU Autoconf 2.69.  Invocation command line was
2792
2793   $ $0 $@
2794
2795 _ACEOF
2796 exec 5>>config.log
2797 {
2798 cat <<_ASUNAME
2799 ## --------- ##
2800 ## Platform. ##
2801 ## --------- ##
2802
2803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2808
2809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2810 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2811
2812 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2813 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2815 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2816 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2817 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2818 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2819
2820 _ASUNAME
2821
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825   IFS=$as_save_IFS
2826   test -z "$as_dir" && as_dir=.
2827     $as_echo "PATH: $as_dir"
2828   done
2829 IFS=$as_save_IFS
2830
2831 } >&5
2832
2833 cat >&5 <<_ACEOF
2834
2835
2836 ## ----------- ##
2837 ## Core tests. ##
2838 ## ----------- ##
2839
2840 _ACEOF
2841
2842
2843 # Keep a trace of the command line.
2844 # Strip out --no-create and --no-recursion so they do not pile up.
2845 # Strip out --silent because we don't want to record it for future runs.
2846 # Also quote any args containing shell meta-characters.
2847 # Make two passes to allow for proper duplicate-argument suppression.
2848 ac_configure_args=
2849 ac_configure_args0=
2850 ac_configure_args1=
2851 ac_must_keep_next=false
2852 for ac_pass in 1 2
2853 do
2854   for ac_arg
2855   do
2856     case $ac_arg in
2857     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2858     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2859     | -silent | --silent | --silen | --sile | --sil)
2860       continue ;;
2861     *\'*)
2862       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2863     esac
2864     case $ac_pass in
2865     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2866     2)
2867       as_fn_append ac_configure_args1 " '$ac_arg'"
2868       if test $ac_must_keep_next = true; then
2869         ac_must_keep_next=false # Got value, back to normal.
2870       else
2871         case $ac_arg in
2872           *=* | --config-cache | -C | -disable-* | --disable-* \
2873           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2874           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2875           | -with-* | --with-* | -without-* | --without-* | --x)
2876             case "$ac_configure_args0 " in
2877               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2878             esac
2879             ;;
2880           -* ) ac_must_keep_next=true ;;
2881         esac
2882       fi
2883       as_fn_append ac_configure_args " '$ac_arg'"
2884       ;;
2885     esac
2886   done
2887 done
2888 { ac_configure_args0=; unset ac_configure_args0;}
2889 { ac_configure_args1=; unset ac_configure_args1;}
2890
2891 # When interrupted or exit'd, cleanup temporary files, and complete
2892 # config.log.  We remove comments because anyway the quotes in there
2893 # would cause problems or look ugly.
2894 # WARNING: Use '\'' to represent an apostrophe within the trap.
2895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2896 trap 'exit_status=$?
2897   # Save into config.log some information that might help in debugging.
2898   {
2899     echo
2900
2901     $as_echo "## ---------------- ##
2902 ## Cache variables. ##
2903 ## ---------------- ##"
2904     echo
2905     # The following way of writing the cache mishandles newlines in values,
2906 (
2907   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2908     eval ac_val=\$$ac_var
2909     case $ac_val in #(
2910     *${as_nl}*)
2911       case $ac_var in #(
2912       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2913 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2914       esac
2915       case $ac_var in #(
2916       _ | IFS | as_nl) ;; #(
2917       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2918       *) { eval $ac_var=; unset $ac_var;} ;;
2919       esac ;;
2920     esac
2921   done
2922   (set) 2>&1 |
2923     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2924     *${as_nl}ac_space=\ *)
2925       sed -n \
2926         "s/'\''/'\''\\\\'\'''\''/g;
2927           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2928       ;; #(
2929     *)
2930       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2931       ;;
2932     esac |
2933     sort
2934 )
2935     echo
2936
2937     $as_echo "## ----------------- ##
2938 ## Output variables. ##
2939 ## ----------------- ##"
2940     echo
2941     for ac_var in $ac_subst_vars
2942     do
2943       eval ac_val=\$$ac_var
2944       case $ac_val in
2945       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2946       esac
2947       $as_echo "$ac_var='\''$ac_val'\''"
2948     done | sort
2949     echo
2950
2951     if test -n "$ac_subst_files"; then
2952       $as_echo "## ------------------- ##
2953 ## File substitutions. ##
2954 ## ------------------- ##"
2955       echo
2956       for ac_var in $ac_subst_files
2957       do
2958         eval ac_val=\$$ac_var
2959         case $ac_val in
2960         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2961         esac
2962         $as_echo "$ac_var='\''$ac_val'\''"
2963       done | sort
2964       echo
2965     fi
2966
2967     if test -s confdefs.h; then
2968       $as_echo "## ----------- ##
2969 ## confdefs.h. ##
2970 ## ----------- ##"
2971       echo
2972       cat confdefs.h
2973       echo
2974     fi
2975     test "$ac_signal" != 0 &&
2976       $as_echo "$as_me: caught signal $ac_signal"
2977     $as_echo "$as_me: exit $exit_status"
2978   } >&5
2979   rm -f core *.core core.conftest.* &&
2980     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2981     exit $exit_status
2982 ' 0
2983 for ac_signal in 1 2 13 15; do
2984   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2985 done
2986 ac_signal=0
2987
2988 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2989 rm -f -r conftest* confdefs.h
2990
2991 $as_echo "/* confdefs.h */" > confdefs.h
2992
2993 # Predefined preprocessor variables.
2994
2995 cat >>confdefs.h <<_ACEOF
2996 #define PACKAGE_NAME "$PACKAGE_NAME"
2997 _ACEOF
2998
2999 cat >>confdefs.h <<_ACEOF
3000 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3001 _ACEOF
3002
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3005 _ACEOF
3006
3007 cat >>confdefs.h <<_ACEOF
3008 #define PACKAGE_STRING "$PACKAGE_STRING"
3009 _ACEOF
3010
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3013 _ACEOF
3014
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_URL "$PACKAGE_URL"
3017 _ACEOF
3018
3019
3020 # Let the site file select an alternate cache file if it wants to.
3021 # Prefer an explicitly selected file to automatically selected ones.
3022 ac_site_file1=NONE
3023 ac_site_file2=NONE
3024 if test -n "$CONFIG_SITE"; then
3025   # We do not want a PATH search for config.site.
3026   case $CONFIG_SITE in #((
3027     -*)  ac_site_file1=./$CONFIG_SITE;;
3028     */*) ac_site_file1=$CONFIG_SITE;;
3029     *)   ac_site_file1=./$CONFIG_SITE;;
3030   esac
3031 elif test "x$prefix" != xNONE; then
3032   ac_site_file1=$prefix/share/config.site
3033   ac_site_file2=$prefix/etc/config.site
3034 else
3035   ac_site_file1=$ac_default_prefix/share/config.site
3036   ac_site_file2=$ac_default_prefix/etc/config.site
3037 fi
3038 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3039 do
3040   test "x$ac_site_file" = xNONE && continue
3041   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3042     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3043 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3044     sed 's/^/| /' "$ac_site_file" >&5
3045     . "$ac_site_file" \
3046       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3048 as_fn_error $? "failed to load site script $ac_site_file
3049 See \`config.log' for more details" "$LINENO" 5; }
3050   fi
3051 done
3052
3053 if test -r "$cache_file"; then
3054   # Some versions of bash will fail to source /dev/null (special files
3055   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3056   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3057     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3058 $as_echo "$as_me: loading cache $cache_file" >&6;}
3059     case $cache_file in
3060       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3061       *)                      . "./$cache_file";;
3062     esac
3063   fi
3064 else
3065   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3066 $as_echo "$as_me: creating cache $cache_file" >&6;}
3067   >$cache_file
3068 fi
3069
3070 as_fn_append ac_header_list " stdlib.h"
3071 as_fn_append ac_header_list " unistd.h"
3072 as_fn_append ac_header_list " sys/param.h"
3073 # Check that the precious variables saved in the cache have kept the same
3074 # value.
3075 ac_cache_corrupted=false
3076 for ac_var in $ac_precious_vars; do
3077   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3078   eval ac_new_set=\$ac_env_${ac_var}_set
3079   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3080   eval ac_new_val=\$ac_env_${ac_var}_value
3081   case $ac_old_set,$ac_new_set in
3082     set,)
3083       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3084 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3085       ac_cache_corrupted=: ;;
3086     ,set)
3087       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3088 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3089       ac_cache_corrupted=: ;;
3090     ,);;
3091     *)
3092       if test "x$ac_old_val" != "x$ac_new_val"; then
3093         # differences in whitespace do not lead to failure.
3094         ac_old_val_w=`echo x $ac_old_val`
3095         ac_new_val_w=`echo x $ac_new_val`
3096         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3097           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3098 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3099           ac_cache_corrupted=:
3100         else
3101           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3102 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3103           eval $ac_var=\$ac_old_val
3104         fi
3105         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3106 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3107         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3108 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3109       fi;;
3110   esac
3111   # Pass precious variables to config.status.
3112   if test "$ac_new_set" = set; then
3113     case $ac_new_val in
3114     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3115     *) ac_arg=$ac_var=$ac_new_val ;;
3116     esac
3117     case " $ac_configure_args " in
3118       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3119       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3120     esac
3121   fi
3122 done
3123 if $ac_cache_corrupted; then
3124   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3126   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3127 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3128   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3129 fi
3130 ## -------------------- ##
3131 ## Main body of script. ##
3132 ## -------------------- ##
3133
3134 ac_ext=c
3135 ac_cpp='$CPP $CPPFLAGS'
3136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3139
3140
3141
3142
3143 BUILD_DIR=`pwd`
3144 cd ..
3145 TOP_DIR=`pwd`
3146 cd ${BUILD_DIR}
3147
3148
3149 ac_aux_dir=
3150 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3151   if test -f "$ac_dir/install-sh"; then
3152     ac_aux_dir=$ac_dir
3153     ac_install_sh="$ac_aux_dir/install-sh -c"
3154     break
3155   elif test -f "$ac_dir/install.sh"; then
3156     ac_aux_dir=$ac_dir
3157     ac_install_sh="$ac_aux_dir/install.sh -c"
3158     break
3159   elif test -f "$ac_dir/shtool"; then
3160     ac_aux_dir=$ac_dir
3161     ac_install_sh="$ac_aux_dir/shtool install -c"
3162     break
3163   fi
3164 done
3165 if test -z "$ac_aux_dir"; then
3166   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3167 fi
3168
3169 # These three variables are undocumented and unsupported,
3170 # and are intended to be withdrawn in a future Autoconf release.
3171 # They can cause serious problems if a builder's source tree is in a directory
3172 # whose full name contains unusual characters.
3173 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3174 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3175 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3176
3177
3178 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3179
3180
3181 for ac_prog in true
3182 do
3183   # Extract the first word of "$ac_prog", so it can be a program name with args.
3184 set dummy $ac_prog; ac_word=$2
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186 $as_echo_n "checking for $ac_word... " >&6; }
3187 if ${ac_cv_path_TRUEPRG+:} false; then :
3188   $as_echo_n "(cached) " >&6
3189 else
3190   case $TRUEPRG in
3191   [\\/]* | ?:[\\/]*)
3192   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3193   ;;
3194   *)
3195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198   IFS=$as_save_IFS
3199   test -z "$as_dir" && as_dir=.
3200     for ac_exec_ext in '' $ac_executable_extensions; do
3201   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3203     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204     break 2
3205   fi
3206 done
3207   done
3208 IFS=$as_save_IFS
3209
3210   ;;
3211 esac
3212 fi
3213 TRUEPRG=$ac_cv_path_TRUEPRG
3214 if test -n "$TRUEPRG"; then
3215   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3216 $as_echo "$TRUEPRG" >&6; }
3217 else
3218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3220 fi
3221
3222
3223   test -n "$TRUEPRG" && break
3224 done
3225 test -n "$TRUEPRG" || TRUEPRG=":"
3226
3227 for ac_prog in false
3228 do
3229   # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_path_FALSEPRG+:} false; then :
3234   $as_echo_n "(cached) " >&6
3235 else
3236   case $FALSEPRG in
3237   [\\/]* | ?:[\\/]*)
3238   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3239   ;;
3240   *)
3241   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3243 do
3244   IFS=$as_save_IFS
3245   test -z "$as_dir" && as_dir=.
3246     for ac_exec_ext in '' $ac_executable_extensions; do
3247   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3249     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250     break 2
3251   fi
3252 done
3253   done
3254 IFS=$as_save_IFS
3255
3256   ;;
3257 esac
3258 fi
3259 FALSEPRG=$ac_cv_path_FALSEPRG
3260 if test -n "$FALSEPRG"; then
3261   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3262 $as_echo "$FALSEPRG" >&6; }
3263 else
3264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3266 fi
3267
3268
3269   test -n "$FALSEPRG" && break
3270 done
3271 test -n "$FALSEPRG" || FALSEPRG=":"
3272
3273
3274
3275 post_host=
3276 if test "x$BACULA" != x; then
3277    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3278 fi
3279 BACULA=${BACULA:-Bacula}
3280 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3281 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3282 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3283 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3285 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3286 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3287 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3288 VIX_VERSION=`sed -n -e 's/^#define VIX_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3289 JAVA_VERSION=`sed -n -e 's/^#define JAVA_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3290 NDMP_VERSION=`sed -n -e 's/^#define NDMP_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3291 LIBRSYNC_VERSION=`sed -n -e 's/^#define LIBRSYNC_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3292
3293
3294 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3295 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3296 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3297
3298 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3299 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3300
3301
3302 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3303 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3304
3305 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3306 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3307
3308
3309 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3310
3311 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3312
3313
3314 PFILES="platforms/Makefile"
3315
3316 echo "configuring for ${BACULA} $VERSION ($DATE)"
3317
3318
3319
3320 ac_ext=c
3321 ac_cpp='$CPP $CPPFLAGS'
3322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3325 if test -n "$ac_tool_prefix"; then
3326   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3327 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3329 $as_echo_n "checking for $ac_word... " >&6; }
3330 if ${ac_cv_prog_CC+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if test -n "$CC"; then
3334   ac_cv_prog_CC="$CC" # Let the user override the test.
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339   IFS=$as_save_IFS
3340   test -z "$as_dir" && as_dir=.
3341     for ac_exec_ext in '' $ac_executable_extensions; do
3342   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3343     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3344     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3345     break 2
3346   fi
3347 done
3348   done
3349 IFS=$as_save_IFS
3350
3351 fi
3352 fi
3353 CC=$ac_cv_prog_CC
3354 if test -n "$CC"; then
3355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3356 $as_echo "$CC" >&6; }
3357 else
3358   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3359 $as_echo "no" >&6; }
3360 fi
3361
3362
3363 fi
3364 if test -z "$ac_cv_prog_CC"; then
3365   ac_ct_CC=$CC
3366   # Extract the first word of "gcc", so it can be a program name with args.
3367 set dummy gcc; ac_word=$2
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3369 $as_echo_n "checking for $ac_word... " >&6; }
3370 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3371   $as_echo_n "(cached) " >&6
3372 else
3373   if test -n "$ac_ct_CC"; then
3374   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3375 else
3376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3377 for as_dir in $PATH
3378 do
3379   IFS=$as_save_IFS
3380   test -z "$as_dir" && as_dir=.
3381     for ac_exec_ext in '' $ac_executable_extensions; do
3382   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3383     ac_cv_prog_ac_ct_CC="gcc"
3384     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385     break 2
3386   fi
3387 done
3388   done
3389 IFS=$as_save_IFS
3390
3391 fi
3392 fi
3393 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3394 if test -n "$ac_ct_CC"; then
3395   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3396 $as_echo "$ac_ct_CC" >&6; }
3397 else
3398   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402   if test "x$ac_ct_CC" = x; then
3403     CC=""
3404   else
3405     case $cross_compiling:$ac_tool_warned in
3406 yes:)
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3409 ac_tool_warned=yes ;;
3410 esac
3411     CC=$ac_ct_CC
3412   fi
3413 else
3414   CC="$ac_cv_prog_CC"
3415 fi
3416
3417 if test -z "$CC"; then
3418           if test -n "$ac_tool_prefix"; then
3419     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3420 set dummy ${ac_tool_prefix}cc; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if ${ac_cv_prog_CC+:} false; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$CC"; then
3427   ac_cv_prog_CC="$CC" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3436     ac_cv_prog_CC="${ac_tool_prefix}cc"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 CC=$ac_cv_prog_CC
3447 if test -n "$CC"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3449 $as_echo "$CC" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455
3456   fi
3457 fi
3458 if test -z "$CC"; then
3459   # Extract the first word of "cc", so it can be a program name with args.
3460 set dummy cc; ac_word=$2
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3462 $as_echo_n "checking for $ac_word... " >&6; }
3463 if ${ac_cv_prog_CC+:} false; then :
3464   $as_echo_n "(cached) " >&6
3465 else
3466   if test -n "$CC"; then
3467   ac_cv_prog_CC="$CC" # Let the user override the test.
3468 else
3469   ac_prog_rejected=no
3470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3471 for as_dir in $PATH
3472 do
3473   IFS=$as_save_IFS
3474   test -z "$as_dir" && as_dir=.
3475     for ac_exec_ext in '' $ac_executable_extensions; do
3476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3477     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3478        ac_prog_rejected=yes
3479        continue
3480      fi
3481     ac_cv_prog_CC="cc"
3482     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483     break 2
3484   fi
3485 done
3486   done
3487 IFS=$as_save_IFS
3488
3489 if test $ac_prog_rejected = yes; then
3490   # We found a bogon in the path, so make sure we never use it.
3491   set dummy $ac_cv_prog_CC
3492   shift
3493   if test $# != 0; then
3494     # We chose a different compiler from the bogus one.
3495     # However, it has the same basename, so the bogon will be chosen
3496     # first if we set CC to just the basename; use the full file name.
3497     shift
3498     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3499   fi
3500 fi
3501 fi
3502 fi
3503 CC=$ac_cv_prog_CC
3504 if test -n "$CC"; then
3505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3506 $as_echo "$CC" >&6; }
3507 else
3508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3509 $as_echo "no" >&6; }
3510 fi
3511
3512
3513 fi
3514 if test -z "$CC"; then
3515   if test -n "$ac_tool_prefix"; then
3516   for ac_prog in cl.exe
3517   do
3518     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3519 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_CC+:} false; then :
3523   $as_echo_n "(cached) " >&6
3524 else
3525   if test -n "$CC"; then
3526   ac_cv_prog_CC="$CC" # Let the user override the test.
3527 else
3528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3529 for as_dir in $PATH
3530 do
3531   IFS=$as_save_IFS
3532   test -z "$as_dir" && as_dir=.
3533     for ac_exec_ext in '' $ac_executable_extensions; do
3534   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3535     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3536     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537     break 2
3538   fi
3539 done
3540   done
3541 IFS=$as_save_IFS
3542
3543 fi
3544 fi
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555     test -n "$CC" && break
3556   done
3557 fi
3558 if test -z "$CC"; then
3559   ac_ct_CC=$CC
3560   for ac_prog in cl.exe
3561 do
3562   # Extract the first word of "$ac_prog", so it can be a program name with args.
3563 set dummy $ac_prog; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3567   $as_echo_n "(cached) " >&6
3568 else
3569   if test -n "$ac_ct_CC"; then
3570   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575   IFS=$as_save_IFS
3576   test -z "$as_dir" && as_dir=.
3577     for ac_exec_ext in '' $ac_executable_extensions; do
3578   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579     ac_cv_prog_ac_ct_CC="$ac_prog"
3580     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581     break 2
3582   fi
3583 done
3584   done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3590 if test -n "$ac_ct_CC"; then
3591   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3592 $as_echo "$ac_ct_CC" >&6; }
3593 else
3594   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599   test -n "$ac_ct_CC" && break
3600 done
3601
3602   if test "x$ac_ct_CC" = x; then
3603     CC=""
3604   else
3605     case $cross_compiling:$ac_tool_warned in
3606 yes:)
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3608 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3609 ac_tool_warned=yes ;;
3610 esac
3611     CC=$ac_ct_CC
3612   fi
3613 fi
3614
3615 fi
3616
3617
3618 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3620 as_fn_error $? "no acceptable C compiler found in \$PATH
3621 See \`config.log' for more details" "$LINENO" 5; }
3622
3623 # Provide some information about the compiler.
3624 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3625 set X $ac_compile
3626 ac_compiler=$2
3627 for ac_option in --version -v -V -qversion; do
3628   { { ac_try="$ac_compiler $ac_option >&5"
3629 case "(($ac_try" in
3630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3631   *) ac_try_echo=$ac_try;;
3632 esac
3633 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3634 $as_echo "$ac_try_echo"; } >&5
3635   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3636   ac_status=$?
3637   if test -s conftest.err; then
3638     sed '10a\
3639 ... rest of stderr output deleted ...
3640          10q' conftest.err >conftest.er1
3641     cat conftest.er1 >&5
3642   fi
3643   rm -f conftest.er1 conftest.err
3644   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3645   test $ac_status = 0; }
3646 done
3647
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h.  */
3650
3651 int
3652 main ()
3653 {
3654
3655   ;
3656   return 0;
3657 }
3658 _ACEOF
3659 ac_clean_files_save=$ac_clean_files
3660 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3661 # Try to create an executable without -o first, disregard a.out.
3662 # It will help us diagnose broken compilers, and finding out an intuition
3663 # of exeext.
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3665 $as_echo_n "checking whether the C compiler works... " >&6; }
3666 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3667
3668 # The possible output files:
3669 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3670
3671 ac_rmfiles=
3672 for ac_file in $ac_files
3673 do
3674   case $ac_file in
3675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3676     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3677   esac
3678 done
3679 rm -f $ac_rmfiles
3680
3681 if { { ac_try="$ac_link_default"
3682 case "(($ac_try" in
3683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3684   *) ac_try_echo=$ac_try;;
3685 esac
3686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3687 $as_echo "$ac_try_echo"; } >&5
3688   (eval "$ac_link_default") 2>&5
3689   ac_status=$?
3690   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3691   test $ac_status = 0; }; then :
3692   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3693 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3694 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3695 # so that the user can short-circuit this test for compilers unknown to
3696 # Autoconf.
3697 for ac_file in $ac_files ''
3698 do
3699   test -f "$ac_file" || continue
3700   case $ac_file in
3701     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3702         ;;
3703     [ab].out )
3704         # We found the default executable, but exeext='' is most
3705         # certainly right.
3706         break;;
3707     *.* )
3708         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3709         then :; else
3710            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3711         fi
3712         # We set ac_cv_exeext here because the later test for it is not
3713         # safe: cross compilers may not add the suffix if given an `-o'
3714         # argument, so we may need to know it at that point already.
3715         # Even if this section looks crufty: it has the advantage of
3716         # actually working.
3717         break;;
3718     * )
3719         break;;
3720   esac
3721 done
3722 test "$ac_cv_exeext" = no && ac_cv_exeext=
3723
3724 else
3725   ac_file=''
3726 fi
3727 if test -z "$ac_file"; then :
3728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729 $as_echo "no" >&6; }
3730 $as_echo "$as_me: failed program was:" >&5
3731 sed 's/^/| /' conftest.$ac_ext >&5
3732
3733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3735 as_fn_error 77 "C compiler cannot create executables
3736 See \`config.log' for more details" "$LINENO" 5; }
3737 else
3738   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3739 $as_echo "yes" >&6; }
3740 fi
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3742 $as_echo_n "checking for C compiler default output file name... " >&6; }
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3744 $as_echo "$ac_file" >&6; }
3745 ac_exeext=$ac_cv_exeext
3746
3747 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3748 ac_clean_files=$ac_clean_files_save
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3750 $as_echo_n "checking for suffix of executables... " >&6; }
3751 if { { ac_try="$ac_link"
3752 case "(($ac_try" in
3753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754   *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758   (eval "$ac_link") 2>&5
3759   ac_status=$?
3760   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761   test $ac_status = 0; }; then :
3762   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3763 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3764 # work properly (i.e., refer to `conftest.exe'), while it won't with
3765 # `rm'.
3766 for ac_file in conftest.exe conftest conftest.*; do
3767   test -f "$ac_file" || continue
3768   case $ac_file in
3769     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3770     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3771           break;;
3772     * ) break;;
3773   esac
3774 done
3775 else
3776   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3777 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3779 See \`config.log' for more details" "$LINENO" 5; }
3780 fi
3781 rm -f conftest conftest$ac_cv_exeext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3783 $as_echo "$ac_cv_exeext" >&6; }
3784
3785 rm -f conftest.$ac_ext
3786 EXEEXT=$ac_cv_exeext
3787 ac_exeext=$EXEEXT
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h.  */
3790 #include <stdio.h>
3791 int
3792 main ()
3793 {
3794 FILE *f = fopen ("conftest.out", "w");
3795  return ferror (f) || fclose (f) != 0;
3796
3797   ;
3798   return 0;
3799 }
3800 _ACEOF
3801 ac_clean_files="$ac_clean_files conftest.out"
3802 # Check that the compiler produces executables we can run.  If not, either
3803 # the compiler is broken, or we cross compile.
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3805 $as_echo_n "checking whether we are cross compiling... " >&6; }
3806 if test "$cross_compiling" != yes; then
3807   { { ac_try="$ac_link"
3808 case "(($ac_try" in
3809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810   *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814   (eval "$ac_link") 2>&5
3815   ac_status=$?
3816   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817   test $ac_status = 0; }
3818   if { ac_try='./conftest$ac_cv_exeext'
3819   { { case "(($ac_try" in
3820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821   *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825   (eval "$ac_try") 2>&5
3826   ac_status=$?
3827   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828   test $ac_status = 0; }; }; then
3829     cross_compiling=no
3830   else
3831     if test "$cross_compiling" = maybe; then
3832         cross_compiling=yes
3833     else
3834         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error $? "cannot run C compiled programs.
3837 If you meant to cross compile, use \`--host'.
3838 See \`config.log' for more details" "$LINENO" 5; }
3839     fi
3840   fi
3841 fi
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3843 $as_echo "$cross_compiling" >&6; }
3844
3845 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3846 ac_clean_files=$ac_clean_files_save
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3848 $as_echo_n "checking for suffix of object files... " >&6; }
3849 if ${ac_cv_objext+:} false; then :
3850   $as_echo_n "(cached) " >&6
3851 else
3852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3853 /* end confdefs.h.  */
3854
3855 int
3856 main ()
3857 {
3858
3859   ;
3860   return 0;
3861 }
3862 _ACEOF
3863 rm -f conftest.o conftest.obj
3864 if { { ac_try="$ac_compile"
3865 case "(($ac_try" in
3866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3867   *) ac_try_echo=$ac_try;;
3868 esac
3869 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3870 $as_echo "$ac_try_echo"; } >&5
3871   (eval "$ac_compile") 2>&5
3872   ac_status=$?
3873   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3874   test $ac_status = 0; }; then :
3875   for ac_file in conftest.o conftest.obj conftest.*; do
3876   test -f "$ac_file" || continue;
3877   case $ac_file in
3878     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3879     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3880        break;;
3881   esac
3882 done
3883 else
3884   $as_echo "$as_me: failed program was:" >&5
3885 sed 's/^/| /' conftest.$ac_ext >&5
3886
3887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3889 as_fn_error $? "cannot compute suffix of object files: cannot compile
3890 See \`config.log' for more details" "$LINENO" 5; }
3891 fi
3892 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3893 fi
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3895 $as_echo "$ac_cv_objext" >&6; }
3896 OBJEXT=$ac_cv_objext
3897 ac_objext=$OBJEXT
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3899 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3900 if ${ac_cv_c_compiler_gnu+:} false; then :
3901   $as_echo_n "(cached) " >&6
3902 else
3903   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h.  */
3905
3906 int
3907 main ()
3908 {
3909 #ifndef __GNUC__
3910        choke me
3911 #endif
3912
3913   ;
3914   return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918   ac_compiler_gnu=yes
3919 else
3920   ac_compiler_gnu=no
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3924
3925 fi
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3927 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3928 if test $ac_compiler_gnu = yes; then
3929   GCC=yes
3930 else
3931   GCC=
3932 fi
3933 ac_test_CFLAGS=${CFLAGS+set}
3934 ac_save_CFLAGS=$CFLAGS
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3936 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3937 if ${ac_cv_prog_cc_g+:} false; then :
3938   $as_echo_n "(cached) " >&6
3939 else
3940   ac_save_c_werror_flag=$ac_c_werror_flag
3941    ac_c_werror_flag=yes
3942    ac_cv_prog_cc_g=no
3943    CFLAGS="-g"
3944    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3945 /* end confdefs.h.  */
3946
3947 int
3948 main ()
3949 {
3950
3951   ;
3952   return 0;
3953 }
3954 _ACEOF
3955 if ac_fn_c_try_compile "$LINENO"; then :
3956   ac_cv_prog_cc_g=yes
3957 else
3958   CFLAGS=""
3959       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h.  */
3961
3962 int
3963 main ()
3964 {
3965
3966   ;
3967   return 0;
3968 }
3969 _ACEOF
3970 if ac_fn_c_try_compile "$LINENO"; then :
3971
3972 else
3973   ac_c_werror_flag=$ac_save_c_werror_flag
3974          CFLAGS="-g"
3975          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976 /* end confdefs.h.  */
3977
3978 int
3979 main ()
3980 {
3981
3982   ;
3983   return 0;
3984 }
3985 _ACEOF
3986 if ac_fn_c_try_compile "$LINENO"; then :
3987   ac_cv_prog_cc_g=yes
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 fi
3991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3992 fi
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994    ac_c_werror_flag=$ac_save_c_werror_flag
3995 fi
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3997 $as_echo "$ac_cv_prog_cc_g" >&6; }
3998 if test "$ac_test_CFLAGS" = set; then
3999   CFLAGS=$ac_save_CFLAGS
4000 elif test $ac_cv_prog_cc_g = yes; then
4001   if test "$GCC" = yes; then
4002     CFLAGS="-g -O2"
4003   else
4004     CFLAGS="-g"
4005   fi
4006 else
4007   if test "$GCC" = yes; then
4008     CFLAGS="-O2"
4009   else
4010     CFLAGS=
4011   fi
4012 fi
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015 if ${ac_cv_prog_cc_c89+:} false; then :
4016   $as_echo_n "(cached) " >&6
4017 else
4018   ac_cv_prog_cc_c89=no
4019 ac_save_CC=$CC
4020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4021 /* end confdefs.h.  */
4022 #include <stdarg.h>
4023 #include <stdio.h>
4024 struct stat;
4025 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4026 struct buf { int x; };
4027 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4028 static char *e (p, i)
4029      char **p;
4030      int i;
4031 {
4032   return p[i];
4033 }
4034 static char *f (char * (*g) (char **, int), char **p, ...)
4035 {
4036   char *s;
4037   va_list v;
4038   va_start (v,p);
4039   s = g (p, va_arg (v,int));
4040   va_end (v);
4041   return s;
4042 }
4043
4044 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4045    function prototypes and stuff, but not '\xHH' hex character constants.
4046    These don't provoke an error unfortunately, instead are silently treated
4047    as 'x'.  The following induces an error, until -std is added to get
4048    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4049    array size at least.  It's necessary to write '\x00'==0 to get something
4050    that's true only with -std.  */
4051 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4052
4053 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4054    inside strings and character constants.  */
4055 #define FOO(x) 'x'
4056 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4057
4058 int test (int i, double x);
4059 struct s1 {int (*f) (int a);};
4060 struct s2 {int (*f) (double a);};
4061 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4062 int argc;
4063 char **argv;
4064 int
4065 main ()
4066 {
4067 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4068   ;
4069   return 0;
4070 }
4071 _ACEOF
4072 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4073         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4074 do
4075   CC="$ac_save_CC $ac_arg"
4076   if ac_fn_c_try_compile "$LINENO"; then :
4077   ac_cv_prog_cc_c89=$ac_arg
4078 fi
4079 rm -f core conftest.err conftest.$ac_objext
4080   test "x$ac_cv_prog_cc_c89" != "xno" && break
4081 done
4082 rm -f conftest.$ac_ext
4083 CC=$ac_save_CC
4084
4085 fi
4086 # AC_CACHE_VAL
4087 case "x$ac_cv_prog_cc_c89" in
4088   x)
4089     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4090 $as_echo "none needed" >&6; } ;;
4091   xno)
4092     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4093 $as_echo "unsupported" >&6; } ;;
4094   *)
4095     CC="$CC $ac_cv_prog_cc_c89"
4096     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4097 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4098 esac
4099 if test "x$ac_cv_prog_cc_c89" != xno; then :
4100
4101 fi
4102
4103 ac_ext=c
4104 ac_cpp='$CPP $CPPFLAGS'
4105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108                 ac_ext=cpp
4109 ac_cpp='$CXXCPP $CPPFLAGS'
4110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4113 if test -z "$CXX"; then
4114   if test -n "$CCC"; then
4115     CXX=$CCC
4116   else
4117     if test -n "$ac_tool_prefix"; then
4118   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4119   do
4120     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CXX+:} false; then :
4125   $as_echo_n "(cached) " >&6
4126 else
4127   if test -n "$CXX"; then
4128   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133   IFS=$as_save_IFS
4134   test -z "$as_dir" && as_dir=.
4135     for ac_exec_ext in '' $ac_executable_extensions; do
4136   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4137     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4138     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4139     break 2
4140   fi
4141 done
4142   done
4143 IFS=$as_save_IFS
4144
4145 fi
4146 fi
4147 CXX=$ac_cv_prog_CXX
4148 if test -n "$CXX"; then
4149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4150 $as_echo "$CXX" >&6; }
4151 else
4152   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4153 $as_echo "no" >&6; }
4154 fi
4155
4156
4157     test -n "$CXX" && break
4158   done
4159 fi
4160 if test -z "$CXX"; then
4161   ac_ct_CXX=$CXX
4162   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4163 do
4164   # Extract the first word of "$ac_prog", so it can be a program name with args.
4165 set dummy $ac_prog; ac_word=$2
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4167 $as_echo_n "checking for $ac_word... " >&6; }
4168 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4169   $as_echo_n "(cached) " >&6
4170 else
4171   if test -n "$ac_ct_CXX"; then
4172   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4173 else
4174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4175 for as_dir in $PATH
4176 do
4177   IFS=$as_save_IFS
4178   test -z "$as_dir" && as_dir=.
4179     for ac_exec_ext in '' $ac_executable_extensions; do
4180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4181     ac_cv_prog_ac_ct_CXX="$ac_prog"
4182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4183     break 2
4184   fi
4185 done
4186   done
4187 IFS=$as_save_IFS
4188
4189 fi
4190 fi
4191 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4192 if test -n "$ac_ct_CXX"; then
4193   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4194 $as_echo "$ac_ct_CXX" >&6; }
4195 else
4196   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197 $as_echo "no" >&6; }
4198 fi
4199
4200
4201   test -n "$ac_ct_CXX" && break
4202 done
4203
4204   if test "x$ac_ct_CXX" = x; then
4205     CXX="g++"
4206   else
4207     case $cross_compiling:$ac_tool_warned in
4208 yes:)
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4211 ac_tool_warned=yes ;;
4212 esac
4213     CXX=$ac_ct_CXX
4214   fi
4215 fi
4216
4217   fi
4218 fi
4219 # Provide some information about the compiler.
4220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4221 set X $ac_compile
4222 ac_compiler=$2
4223 for ac_option in --version -v -V -qversion; do
4224   { { ac_try="$ac_compiler $ac_option >&5"
4225 case "(($ac_try" in
4226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4227   *) ac_try_echo=$ac_try;;
4228 esac
4229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4230 $as_echo "$ac_try_echo"; } >&5
4231   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4232   ac_status=$?
4233   if test -s conftest.err; then
4234     sed '10a\
4235 ... rest of stderr output deleted ...
4236          10q' conftest.err >conftest.er1
4237     cat conftest.er1 >&5
4238   fi
4239   rm -f conftest.er1 conftest.err
4240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4241   test $ac_status = 0; }
4242 done
4243
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4245 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4246 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4247   $as_echo_n "(cached) " >&6
4248 else
4249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h.  */
4251
4252 int
4253 main ()
4254 {
4255 #ifndef __GNUC__
4256        choke me
4257 #endif
4258
4259   ;
4260   return 0;
4261 }
4262 _ACEOF
4263 if ac_fn_cxx_try_compile "$LINENO"; then :
4264   ac_compiler_gnu=yes
4265 else
4266   ac_compiler_gnu=no
4267 fi
4268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4269 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4270
4271 fi
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4273 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4274 if test $ac_compiler_gnu = yes; then
4275   GXX=yes
4276 else
4277   GXX=
4278 fi
4279 ac_test_CXXFLAGS=${CXXFLAGS+set}
4280 ac_save_CXXFLAGS=$CXXFLAGS
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4282 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4283 if ${ac_cv_prog_cxx_g+:} false; then :
4284   $as_echo_n "(cached) " >&6
4285 else
4286   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4287    ac_cxx_werror_flag=yes
4288    ac_cv_prog_cxx_g=no
4289    CXXFLAGS="-g"
4290    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h.  */
4292
4293 int
4294 main ()
4295 {
4296
4297   ;
4298   return 0;
4299 }
4300 _ACEOF
4301 if ac_fn_cxx_try_compile "$LINENO"; then :
4302   ac_cv_prog_cxx_g=yes
4303 else
4304   CXXFLAGS=""
4305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h.  */
4307
4308 int
4309 main ()
4310 {
4311
4312   ;
4313   return 0;
4314 }
4315 _ACEOF
4316 if ac_fn_cxx_try_compile "$LINENO"; then :
4317
4318 else
4319   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4320          CXXFLAGS="-g"
4321          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322 /* end confdefs.h.  */
4323
4324 int
4325 main ()
4326 {
4327
4328   ;
4329   return 0;
4330 }
4331 _ACEOF
4332 if ac_fn_cxx_try_compile "$LINENO"; then :
4333   ac_cv_prog_cxx_g=yes
4334 fi
4335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4336 fi
4337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4338 fi
4339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4341 fi
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4343 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4344 if test "$ac_test_CXXFLAGS" = set; then
4345   CXXFLAGS=$ac_save_CXXFLAGS
4346 elif test $ac_cv_prog_cxx_g = yes; then
4347   if test "$GXX" = yes; then
4348     CXXFLAGS="-g -O2"
4349   else
4350     CXXFLAGS="-g"
4351   fi
4352 else
4353   if test "$GXX" = yes; then
4354     CXXFLAGS="-O2"
4355   else
4356     CXXFLAGS=
4357   fi
4358 fi
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365 if test "x$CC" != xcc; then
4366   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4367 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4368 else
4369   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4370 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4371 fi
4372 set dummy $CC; ac_cc=`$as_echo "$2" |
4373                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4374 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4375   $as_echo_n "(cached) " >&6
4376 else
4377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378 /* end confdefs.h.  */
4379
4380 int
4381 main ()
4382 {
4383
4384   ;
4385   return 0;
4386 }
4387 _ACEOF
4388 # Make sure it works both with $CC and with simple cc.
4389 # We do the test twice because some compilers refuse to overwrite an
4390 # existing .o file with -o, though they will create one.
4391 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4392 rm -f conftest2.*
4393 if { { case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; } &&
4403    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4405   *) ac_try_echo=$ac_try;;
4406 esac
4407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4408 $as_echo "$ac_try_echo"; } >&5
4409   (eval "$ac_try") 2>&5
4410   ac_status=$?
4411   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4412   test $ac_status = 0; };
4413 then
4414   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4415   if test "x$CC" != xcc; then
4416     # Test first that cc exists at all.
4417     if { ac_try='cc -c conftest.$ac_ext >&5'
4418   { { case "(($ac_try" in
4419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420   *) ac_try_echo=$ac_try;;
4421 esac
4422 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4423 $as_echo "$ac_try_echo"; } >&5
4424   (eval "$ac_try") 2>&5
4425   ac_status=$?
4426   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4427   test $ac_status = 0; }; }; then
4428       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4429       rm -f conftest2.*
4430       if { { case "(($ac_try" in
4431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4432   *) ac_try_echo=$ac_try;;
4433 esac
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436   (eval "$ac_try") 2>&5
4437   ac_status=$?
4438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439   test $ac_status = 0; } &&
4440          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; };
4450       then
4451         # cc works too.
4452         :
4453       else
4454         # cc exists but doesn't like -o.
4455         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4456       fi
4457     fi
4458   fi
4459 else
4460   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4461 fi
4462 rm -f core conftest*
4463
4464 fi
4465 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4466   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4467 $as_echo "yes" >&6; }
4468 else
4469   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4471
4472 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4473
4474 fi
4475
4476 ac_ext=c
4477 ac_cpp='$CPP $CPPFLAGS'
4478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4482 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4483 # On Suns, sometimes $CPP names a directory.
4484 if test -n "$CPP" && test -d "$CPP"; then
4485   CPP=
4486 fi
4487 if test -z "$CPP"; then
4488   if ${ac_cv_prog_CPP+:} false; then :
4489   $as_echo_n "(cached) " >&6
4490 else
4491       # Double quotes because CPP needs to be expanded
4492     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4493     do
4494       ac_preproc_ok=false
4495 for ac_c_preproc_warn_flag in '' yes
4496 do
4497   # Use a header file that comes with gcc, so configuring glibc
4498   # with a fresh cross-compiler works.
4499   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4500   # <limits.h> exists even on freestanding compilers.
4501   # On the NeXT, cc -E runs the code through the compiler's parser,
4502   # not just through cpp. "Syntax error" is here to catch this case.
4503   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4504 /* end confdefs.h.  */
4505 #ifdef __STDC__
4506 # include <limits.h>
4507 #else
4508 # include <assert.h>
4509 #endif
4510                      Syntax error
4511 _ACEOF
4512 if ac_fn_c_try_cpp "$LINENO"; then :
4513
4514 else
4515   # Broken: fails on valid input.
4516 continue
4517 fi
4518 rm -f conftest.err conftest.i conftest.$ac_ext
4519
4520   # OK, works on sane cases.  Now check whether nonexistent headers
4521   # can be detected and how.
4522   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h.  */
4524 #include <ac_nonexistent.h>
4525 _ACEOF
4526 if ac_fn_c_try_cpp "$LINENO"; then :
4527   # Broken: success on invalid input.
4528 continue
4529 else
4530   # Passes both tests.
4531 ac_preproc_ok=:
4532 break
4533 fi
4534 rm -f conftest.err conftest.i conftest.$ac_ext
4535
4536 done
4537 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4538 rm -f conftest.i conftest.err conftest.$ac_ext
4539 if $ac_preproc_ok; then :
4540   break
4541 fi
4542
4543     done
4544     ac_cv_prog_CPP=$CPP
4545
4546 fi
4547   CPP=$ac_cv_prog_CPP
4548 else
4549   ac_cv_prog_CPP=$CPP
4550 fi
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4552 $as_echo "$CPP" >&6; }
4553 ac_preproc_ok=false
4554 for ac_c_preproc_warn_flag in '' yes
4555 do
4556   # Use a header file that comes with gcc, so configuring glibc
4557   # with a fresh cross-compiler works.
4558   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4559   # <limits.h> exists even on freestanding compilers.
4560   # On the NeXT, cc -E runs the code through the compiler's parser,
4561   # not just through cpp. "Syntax error" is here to catch this case.
4562   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h.  */
4564 #ifdef __STDC__
4565 # include <limits.h>
4566 #else
4567 # include <assert.h>
4568 #endif
4569                      Syntax error
4570 _ACEOF
4571 if ac_fn_c_try_cpp "$LINENO"; then :
4572
4573 else
4574   # Broken: fails on valid input.
4575 continue
4576 fi
4577 rm -f conftest.err conftest.i conftest.$ac_ext
4578
4579   # OK, works on sane cases.  Now check whether nonexistent headers
4580   # can be detected and how.
4581   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4582 /* end confdefs.h.  */
4583 #include <ac_nonexistent.h>
4584 _ACEOF
4585 if ac_fn_c_try_cpp "$LINENO"; then :
4586   # Broken: success on invalid input.
4587 continue
4588 else
4589   # Passes both tests.
4590 ac_preproc_ok=:
4591 break
4592 fi
4593 rm -f conftest.err conftest.i conftest.$ac_ext
4594
4595 done
4596 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4597 rm -f conftest.i conftest.err conftest.$ac_ext
4598 if $ac_preproc_ok; then :
4599
4600 else
4601   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4603 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4604 See \`config.log' for more details" "$LINENO" 5; }
4605 fi
4606
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612
4613
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4615 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4616 if ${ac_cv_path_GREP+:} false; then :
4617   $as_echo_n "(cached) " >&6
4618 else
4619   if test -z "$GREP"; then
4620   ac_path_GREP_found=false
4621   # Loop through the user's path and test for each of PROGNAME-LIST
4622   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4624 do
4625   IFS=$as_save_IFS
4626   test -z "$as_dir" && as_dir=.
4627     for ac_prog in grep ggrep; do
4628     for ac_exec_ext in '' $ac_executable_extensions; do
4629       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4630       as_fn_executable_p "$ac_path_GREP" || continue
4631 # Check for GNU ac_path_GREP and select it if it is found.
4632   # Check for GNU $ac_path_GREP
4633 case `"$ac_path_GREP" --version 2>&1` in
4634 *GNU*)
4635   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4636 *)
4637   ac_count=0
4638   $as_echo_n 0123456789 >"conftest.in"
4639   while :
4640   do
4641     cat "conftest.in" "conftest.in" >"conftest.tmp"
4642     mv "conftest.tmp" "conftest.in"
4643     cp "conftest.in" "conftest.nl"
4644     $as_echo 'GREP' >> "conftest.nl"
4645     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4646     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4647     as_fn_arith $ac_count + 1 && ac_count=$as_val
4648     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4649       # Best one so far, save it but keep looking for a better one
4650       ac_cv_path_GREP="$ac_path_GREP"
4651       ac_path_GREP_max=$ac_count
4652     fi
4653     # 10*(2^10) chars as input seems more than enough
4654     test $ac_count -gt 10 && break
4655   done
4656   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4657 esac
4658
4659       $ac_path_GREP_found && break 3
4660     done
4661   done
4662   done
4663 IFS=$as_save_IFS
4664   if test -z "$ac_cv_path_GREP"; then
4665     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4666   fi
4667 else
4668   ac_cv_path_GREP=$GREP
4669 fi
4670
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4673 $as_echo "$ac_cv_path_GREP" >&6; }
4674  GREP="$ac_cv_path_GREP"
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4678 $as_echo_n "checking for egrep... " >&6; }
4679 if ${ac_cv_path_EGREP+:} false; then :
4680   $as_echo_n "(cached) " >&6
4681 else
4682   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4683    then ac_cv_path_EGREP="$GREP -E"
4684    else
4685      if test -z "$EGREP"; then
4686   ac_path_EGREP_found=false
4687   # Loop through the user's path and test for each of PROGNAME-LIST
4688   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4689 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4690 do
4691   IFS=$as_save_IFS
4692   test -z "$as_dir" && as_dir=.
4693     for ac_prog in egrep; do
4694     for ac_exec_ext in '' $ac_executable_extensions; do
4695       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4696       as_fn_executable_p "$ac_path_EGREP" || continue
4697 # Check for GNU ac_path_EGREP and select it if it is found.
4698   # Check for GNU $ac_path_EGREP
4699 case `"$ac_path_EGREP" --version 2>&1` in
4700 *GNU*)
4701   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4702 *)
4703   ac_count=0
4704   $as_echo_n 0123456789 >"conftest.in"
4705   while :
4706   do
4707     cat "conftest.in" "conftest.in" >"conftest.tmp"
4708     mv "conftest.tmp" "conftest.in"
4709     cp "conftest.in" "conftest.nl"
4710     $as_echo 'EGREP' >> "conftest.nl"
4711     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4712     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4713     as_fn_arith $ac_count + 1 && ac_count=$as_val
4714     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4715       # Best one so far, save it but keep looking for a better one
4716       ac_cv_path_EGREP="$ac_path_EGREP"
4717       ac_path_EGREP_max=$ac_count
4718     fi
4719     # 10*(2^10) chars as input seems more than enough
4720     test $ac_count -gt 10 && break
4721   done
4722   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4723 esac
4724
4725       $ac_path_EGREP_found && break 3
4726     done
4727   done
4728   done
4729 IFS=$as_save_IFS
4730   if test -z "$ac_cv_path_EGREP"; then
4731     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4732   fi
4733 else
4734   ac_cv_path_EGREP=$EGREP
4735 fi
4736
4737    fi
4738 fi
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4740 $as_echo "$ac_cv_path_EGREP" >&6; }
4741  EGREP="$ac_cv_path_EGREP"
4742
4743
4744 if test $ac_cv_c_compiler_gnu = yes; then
4745     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4746 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4747 if ${ac_cv_prog_gcc_traditional+:} false; then :
4748   $as_echo_n "(cached) " >&6
4749 else
4750     ac_pattern="Autoconf.*'x'"
4751   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4752 /* end confdefs.h.  */
4753 #include <sgtty.h>
4754 Autoconf TIOCGETP
4755 _ACEOF
4756 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4757   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4758   ac_cv_prog_gcc_traditional=yes
4759 else
4760   ac_cv_prog_gcc_traditional=no
4761 fi
4762 rm -f conftest*
4763
4764
4765   if test $ac_cv_prog_gcc_traditional = no; then
4766     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4767 /* end confdefs.h.  */
4768 #include <termio.h>
4769 Autoconf TCGETA
4770 _ACEOF
4771 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4772   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4773   ac_cv_prog_gcc_traditional=yes
4774 fi
4775 rm -f conftest*
4776
4777   fi
4778 fi
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4780 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4781   if test $ac_cv_prog_gcc_traditional = yes; then
4782     CC="$CC -traditional"
4783   fi
4784 fi
4785
4786 BASECC=`basename $CC`
4787 have_gcc=no
4788 if test x"$GCC" = "xyes"; then
4789    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4790
4791    have_gcc=yes
4792 fi
4793 # Extract the first word of "$CXX", so it can be a program name with args.
4794 set dummy $CXX; ac_word=$2
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4796 $as_echo_n "checking for $ac_word... " >&6; }
4797 if ${ac_cv_path_CXX+:} false; then :
4798   $as_echo_n "(cached) " >&6
4799 else
4800   case $CXX in
4801   [\\/]* | ?:[\\/]*)
4802   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4803   ;;
4804   *)
4805   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4806 for as_dir in $PATH
4807 do
4808   IFS=$as_save_IFS
4809   test -z "$as_dir" && as_dir=.
4810     for ac_exec_ext in '' $ac_executable_extensions; do
4811   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4812     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4813     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4814     break 2
4815   fi
4816 done
4817   done
4818 IFS=$as_save_IFS
4819
4820   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4821   ;;
4822 esac
4823 fi
4824 CXX=$ac_cv_path_CXX
4825 if test -n "$CXX"; then
4826   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4827 $as_echo "$CXX" >&6; }
4828 else
4829   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 $as_echo "no" >&6; }
4831 fi
4832
4833
4834 if test ! -e $CXX; then
4835    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4836 fi
4837
4838 # Find a good install program.  We prefer a C program (faster),
4839 # so one script is as good as another.  But avoid the broken or
4840 # incompatible versions:
4841 # SysV /etc/install, /usr/sbin/install
4842 # SunOS /usr/etc/install
4843 # IRIX /sbin/install
4844 # AIX /bin/install
4845 # AmigaOS /C/install, which installs bootblocks on floppy discs
4846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4849 # OS/2's system install, which has a completely different semantic
4850 # ./install, which can be erroneously created by make from ./install.sh.
4851 # Reject install programs that cannot install multiple files.
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4853 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4854 if test -z "$INSTALL"; then
4855 if ${ac_cv_path_install+:} false; then :
4856   $as_echo_n "(cached) " >&6
4857 else
4858   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4860 do
4861   IFS=$as_save_IFS
4862   test -z "$as_dir" && as_dir=.
4863     # Account for people who put trailing slashes in PATH elements.
4864 case $as_dir/ in #((
4865   ./ | .// | /[cC]/* | \
4866   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4867   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4868   /usr/ucb/* ) ;;
4869   *)
4870     # OSF1 and SCO ODT 3.0 have their own names for install.
4871     # Don't use installbsd from OSF since it installs stuff as root
4872     # by default.
4873     for ac_prog in ginstall scoinst install; do
4874       for ac_exec_ext in '' $ac_executable_extensions; do
4875         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4876           if test $ac_prog = install &&
4877             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4878             # AIX install.  It has an incompatible calling convention.
4879             :
4880           elif test $ac_prog = install &&
4881             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4882             # program-specific install script used by HP pwplus--don't use.
4883             :
4884           else
4885             rm -rf conftest.one conftest.two conftest.dir
4886             echo one > conftest.one
4887             echo two > conftest.two
4888             mkdir conftest.dir
4889             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4890               test -s conftest.one && test -s conftest.two &&
4891               test -s conftest.dir/conftest.one &&
4892               test -s conftest.dir/conftest.two
4893             then
4894               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4895               break 3
4896             fi
4897           fi
4898         fi
4899       done
4900     done
4901     ;;
4902 esac
4903
4904   done
4905 IFS=$as_save_IFS
4906
4907 rm -rf conftest.one conftest.two conftest.dir
4908
4909 fi
4910   if test "${ac_cv_path_install+set}" = set; then
4911     INSTALL=$ac_cv_path_install
4912   else
4913     # As a last resort, use the slow shell script.  Don't cache a
4914     # value for INSTALL within a source directory, because that will
4915     # break other packages using the cache if that directory is
4916     # removed, or if the value is a relative name.
4917     INSTALL=$ac_install_sh
4918   fi
4919 fi
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4921 $as_echo "$INSTALL" >&6; }
4922
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4926
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4928
4929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4930
4931 # Extract the first word of "mv", so it can be a program name with args.
4932 set dummy mv; ac_word=$2
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4934 $as_echo_n "checking for $ac_word... " >&6; }
4935 if ${ac_cv_path_MV+:} false; then :
4936   $as_echo_n "(cached) " >&6
4937 else
4938   case $MV in
4939   [\\/]* | ?:[\\/]*)
4940   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4941   ;;
4942   *)
4943   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946   IFS=$as_save_IFS
4947   test -z "$as_dir" && as_dir=.
4948     for ac_exec_ext in '' $ac_executable_extensions; do
4949   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4950     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4951     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4952     break 2
4953   fi
4954 done
4955   done
4956 IFS=$as_save_IFS
4957
4958   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4959   ;;
4960 esac
4961 fi
4962 MV=$ac_cv_path_MV
4963 if test -n "$MV"; then
4964   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4965 $as_echo "$MV" >&6; }
4966 else
4967   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968 $as_echo "no" >&6; }
4969 fi
4970
4971
4972 # Extract the first word of "rm", so it can be a program name with args.
4973 set dummy rm; ac_word=$2
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4975 $as_echo_n "checking for $ac_word... " >&6; }
4976 if ${ac_cv_path_REMOVE+:} false; then :
4977   $as_echo_n "(cached) " >&6
4978 else
4979   case $REMOVE in
4980   [\\/]* | ?:[\\/]*)
4981   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4982   ;;
4983   *)
4984   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4985 for as_dir in $PATH
4986 do
4987   IFS=$as_save_IFS
4988   test -z "$as_dir" && as_dir=.
4989     for ac_exec_ext in '' $ac_executable_extensions; do
4990   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4991     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4992     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4993     break 2
4994   fi
4995 done
4996   done
4997 IFS=$as_save_IFS
4998
4999   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
5000   ;;
5001 esac
5002 fi
5003 REMOVE=$ac_cv_path_REMOVE
5004 if test -n "$REMOVE"; then
5005   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
5006 $as_echo "$REMOVE" >&6; }
5007 else
5008   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5009 $as_echo "no" >&6; }
5010 fi
5011
5012
5013 # Extract the first word of "cp", so it can be a program name with args.
5014 set dummy cp; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_CP+:} false; then :
5018   $as_echo_n "(cached) " >&6
5019 else
5020   case $CP in
5021   [\\/]* | ?:[\\/]*)
5022   ac_cv_path_CP="$CP" # Let the user override the test with a path.
5023   ;;
5024   *)
5025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5026 for as_dir in $PATH
5027 do
5028   IFS=$as_save_IFS
5029   test -z "$as_dir" && as_dir=.
5030     for ac_exec_ext in '' $ac_executable_extensions; do
5031   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5033     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5034     break 2
5035   fi
5036 done
5037   done
5038 IFS=$as_save_IFS
5039
5040   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5041   ;;
5042 esac
5043 fi
5044 CP=$ac_cv_path_CP
5045 if test -n "$CP"; then
5046   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5047 $as_echo "$CP" >&6; }
5048 else
5049   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5050 $as_echo "no" >&6; }
5051 fi
5052
5053
5054 # Extract the first word of "sed", so it can be a program name with args.
5055 set dummy sed; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_path_SED+:} false; then :
5059   $as_echo_n "(cached) " >&6
5060 else
5061   case $SED in
5062   [\\/]* | ?:[\\/]*)
5063   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5064   ;;
5065   *)
5066   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071     for ac_exec_ext in '' $ac_executable_extensions; do
5072   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5074     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078   done
5079 IFS=$as_save_IFS
5080
5081   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5082   ;;
5083 esac
5084 fi
5085 SED=$ac_cv_path_SED
5086 if test -n "$SED"; then
5087   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5088 $as_echo "$SED" >&6; }
5089 else
5090   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5092 fi
5093
5094
5095 # Extract the first word of "echo", so it can be a program name with args.
5096 set dummy echo; ac_word=$2
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5098 $as_echo_n "checking for $ac_word... " >&6; }
5099 if ${ac_cv_path_ECHO+:} false; then :
5100   $as_echo_n "(cached) " >&6
5101 else
5102   case $ECHO in
5103   [\\/]* | ?:[\\/]*)
5104   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5105   ;;
5106   *)
5107   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH
5109 do
5110   IFS=$as_save_IFS
5111   test -z "$as_dir" && as_dir=.
5112     for ac_exec_ext in '' $ac_executable_extensions; do
5113   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5114     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5115     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5116     break 2
5117   fi
5118 done
5119   done
5120 IFS=$as_save_IFS
5121
5122   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5123   ;;
5124 esac
5125 fi
5126 ECHO=$ac_cv_path_ECHO
5127 if test -n "$ECHO"; then
5128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5129 $as_echo "$ECHO" >&6; }
5130 else
5131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5133 fi
5134
5135
5136 # Extract the first word of "cmp", so it can be a program name with args.
5137 set dummy cmp; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_path_CMP+:} false; then :
5141   $as_echo_n "(cached) " >&6
5142 else
5143   case $CMP in
5144   [\\/]* | ?:[\\/]*)
5145   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5146   ;;
5147   *)
5148   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151   IFS=$as_save_IFS
5152   test -z "$as_dir" && as_dir=.
5153     for ac_exec_ext in '' $ac_executable_extensions; do
5154   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5155     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5156     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157     break 2
5158   fi
5159 done
5160   done
5161 IFS=$as_save_IFS
5162
5163   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5164   ;;
5165 esac
5166 fi
5167 CMP=$ac_cv_path_CMP
5168 if test -n "$CMP"; then
5169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5170 $as_echo "$CMP" >&6; }
5171 else
5172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5173 $as_echo "no" >&6; }
5174 fi
5175
5176
5177 # Extract the first word of "tbl", so it can be a program name with args.
5178 set dummy tbl; ac_word=$2
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5180 $as_echo_n "checking for $ac_word... " >&6; }
5181 if ${ac_cv_path_TBL+:} false; then :
5182   $as_echo_n "(cached) " >&6
5183 else
5184   case $TBL in
5185   [\\/]* | ?:[\\/]*)
5186   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5187   ;;
5188   *)
5189   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5191 do
5192   IFS=$as_save_IFS
5193   test -z "$as_dir" && as_dir=.
5194     for ac_exec_ext in '' $ac_executable_extensions; do
5195   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5197     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198     break 2
5199   fi
5200 done
5201   done
5202 IFS=$as_save_IFS
5203
5204   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5205   ;;
5206 esac
5207 fi
5208 TBL=$ac_cv_path_TBL
5209 if test -n "$TBL"; then
5210   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5211 $as_echo "$TBL" >&6; }
5212 else
5213   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5214 $as_echo "no" >&6; }
5215 fi
5216
5217
5218 # Extract the first word of "ar", so it can be a program name with args.
5219 set dummy ar; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_path_AR+:} false; then :
5223   $as_echo_n "(cached) " >&6
5224 else
5225   case $AR in
5226   [\\/]* | ?:[\\/]*)
5227   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5228   ;;
5229   *)
5230   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 for as_dir in $PATH
5232 do
5233   IFS=$as_save_IFS
5234   test -z "$as_dir" && as_dir=.
5235     for ac_exec_ext in '' $ac_executable_extensions; do
5236   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5238     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239     break 2
5240   fi
5241 done
5242   done
5243 IFS=$as_save_IFS
5244
5245   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5246   ;;
5247 esac
5248 fi
5249 AR=$ac_cv_path_AR
5250 if test -n "$AR"; then
5251   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5252 $as_echo "$AR" >&6; }
5253 else
5254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5255 $as_echo "no" >&6; }
5256 fi
5257
5258
5259 # Extract the first word of "openssl", so it can be a program name with args.
5260 set dummy openssl; ac_word=$2
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262 $as_echo_n "checking for $ac_word... " >&6; }
5263 if ${ac_cv_path_OPENSSL+:} false; then :
5264   $as_echo_n "(cached) " >&6
5265 else
5266   case $OPENSSL in
5267   [\\/]* | ?:[\\/]*)
5268   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5269   ;;
5270   *)
5271   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5272 for as_dir in $PATH
5273 do
5274   IFS=$as_save_IFS
5275   test -z "$as_dir" && as_dir=.
5276     for ac_exec_ext in '' $ac_executable_extensions; do
5277   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5278     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5279     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5280     break 2
5281   fi
5282 done
5283   done
5284 IFS=$as_save_IFS
5285
5286   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5287   ;;
5288 esac
5289 fi
5290 OPENSSL=$ac_cv_path_OPENSSL
5291 if test -n "$OPENSSL"; then
5292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5293 $as_echo "$OPENSSL" >&6; }
5294 else
5295   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5296 $as_echo "no" >&6; }
5297 fi
5298
5299
5300 # Extract the first word of "mtx", so it can be a program name with args.
5301 set dummy mtx; ac_word=$2
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5303 $as_echo_n "checking for $ac_word... " >&6; }
5304 if ${ac_cv_path_MTX+:} false; then :
5305   $as_echo_n "(cached) " >&6
5306 else
5307   case $MTX in
5308   [\\/]* | ?:[\\/]*)
5309   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5310   ;;
5311   *)
5312   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315   IFS=$as_save_IFS
5316   test -z "$as_dir" && as_dir=.
5317     for ac_exec_ext in '' $ac_executable_extensions; do
5318   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5320     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5321     break 2
5322   fi
5323 done
5324   done
5325 IFS=$as_save_IFS
5326
5327   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5328   ;;
5329 esac
5330 fi
5331 MTX=$ac_cv_path_MTX
5332 if test -n "$MTX"; then
5333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5334 $as_echo "$MTX" >&6; }
5335 else
5336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5337 $as_echo "no" >&6; }
5338 fi
5339
5340
5341 # Extract the first word of "dd", so it can be a program name with args.
5342 set dummy dd; ac_word=$2
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5344 $as_echo_n "checking for $ac_word... " >&6; }
5345 if ${ac_cv_path_DD+:} false; then :
5346   $as_echo_n "(cached) " >&6
5347 else
5348   case $DD in
5349   [\\/]* | ?:[\\/]*)
5350   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5351   ;;
5352   *)
5353   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5355 do
5356   IFS=$as_save_IFS
5357   test -z "$as_dir" && as_dir=.
5358     for ac_exec_ext in '' $ac_executable_extensions; do
5359   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5361     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362     break 2
5363   fi
5364 done
5365   done
5366 IFS=$as_save_IFS
5367
5368   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5369   ;;
5370 esac
5371 fi
5372 DD=$ac_cv_path_DD
5373 if test -n "$DD"; then
5374   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5375 $as_echo "$DD" >&6; }
5376 else
5377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5378 $as_echo "no" >&6; }
5379 fi
5380
5381
5382 # Extract the first word of "mkisofs", so it can be a program name with args.
5383 set dummy mkisofs; ac_word=$2
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5385 $as_echo_n "checking for $ac_word... " >&6; }
5386 if ${ac_cv_path_MKISOFS+:} false; then :
5387   $as_echo_n "(cached) " >&6
5388 else
5389   case $MKISOFS in
5390   [\\/]* | ?:[\\/]*)
5391   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5392   ;;
5393   *)
5394   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5396 do
5397   IFS=$as_save_IFS
5398   test -z "$as_dir" && as_dir=.
5399     for ac_exec_ext in '' $ac_executable_extensions; do
5400   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5402     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403     break 2
5404   fi
5405 done
5406   done
5407 IFS=$as_save_IFS
5408
5409   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5410   ;;
5411 esac
5412 fi
5413 MKISOFS=$ac_cv_path_MKISOFS
5414 if test -n "$MKISOFS"; then
5415   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5416 $as_echo "$MKISOFS" >&6; }
5417 else
5418   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5419 $as_echo "no" >&6; }
5420 fi
5421
5422
5423 # Extract the first word of "python", so it can be a program name with args.
5424 set dummy python; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if ${ac_cv_path_PYTHON+:} false; then :
5428   $as_echo_n "(cached) " >&6
5429 else
5430   case $PYTHON in
5431   [\\/]* | ?:[\\/]*)
5432   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5433   ;;
5434   *)
5435   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5437 do
5438   IFS=$as_save_IFS
5439   test -z "$as_dir" && as_dir=.
5440     for ac_exec_ext in '' $ac_executable_extensions; do
5441   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5442     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5443     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444     break 2
5445   fi
5446 done
5447   done
5448 IFS=$as_save_IFS
5449
5450   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5451   ;;
5452 esac
5453 fi
5454 PYTHON=$ac_cv_path_PYTHON
5455 if test -n "$PYTHON"; then
5456   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5457 $as_echo "$PYTHON" >&6; }
5458 else
5459   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5461 fi
5462
5463
5464 # Extract the first word of "growisofs", so it can be a program name with args.
5465 set dummy growisofs; ac_word=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_path_GROWISOFS+:} false; then :
5469   $as_echo_n "(cached) " >&6
5470 else
5471   case $GROWISOFS in
5472   [\\/]* | ?:[\\/]*)
5473   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5474   ;;
5475   *)
5476   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH
5478 do
5479   IFS=$as_save_IFS
5480   test -z "$as_dir" && as_dir=.
5481     for ac_exec_ext in '' $ac_executable_extensions; do
5482   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5483     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5484     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485     break 2
5486   fi
5487 done
5488   done
5489 IFS=$as_save_IFS
5490
5491   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5492   ;;
5493 esac
5494 fi
5495 GROWISOFS=$ac_cv_path_GROWISOFS
5496 if test -n "$GROWISOFS"; then
5497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5498 $as_echo "$GROWISOFS" >&6; }
5499 else
5500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5501 $as_echo "no" >&6; }
5502 fi
5503
5504
5505 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5506 set dummy dvd+rw-mediainfo; ac_word=$2
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5508 $as_echo_n "checking for $ac_word... " >&6; }
5509 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5510   $as_echo_n "(cached) " >&6
5511 else
5512   case $DVDRWMEDIAINFO in
5513   [\\/]* | ?:[\\/]*)
5514   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5515   ;;
5516   *)
5517   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518 for as_dir in $PATH
5519 do
5520   IFS=$as_save_IFS
5521   test -z "$as_dir" && as_dir=.
5522     for ac_exec_ext in '' $ac_executable_extensions; do
5523   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5524     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5525     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526     break 2
5527   fi
5528 done
5529   done
5530 IFS=$as_save_IFS
5531
5532   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5533   ;;
5534 esac
5535 fi
5536 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5537 if test -n "$DVDRWMEDIAINFO"; then
5538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5539 $as_echo "$DVDRWMEDIAINFO" >&6; }
5540 else
5541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5543 fi
5544
5545
5546 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5547 set dummy dvd+rw-format; ac_word=$2
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5549 $as_echo_n "checking for $ac_word... " >&6; }
5550 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5551   $as_echo_n "(cached) " >&6
5552 else
5553   case $DVDRWFORMAT in
5554   [\\/]* | ?:[\\/]*)
5555   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5556   ;;
5557   *)
5558   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5559 for as_dir in $PATH
5560 do
5561   IFS=$as_save_IFS
5562   test -z "$as_dir" && as_dir=.
5563     for ac_exec_ext in '' $ac_executable_extensions; do
5564   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5565     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5566     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5567     break 2
5568   fi
5569 done
5570   done
5571 IFS=$as_save_IFS
5572
5573   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5574   ;;
5575 esac
5576 fi
5577 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5578 if test -n "$DVDRWFORMAT"; then
5579   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5580 $as_echo "$DVDRWFORMAT" >&6; }
5581 else
5582   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 $as_echo "no" >&6; }
5584 fi
5585
5586
5587 # Extract the first word of "pkg-config", so it can be a program name with args.
5588 set dummy pkg-config; ac_word=$2
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5590 $as_echo_n "checking for $ac_word... " >&6; }
5591 if ${ac_cv_path_PKGCONFIG+:} false; then :
5592   $as_echo_n "(cached) " >&6
5593 else
5594   case $PKGCONFIG in
5595   [\\/]* | ?:[\\/]*)
5596   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5597   ;;
5598   *)
5599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600 for as_dir in $PATH
5601 do
5602   IFS=$as_save_IFS
5603   test -z "$as_dir" && as_dir=.
5604     for ac_exec_ext in '' $ac_executable_extensions; do
5605   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5606     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5607     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5608     break 2
5609   fi
5610 done
5611   done
5612 IFS=$as_save_IFS
5613
5614   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5615   ;;
5616 esac
5617 fi
5618 PKGCONFIG=$ac_cv_path_PKGCONFIG
5619 if test -n "$PKGCONFIG"; then
5620   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5621 $as_echo "$PKGCONFIG" >&6; }
5622 else
5623   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5624 $as_echo "no" >&6; }
5625 fi
5626
5627
5628 # Extract the first word of "qmake", so it can be a program name with args.
5629 set dummy qmake; ac_word=$2
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5631 $as_echo_n "checking for $ac_word... " >&6; }
5632 if ${ac_cv_path_QMAKE+:} false; then :
5633   $as_echo_n "(cached) " >&6
5634 else
5635   case $QMAKE in
5636   [\\/]* | ?:[\\/]*)
5637   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5638   ;;
5639   *)
5640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5641 for as_dir in $PATH
5642 do
5643   IFS=$as_save_IFS
5644   test -z "$as_dir" && as_dir=.
5645     for ac_exec_ext in '' $ac_executable_extensions; do
5646   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5647     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5648     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5649     break 2
5650   fi
5651 done
5652   done
5653 IFS=$as_save_IFS
5654
5655   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5656   ;;
5657 esac
5658 fi
5659 QMAKE=$ac_cv_path_QMAKE
5660 if test -n "$QMAKE"; then
5661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5662 $as_echo "$QMAKE" >&6; }
5663 else
5664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5665 $as_echo "no" >&6; }
5666 fi
5667
5668
5669 # Extract the first word of "gmake", so it can be a program name with args.
5670 set dummy gmake; ac_word=$2
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5672 $as_echo_n "checking for $ac_word... " >&6; }
5673 if ${ac_cv_path_GMAKE+:} false; then :
5674   $as_echo_n "(cached) " >&6
5675 else
5676   case $GMAKE in
5677   [\\/]* | ?:[\\/]*)
5678   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5679   ;;
5680   *)
5681   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684   IFS=$as_save_IFS
5685   test -z "$as_dir" && as_dir=.
5686     for ac_exec_ext in '' $ac_executable_extensions; do
5687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690     break 2
5691   fi
5692 done
5693   done
5694 IFS=$as_save_IFS
5695
5696   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5697   ;;
5698 esac
5699 fi
5700 GMAKE=$ac_cv_path_GMAKE
5701 if test -n "$GMAKE"; then
5702   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5703 $as_echo "$GMAKE" >&6; }
5704 else
5705   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5706 $as_echo "no" >&6; }
5707 fi
5708
5709
5710 # Extract the first word of "pidof", so it can be a program name with args.
5711 set dummy pidof; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if ${ac_cv_path_PIDOF+:} false; then :
5715   $as_echo_n "(cached) " >&6
5716 else
5717   case $PIDOF in
5718   [\\/]* | ?:[\\/]*)
5719   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5720   ;;
5721   *)
5722   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5724 do
5725   IFS=$as_save_IFS
5726   test -z "$as_dir" && as_dir=.
5727     for ac_exec_ext in '' $ac_executable_extensions; do
5728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5729     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731     break 2
5732   fi
5733 done
5734   done
5735 IFS=$as_save_IFS
5736
5737   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5738   ;;
5739 esac
5740 fi
5741 PIDOF=$ac_cv_path_PIDOF
5742 if test -n "$PIDOF"; then
5743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5744 $as_echo "$PIDOF" >&6; }
5745 else
5746   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5747 $as_echo "no" >&6; }
5748 fi
5749
5750
5751 for ac_prog in gawk mawk nawk awk
5752 do
5753   # Extract the first word of "$ac_prog", so it can be a program name with args.
5754 set dummy $ac_prog; ac_word=$2
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5756 $as_echo_n "checking for $ac_word... " >&6; }
5757 if ${ac_cv_prog_AWK+:} false; then :
5758   $as_echo_n "(cached) " >&6
5759 else
5760   if test -n "$AWK"; then
5761   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5762 else
5763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5764 for as_dir in $PATH
5765 do
5766   IFS=$as_save_IFS
5767   test -z "$as_dir" && as_dir=.
5768     for ac_exec_ext in '' $ac_executable_extensions; do
5769   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5770     ac_cv_prog_AWK="$ac_prog"
5771     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772     break 2
5773   fi
5774 done
5775   done
5776 IFS=$as_save_IFS
5777
5778 fi
5779 fi
5780 AWK=$ac_cv_prog_AWK
5781 if test -n "$AWK"; then
5782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5783 $as_echo "$AWK" >&6; }
5784 else
5785   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5786 $as_echo "no" >&6; }
5787 fi
5788
5789
5790   test -n "$AWK" && break
5791 done
5792
5793 # Some AWK programs fail, so test it and warn the user
5794 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5795       { if ((prog == $2) || (("(" prog ")") == $2) ||
5796       (("" prog "") == $2) ||
5797       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5798 else
5799   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5800    The regex engine of $AWK is too broken to be used you
5801    might want to install GNU AWK.
5802    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5803 fi
5804 THE_AWK=$AWK
5805 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5806 set dummy $THE_AWK; ac_word=$2
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5808 $as_echo_n "checking for $ac_word... " >&6; }
5809 if ${ac_cv_path_AWK+:} false; then :
5810   $as_echo_n "(cached) " >&6
5811 else
5812   case $AWK in
5813   [\\/]* | ?:[\\/]*)
5814   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5815   ;;
5816   *)
5817   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5819 do
5820   IFS=$as_save_IFS
5821   test -z "$as_dir" && as_dir=.
5822     for ac_exec_ext in '' $ac_executable_extensions; do
5823   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5825     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826     break 2
5827   fi
5828 done
5829   done
5830 IFS=$as_save_IFS
5831
5832   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5833   ;;
5834 esac
5835 fi
5836 AWK=$ac_cv_path_AWK
5837 if test -n "$AWK"; then
5838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5839 $as_echo "$AWK" >&6; }
5840 else
5841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842 $as_echo "no" >&6; }
5843 fi
5844
5845
5846
5847
5848 test -n "$ARFLAG" || ARFLAGS="cr"
5849
5850
5851 MAKE_SHELL=/bin/sh
5852
5853
5854
5855
5856
5857
5858
5859 use_libtool=yes
5860 # Check whether --enable-libtool was given.
5861 if test "${enable_libtool+set}" = set; then :
5862   enableval=$enable_libtool;
5863        if test x$enableval = xno; then
5864           use_libtool=no
5865        fi
5866
5867
5868 fi
5869
5870 case `pwd` in
5871   *\ * | *\     *)
5872     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5873 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5874 esac
5875
5876
5877
5878 macro_version='2.4.2'
5879 macro_revision='1.3337'
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893 ltmain="$ac_aux_dir/ltmain.sh"
5894
5895 # Make sure we can run config.sub.
5896 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5897   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5898
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5900 $as_echo_n "checking build system type... " >&6; }
5901 if ${ac_cv_build+:} false; then :
5902   $as_echo_n "(cached) " >&6
5903 else
5904   ac_build_alias=$build_alias
5905 test "x$ac_build_alias" = x &&
5906   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5907 test "x$ac_build_alias" = x &&
5908   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5909 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5910   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5911
5912 fi
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5914 $as_echo "$ac_cv_build" >&6; }
5915 case $ac_cv_build in
5916 *-*-*) ;;
5917 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5918 esac
5919 build=$ac_cv_build
5920 ac_save_IFS=$IFS; IFS='-'
5921 set x $ac_cv_build
5922 shift
5923 build_cpu=$1
5924 build_vendor=$2
5925 shift; shift
5926 # Remember, the first character of IFS is used to create $*,
5927 # except with old shells:
5928 build_os=$*
5929 IFS=$ac_save_IFS
5930 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5931
5932
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5934 $as_echo_n "checking host system type... " >&6; }
5935 if ${ac_cv_host+:} false; then :
5936   $as_echo_n "(cached) " >&6
5937 else
5938   if test "x$host_alias" = x; then
5939   ac_cv_host=$ac_cv_build
5940 else
5941   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5942     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5943 fi
5944
5945 fi
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5947 $as_echo "$ac_cv_host" >&6; }
5948 case $ac_cv_host in
5949 *-*-*) ;;
5950 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5951 esac
5952 host=$ac_cv_host
5953 ac_save_IFS=$IFS; IFS='-'
5954 set x $ac_cv_host
5955 shift
5956 host_cpu=$1
5957 host_vendor=$2
5958 shift; shift
5959 # Remember, the first character of IFS is used to create $*,
5960 # except with old shells:
5961 host_os=$*
5962 IFS=$ac_save_IFS
5963 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5964
5965
5966 # Backslashify metacharacters that are still active within
5967 # double-quoted strings.
5968 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5969
5970 # Same as above, but do not quote variable references.
5971 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5972
5973 # Sed substitution to delay expansion of an escaped shell variable in a
5974 # double_quote_subst'ed string.
5975 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5976
5977 # Sed substitution to delay expansion of an escaped single quote.
5978 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5979
5980 # Sed substitution to avoid accidental globbing in evaled expressions
5981 no_glob_subst='s/\*/\\\*/g'
5982
5983 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5984 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5985 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5986
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5988 $as_echo_n "checking how to print strings... " >&6; }
5989 # Test print first, because it will be a builtin if present.
5990 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5991    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5992   ECHO='print -r --'
5993 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5994   ECHO='printf %s\n'
5995 else
5996   # Use this function as a fallback that always works.
5997   func_fallback_echo ()
5998   {
5999     eval 'cat <<_LTECHO_EOF
6000 $1
6001 _LTECHO_EOF'
6002   }
6003   ECHO='func_fallback_echo'
6004 fi
6005
6006 # func_echo_all arg...
6007 # Invoke $ECHO with all args, space-separated.
6008 func_echo_all ()
6009 {
6010     $ECHO ""
6011 }
6012
6013 case "$ECHO" in
6014   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6015 $as_echo "printf" >&6; } ;;
6016   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6017 $as_echo "print -r" >&6; } ;;
6018   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6019 $as_echo "cat" >&6; } ;;
6020 esac
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6036 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6037 if ${ac_cv_path_SED+:} false; then :
6038   $as_echo_n "(cached) " >&6
6039 else
6040             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6041      for ac_i in 1 2 3 4 5 6 7; do
6042        ac_script="$ac_script$as_nl$ac_script"
6043      done
6044      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6045      { ac_script=; unset ac_script;}
6046      if test -z "$SED"; then
6047   ac_path_SED_found=false
6048   # Loop through the user's path and test for each of PROGNAME-LIST
6049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052   IFS=$as_save_IFS
6053   test -z "$as_dir" && as_dir=.
6054     for ac_prog in sed gsed; do
6055     for ac_exec_ext in '' $ac_executable_extensions; do
6056       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6057       as_fn_executable_p "$ac_path_SED" || continue
6058 # Check for GNU ac_path_SED and select it if it is found.
6059   # Check for GNU $ac_path_SED
6060 case `"$ac_path_SED" --version 2>&1` in
6061 *GNU*)
6062   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6063 *)
6064   ac_count=0
6065   $as_echo_n 0123456789 >"conftest.in"
6066   while :
6067   do
6068     cat "conftest.in" "conftest.in" >"conftest.tmp"
6069     mv "conftest.tmp" "conftest.in"
6070     cp "conftest.in" "conftest.nl"
6071     $as_echo '' >> "conftest.nl"
6072     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6073     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6074     as_fn_arith $ac_count + 1 && ac_count=$as_val
6075     if test $ac_count -gt ${ac_path_SED_max-0}; then
6076       # Best one so far, save it but keep looking for a better one
6077       ac_cv_path_SED="$ac_path_SED"
6078       ac_path_SED_max=$ac_count
6079     fi
6080     # 10*(2^10) chars as input seems more than enough
6081     test $ac_count -gt 10 && break
6082   done
6083   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6084 esac
6085
6086       $ac_path_SED_found && break 3
6087     done
6088   done
6089   done
6090 IFS=$as_save_IFS
6091   if test -z "$ac_cv_path_SED"; then
6092     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6093   fi
6094 else
6095   ac_cv_path_SED=$SED
6096 fi
6097
6098 fi
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6100 $as_echo "$ac_cv_path_SED" >&6; }
6101  SED="$ac_cv_path_SED"
6102   rm -f conftest.sed
6103
6104 test -z "$SED" && SED=sed
6105 Xsed="$SED -e 1s/^X//"
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6118 $as_echo_n "checking for fgrep... " >&6; }
6119 if ${ac_cv_path_FGREP+:} false; then :
6120   $as_echo_n "(cached) " >&6
6121 else
6122   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6123    then ac_cv_path_FGREP="$GREP -F"
6124    else
6125      if test -z "$FGREP"; then
6126   ac_path_FGREP_found=false
6127   # Loop through the user's path and test for each of PROGNAME-LIST
6128   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6129 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6130 do
6131   IFS=$as_save_IFS
6132   test -z "$as_dir" && as_dir=.
6133     for ac_prog in fgrep; do
6134     for ac_exec_ext in '' $ac_executable_extensions; do
6135       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6136       as_fn_executable_p "$ac_path_FGREP" || continue
6137 # Check for GNU ac_path_FGREP and select it if it is found.
6138   # Check for GNU $ac_path_FGREP
6139 case `"$ac_path_FGREP" --version 2>&1` in
6140 *GNU*)
6141   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6142 *)
6143   ac_count=0
6144   $as_echo_n 0123456789 >"conftest.in"
6145   while :
6146   do
6147     cat "conftest.in" "conftest.in" >"conftest.tmp"
6148     mv "conftest.tmp" "conftest.in"
6149     cp "conftest.in" "conftest.nl"
6150     $as_echo 'FGREP' >> "conftest.nl"
6151     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6152     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6153     as_fn_arith $ac_count + 1 && ac_count=$as_val
6154     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6155       # Best one so far, save it but keep looking for a better one
6156       ac_cv_path_FGREP="$ac_path_FGREP"
6157       ac_path_FGREP_max=$ac_count
6158     fi
6159     # 10*(2^10) chars as input seems more than enough
6160     test $ac_count -gt 10 && break
6161   done
6162   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6163 esac
6164
6165       $ac_path_FGREP_found && break 3
6166     done
6167   done
6168   done
6169 IFS=$as_save_IFS
6170   if test -z "$ac_cv_path_FGREP"; then
6171     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6172   fi
6173 else
6174   ac_cv_path_FGREP=$FGREP
6175 fi
6176
6177    fi
6178 fi
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6180 $as_echo "$ac_cv_path_FGREP" >&6; }
6181  FGREP="$ac_cv_path_FGREP"
6182
6183
6184 test -z "$GREP" && GREP=grep
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204 # Check whether --with-gnu-ld was given.
6205 if test "${with_gnu_ld+set}" = set; then :
6206   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6207 else
6208   with_gnu_ld=no
6209 fi
6210
6211 ac_prog=ld
6212 if test "$GCC" = yes; then
6213   # Check if gcc -print-prog-name=ld gives a path.
6214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6215 $as_echo_n "checking for ld used by $CC... " >&6; }
6216   case $host in
6217   *-*-mingw*)
6218     # gcc leaves a trailing carriage return which upsets mingw
6219     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6220   *)
6221     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6222   esac
6223   case $ac_prog in
6224     # Accept absolute paths.
6225     [\\/]* | ?:[\\/]*)
6226       re_direlt='/[^/][^/]*/\.\./'
6227       # Canonicalize the pathname of ld
6228       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6229       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6230         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6231       done
6232       test -z "$LD" && LD="$ac_prog"
6233       ;;
6234   "")
6235     # If it fails, then pretend we aren't using GCC.
6236     ac_prog=ld
6237     ;;
6238   *)
6239     # If it is relative, then search for the first ld in PATH.
6240     with_gnu_ld=unknown
6241     ;;
6242   esac
6243 elif test "$with_gnu_ld" = yes; then
6244   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6245 $as_echo_n "checking for GNU ld... " >&6; }
6246 else
6247   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6248 $as_echo_n "checking for non-GNU ld... " >&6; }
6249 fi
6250 if ${lt_cv_path_LD+:} false; then :
6251   $as_echo_n "(cached) " >&6
6252 else
6253   if test -z "$LD"; then
6254   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6255   for ac_dir in $PATH; do
6256     IFS="$lt_save_ifs"
6257     test -z "$ac_dir" && ac_dir=.
6258     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6259       lt_cv_path_LD="$ac_dir/$ac_prog"
6260       # Check to see if the program is GNU ld.  I'd rather use --version,
6261       # but apparently some variants of GNU ld only accept -v.
6262       # Break only if it was the GNU/non-GNU ld that we prefer.
6263       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6264       *GNU* | *'with BFD'*)
6265         test "$with_gnu_ld" != no && break
6266         ;;
6267       *)
6268         test "$with_gnu_ld" != yes && break
6269         ;;
6270       esac
6271     fi
6272   done
6273   IFS="$lt_save_ifs"
6274 else
6275   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6276 fi
6277 fi
6278
6279 LD="$lt_cv_path_LD"
6280 if test -n "$LD"; then
6281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6282 $as_echo "$LD" >&6; }
6283 else
6284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6285 $as_echo "no" >&6; }
6286 fi
6287 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6289 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6290 if ${lt_cv_prog_gnu_ld+:} false; then :
6291   $as_echo_n "(cached) " >&6
6292 else
6293   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6294 case `$LD -v 2>&1 </dev/null` in
6295 *GNU* | *'with BFD'*)
6296   lt_cv_prog_gnu_ld=yes
6297   ;;
6298 *)
6299   lt_cv_prog_gnu_ld=no
6300   ;;
6301 esac
6302 fi
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6304 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6305 with_gnu_ld=$lt_cv_prog_gnu_ld
6306
6307
6308
6309
6310
6311
6312
6313
6314
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6316 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6317 if ${lt_cv_path_NM+:} false; then :
6318   $as_echo_n "(cached) " >&6
6319 else
6320   if test -n "$NM"; then
6321   # Let the user override the test.
6322   lt_cv_path_NM="$NM"
6323 else
6324   lt_nm_to_check="${ac_tool_prefix}nm"
6325   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6326     lt_nm_to_check="$lt_nm_to_check nm"
6327   fi
6328   for lt_tmp_nm in $lt_nm_to_check; do
6329     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6330     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6331       IFS="$lt_save_ifs"
6332       test -z "$ac_dir" && ac_dir=.
6333       tmp_nm="$ac_dir/$lt_tmp_nm"
6334       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6335         # Check to see if the nm accepts a BSD-compat flag.
6336         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6337         #   nm: unknown option "B" ignored
6338         # Tru64's nm complains that /dev/null is an invalid object file
6339         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6340         */dev/null* | *'Invalid file or object type'*)
6341           lt_cv_path_NM="$tmp_nm -B"
6342           break
6343           ;;
6344         *)
6345           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6346           */dev/null*)
6347             lt_cv_path_NM="$tmp_nm -p"
6348             break
6349             ;;
6350           *)
6351             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6352             continue # so that we can try to find one that supports BSD flags
6353             ;;
6354           esac
6355           ;;
6356         esac
6357       fi
6358     done
6359     IFS="$lt_save_ifs"
6360   done
6361   : ${lt_cv_path_NM=no}
6362 fi
6363 fi
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6365 $as_echo "$lt_cv_path_NM" >&6; }
6366 if test "$lt_cv_path_NM" != "no"; then
6367   NM="$lt_cv_path_NM"
6368 else
6369   # Didn't find any BSD compatible name lister, look for dumpbin.
6370   if test -n "$DUMPBIN"; then :
6371     # Let the user override the test.
6372   else
6373     if test -n "$ac_tool_prefix"; then
6374   for ac_prog in dumpbin "link -dump"
6375   do
6376     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6377 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6379 $as_echo_n "checking for $ac_word... " >&6; }
6380 if ${ac_cv_prog_DUMPBIN+:} false; then :
6381   $as_echo_n "(cached) " >&6
6382 else
6383   if test -n "$DUMPBIN"; then
6384   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6385 else
6386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387 for as_dir in $PATH
6388 do
6389   IFS=$as_save_IFS
6390   test -z "$as_dir" && as_dir=.
6391     for ac_exec_ext in '' $ac_executable_extensions; do
6392   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6393     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6394     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6395     break 2
6396   fi
6397 done
6398   done
6399 IFS=$as_save_IFS
6400
6401 fi
6402 fi
6403 DUMPBIN=$ac_cv_prog_DUMPBIN
6404 if test -n "$DUMPBIN"; then
6405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6406 $as_echo "$DUMPBIN" >&6; }
6407 else
6408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6409 $as_echo "no" >&6; }
6410 fi
6411
6412
6413     test -n "$DUMPBIN" && break
6414   done
6415 fi
6416 if test -z "$DUMPBIN"; then
6417   ac_ct_DUMPBIN=$DUMPBIN
6418   for ac_prog in dumpbin "link -dump"
6419 do
6420   # Extract the first word of "$ac_prog", so it can be a program name with args.
6421 set dummy $ac_prog; ac_word=$2
6422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6423 $as_echo_n "checking for $ac_word... " >&6; }
6424 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6425   $as_echo_n "(cached) " >&6
6426 else
6427   if test -n "$ac_ct_DUMPBIN"; then
6428   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6429 else
6430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6431 for as_dir in $PATH
6432 do
6433   IFS=$as_save_IFS
6434   test -z "$as_dir" && as_dir=.
6435     for ac_exec_ext in '' $ac_executable_extensions; do
6436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6437     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6439     break 2
6440   fi
6441 done
6442   done
6443 IFS=$as_save_IFS
6444
6445 fi
6446 fi
6447 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6448 if test -n "$ac_ct_DUMPBIN"; then
6449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6450 $as_echo "$ac_ct_DUMPBIN" >&6; }
6451 else
6452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6453 $as_echo "no" >&6; }
6454 fi
6455
6456
6457   test -n "$ac_ct_DUMPBIN" && break
6458 done
6459
6460   if test "x$ac_ct_DUMPBIN" = x; then
6461     DUMPBIN=":"
6462   else
6463     case $cross_compiling:$ac_tool_warned in
6464 yes:)
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6466 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6467 ac_tool_warned=yes ;;
6468 esac
6469     DUMPBIN=$ac_ct_DUMPBIN
6470   fi
6471 fi
6472
6473     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6474     *COFF*)
6475       DUMPBIN="$DUMPBIN -symbols"
6476       ;;
6477     *)
6478       DUMPBIN=:
6479       ;;
6480     esac
6481   fi
6482
6483   if test "$DUMPBIN" != ":"; then
6484     NM="$DUMPBIN"
6485   fi
6486 fi
6487 test -z "$NM" && NM=nm
6488
6489
6490
6491
6492
6493
6494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6495 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6496 if ${lt_cv_nm_interface+:} false; then :
6497   $as_echo_n "(cached) " >&6
6498 else
6499   lt_cv_nm_interface="BSD nm"
6500   echo "int some_variable = 0;" > conftest.$ac_ext
6501   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6502   (eval "$ac_compile" 2>conftest.err)
6503   cat conftest.err >&5
6504   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6505   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6506   cat conftest.err >&5
6507   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6508   cat conftest.out >&5
6509   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6510     lt_cv_nm_interface="MS dumpbin"
6511   fi
6512   rm -f conftest*
6513 fi
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6515 $as_echo "$lt_cv_nm_interface" >&6; }
6516
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6518 $as_echo_n "checking whether ln -s works... " >&6; }
6519 LN_S=$as_ln_s
6520 if test "$LN_S" = "ln -s"; then
6521   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6522 $as_echo "yes" >&6; }
6523 else
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6525 $as_echo "no, using $LN_S" >&6; }
6526 fi
6527
6528 # find the maximum length of command line arguments
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6530 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6531 if ${lt_cv_sys_max_cmd_len+:} false; then :
6532   $as_echo_n "(cached) " >&6
6533 else
6534     i=0
6535   teststring="ABCD"
6536
6537   case $build_os in
6538   msdosdjgpp*)
6539     # On DJGPP, this test can blow up pretty badly due to problems in libc
6540     # (any single argument exceeding 2000 bytes causes a buffer overrun
6541     # during glob expansion).  Even if it were fixed, the result of this
6542     # check would be larger than it should be.
6543     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6544     ;;
6545
6546   gnu*)
6547     # Under GNU Hurd, this test is not required because there is
6548     # no limit to the length of command line arguments.
6549     # Libtool will interpret -1 as no limit whatsoever
6550     lt_cv_sys_max_cmd_len=-1;
6551     ;;
6552
6553   cygwin* | mingw* | cegcc*)
6554     # On Win9x/ME, this test blows up -- it succeeds, but takes
6555     # about 5 minutes as the teststring grows exponentially.
6556     # Worse, since 9x/ME are not pre-emptively multitasking,
6557     # you end up with a "frozen" computer, even though with patience
6558     # the test eventually succeeds (with a max line length of 256k).
6559     # Instead, let's just punt: use the minimum linelength reported by
6560     # all of the supported platforms: 8192 (on NT/2K/XP).
6561     lt_cv_sys_max_cmd_len=8192;
6562     ;;
6563
6564   mint*)
6565     # On MiNT this can take a long time and run out of memory.
6566     lt_cv_sys_max_cmd_len=8192;
6567     ;;
6568
6569   amigaos*)
6570     # On AmigaOS with pdksh, this test takes hours, literally.
6571     # So we just punt and use a minimum line length of 8192.
6572     lt_cv_sys_max_cmd_len=8192;
6573     ;;
6574
6575   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6576     # This has been around since 386BSD, at least.  Likely further.
6577     if test -x /sbin/sysctl; then
6578       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6579     elif test -x /usr/sbin/sysctl; then
6580       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6581     else
6582       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6583     fi
6584     # And add a safety zone
6585     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6586     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6587     ;;
6588
6589   interix*)
6590     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6591     lt_cv_sys_max_cmd_len=196608
6592     ;;
6593
6594   os2*)
6595     # The test takes a long time on OS/2.
6596     lt_cv_sys_max_cmd_len=8192
6597     ;;
6598
6599   osf*)
6600     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6601     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6602     # nice to cause kernel panics so lets avoid the loop below.
6603     # First set a reasonable default.
6604     lt_cv_sys_max_cmd_len=16384
6605     #
6606     if test -x /sbin/sysconfig; then
6607       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6608         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6609       esac
6610     fi
6611     ;;
6612   sco3.2v5*)
6613     lt_cv_sys_max_cmd_len=102400
6614     ;;
6615   sysv5* | sco5v6* | sysv4.2uw2*)
6616     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6617     if test -n "$kargmax"; then
6618       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6619     else
6620       lt_cv_sys_max_cmd_len=32768
6621     fi
6622     ;;
6623   *)
6624     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6625     if test -n "$lt_cv_sys_max_cmd_len" && \
6626         test undefined != "$lt_cv_sys_max_cmd_len"; then
6627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6629     else
6630       # Make teststring a little bigger before we do anything with it.
6631       # a 1K string should be a reasonable start.
6632       for i in 1 2 3 4 5 6 7 8 ; do
6633         teststring=$teststring$teststring
6634       done
6635       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6636       # If test is not a shell built-in, we'll probably end up computing a
6637       # maximum length that is only half of the actual maximum length, but
6638       # we can't tell.
6639       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6640                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6641               test $i != 17 # 1/2 MB should be enough
6642       do
6643         i=`expr $i + 1`
6644         teststring=$teststring$teststring
6645       done
6646       # Only check the string length outside the loop.
6647       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6648       teststring=
6649       # Add a significant safety factor because C++ compilers can tack on
6650       # massive amounts of additional arguments before passing them to the
6651       # linker.  It appears as though 1/2 is a usable value.
6652       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6653     fi
6654     ;;
6655   esac
6656
6657 fi
6658
6659 if test -n $lt_cv_sys_max_cmd_len ; then
6660   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6661 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6662 else
6663   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6664 $as_echo "none" >&6; }
6665 fi
6666 max_cmd_len=$lt_cv_sys_max_cmd_len
6667
6668
6669
6670
6671
6672
6673 : ${CP="cp -f"}
6674 : ${MV="mv -f"}
6675 : ${RM="rm -f"}
6676
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6678 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6679 # Try some XSI features
6680 xsi_shell=no
6681 ( _lt_dummy="a/b/c"
6682   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6683       = c,a/b,b/c, \
6684     && eval 'test $(( 1 + 1 )) -eq 2 \
6685     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6686   && xsi_shell=yes
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6688 $as_echo "$xsi_shell" >&6; }
6689
6690
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6692 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6693 lt_shell_append=no
6694 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6695     >/dev/null 2>&1 \
6696   && lt_shell_append=yes
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6698 $as_echo "$lt_shell_append" >&6; }
6699
6700
6701 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6702   lt_unset=unset
6703 else
6704   lt_unset=false
6705 fi
6706
6707
6708
6709
6710
6711 # test EBCDIC or ASCII
6712 case `echo X|tr X '\101'` in
6713  A) # ASCII based system
6714     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6715   lt_SP2NL='tr \040 \012'
6716   lt_NL2SP='tr \015\012 \040\040'
6717   ;;
6718  *) # EBCDIC based system
6719   lt_SP2NL='tr \100 \n'
6720   lt_NL2SP='tr \r\n \100\100'
6721   ;;
6722 esac
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6733 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6734 if ${lt_cv_to_host_file_cmd+:} false; then :
6735   $as_echo_n "(cached) " >&6
6736 else
6737   case $host in
6738   *-*-mingw* )
6739     case $build in
6740       *-*-mingw* ) # actually msys
6741         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6742         ;;
6743       *-*-cygwin* )
6744         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6745         ;;
6746       * ) # otherwise, assume *nix
6747         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6748         ;;
6749     esac
6750     ;;
6751   *-*-cygwin* )
6752     case $build in
6753       *-*-mingw* ) # actually msys
6754         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6755         ;;
6756       *-*-cygwin* )
6757         lt_cv_to_host_file_cmd=func_convert_file_noop
6758         ;;
6759       * ) # otherwise, assume *nix
6760         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6761         ;;
6762     esac
6763     ;;
6764   * ) # unhandled hosts (and "normal" native builds)
6765     lt_cv_to_host_file_cmd=func_convert_file_noop
6766     ;;
6767 esac
6768
6769 fi
6770
6771 to_host_file_cmd=$lt_cv_to_host_file_cmd
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6773 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6774
6775
6776
6777
6778
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6780 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6781 if ${lt_cv_to_tool_file_cmd+:} false; then :
6782   $as_echo_n "(cached) " >&6
6783 else
6784   #assume ordinary cross tools, or native build.
6785 lt_cv_to_tool_file_cmd=func_convert_file_noop
6786 case $host in
6787   *-*-mingw* )
6788     case $build in
6789       *-*-mingw* ) # actually msys
6790         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6791         ;;
6792     esac
6793     ;;
6794 esac
6795
6796 fi
6797
6798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6800 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6801
6802
6803
6804
6805
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6807 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6808 if ${lt_cv_ld_reload_flag+:} false; then :
6809   $as_echo_n "(cached) " >&6
6810 else
6811   lt_cv_ld_reload_flag='-r'
6812 fi
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6814 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6815 reload_flag=$lt_cv_ld_reload_flag
6816 case $reload_flag in
6817 "" | " "*) ;;
6818 *) reload_flag=" $reload_flag" ;;
6819 esac
6820 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6821 case $host_os in
6822   cygwin* | mingw* | pw32* | cegcc*)
6823     if test "$GCC" != yes; then
6824       reload_cmds=false
6825     fi
6826     ;;
6827   darwin*)
6828     if test "$GCC" = yes; then
6829       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6830     else
6831       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832     fi
6833     ;;
6834 esac
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844 if test -n "$ac_tool_prefix"; then
6845   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6846 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if ${ac_cv_prog_OBJDUMP+:} false; then :
6850   $as_echo_n "(cached) " >&6
6851 else
6852   if test -n "$OBJDUMP"; then
6853   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6854 else
6855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6856 for as_dir in $PATH
6857 do
6858   IFS=$as_save_IFS
6859   test -z "$as_dir" && as_dir=.
6860     for ac_exec_ext in '' $ac_executable_extensions; do
6861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6862     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864     break 2
6865   fi
6866 done
6867   done
6868 IFS=$as_save_IFS
6869
6870 fi
6871 fi
6872 OBJDUMP=$ac_cv_prog_OBJDUMP
6873 if test -n "$OBJDUMP"; then
6874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6875 $as_echo "$OBJDUMP" >&6; }
6876 else
6877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878 $as_echo "no" >&6; }
6879 fi
6880
6881
6882 fi
6883 if test -z "$ac_cv_prog_OBJDUMP"; then
6884   ac_ct_OBJDUMP=$OBJDUMP
6885   # Extract the first word of "objdump", so it can be a program name with args.
6886 set dummy objdump; ac_word=$2
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888 $as_echo_n "checking for $ac_word... " >&6; }
6889 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6890   $as_echo_n "(cached) " >&6
6891 else
6892   if test -n "$ac_ct_OBJDUMP"; then
6893   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6894 else
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6896 for as_dir in $PATH
6897 do
6898   IFS=$as_save_IFS
6899   test -z "$as_dir" && as_dir=.
6900     for ac_exec_ext in '' $ac_executable_extensions; do
6901   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6902     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6903     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904     break 2
6905   fi
6906 done
6907   done
6908 IFS=$as_save_IFS
6909
6910 fi
6911 fi
6912 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6913 if test -n "$ac_ct_OBJDUMP"; then
6914   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6915 $as_echo "$ac_ct_OBJDUMP" >&6; }
6916 else
6917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918 $as_echo "no" >&6; }
6919 fi
6920
6921   if test "x$ac_ct_OBJDUMP" = x; then
6922     OBJDUMP="false"
6923   else
6924     case $cross_compiling:$ac_tool_warned in
6925 yes:)
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928 ac_tool_warned=yes ;;
6929 esac
6930     OBJDUMP=$ac_ct_OBJDUMP
6931   fi
6932 else
6933   OBJDUMP="$ac_cv_prog_OBJDUMP"
6934 fi
6935
6936 test -z "$OBJDUMP" && OBJDUMP=objdump
6937
6938
6939
6940
6941
6942
6943
6944
6945
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6947 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6948 if ${lt_cv_deplibs_check_method+:} false; then :
6949   $as_echo_n "(cached) " >&6
6950 else
6951   lt_cv_file_magic_cmd='$MAGIC_CMD'
6952 lt_cv_file_magic_test_file=
6953 lt_cv_deplibs_check_method='unknown'
6954 # Need to set the preceding variable on all platforms that support
6955 # interlibrary dependencies.
6956 # 'none' -- dependencies not supported.
6957 # `unknown' -- same as none, but documents that we really don't know.
6958 # 'pass_all' -- all dependencies passed with no checks.
6959 # 'test_compile' -- check by making test program.
6960 # 'file_magic [[regex]]' -- check by looking for files in library path
6961 # which responds to the $file_magic_cmd with a given extended regex.
6962 # If you have `file' or equivalent on your system and you're not sure
6963 # whether `pass_all' will *always* work, you probably want this one.
6964
6965 case $host_os in
6966 aix[4-9]*)
6967   lt_cv_deplibs_check_method=pass_all
6968   ;;
6969
6970 beos*)
6971   lt_cv_deplibs_check_method=pass_all
6972   ;;
6973
6974 bsdi[45]*)
6975   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6976   lt_cv_file_magic_cmd='/usr/bin/file -L'
6977   lt_cv_file_magic_test_file=/shlib/libc.so
6978   ;;
6979
6980 cygwin*)
6981   # func_win32_libid is a shell function defined in ltmain.sh
6982   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6983   lt_cv_file_magic_cmd='func_win32_libid'
6984   ;;
6985
6986 mingw* | pw32*)
6987   # Base MSYS/MinGW do not provide the 'file' command needed by
6988   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6989   # unless we find 'file', for example because we are cross-compiling.
6990   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6991   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6992     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6993     lt_cv_file_magic_cmd='func_win32_libid'
6994   else
6995     # Keep this pattern in sync with the one in func_win32_libid.
6996     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6997     lt_cv_file_magic_cmd='$OBJDUMP -f'
6998   fi
6999   ;;
7000
7001 cegcc*)
7002   # use the weaker test based on 'objdump'. See mingw*.
7003   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7004   lt_cv_file_magic_cmd='$OBJDUMP -f'
7005   ;;
7006
7007 darwin* | rhapsody*)
7008   lt_cv_deplibs_check_method=pass_all
7009   ;;
7010
7011 freebsd* | dragonfly*)
7012   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7013     case $host_cpu in
7014     i*86 )
7015       # Not sure whether the presence of OpenBSD here was a mistake.
7016       # Let's accept both of them until this is cleared up.
7017       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7018       lt_cv_file_magic_cmd=/usr/bin/file
7019       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7020       ;;
7021     esac
7022   else
7023     lt_cv_deplibs_check_method=pass_all
7024   fi
7025   ;;
7026
7027 haiku*)
7028   lt_cv_deplibs_check_method=pass_all
7029   ;;
7030
7031 hpux10.20* | hpux11*)
7032   lt_cv_file_magic_cmd=/usr/bin/file
7033   case $host_cpu in
7034   ia64*)
7035     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7036     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7037     ;;
7038   hppa*64*)
7039     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]'
7040     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7041     ;;
7042   *)
7043     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7044     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7045     ;;
7046   esac
7047   ;;
7048
7049 interix[3-9]*)
7050   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7051   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7052   ;;
7053
7054 irix5* | irix6* | nonstopux*)
7055   case $LD in
7056   *-32|*"-32 ") libmagic=32-bit;;
7057   *-n32|*"-n32 ") libmagic=N32;;
7058   *-64|*"-64 ") libmagic=64-bit;;
7059   *) libmagic=never-match;;
7060   esac
7061   lt_cv_deplibs_check_method=pass_all
7062   ;;
7063
7064 # This must be glibc/ELF.
7065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7066   lt_cv_deplibs_check_method=pass_all
7067   ;;
7068
7069 netbsd* | netbsdelf*-gnu)
7070   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7071     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7072   else
7073     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7074   fi
7075   ;;
7076
7077 newos6*)
7078   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7079   lt_cv_file_magic_cmd=/usr/bin/file
7080   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7081   ;;
7082
7083 *nto* | *qnx*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 openbsd*)
7088   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7089     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7090   else
7091     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7092   fi
7093   ;;
7094
7095 osf3* | osf4* | osf5*)
7096   lt_cv_deplibs_check_method=pass_all
7097   ;;
7098
7099 rdos*)
7100   lt_cv_deplibs_check_method=pass_all
7101   ;;
7102
7103 solaris*)
7104   lt_cv_deplibs_check_method=pass_all
7105   ;;
7106
7107 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7108   lt_cv_deplibs_check_method=pass_all
7109   ;;
7110
7111 sysv4 | sysv4.3*)
7112   case $host_vendor in
7113   motorola)
7114     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]'
7115     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7116     ;;
7117   ncr)
7118     lt_cv_deplibs_check_method=pass_all
7119     ;;
7120   sequent)
7121     lt_cv_file_magic_cmd='/bin/file'
7122     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7123     ;;
7124   sni)
7125     lt_cv_file_magic_cmd='/bin/file'
7126     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7127     lt_cv_file_magic_test_file=/lib/libc.so
7128     ;;
7129   siemens)
7130     lt_cv_deplibs_check_method=pass_all
7131     ;;
7132   pc)
7133     lt_cv_deplibs_check_method=pass_all
7134     ;;
7135   esac
7136   ;;
7137
7138 tpf*)
7139   lt_cv_deplibs_check_method=pass_all
7140   ;;
7141 esac
7142
7143 fi
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7146
7147 file_magic_glob=
7148 want_nocaseglob=no
7149 if test "$build" = "$host"; then
7150   case $host_os in
7151   mingw* | pw32*)
7152     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7153       want_nocaseglob=yes
7154     else
7155       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7156     fi
7157     ;;
7158   esac
7159 fi
7160
7161 file_magic_cmd=$lt_cv_file_magic_cmd
7162 deplibs_check_method=$lt_cv_deplibs_check_method
7163 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186 if test -n "$ac_tool_prefix"; then
7187   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7188 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7190 $as_echo_n "checking for $ac_word... " >&6; }
7191 if ${ac_cv_prog_DLLTOOL+:} false; then :
7192   $as_echo_n "(cached) " >&6
7193 else
7194   if test -n "$DLLTOOL"; then
7195   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7196 else
7197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7198 for as_dir in $PATH
7199 do
7200   IFS=$as_save_IFS
7201   test -z "$as_dir" && as_dir=.
7202     for ac_exec_ext in '' $ac_executable_extensions; do
7203   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7204     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7205     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7206     break 2
7207   fi
7208 done
7209   done
7210 IFS=$as_save_IFS
7211
7212 fi
7213 fi
7214 DLLTOOL=$ac_cv_prog_DLLTOOL
7215 if test -n "$DLLTOOL"; then
7216   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7217 $as_echo "$DLLTOOL" >&6; }
7218 else
7219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7220 $as_echo "no" >&6; }
7221 fi
7222
7223
7224 fi
7225 if test -z "$ac_cv_prog_DLLTOOL"; then
7226   ac_ct_DLLTOOL=$DLLTOOL
7227   # Extract the first word of "dlltool", so it can be a program name with args.
7228 set dummy dlltool; ac_word=$2
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7230 $as_echo_n "checking for $ac_word... " >&6; }
7231 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7232   $as_echo_n "(cached) " >&6
7233 else
7234   if test -n "$ac_ct_DLLTOOL"; then
7235   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7236 else
7237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7238 for as_dir in $PATH
7239 do
7240   IFS=$as_save_IFS
7241   test -z "$as_dir" && as_dir=.
7242     for ac_exec_ext in '' $ac_executable_extensions; do
7243   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7244     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7245     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7246     break 2
7247   fi
7248 done
7249   done
7250 IFS=$as_save_IFS
7251
7252 fi
7253 fi
7254 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7255 if test -n "$ac_ct_DLLTOOL"; then
7256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7257 $as_echo "$ac_ct_DLLTOOL" >&6; }
7258 else
7259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 fi
7262
7263   if test "x$ac_ct_DLLTOOL" = x; then
7264     DLLTOOL="false"
7265   else
7266     case $cross_compiling:$ac_tool_warned in
7267 yes:)
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7270 ac_tool_warned=yes ;;
7271 esac
7272     DLLTOOL=$ac_ct_DLLTOOL
7273   fi
7274 else
7275   DLLTOOL="$ac_cv_prog_DLLTOOL"
7276 fi
7277
7278 test -z "$DLLTOOL" && DLLTOOL=dlltool
7279
7280
7281
7282
7283
7284
7285
7286
7287
7288
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7290 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7291 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7292   $as_echo_n "(cached) " >&6
7293 else
7294   lt_cv_sharedlib_from_linklib_cmd='unknown'
7295
7296 case $host_os in
7297 cygwin* | mingw* | pw32* | cegcc*)
7298   # two different shell functions defined in ltmain.sh
7299   # decide which to use based on capabilities of $DLLTOOL
7300   case `$DLLTOOL --help 2>&1` in
7301   *--identify-strict*)
7302     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7303     ;;
7304   *)
7305     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7306     ;;
7307   esac
7308   ;;
7309 *)
7310   # fallback: assume linklib IS sharedlib
7311   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7312   ;;
7313 esac
7314
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7317 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7318 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7319 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7320
7321
7322
7323
7324
7325
7326
7327 if test -n "$ac_tool_prefix"; then
7328   for ac_prog in ar
7329   do
7330     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7333 $as_echo_n "checking for $ac_word... " >&6; }
7334 if ${ac_cv_prog_AR+:} false; then :
7335   $as_echo_n "(cached) " >&6
7336 else
7337   if test -n "$AR"; then
7338   ac_cv_prog_AR="$AR" # Let the user override the test.
7339 else
7340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7341 for as_dir in $PATH
7342 do
7343   IFS=$as_save_IFS
7344   test -z "$as_dir" && as_dir=.
7345     for ac_exec_ext in '' $ac_executable_extensions; do
7346   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7347     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7348     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349     break 2
7350   fi
7351 done
7352   done
7353 IFS=$as_save_IFS
7354
7355 fi
7356 fi
7357 AR=$ac_cv_prog_AR
7358 if test -n "$AR"; then
7359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7360 $as_echo "$AR" >&6; }
7361 else
7362   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7363 $as_echo "no" >&6; }
7364 fi
7365
7366
7367     test -n "$AR" && break
7368   done
7369 fi
7370 if test -z "$AR"; then
7371   ac_ct_AR=$AR
7372   for ac_prog in ar
7373 do
7374   # Extract the first word of "$ac_prog", so it can be a program name with args.
7375 set dummy $ac_prog; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7379   $as_echo_n "(cached) " >&6
7380 else
7381   if test -n "$ac_ct_AR"; then
7382   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7386 do
7387   IFS=$as_save_IFS
7388   test -z "$as_dir" && as_dir=.
7389     for ac_exec_ext in '' $ac_executable_extensions; do
7390   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7391     ac_cv_prog_ac_ct_AR="$ac_prog"
7392     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393     break 2
7394   fi
7395 done
7396   done
7397 IFS=$as_save_IFS
7398
7399 fi
7400 fi
7401 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7402 if test -n "$ac_ct_AR"; then
7403   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7404 $as_echo "$ac_ct_AR" >&6; }
7405 else
7406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7408 fi
7409
7410
7411   test -n "$ac_ct_AR" && break
7412 done
7413
7414   if test "x$ac_ct_AR" = x; then
7415     AR="false"
7416   else
7417     case $cross_compiling:$ac_tool_warned in
7418 yes:)
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7421 ac_tool_warned=yes ;;
7422 esac
7423     AR=$ac_ct_AR
7424   fi
7425 fi
7426
7427 : ${AR=ar}
7428 : ${AR_FLAGS=cru}
7429
7430
7431
7432
7433
7434
7435
7436
7437
7438
7439
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7441 $as_echo_n "checking for archiver @FILE support... " >&6; }
7442 if ${lt_cv_ar_at_file+:} false; then :
7443   $as_echo_n "(cached) " >&6
7444 else
7445   lt_cv_ar_at_file=no
7446    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7447 /* end confdefs.h.  */
7448
7449 int
7450 main ()
7451 {
7452
7453   ;
7454   return 0;
7455 }
7456 _ACEOF
7457 if ac_fn_c_try_compile "$LINENO"; then :
7458   echo conftest.$ac_objext > conftest.lst
7459       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7460       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7461   (eval $lt_ar_try) 2>&5
7462   ac_status=$?
7463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7464   test $ac_status = 0; }
7465       if test "$ac_status" -eq 0; then
7466         # Ensure the archiver fails upon bogus file names.
7467         rm -f conftest.$ac_objext libconftest.a
7468         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7469   (eval $lt_ar_try) 2>&5
7470   ac_status=$?
7471   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7472   test $ac_status = 0; }
7473         if test "$ac_status" -ne 0; then
7474           lt_cv_ar_at_file=@
7475         fi
7476       fi
7477       rm -f conftest.* libconftest.a
7478
7479 fi
7480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7481
7482 fi
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7484 $as_echo "$lt_cv_ar_at_file" >&6; }
7485
7486 if test "x$lt_cv_ar_at_file" = xno; then
7487   archiver_list_spec=
7488 else
7489   archiver_list_spec=$lt_cv_ar_at_file
7490 fi
7491
7492
7493
7494
7495
7496
7497
7498 if test -n "$ac_tool_prefix"; then
7499   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7500 set dummy ${ac_tool_prefix}strip; ac_word=$2
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7502 $as_echo_n "checking for $ac_word... " >&6; }
7503 if ${ac_cv_prog_STRIP+:} false; then :
7504   $as_echo_n "(cached) " >&6
7505 else
7506   if test -n "$STRIP"; then
7507   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7508 else
7509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510 for as_dir in $PATH
7511 do
7512   IFS=$as_save_IFS
7513   test -z "$as_dir" && as_dir=.
7514     for ac_exec_ext in '' $ac_executable_extensions; do
7515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7516     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7518     break 2
7519   fi
7520 done
7521   done
7522 IFS=$as_save_IFS
7523
7524 fi
7525 fi
7526 STRIP=$ac_cv_prog_STRIP
7527 if test -n "$STRIP"; then
7528   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7529 $as_echo "$STRIP" >&6; }
7530 else
7531   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7532 $as_echo "no" >&6; }
7533 fi
7534
7535
7536 fi
7537 if test -z "$ac_cv_prog_STRIP"; then
7538   ac_ct_STRIP=$STRIP
7539   # Extract the first word of "strip", so it can be a program name with args.
7540 set dummy strip; ac_word=$2
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7542 $as_echo_n "checking for $ac_word... " >&6; }
7543 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7544   $as_echo_n "(cached) " >&6
7545 else
7546   if test -n "$ac_ct_STRIP"; then
7547   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7548 else
7549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550 for as_dir in $PATH
7551 do
7552   IFS=$as_save_IFS
7553   test -z "$as_dir" && as_dir=.
7554     for ac_exec_ext in '' $ac_executable_extensions; do
7555   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7556     ac_cv_prog_ac_ct_STRIP="strip"
7557     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7558     break 2
7559   fi
7560 done
7561   done
7562 IFS=$as_save_IFS
7563
7564 fi
7565 fi
7566 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7567 if test -n "$ac_ct_STRIP"; then
7568   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7569 $as_echo "$ac_ct_STRIP" >&6; }
7570 else
7571   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7572 $as_echo "no" >&6; }
7573 fi
7574
7575   if test "x$ac_ct_STRIP" = x; then
7576     STRIP=":"
7577   else
7578     case $cross_compiling:$ac_tool_warned in
7579 yes:)
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7582 ac_tool_warned=yes ;;
7583 esac
7584     STRIP=$ac_ct_STRIP
7585   fi
7586 else
7587   STRIP="$ac_cv_prog_STRIP"
7588 fi
7589
7590 test -z "$STRIP" && STRIP=:
7591
7592
7593
7594
7595
7596
7597 if test -n "$ac_tool_prefix"; then
7598   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7599 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7601 $as_echo_n "checking for $ac_word... " >&6; }
7602 if ${ac_cv_prog_RANLIB+:} false; then :
7603   $as_echo_n "(cached) " >&6
7604 else
7605   if test -n "$RANLIB"; then
7606   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7607 else
7608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7609 for as_dir in $PATH
7610 do
7611   IFS=$as_save_IFS
7612   test -z "$as_dir" && as_dir=.
7613     for ac_exec_ext in '' $ac_executable_extensions; do
7614   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7615     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7616     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7617     break 2
7618   fi
7619 done
7620   done
7621 IFS=$as_save_IFS
7622
7623 fi
7624 fi
7625 RANLIB=$ac_cv_prog_RANLIB
7626 if test -n "$RANLIB"; then
7627   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7628 $as_echo "$RANLIB" >&6; }
7629 else
7630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7631 $as_echo "no" >&6; }
7632 fi
7633
7634
7635 fi
7636 if test -z "$ac_cv_prog_RANLIB"; then
7637   ac_ct_RANLIB=$RANLIB
7638   # Extract the first word of "ranlib", so it can be a program name with args.
7639 set dummy ranlib; ac_word=$2
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7641 $as_echo_n "checking for $ac_word... " >&6; }
7642 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7643   $as_echo_n "(cached) " >&6
7644 else
7645   if test -n "$ac_ct_RANLIB"; then
7646   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7647 else
7648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7649 for as_dir in $PATH
7650 do
7651   IFS=$as_save_IFS
7652   test -z "$as_dir" && as_dir=.
7653     for ac_exec_ext in '' $ac_executable_extensions; do
7654   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7655     ac_cv_prog_ac_ct_RANLIB="ranlib"
7656     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7657     break 2
7658   fi
7659 done
7660   done
7661 IFS=$as_save_IFS
7662
7663 fi
7664 fi
7665 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7666 if test -n "$ac_ct_RANLIB"; then
7667   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7668 $as_echo "$ac_ct_RANLIB" >&6; }
7669 else
7670   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7671 $as_echo "no" >&6; }
7672 fi
7673
7674   if test "x$ac_ct_RANLIB" = x; then
7675     RANLIB=":"
7676   else
7677     case $cross_compiling:$ac_tool_warned in
7678 yes:)
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7681 ac_tool_warned=yes ;;
7682 esac
7683     RANLIB=$ac_ct_RANLIB
7684   fi
7685 else
7686   RANLIB="$ac_cv_prog_RANLIB"
7687 fi
7688
7689 test -z "$RANLIB" && RANLIB=:
7690
7691
7692
7693
7694
7695
7696 # Determine commands to create old-style static archives.
7697 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7698 old_postinstall_cmds='chmod 644 $oldlib'
7699 old_postuninstall_cmds=
7700
7701 if test -n "$RANLIB"; then
7702   case $host_os in
7703   openbsd*)
7704     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7705     ;;
7706   *)
7707     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7708     ;;
7709   esac
7710   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7711 fi
7712
7713 case $host_os in
7714   darwin*)
7715     lock_old_archive_extraction=yes ;;
7716   *)
7717     lock_old_archive_extraction=no ;;
7718 esac
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
7740
7741
7742
7743
7744
7745
7746
7747
7748
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758 # If no C compiler was specified, use CC.
7759 LTCC=${LTCC-"$CC"}
7760
7761 # If no C compiler flags were specified, use CFLAGS.
7762 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7763
7764 # Allow CC to be a program name with arguments.
7765 compiler=$CC
7766
7767
7768 # Check for command to grab the raw symbol name followed by C symbol from nm.
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7770 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7771 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7772   $as_echo_n "(cached) " >&6
7773 else
7774
7775 # These are sane defaults that work on at least a few old systems.
7776 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7777
7778 # Character class describing NM global symbol codes.
7779 symcode='[BCDEGRST]'
7780
7781 # Regexp to match symbols that can be accessed directly from C.
7782 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7783
7784 # Define system-specific variables.
7785 case $host_os in
7786 aix*)
7787   symcode='[BCDT]'
7788   ;;
7789 cygwin* | mingw* | pw32* | cegcc*)
7790   symcode='[ABCDGISTW]'
7791   ;;
7792 hpux*)
7793   if test "$host_cpu" = ia64; then
7794     symcode='[ABCDEGRST]'
7795   fi
7796   ;;
7797 irix* | nonstopux*)
7798   symcode='[BCDEGRST]'
7799   ;;
7800 osf*)
7801   symcode='[BCDEGQRST]'
7802   ;;
7803 solaris*)
7804   symcode='[BDRT]'
7805   ;;
7806 sco3.2v5*)
7807   symcode='[DT]'
7808   ;;
7809 sysv4.2uw2*)
7810   symcode='[DT]'
7811   ;;
7812 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7813   symcode='[ABDT]'
7814   ;;
7815 sysv4)
7816   symcode='[DFNSTU]'
7817   ;;
7818 esac
7819
7820 # If we're using GNU nm, then use its standard symbol codes.
7821 case `$NM -V 2>&1` in
7822 *GNU* | *'with BFD'*)
7823   symcode='[ABCDGIRSTW]' ;;
7824 esac
7825
7826 # Transform an extracted symbol line into a proper C declaration.
7827 # Some systems (esp. on ia64) link data and code symbols differently,
7828 # so use this general approach.
7829 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7830
7831 # Transform an extracted symbol line into symbol name and symbol address
7832 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7833 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'"
7834
7835 # Handle CRLF in mingw tool chain
7836 opt_cr=
7837 case $build_os in
7838 mingw*)
7839   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7840   ;;
7841 esac
7842
7843 # Try without a prefix underscore, then with it.
7844 for ac_symprfx in "" "_"; do
7845
7846   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7847   symxfrm="\\1 $ac_symprfx\\2 \\2"
7848
7849   # Write the raw and C identifiers.
7850   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7851     # Fake it for dumpbin and say T for any non-static function
7852     # and D for any global variable.
7853     # Also find C++ and __fastcall symbols from MSVC++,
7854     # which start with @ or ?.
7855     lt_cv_sys_global_symbol_pipe="$AWK '"\
7856 "     {last_section=section; section=\$ 3};"\
7857 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7858 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7859 "     \$ 0!~/External *\|/{next};"\
7860 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7861 "     {if(hide[section]) next};"\
7862 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7863 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7864 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7865 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7866 "     ' prfx=^$ac_symprfx"
7867   else
7868     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7869   fi
7870   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7871
7872   # Check to see that the pipe works correctly.
7873   pipe_works=no
7874
7875   rm -f conftest*
7876   cat > conftest.$ac_ext <<_LT_EOF
7877 #ifdef __cplusplus
7878 extern "C" {
7879 #endif
7880 char nm_test_var;
7881 void nm_test_func(void);
7882 void nm_test_func(void){}
7883 #ifdef __cplusplus
7884 }
7885 #endif
7886 int main(){nm_test_var='a';nm_test_func();return(0);}
7887 _LT_EOF
7888
7889   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7890   (eval $ac_compile) 2>&5
7891   ac_status=$?
7892   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7893   test $ac_status = 0; }; then
7894     # Now try to grab the symbols.
7895     nlist=conftest.nm
7896     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7897   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7898   ac_status=$?
7899   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7900   test $ac_status = 0; } && test -s "$nlist"; then
7901       # Try sorting and uniquifying the output.
7902       if sort "$nlist" | uniq > "$nlist"T; then
7903         mv -f "$nlist"T "$nlist"
7904       else
7905         rm -f "$nlist"T
7906       fi
7907
7908       # Make sure that we snagged all the symbols we need.
7909       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7910         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7911           cat <<_LT_EOF > conftest.$ac_ext
7912 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7913 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7914 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7915    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7916 # define LT_DLSYM_CONST
7917 #elif defined(__osf__)
7918 /* This system does not cope well with relocations in const data.  */
7919 # define LT_DLSYM_CONST
7920 #else
7921 # define LT_DLSYM_CONST const
7922 #endif
7923
7924 #ifdef __cplusplus
7925 extern "C" {
7926 #endif
7927
7928 _LT_EOF
7929           # Now generate the symbol file.
7930           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7931
7932           cat <<_LT_EOF >> conftest.$ac_ext
7933
7934 /* The mapping between symbol names and symbols.  */
7935 LT_DLSYM_CONST struct {
7936   const char *name;
7937   void       *address;
7938 }
7939 lt__PROGRAM__LTX_preloaded_symbols[] =
7940 {
7941   { "@PROGRAM@", (void *) 0 },
7942 _LT_EOF
7943           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7944           cat <<\_LT_EOF >> conftest.$ac_ext
7945   {0, (void *) 0}
7946 };
7947
7948 /* This works around a problem in FreeBSD linker */
7949 #ifdef FREEBSD_WORKAROUND
7950 static const void *lt_preloaded_setup() {
7951   return lt__PROGRAM__LTX_preloaded_symbols;
7952 }
7953 #endif
7954
7955 #ifdef __cplusplus
7956 }
7957 #endif
7958 _LT_EOF
7959           # Now try linking the two files.
7960           mv conftest.$ac_objext conftstm.$ac_objext
7961           lt_globsym_save_LIBS=$LIBS
7962           lt_globsym_save_CFLAGS=$CFLAGS
7963           LIBS="conftstm.$ac_objext"
7964           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7965           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7966   (eval $ac_link) 2>&5
7967   ac_status=$?
7968   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7969   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7970             pipe_works=yes
7971           fi
7972           LIBS=$lt_globsym_save_LIBS
7973           CFLAGS=$lt_globsym_save_CFLAGS
7974         else
7975           echo "cannot find nm_test_func in $nlist" >&5
7976         fi
7977       else
7978         echo "cannot find nm_test_var in $nlist" >&5
7979       fi
7980     else
7981       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7982     fi
7983   else
7984     echo "$progname: failed program was:" >&5
7985     cat conftest.$ac_ext >&5
7986   fi
7987   rm -rf conftest* conftst*
7988
7989   # Do not use the global_symbol_pipe unless it works.
7990   if test "$pipe_works" = yes; then
7991     break
7992   else
7993     lt_cv_sys_global_symbol_pipe=
7994   fi
7995 done
7996
7997 fi
7998
7999 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8000   lt_cv_sys_global_symbol_to_cdecl=
8001 fi
8002 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8004 $as_echo "failed" >&6; }
8005 else
8006   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8007 $as_echo "ok" >&6; }
8008 fi
8009
8010 # Response file support.
8011 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8012   nm_file_list_spec='@'
8013 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
8014   nm_file_list_spec='@'
8015 fi
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8044 $as_echo_n "checking for sysroot... " >&6; }
8045
8046 # Check whether --with-sysroot was given.
8047 if test "${with_sysroot+set}" = set; then :
8048   withval=$with_sysroot;
8049 else
8050   with_sysroot=no
8051 fi
8052
8053
8054 lt_sysroot=
8055 case ${with_sysroot} in #(
8056  yes)
8057    if test "$GCC" = yes; then
8058      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8059    fi
8060    ;; #(
8061  /*)
8062    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8063    ;; #(
8064  no|'')
8065    ;; #(
8066  *)
8067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8068 $as_echo "${with_sysroot}" >&6; }
8069    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8070    ;;
8071 esac
8072
8073  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8074 $as_echo "${lt_sysroot:-no}" >&6; }
8075
8076
8077
8078
8079
8080 # Check whether --enable-libtool-lock was given.
8081 if test "${enable_libtool_lock+set}" = set; then :
8082   enableval=$enable_libtool_lock;
8083 fi
8084
8085 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8086
8087 # Some flags need to be propagated to the compiler or linker for good
8088 # libtool support.
8089 case $host in
8090 ia64-*-hpux*)
8091   # Find out which ABI we are using.
8092   echo 'int i;' > conftest.$ac_ext
8093   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8094   (eval $ac_compile) 2>&5
8095   ac_status=$?
8096   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8097   test $ac_status = 0; }; then
8098     case `/usr/bin/file conftest.$ac_objext` in
8099       *ELF-32*)
8100         HPUX_IA64_MODE="32"
8101         ;;
8102       *ELF-64*)
8103         HPUX_IA64_MODE="64"
8104         ;;
8105     esac
8106   fi
8107   rm -rf conftest*
8108   ;;
8109 *-*-irix6*)
8110   # Find out which ABI we are using.
8111   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8112   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8113   (eval $ac_compile) 2>&5
8114   ac_status=$?
8115   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8116   test $ac_status = 0; }; then
8117     if test "$lt_cv_prog_gnu_ld" = yes; then
8118       case `/usr/bin/file conftest.$ac_objext` in
8119         *32-bit*)
8120           LD="${LD-ld} -melf32bsmip"
8121           ;;
8122         *N32*)
8123           LD="${LD-ld} -melf32bmipn32"
8124           ;;
8125         *64-bit*)
8126           LD="${LD-ld} -melf64bmip"
8127         ;;
8128       esac
8129     else
8130       case `/usr/bin/file conftest.$ac_objext` in
8131         *32-bit*)
8132           LD="${LD-ld} -32"
8133           ;;
8134         *N32*)
8135           LD="${LD-ld} -n32"
8136           ;;
8137         *64-bit*)
8138           LD="${LD-ld} -64"
8139           ;;
8140       esac
8141     fi
8142   fi
8143   rm -rf conftest*
8144   ;;
8145
8146 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8147 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8148   # Find out which ABI we are using.
8149   echo 'int i;' > conftest.$ac_ext
8150   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8151   (eval $ac_compile) 2>&5
8152   ac_status=$?
8153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8154   test $ac_status = 0; }; then
8155     case `/usr/bin/file conftest.o` in
8156       *32-bit*)
8157         case $host in
8158           x86_64-*kfreebsd*-gnu)
8159             LD="${LD-ld} -m elf_i386_fbsd"
8160             ;;
8161           x86_64-*linux*)
8162             case `/usr/bin/file conftest.o` in
8163               *x86-64*)
8164                 LD="${LD-ld} -m elf32_x86_64"
8165                 ;;
8166               *)
8167                 LD="${LD-ld} -m elf_i386"
8168                 ;;
8169             esac
8170             ;;
8171           powerpc64le-*)
8172             LD="${LD-ld} -m elf32lppclinux"
8173             ;;
8174           powerpc64-*)
8175             LD="${LD-ld} -m elf32ppclinux"
8176             ;;
8177           s390x-*linux*)
8178             LD="${LD-ld} -m elf_s390"
8179             ;;
8180           sparc64-*linux*)
8181             LD="${LD-ld} -m elf32_sparc"
8182             ;;
8183         esac
8184         ;;
8185       *64-bit*)
8186         case $host in
8187           x86_64-*kfreebsd*-gnu)
8188             LD="${LD-ld} -m elf_x86_64_fbsd"
8189             ;;
8190           x86_64-*linux*)
8191             LD="${LD-ld} -m elf_x86_64"
8192             ;;
8193           powerpcle-*)
8194             LD="${LD-ld} -m elf64lppc"
8195             ;;
8196           powerpc-*)
8197             LD="${LD-ld} -m elf64ppc"
8198             ;;
8199           s390*-*linux*|s390*-*tpf*)
8200             LD="${LD-ld} -m elf64_s390"
8201             ;;
8202           sparc*-*linux*)
8203             LD="${LD-ld} -m elf64_sparc"
8204             ;;
8205         esac
8206         ;;
8207     esac
8208   fi
8209   rm -rf conftest*
8210   ;;
8211
8212 *-*-sco3.2v5*)
8213   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8214   SAVE_CFLAGS="$CFLAGS"
8215   CFLAGS="$CFLAGS -belf"
8216   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8217 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8218 if ${lt_cv_cc_needs_belf+:} false; then :
8219   $as_echo_n "(cached) " >&6
8220 else
8221   ac_ext=c
8222 ac_cpp='$CPP $CPPFLAGS'
8223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8226
8227      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8228 /* end confdefs.h.  */
8229
8230 int
8231 main ()
8232 {
8233
8234   ;
8235   return 0;
8236 }
8237 _ACEOF
8238 if ac_fn_c_try_link "$LINENO"; then :
8239   lt_cv_cc_needs_belf=yes
8240 else
8241   lt_cv_cc_needs_belf=no
8242 fi
8243 rm -f core conftest.err conftest.$ac_objext \
8244     conftest$ac_exeext conftest.$ac_ext
8245      ac_ext=c
8246 ac_cpp='$CPP $CPPFLAGS'
8247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8250
8251 fi
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8253 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8254   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8255     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8256     CFLAGS="$SAVE_CFLAGS"
8257   fi
8258   ;;
8259 *-*solaris*)
8260   # Find out which ABI we are using.
8261   echo 'int i;' > conftest.$ac_ext
8262   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8263   (eval $ac_compile) 2>&5
8264   ac_status=$?
8265   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8266   test $ac_status = 0; }; then
8267     case `/usr/bin/file conftest.o` in
8268     *64-bit*)
8269       case $lt_cv_prog_gnu_ld in
8270       yes*)
8271         case $host in
8272         i?86-*-solaris*)
8273           LD="${LD-ld} -m elf_x86_64"
8274           ;;
8275         sparc*-*-solaris*)
8276           LD="${LD-ld} -m elf64_sparc"
8277           ;;
8278         esac
8279         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8280         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8281           LD="${LD-ld}_sol2"
8282         fi
8283         ;;
8284       *)
8285         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8286           LD="${LD-ld} -64"
8287         fi
8288         ;;
8289       esac
8290       ;;
8291     esac
8292   fi
8293   rm -rf conftest*
8294   ;;
8295 esac
8296
8297 need_locks="$enable_libtool_lock"
8298
8299 if test -n "$ac_tool_prefix"; then
8300   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8301 set dummy ${ac_tool_prefix}mt; ac_word=$2
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303 $as_echo_n "checking for $ac_word... " >&6; }
8304 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8305   $as_echo_n "(cached) " >&6
8306 else
8307   if test -n "$MANIFEST_TOOL"; then
8308   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
8313   IFS=$as_save_IFS
8314   test -z "$as_dir" && as_dir=.
8315     for ac_exec_ext in '' $ac_executable_extensions; do
8316   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8318     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319     break 2
8320   fi
8321 done
8322   done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8328 if test -n "$MANIFEST_TOOL"; then
8329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8330 $as_echo "$MANIFEST_TOOL" >&6; }
8331 else
8332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336
8337 fi
8338 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8339   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8340   # Extract the first word of "mt", so it can be a program name with args.
8341 set dummy mt; ac_word=$2
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8343 $as_echo_n "checking for $ac_word... " >&6; }
8344 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8345   $as_echo_n "(cached) " >&6
8346 else
8347   if test -n "$ac_ct_MANIFEST_TOOL"; then
8348   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8349 else
8350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 for as_dir in $PATH
8352 do
8353   IFS=$as_save_IFS
8354   test -z "$as_dir" && as_dir=.
8355     for ac_exec_ext in '' $ac_executable_extensions; do
8356   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8357     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8358     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8359     break 2
8360   fi
8361 done
8362   done
8363 IFS=$as_save_IFS
8364
8365 fi
8366 fi
8367 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8368 if test -n "$ac_ct_MANIFEST_TOOL"; then
8369   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8370 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8371 else
8372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8373 $as_echo "no" >&6; }
8374 fi
8375
8376   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8377     MANIFEST_TOOL=":"
8378   else
8379     case $cross_compiling:$ac_tool_warned in
8380 yes:)
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8383 ac_tool_warned=yes ;;
8384 esac
8385     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8386   fi
8387 else
8388   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8389 fi
8390
8391 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8393 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8394 if ${lt_cv_path_mainfest_tool+:} false; then :
8395   $as_echo_n "(cached) " >&6
8396 else
8397   lt_cv_path_mainfest_tool=no
8398   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8399   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8400   cat conftest.err >&5
8401   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8402     lt_cv_path_mainfest_tool=yes
8403   fi
8404   rm -f conftest*
8405 fi
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8407 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8408 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8409   MANIFEST_TOOL=:
8410 fi
8411
8412
8413
8414
8415
8416
8417   case $host_os in
8418     rhapsody* | darwin*)
8419     if test -n "$ac_tool_prefix"; then
8420   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8421 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8425   $as_echo_n "(cached) " >&6
8426 else
8427   if test -n "$DSYMUTIL"; then
8428   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8429 else
8430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8431 for as_dir in $PATH
8432 do
8433   IFS=$as_save_IFS
8434   test -z "$as_dir" && as_dir=.
8435     for ac_exec_ext in '' $ac_executable_extensions; do
8436   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8437     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8438     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8439     break 2
8440   fi
8441 done
8442   done
8443 IFS=$as_save_IFS
8444
8445 fi
8446 fi
8447 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8448 if test -n "$DSYMUTIL"; then
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8450 $as_echo "$DSYMUTIL" >&6; }
8451 else
8452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8454 fi
8455
8456
8457 fi
8458 if test -z "$ac_cv_prog_DSYMUTIL"; then
8459   ac_ct_DSYMUTIL=$DSYMUTIL
8460   # Extract the first word of "dsymutil", so it can be a program name with args.
8461 set dummy dsymutil; ac_word=$2
8462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8463 $as_echo_n "checking for $ac_word... " >&6; }
8464 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8465   $as_echo_n "(cached) " >&6
8466 else
8467   if test -n "$ac_ct_DSYMUTIL"; then
8468   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8469 else
8470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475     for ac_exec_ext in '' $ac_executable_extensions; do
8476   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8477     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8478     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482   done
8483 IFS=$as_save_IFS
8484
8485 fi
8486 fi
8487 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8488 if test -n "$ac_ct_DSYMUTIL"; then
8489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8490 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8491 else
8492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8493 $as_echo "no" >&6; }
8494 fi
8495
8496   if test "x$ac_ct_DSYMUTIL" = x; then
8497     DSYMUTIL=":"
8498   else
8499     case $cross_compiling:$ac_tool_warned in
8500 yes:)
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8502 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8503 ac_tool_warned=yes ;;
8504 esac
8505     DSYMUTIL=$ac_ct_DSYMUTIL
8506   fi
8507 else
8508   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8509 fi
8510
8511     if test -n "$ac_tool_prefix"; then
8512   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8513 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_prog_NMEDIT+:} false; then :
8517   $as_echo_n "(cached) " >&6
8518 else
8519   if test -n "$NMEDIT"; then
8520   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8521 else
8522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8523 for as_dir in $PATH
8524 do
8525   IFS=$as_save_IFS
8526   test -z "$as_dir" && as_dir=.
8527     for ac_exec_ext in '' $ac_executable_extensions; do
8528   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8529     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8530     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8531     break 2
8532   fi
8533 done
8534   done
8535 IFS=$as_save_IFS
8536
8537 fi
8538 fi
8539 NMEDIT=$ac_cv_prog_NMEDIT
8540 if test -n "$NMEDIT"; then
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8542 $as_echo "$NMEDIT" >&6; }
8543 else
8544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8546 fi
8547
8548
8549 fi
8550 if test -z "$ac_cv_prog_NMEDIT"; then
8551   ac_ct_NMEDIT=$NMEDIT
8552   # Extract the first word of "nmedit", so it can be a program name with args.
8553 set dummy nmedit; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8557   $as_echo_n "(cached) " >&6
8558 else
8559   if test -n "$ac_ct_NMEDIT"; then
8560   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8561 else
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8563 for as_dir in $PATH
8564 do
8565   IFS=$as_save_IFS
8566   test -z "$as_dir" && as_dir=.
8567     for ac_exec_ext in '' $ac_executable_extensions; do
8568   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8570     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8571     break 2
8572   fi
8573 done
8574   done
8575 IFS=$as_save_IFS
8576
8577 fi
8578 fi
8579 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8580 if test -n "$ac_ct_NMEDIT"; then
8581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8582 $as_echo "$ac_ct_NMEDIT" >&6; }
8583 else
8584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8586 fi
8587
8588   if test "x$ac_ct_NMEDIT" = x; then
8589     NMEDIT=":"
8590   else
8591     case $cross_compiling:$ac_tool_warned in
8592 yes:)
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8595 ac_tool_warned=yes ;;
8596 esac
8597     NMEDIT=$ac_ct_NMEDIT
8598   fi
8599 else
8600   NMEDIT="$ac_cv_prog_NMEDIT"
8601 fi
8602
8603     if test -n "$ac_tool_prefix"; then
8604   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8605 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8607 $as_echo_n "checking for $ac_word... " >&6; }
8608 if ${ac_cv_prog_LIPO+:} false; then :
8609   $as_echo_n "(cached) " >&6
8610 else
8611   if test -n "$LIPO"; then
8612   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8613 else
8614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8615 for as_dir in $PATH
8616 do
8617   IFS=$as_save_IFS
8618   test -z "$as_dir" && as_dir=.
8619     for ac_exec_ext in '' $ac_executable_extensions; do
8620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8621     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8623     break 2
8624   fi
8625 done
8626   done
8627 IFS=$as_save_IFS
8628
8629 fi
8630 fi
8631 LIPO=$ac_cv_prog_LIPO
8632 if test -n "$LIPO"; then
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8634 $as_echo "$LIPO" >&6; }
8635 else
8636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8637 $as_echo "no" >&6; }
8638 fi
8639
8640
8641 fi
8642 if test -z "$ac_cv_prog_LIPO"; then
8643   ac_ct_LIPO=$LIPO
8644   # Extract the first word of "lipo", so it can be a program name with args.
8645 set dummy lipo; ac_word=$2
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8647 $as_echo_n "checking for $ac_word... " >&6; }
8648 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8649   $as_echo_n "(cached) " >&6
8650 else
8651   if test -n "$ac_ct_LIPO"; then
8652   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8653 else
8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8655 for as_dir in $PATH
8656 do
8657   IFS=$as_save_IFS
8658   test -z "$as_dir" && as_dir=.
8659     for ac_exec_ext in '' $ac_executable_extensions; do
8660   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8661     ac_cv_prog_ac_ct_LIPO="lipo"
8662     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8663     break 2
8664   fi
8665 done
8666   done
8667 IFS=$as_save_IFS
8668
8669 fi
8670 fi
8671 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8672 if test -n "$ac_ct_LIPO"; then
8673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8674 $as_echo "$ac_ct_LIPO" >&6; }
8675 else
8676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8677 $as_echo "no" >&6; }
8678 fi
8679
8680   if test "x$ac_ct_LIPO" = x; then
8681     LIPO=":"
8682   else
8683     case $cross_compiling:$ac_tool_warned in
8684 yes:)
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8686 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8687 ac_tool_warned=yes ;;
8688 esac
8689     LIPO=$ac_ct_LIPO
8690   fi
8691 else
8692   LIPO="$ac_cv_prog_LIPO"
8693 fi
8694
8695     if test -n "$ac_tool_prefix"; then
8696   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8697 set dummy ${ac_tool_prefix}otool; ac_word=$2
8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8699 $as_echo_n "checking for $ac_word... " >&6; }
8700 if ${ac_cv_prog_OTOOL+:} false; then :
8701   $as_echo_n "(cached) " >&6
8702 else
8703   if test -n "$OTOOL"; then
8704   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8705 else
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8707 for as_dir in $PATH
8708 do
8709   IFS=$as_save_IFS
8710   test -z "$as_dir" && as_dir=.
8711     for ac_exec_ext in '' $ac_executable_extensions; do
8712   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8713     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8714     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8715     break 2
8716   fi
8717 done
8718   done
8719 IFS=$as_save_IFS
8720
8721 fi
8722 fi
8723 OTOOL=$ac_cv_prog_OTOOL
8724 if test -n "$OTOOL"; then
8725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8726 $as_echo "$OTOOL" >&6; }
8727 else
8728   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8729 $as_echo "no" >&6; }
8730 fi
8731
8732
8733 fi
8734 if test -z "$ac_cv_prog_OTOOL"; then
8735   ac_ct_OTOOL=$OTOOL
8736   # Extract the first word of "otool", so it can be a program name with args.
8737 set dummy otool; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8741   $as_echo_n "(cached) " >&6
8742 else
8743   if test -n "$ac_ct_OTOOL"; then
8744   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8745 else
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8747 for as_dir in $PATH
8748 do
8749   IFS=$as_save_IFS
8750   test -z "$as_dir" && as_dir=.
8751     for ac_exec_ext in '' $ac_executable_extensions; do
8752   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753     ac_cv_prog_ac_ct_OTOOL="otool"
8754     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8755     break 2
8756   fi
8757 done
8758   done
8759 IFS=$as_save_IFS
8760
8761 fi
8762 fi
8763 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8764 if test -n "$ac_ct_OTOOL"; then
8765   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8766 $as_echo "$ac_ct_OTOOL" >&6; }
8767 else
8768   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8770 fi
8771
8772   if test "x$ac_ct_OTOOL" = x; then
8773     OTOOL=":"
8774   else
8775     case $cross_compiling:$ac_tool_warned in
8776 yes:)
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8779 ac_tool_warned=yes ;;
8780 esac
8781     OTOOL=$ac_ct_OTOOL
8782   fi
8783 else
8784   OTOOL="$ac_cv_prog_OTOOL"
8785 fi
8786
8787     if test -n "$ac_tool_prefix"; then
8788   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8789 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8791 $as_echo_n "checking for $ac_word... " >&6; }
8792 if ${ac_cv_prog_OTOOL64+:} false; then :
8793   $as_echo_n "(cached) " >&6
8794 else
8795   if test -n "$OTOOL64"; then
8796   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8797 else
8798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8799 for as_dir in $PATH
8800 do
8801   IFS=$as_save_IFS
8802   test -z "$as_dir" && as_dir=.
8803     for ac_exec_ext in '' $ac_executable_extensions; do
8804   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8805     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8806     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8807     break 2
8808   fi
8809 done
8810   done
8811 IFS=$as_save_IFS
8812
8813 fi
8814 fi
8815 OTOOL64=$ac_cv_prog_OTOOL64
8816 if test -n "$OTOOL64"; then
8817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8818 $as_echo "$OTOOL64" >&6; }
8819 else
8820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8821 $as_echo "no" >&6; }
8822 fi
8823
8824
8825 fi
8826 if test -z "$ac_cv_prog_OTOOL64"; then
8827   ac_ct_OTOOL64=$OTOOL64
8828   # Extract the first word of "otool64", so it can be a program name with args.
8829 set dummy otool64; ac_word=$2
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8831 $as_echo_n "checking for $ac_word... " >&6; }
8832 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8833   $as_echo_n "(cached) " >&6
8834 else
8835   if test -n "$ac_ct_OTOOL64"; then
8836   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8837 else
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8840 do
8841   IFS=$as_save_IFS
8842   test -z "$as_dir" && as_dir=.
8843     for ac_exec_ext in '' $ac_executable_extensions; do
8844   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845     ac_cv_prog_ac_ct_OTOOL64="otool64"
8846     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847     break 2
8848   fi
8849 done
8850   done
8851 IFS=$as_save_IFS
8852
8853 fi
8854 fi
8855 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8856 if test -n "$ac_ct_OTOOL64"; then
8857   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8858 $as_echo "$ac_ct_OTOOL64" >&6; }
8859 else
8860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8861 $as_echo "no" >&6; }
8862 fi
8863
8864   if test "x$ac_ct_OTOOL64" = x; then
8865     OTOOL64=":"
8866   else
8867     case $cross_compiling:$ac_tool_warned in
8868 yes:)
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8871 ac_tool_warned=yes ;;
8872 esac
8873     OTOOL64=$ac_ct_OTOOL64
8874   fi
8875 else
8876   OTOOL64="$ac_cv_prog_OTOOL64"
8877 fi
8878
8879
8880
8881
8882
8883
8884
8885
8886
8887
8888
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898
8899
8900
8901
8902
8903
8904
8905     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8906 $as_echo_n "checking for -single_module linker flag... " >&6; }
8907 if ${lt_cv_apple_cc_single_mod+:} false; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   lt_cv_apple_cc_single_mod=no
8911       if test -z "${LT_MULTI_MODULE}"; then
8912         # By default we will add the -single_module flag. You can override
8913         # by either setting the environment variable LT_MULTI_MODULE
8914         # non-empty at configure time, or by adding -multi_module to the
8915         # link flags.
8916         rm -rf libconftest.dylib*
8917         echo "int foo(void){return 1;}" > conftest.c
8918         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8919 -dynamiclib -Wl,-single_module conftest.c" >&5
8920         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8921           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8922         _lt_result=$?
8923         # If there is a non-empty error log, and "single_module"
8924         # appears in it, assume the flag caused a linker warning
8925         if test -s conftest.err && $GREP single_module conftest.err; then
8926           cat conftest.err >&5
8927         # Otherwise, if the output was created with a 0 exit code from
8928         # the compiler, it worked.
8929         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8930           lt_cv_apple_cc_single_mod=yes
8931         else
8932           cat conftest.err >&5
8933         fi
8934         rm -rf libconftest.dylib*
8935         rm -f conftest.*
8936       fi
8937 fi
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8939 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8940
8941     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8942 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8943 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8944   $as_echo_n "(cached) " >&6
8945 else
8946   lt_cv_ld_exported_symbols_list=no
8947       save_LDFLAGS=$LDFLAGS
8948       echo "_main" > conftest.sym
8949       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8950       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8951 /* end confdefs.h.  */
8952
8953 int
8954 main ()
8955 {
8956
8957   ;
8958   return 0;
8959 }
8960 _ACEOF
8961 if ac_fn_c_try_link "$LINENO"; then :
8962   lt_cv_ld_exported_symbols_list=yes
8963 else
8964   lt_cv_ld_exported_symbols_list=no
8965 fi
8966 rm -f core conftest.err conftest.$ac_objext \
8967     conftest$ac_exeext conftest.$ac_ext
8968         LDFLAGS="$save_LDFLAGS"
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8972 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8973
8974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8975 $as_echo_n "checking for -force_load linker flag... " >&6; }
8976 if ${lt_cv_ld_force_load+:} false; then :
8977   $as_echo_n "(cached) " >&6
8978 else
8979   lt_cv_ld_force_load=no
8980       cat > conftest.c << _LT_EOF
8981 int forced_loaded() { return 2;}
8982 _LT_EOF
8983       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8984       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8985       echo "$AR cru libconftest.a conftest.o" >&5
8986       $AR cru libconftest.a conftest.o 2>&5
8987       echo "$RANLIB libconftest.a" >&5
8988       $RANLIB libconftest.a 2>&5
8989       cat > conftest.c << _LT_EOF
8990 int main() { return 0;}
8991 _LT_EOF
8992       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8993       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8994       _lt_result=$?
8995       if test -s conftest.err && $GREP force_load conftest.err; then
8996         cat conftest.err >&5
8997       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8998         lt_cv_ld_force_load=yes
8999       else
9000         cat conftest.err >&5
9001       fi
9002         rm -f conftest.err libconftest.a conftest conftest.c
9003         rm -rf conftest.dSYM
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9007 $as_echo "$lt_cv_ld_force_load" >&6; }
9008     case $host_os in
9009     rhapsody* | darwin1.[012])
9010       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9011     darwin1.*)
9012       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9013     darwin*) # darwin 5.x on
9014       # if running on 10.5 or later, the deployment target defaults
9015       # to the OS version, if on x86, and 10.4, the deployment
9016       # target defaults to 10.4. Don't you love it?
9017       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
9018         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
9019           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9020         10.[012]*)
9021           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9022         10.*)
9023           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9024       esac
9025     ;;
9026   esac
9027     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9028       _lt_dar_single_mod='$single_module'
9029     fi
9030     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9031       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9032     else
9033       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9034     fi
9035     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9036       _lt_dsymutil='~$DSYMUTIL $lib || :'
9037     else
9038       _lt_dsymutil=
9039     fi
9040     ;;
9041   esac
9042
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9044 $as_echo_n "checking for ANSI C header files... " >&6; }
9045 if ${ac_cv_header_stdc+:} false; then :
9046   $as_echo_n "(cached) " >&6
9047 else
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050 #include <stdlib.h>
9051 #include <stdarg.h>
9052 #include <string.h>
9053 #include <float.h>
9054
9055 int
9056 main ()
9057 {
9058
9059   ;
9060   return 0;
9061 }
9062 _ACEOF
9063 if ac_fn_c_try_compile "$LINENO"; then :
9064   ac_cv_header_stdc=yes
9065 else
9066   ac_cv_header_stdc=no
9067 fi
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9069
9070 if test $ac_cv_header_stdc = yes; then
9071   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9073 /* end confdefs.h.  */
9074 #include <string.h>
9075
9076 _ACEOF
9077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9078   $EGREP "memchr" >/dev/null 2>&1; then :
9079
9080 else
9081   ac_cv_header_stdc=no
9082 fi
9083 rm -f conftest*
9084
9085 fi
9086
9087 if test $ac_cv_header_stdc = yes; then
9088   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9090 /* end confdefs.h.  */
9091 #include <stdlib.h>
9092
9093 _ACEOF
9094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9095   $EGREP "free" >/dev/null 2>&1; then :
9096
9097 else
9098   ac_cv_header_stdc=no
9099 fi
9100 rm -f conftest*
9101
9102 fi
9103
9104 if test $ac_cv_header_stdc = yes; then
9105   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9106   if test "$cross_compiling" = yes; then :
9107   :
9108 else
9109   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110 /* end confdefs.h.  */
9111 #include <ctype.h>
9112 #include <stdlib.h>
9113 #if ((' ' & 0x0FF) == 0x020)
9114 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9115 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9116 #else
9117 # define ISLOWER(c) \
9118                    (('a' <= (c) && (c) <= 'i') \
9119                      || ('j' <= (c) && (c) <= 'r') \
9120                      || ('s' <= (c) && (c) <= 'z'))
9121 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9122 #endif
9123
9124 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9125 int
9126 main ()
9127 {
9128   int i;
9129   for (i = 0; i < 256; i++)
9130     if (XOR (islower (i), ISLOWER (i))
9131         || toupper (i) != TOUPPER (i))
9132       return 2;
9133   return 0;
9134 }
9135 _ACEOF
9136 if ac_fn_c_try_run "$LINENO"; then :
9137
9138 else
9139   ac_cv_header_stdc=no
9140 fi
9141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9142   conftest.$ac_objext conftest.beam conftest.$ac_ext
9143 fi
9144
9145 fi
9146 fi
9147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9148 $as_echo "$ac_cv_header_stdc" >&6; }
9149 if test $ac_cv_header_stdc = yes; then
9150
9151 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9152
9153 fi
9154
9155 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9156 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9157                   inttypes.h stdint.h unistd.h
9158 do :
9159   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9160 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9161 "
9162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9163   cat >>confdefs.h <<_ACEOF
9164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9165 _ACEOF
9166
9167 fi
9168
9169 done
9170
9171
9172 for ac_header in dlfcn.h
9173 do :
9174   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9175 "
9176 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9177   cat >>confdefs.h <<_ACEOF
9178 #define HAVE_DLFCN_H 1
9179 _ACEOF
9180
9181 fi
9182
9183 done
9184
9185
9186
9187
9188 func_stripname_cnf ()
9189 {
9190   case ${2} in
9191   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9192   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9193   esac
9194 } # func_stripname_cnf
9195
9196
9197
9198
9199
9200 # Set options
9201 # Check whether --enable-shared was given.
9202 if test "${enable_shared+set}" = set; then :
9203   enableval=$enable_shared; p=${PACKAGE-default}
9204     case $enableval in
9205     yes) enable_shared=yes ;;
9206     no) enable_shared=no ;;
9207     *)
9208       enable_shared=no
9209       # Look at the argument we got.  We use all the common list separators.
9210       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9211       for pkg in $enableval; do
9212         IFS="$lt_save_ifs"
9213         if test "X$pkg" = "X$p"; then
9214           enable_shared=yes
9215         fi
9216       done
9217       IFS="$lt_save_ifs"
9218       ;;
9219     esac
9220 else
9221   enable_shared=yes
9222 fi
9223
9224
9225
9226
9227
9228
9229
9230 # Check whether --enable-static was given.
9231 if test "${enable_static+set}" = set; then :
9232   enableval=$enable_static; p=${PACKAGE-default}
9233     case $enableval in
9234     yes) enable_static=yes ;;
9235     no) enable_static=no ;;
9236     *)
9237      enable_static=no
9238       # Look at the argument we got.  We use all the common list separators.
9239       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9240       for pkg in $enableval; do
9241         IFS="$lt_save_ifs"
9242         if test "X$pkg" = "X$p"; then
9243           enable_static=yes
9244         fi
9245       done
9246       IFS="$lt_save_ifs"
9247       ;;
9248     esac
9249 else
9250   enable_static=no
9251 fi
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261
9262         enable_dlopen=no
9263
9264
9265   enable_win32_dll=no
9266
9267
9268
9269
9270
9271 # Check whether --with-pic was given.
9272 if test "${with_pic+set}" = set; then :
9273   withval=$with_pic; lt_p=${PACKAGE-default}
9274     case $withval in
9275     yes|no) pic_mode=$withval ;;
9276     *)
9277       pic_mode=default
9278       # Look at the argument we got.  We use all the common list separators.
9279       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9280       for lt_pkg in $withval; do
9281         IFS="$lt_save_ifs"
9282         if test "X$lt_pkg" = "X$lt_p"; then
9283           pic_mode=yes
9284         fi
9285       done
9286       IFS="$lt_save_ifs"
9287       ;;
9288     esac
9289 else
9290   pic_mode=default
9291 fi
9292
9293
9294 test -z "$pic_mode" && pic_mode=default
9295
9296
9297
9298
9299
9300
9301
9302   # Check whether --enable-fast-install was given.
9303 if test "${enable_fast_install+set}" = set; then :
9304   enableval=$enable_fast_install; p=${PACKAGE-default}
9305     case $enableval in
9306     yes) enable_fast_install=yes ;;
9307     no) enable_fast_install=no ;;
9308     *)
9309       enable_fast_install=no
9310       # Look at the argument we got.  We use all the common list separators.
9311       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9312       for pkg in $enableval; do
9313         IFS="$lt_save_ifs"
9314         if test "X$pkg" = "X$p"; then
9315           enable_fast_install=yes
9316         fi
9317       done
9318       IFS="$lt_save_ifs"
9319       ;;
9320     esac
9321 else
9322   enable_fast_install=yes
9323 fi
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 # This can be used to rebuild libtool when needed
9336 LIBTOOL_DEPS="$ltmain"
9337
9338 # Always use our own libtool.
9339 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9340
9341
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370 test -z "$LN_S" && LN_S="ln -s"
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385 if test -n "${ZSH_VERSION+set}" ; then
9386    setopt NO_GLOB_SUBST
9387 fi
9388
9389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9390 $as_echo_n "checking for objdir... " >&6; }
9391 if ${lt_cv_objdir+:} false; then :
9392   $as_echo_n "(cached) " >&6
9393 else
9394   rm -f .libs 2>/dev/null
9395 mkdir .libs 2>/dev/null
9396 if test -d .libs; then
9397   lt_cv_objdir=.libs
9398 else
9399   # MS-DOS does not allow filenames that begin with a dot.
9400   lt_cv_objdir=_libs
9401 fi
9402 rmdir .libs 2>/dev/null
9403 fi
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9405 $as_echo "$lt_cv_objdir" >&6; }
9406 objdir=$lt_cv_objdir
9407
9408
9409
9410
9411
9412 cat >>confdefs.h <<_ACEOF
9413 #define LT_OBJDIR "$lt_cv_objdir/"
9414 _ACEOF
9415
9416
9417
9418
9419 case $host_os in
9420 aix3*)
9421   # AIX sometimes has problems with the GCC collect2 program.  For some
9422   # reason, if we set the COLLECT_NAMES environment variable, the problems
9423   # vanish in a puff of smoke.
9424   if test "X${COLLECT_NAMES+set}" != Xset; then
9425     COLLECT_NAMES=
9426     export COLLECT_NAMES
9427   fi
9428   ;;
9429 esac
9430
9431 # Global variables:
9432 ofile=libtool
9433 can_build_shared=yes
9434
9435 # All known linkers require a `.a' archive for static linking (except MSVC,
9436 # which needs '.lib').
9437 libext=a
9438
9439 with_gnu_ld="$lt_cv_prog_gnu_ld"
9440
9441 old_CC="$CC"
9442 old_CFLAGS="$CFLAGS"
9443
9444 # Set sane defaults for various variables
9445 test -z "$CC" && CC=cc
9446 test -z "$LTCC" && LTCC=$CC
9447 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9448 test -z "$LD" && LD=ld
9449 test -z "$ac_objext" && ac_objext=o
9450
9451 for cc_temp in $compiler""; do
9452   case $cc_temp in
9453     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9454     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9455     \-*) ;;
9456     *) break;;
9457   esac
9458 done
9459 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9460
9461
9462 # Only perform the check for file, if the check method requires it
9463 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9464 case $deplibs_check_method in
9465 file_magic*)
9466   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9467     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9468 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9469 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9470   $as_echo_n "(cached) " >&6
9471 else
9472   case $MAGIC_CMD in
9473 [\\/*] |  ?:[\\/]*)
9474   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9475   ;;
9476 *)
9477   lt_save_MAGIC_CMD="$MAGIC_CMD"
9478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9479   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9480   for ac_dir in $ac_dummy; do
9481     IFS="$lt_save_ifs"
9482     test -z "$ac_dir" && ac_dir=.
9483     if test -f $ac_dir/${ac_tool_prefix}file; then
9484       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9485       if test -n "$file_magic_test_file"; then
9486         case $deplibs_check_method in
9487         "file_magic "*)
9488           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9489           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9490           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9491             $EGREP "$file_magic_regex" > /dev/null; then
9492             :
9493           else
9494             cat <<_LT_EOF 1>&2
9495
9496 *** Warning: the command libtool uses to detect shared libraries,
9497 *** $file_magic_cmd, produces output that libtool cannot recognize.
9498 *** The result is that libtool may fail to recognize shared libraries
9499 *** as such.  This will affect the creation of libtool libraries that
9500 *** depend on shared libraries, but programs linked with such libtool
9501 *** libraries will work regardless of this problem.  Nevertheless, you
9502 *** may want to report the problem to your system manager and/or to
9503 *** bug-libtool@gnu.org
9504
9505 _LT_EOF
9506           fi ;;
9507         esac
9508       fi
9509       break
9510     fi
9511   done
9512   IFS="$lt_save_ifs"
9513   MAGIC_CMD="$lt_save_MAGIC_CMD"
9514   ;;
9515 esac
9516 fi
9517
9518 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9519 if test -n "$MAGIC_CMD"; then
9520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9521 $as_echo "$MAGIC_CMD" >&6; }
9522 else
9523   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9524 $as_echo "no" >&6; }
9525 fi
9526
9527
9528
9529
9530
9531 if test -z "$lt_cv_path_MAGIC_CMD"; then
9532   if test -n "$ac_tool_prefix"; then
9533     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9534 $as_echo_n "checking for file... " >&6; }
9535 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9536   $as_echo_n "(cached) " >&6
9537 else
9538   case $MAGIC_CMD in
9539 [\\/*] |  ?:[\\/]*)
9540   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9541   ;;
9542 *)
9543   lt_save_MAGIC_CMD="$MAGIC_CMD"
9544   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9545   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9546   for ac_dir in $ac_dummy; do
9547     IFS="$lt_save_ifs"
9548     test -z "$ac_dir" && ac_dir=.
9549     if test -f $ac_dir/file; then
9550       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9551       if test -n "$file_magic_test_file"; then
9552         case $deplibs_check_method in
9553         "file_magic "*)
9554           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9555           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9556           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9557             $EGREP "$file_magic_regex" > /dev/null; then
9558             :
9559           else
9560             cat <<_LT_EOF 1>&2
9561
9562 *** Warning: the command libtool uses to detect shared libraries,
9563 *** $file_magic_cmd, produces output that libtool cannot recognize.
9564 *** The result is that libtool may fail to recognize shared libraries
9565 *** as such.  This will affect the creation of libtool libraries that
9566 *** depend on shared libraries, but programs linked with such libtool
9567 *** libraries will work regardless of this problem.  Nevertheless, you
9568 *** may want to report the problem to your system manager and/or to
9569 *** bug-libtool@gnu.org
9570
9571 _LT_EOF
9572           fi ;;
9573         esac
9574       fi
9575       break
9576     fi
9577   done
9578   IFS="$lt_save_ifs"
9579   MAGIC_CMD="$lt_save_MAGIC_CMD"
9580   ;;
9581 esac
9582 fi
9583
9584 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9585 if test -n "$MAGIC_CMD"; then
9586   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9587 $as_echo "$MAGIC_CMD" >&6; }
9588 else
9589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9590 $as_echo "no" >&6; }
9591 fi
9592
9593
9594   else
9595     MAGIC_CMD=:
9596   fi
9597 fi
9598
9599   fi
9600   ;;
9601 esac
9602
9603 # Use C for the default configuration in the libtool script
9604
9605 lt_save_CC="$CC"
9606 ac_ext=c
9607 ac_cpp='$CPP $CPPFLAGS'
9608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9611
9612
9613 # Source file extension for C test sources.
9614 ac_ext=c
9615
9616 # Object file extension for compiled C test sources.
9617 objext=o
9618 objext=$objext
9619
9620 # Code to be used in simple compile tests
9621 lt_simple_compile_test_code="int some_variable = 0;"
9622
9623 # Code to be used in simple link tests
9624 lt_simple_link_test_code='int main(){return(0);}'
9625
9626
9627
9628
9629
9630
9631
9632 # If no C compiler was specified, use CC.
9633 LTCC=${LTCC-"$CC"}
9634
9635 # If no C compiler flags were specified, use CFLAGS.
9636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9637
9638 # Allow CC to be a program name with arguments.
9639 compiler=$CC
9640
9641 # Save the default compiler, since it gets overwritten when the other
9642 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9643 compiler_DEFAULT=$CC
9644
9645 # save warnings/boilerplate of simple test code
9646 ac_outfile=conftest.$ac_objext
9647 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9648 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9649 _lt_compiler_boilerplate=`cat conftest.err`
9650 $RM conftest*
9651
9652 ac_outfile=conftest.$ac_objext
9653 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9654 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9655 _lt_linker_boilerplate=`cat conftest.err`
9656 $RM -r conftest*
9657
9658
9659 ## CAVEAT EMPTOR:
9660 ## There is no encapsulation within the following macros, do not change
9661 ## the running order or otherwise move them around unless you know exactly
9662 ## what you are doing...
9663 if test -n "$compiler"; then
9664
9665 lt_prog_compiler_no_builtin_flag=
9666
9667 if test "$GCC" = yes; then
9668   case $cc_basename in
9669   nvcc*)
9670     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9671   *)
9672     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9673   esac
9674
9675   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9676 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9677 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9678   $as_echo_n "(cached) " >&6
9679 else
9680   lt_cv_prog_compiler_rtti_exceptions=no
9681    ac_outfile=conftest.$ac_objext
9682    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9683    lt_compiler_flag="-fno-rtti -fno-exceptions"
9684    # Insert the option either (1) after the last *FLAGS variable, or
9685    # (2) before a word containing "conftest.", or (3) at the end.
9686    # Note that $ac_compile itself does not contain backslashes and begins
9687    # with a dollar sign (not a hyphen), so the echo should work correctly.
9688    # The option is referenced via a variable to avoid confusing sed.
9689    lt_compile=`echo "$ac_compile" | $SED \
9690    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9691    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9692    -e 's:$: $lt_compiler_flag:'`
9693    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9694    (eval "$lt_compile" 2>conftest.err)
9695    ac_status=$?
9696    cat conftest.err >&5
9697    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698    if (exit $ac_status) && test -s "$ac_outfile"; then
9699      # The compiler can only warn and ignore the option if not recognized
9700      # So say no if there are warnings other than the usual output.
9701      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9702      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9703      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9704        lt_cv_prog_compiler_rtti_exceptions=yes
9705      fi
9706    fi
9707    $RM conftest*
9708
9709 fi
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9711 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9712
9713 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9714     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9715 else
9716     :
9717 fi
9718
9719 fi
9720
9721
9722
9723
9724
9725
9726   lt_prog_compiler_wl=
9727 lt_prog_compiler_pic=
9728 lt_prog_compiler_static=
9729
9730
9731   if test "$GCC" = yes; then
9732     lt_prog_compiler_wl='-Wl,'
9733     lt_prog_compiler_static='-static'
9734
9735     case $host_os in
9736       aix*)
9737       # All AIX code is PIC.
9738       if test "$host_cpu" = ia64; then
9739         # AIX 5 now supports IA64 processor
9740         lt_prog_compiler_static='-Bstatic'
9741       fi
9742       ;;
9743
9744     amigaos*)
9745       case $host_cpu in
9746       powerpc)
9747             # see comment about AmigaOS4 .so support
9748             lt_prog_compiler_pic='-fPIC'
9749         ;;
9750       m68k)
9751             # FIXME: we need at least 68020 code to build shared libraries, but
9752             # adding the `-m68020' flag to GCC prevents building anything better,
9753             # like `-m68040'.
9754             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9755         ;;
9756       esac
9757       ;;
9758
9759     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9760       # PIC is the default for these OSes.
9761       ;;
9762
9763     mingw* | cygwin* | pw32* | os2* | cegcc*)
9764       # This hack is so that the source file can tell whether it is being
9765       # built for inclusion in a dll (and should export symbols for example).
9766       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9767       # (--disable-auto-import) libraries
9768       lt_prog_compiler_pic='-DDLL_EXPORT'
9769       ;;
9770
9771     darwin* | rhapsody*)
9772       # PIC is the default on this platform
9773       # Common symbols not allowed in MH_DYLIB files
9774       lt_prog_compiler_pic='-fno-common'
9775       ;;
9776
9777     haiku*)
9778       # PIC is the default for Haiku.
9779       # The "-static" flag exists, but is broken.
9780       lt_prog_compiler_static=
9781       ;;
9782
9783     hpux*)
9784       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9785       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9786       # sets the default TLS model and affects inlining.
9787       case $host_cpu in
9788       hppa*64*)
9789         # +Z the default
9790         ;;
9791       *)
9792         lt_prog_compiler_pic='-fPIC'
9793         ;;
9794       esac
9795       ;;
9796
9797     interix[3-9]*)
9798       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9799       # Instead, we relocate shared libraries at runtime.
9800       ;;
9801
9802     msdosdjgpp*)
9803       # Just because we use GCC doesn't mean we suddenly get shared libraries
9804       # on systems that don't support them.
9805       lt_prog_compiler_can_build_shared=no
9806       enable_shared=no
9807       ;;
9808
9809     *nto* | *qnx*)
9810       # QNX uses GNU C++, but need to define -shared option too, otherwise
9811       # it will coredump.
9812       lt_prog_compiler_pic='-fPIC -shared'
9813       ;;
9814
9815     sysv4*MP*)
9816       if test -d /usr/nec; then
9817         lt_prog_compiler_pic=-Kconform_pic
9818       fi
9819       ;;
9820
9821     *)
9822       lt_prog_compiler_pic='-fPIC'
9823       ;;
9824     esac
9825
9826     case $cc_basename in
9827     nvcc*) # Cuda Compiler Driver 2.2
9828       lt_prog_compiler_wl='-Xlinker '
9829       if test -n "$lt_prog_compiler_pic"; then
9830         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9831       fi
9832       ;;
9833     esac
9834   else
9835     # PORTME Check for flag to pass linker flags through the system compiler.
9836     case $host_os in
9837     aix*)
9838       lt_prog_compiler_wl='-Wl,'
9839       if test "$host_cpu" = ia64; then
9840         # AIX 5 now supports IA64 processor
9841         lt_prog_compiler_static='-Bstatic'
9842       else
9843         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9844       fi
9845       ;;
9846
9847     mingw* | cygwin* | pw32* | os2* | cegcc*)
9848       # This hack is so that the source file can tell whether it is being
9849       # built for inclusion in a dll (and should export symbols for example).
9850       lt_prog_compiler_pic='-DDLL_EXPORT'
9851       ;;
9852
9853     hpux9* | hpux10* | hpux11*)
9854       lt_prog_compiler_wl='-Wl,'
9855       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9856       # not for PA HP-UX.
9857       case $host_cpu in
9858       hppa*64*|ia64*)
9859         # +Z the default
9860         ;;
9861       *)
9862         lt_prog_compiler_pic='+Z'
9863         ;;
9864       esac
9865       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9866       lt_prog_compiler_static='${wl}-a ${wl}archive'
9867       ;;
9868
9869     irix5* | irix6* | nonstopux*)
9870       lt_prog_compiler_wl='-Wl,'
9871       # PIC (with -KPIC) is the default.
9872       lt_prog_compiler_static='-non_shared'
9873       ;;
9874
9875     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9876       case $cc_basename in
9877       # old Intel for x86_64 which still supported -KPIC.
9878       ecc*)
9879         lt_prog_compiler_wl='-Wl,'
9880         lt_prog_compiler_pic='-KPIC'
9881         lt_prog_compiler_static='-static'
9882         ;;
9883       # icc used to be incompatible with GCC.
9884       # ICC 10 doesn't accept -KPIC any more.
9885       icc* | ifort*)
9886         lt_prog_compiler_wl='-Wl,'
9887         lt_prog_compiler_pic='-fPIC'
9888         lt_prog_compiler_static='-static'
9889         ;;
9890       # Lahey Fortran 8.1.
9891       lf95*)
9892         lt_prog_compiler_wl='-Wl,'
9893         lt_prog_compiler_pic='--shared'
9894         lt_prog_compiler_static='--static'
9895         ;;
9896       nagfor*)
9897         # NAG Fortran compiler
9898         lt_prog_compiler_wl='-Wl,-Wl,,'
9899         lt_prog_compiler_pic='-PIC'
9900         lt_prog_compiler_static='-Bstatic'
9901         ;;
9902       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9903         # Portland Group compilers (*not* the Pentium gcc compiler,
9904         # which looks to be a dead project)
9905         lt_prog_compiler_wl='-Wl,'
9906         lt_prog_compiler_pic='-fpic'
9907         lt_prog_compiler_static='-Bstatic'
9908         ;;
9909       ccc*)
9910         lt_prog_compiler_wl='-Wl,'
9911         # All Alpha code is PIC.
9912         lt_prog_compiler_static='-non_shared'
9913         ;;
9914       xl* | bgxl* | bgf* | mpixl*)
9915         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9916         lt_prog_compiler_wl='-Wl,'
9917         lt_prog_compiler_pic='-qpic'
9918         lt_prog_compiler_static='-qstaticlink'
9919         ;;
9920       *)
9921         case `$CC -V 2>&1 | sed 5q` in
9922         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9923           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9924           lt_prog_compiler_pic='-KPIC'
9925           lt_prog_compiler_static='-Bstatic'
9926           lt_prog_compiler_wl=''
9927           ;;
9928         *Sun\ F* | *Sun*Fortran*)
9929           lt_prog_compiler_pic='-KPIC'
9930           lt_prog_compiler_static='-Bstatic'
9931           lt_prog_compiler_wl='-Qoption ld '
9932           ;;
9933         *Sun\ C*)
9934           # Sun C 5.9
9935           lt_prog_compiler_pic='-KPIC'
9936           lt_prog_compiler_static='-Bstatic'
9937           lt_prog_compiler_wl='-Wl,'
9938           ;;
9939         *Intel*\ [CF]*Compiler*)
9940           lt_prog_compiler_wl='-Wl,'
9941           lt_prog_compiler_pic='-fPIC'
9942           lt_prog_compiler_static='-static'
9943           ;;
9944         *Portland\ Group*)
9945           lt_prog_compiler_wl='-Wl,'
9946           lt_prog_compiler_pic='-fpic'
9947           lt_prog_compiler_static='-Bstatic'
9948           ;;
9949         esac
9950         ;;
9951       esac
9952       ;;
9953
9954     newsos6)
9955       lt_prog_compiler_pic='-KPIC'
9956       lt_prog_compiler_static='-Bstatic'
9957       ;;
9958
9959     *nto* | *qnx*)
9960       # QNX uses GNU C++, but need to define -shared option too, otherwise
9961       # it will coredump.
9962       lt_prog_compiler_pic='-fPIC -shared'
9963       ;;
9964
9965     osf3* | osf4* | osf5*)
9966       lt_prog_compiler_wl='-Wl,'
9967       # All OSF/1 code is PIC.
9968       lt_prog_compiler_static='-non_shared'
9969       ;;
9970
9971     rdos*)
9972       lt_prog_compiler_static='-non_shared'
9973       ;;
9974
9975     solaris*)
9976       lt_prog_compiler_pic='-KPIC'
9977       lt_prog_compiler_static='-Bstatic'
9978       case $cc_basename in
9979       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9980         lt_prog_compiler_wl='-Qoption ld ';;
9981       *)
9982         lt_prog_compiler_wl='-Wl,';;
9983       esac
9984       ;;
9985
9986     sunos4*)
9987       lt_prog_compiler_wl='-Qoption ld '
9988       lt_prog_compiler_pic='-PIC'
9989       lt_prog_compiler_static='-Bstatic'
9990       ;;
9991
9992     sysv4 | sysv4.2uw2* | sysv4.3*)
9993       lt_prog_compiler_wl='-Wl,'
9994       lt_prog_compiler_pic='-KPIC'
9995       lt_prog_compiler_static='-Bstatic'
9996       ;;
9997
9998     sysv4*MP*)
9999       if test -d /usr/nec ;then
10000         lt_prog_compiler_pic='-Kconform_pic'
10001         lt_prog_compiler_static='-Bstatic'
10002       fi
10003       ;;
10004
10005     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10006       lt_prog_compiler_wl='-Wl,'
10007       lt_prog_compiler_pic='-KPIC'
10008       lt_prog_compiler_static='-Bstatic'
10009       ;;
10010
10011     unicos*)
10012       lt_prog_compiler_wl='-Wl,'
10013       lt_prog_compiler_can_build_shared=no
10014       ;;
10015
10016     uts4*)
10017       lt_prog_compiler_pic='-pic'
10018       lt_prog_compiler_static='-Bstatic'
10019       ;;
10020
10021     *)
10022       lt_prog_compiler_can_build_shared=no
10023       ;;
10024     esac
10025   fi
10026
10027 case $host_os in
10028   # For platforms which do not support PIC, -DPIC is meaningless:
10029   *djgpp*)
10030     lt_prog_compiler_pic=
10031     ;;
10032   *)
10033     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10034     ;;
10035 esac
10036
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10038 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10039 if ${lt_cv_prog_compiler_pic+:} false; then :
10040   $as_echo_n "(cached) " >&6
10041 else
10042   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10043 fi
10044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10045 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10046 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10047
10048 #
10049 # Check to make sure the PIC flag actually works.
10050 #
10051 if test -n "$lt_prog_compiler_pic"; then
10052   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10053 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10054 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10055   $as_echo_n "(cached) " >&6
10056 else
10057   lt_cv_prog_compiler_pic_works=no
10058    ac_outfile=conftest.$ac_objext
10059    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10060    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10061    # Insert the option either (1) after the last *FLAGS variable, or
10062    # (2) before a word containing "conftest.", or (3) at the end.
10063    # Note that $ac_compile itself does not contain backslashes and begins
10064    # with a dollar sign (not a hyphen), so the echo should work correctly.
10065    # The option is referenced via a variable to avoid confusing sed.
10066    lt_compile=`echo "$ac_compile" | $SED \
10067    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10068    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10069    -e 's:$: $lt_compiler_flag:'`
10070    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10071    (eval "$lt_compile" 2>conftest.err)
10072    ac_status=$?
10073    cat conftest.err >&5
10074    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10075    if (exit $ac_status) && test -s "$ac_outfile"; then
10076      # The compiler can only warn and ignore the option if not recognized
10077      # So say no if there are warnings other than the usual output.
10078      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10079      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10080      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10081        lt_cv_prog_compiler_pic_works=yes
10082      fi
10083    fi
10084    $RM conftest*
10085
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10088 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10089
10090 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10091     case $lt_prog_compiler_pic in
10092      "" | " "*) ;;
10093      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10094      esac
10095 else
10096     lt_prog_compiler_pic=
10097      lt_prog_compiler_can_build_shared=no
10098 fi
10099
10100 fi
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112 #
10113 # Check to make sure the static flag actually works.
10114 #
10115 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10117 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10118 if ${lt_cv_prog_compiler_static_works+:} false; then :
10119   $as_echo_n "(cached) " >&6
10120 else
10121   lt_cv_prog_compiler_static_works=no
10122    save_LDFLAGS="$LDFLAGS"
10123    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10124    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10125    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10126      # The linker can only warn and ignore the option if not recognized
10127      # So say no if there are warnings
10128      if test -s conftest.err; then
10129        # Append any errors to the config.log.
10130        cat conftest.err 1>&5
10131        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10132        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10133        if diff conftest.exp conftest.er2 >/dev/null; then
10134          lt_cv_prog_compiler_static_works=yes
10135        fi
10136      else
10137        lt_cv_prog_compiler_static_works=yes
10138      fi
10139    fi
10140    $RM -r conftest*
10141    LDFLAGS="$save_LDFLAGS"
10142
10143 fi
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10145 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10146
10147 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10148     :
10149 else
10150     lt_prog_compiler_static=
10151 fi
10152
10153
10154
10155
10156
10157
10158
10159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10160 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10161 if ${lt_cv_prog_compiler_c_o+:} false; then :
10162   $as_echo_n "(cached) " >&6
10163 else
10164   lt_cv_prog_compiler_c_o=no
10165    $RM -r conftest 2>/dev/null
10166    mkdir conftest
10167    cd conftest
10168    mkdir out
10169    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10170
10171    lt_compiler_flag="-o out/conftest2.$ac_objext"
10172    # Insert the option either (1) after the last *FLAGS variable, or
10173    # (2) before a word containing "conftest.", or (3) at the end.
10174    # Note that $ac_compile itself does not contain backslashes and begins
10175    # with a dollar sign (not a hyphen), so the echo should work correctly.
10176    lt_compile=`echo "$ac_compile" | $SED \
10177    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10178    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10179    -e 's:$: $lt_compiler_flag:'`
10180    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10181    (eval "$lt_compile" 2>out/conftest.err)
10182    ac_status=$?
10183    cat out/conftest.err >&5
10184    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10186    then
10187      # The compiler can only warn and ignore the option if not recognized
10188      # So say no if there are warnings
10189      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10190      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10191      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10192        lt_cv_prog_compiler_c_o=yes
10193      fi
10194    fi
10195    chmod u+w . 2>&5
10196    $RM conftest*
10197    # SGI C++ compiler will create directory out/ii_files/ for
10198    # template instantiation
10199    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10200    $RM out/* && rmdir out
10201    cd ..
10202    $RM -r conftest
10203    $RM conftest*
10204
10205 fi
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10207 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10208
10209
10210
10211
10212
10213
10214   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10215 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10216 if ${lt_cv_prog_compiler_c_o+:} false; then :
10217   $as_echo_n "(cached) " >&6
10218 else
10219   lt_cv_prog_compiler_c_o=no
10220    $RM -r conftest 2>/dev/null
10221    mkdir conftest
10222    cd conftest
10223    mkdir out
10224    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10225
10226    lt_compiler_flag="-o out/conftest2.$ac_objext"
10227    # Insert the option either (1) after the last *FLAGS variable, or
10228    # (2) before a word containing "conftest.", or (3) at the end.
10229    # Note that $ac_compile itself does not contain backslashes and begins
10230    # with a dollar sign (not a hyphen), so the echo should work correctly.
10231    lt_compile=`echo "$ac_compile" | $SED \
10232    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10233    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10234    -e 's:$: $lt_compiler_flag:'`
10235    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10236    (eval "$lt_compile" 2>out/conftest.err)
10237    ac_status=$?
10238    cat out/conftest.err >&5
10239    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10241    then
10242      # The compiler can only warn and ignore the option if not recognized
10243      # So say no if there are warnings
10244      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10245      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10246      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10247        lt_cv_prog_compiler_c_o=yes
10248      fi
10249    fi
10250    chmod u+w . 2>&5
10251    $RM conftest*
10252    # SGI C++ compiler will create directory out/ii_files/ for
10253    # template instantiation
10254    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10255    $RM out/* && rmdir out
10256    cd ..
10257    $RM -r conftest
10258    $RM conftest*
10259
10260 fi
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10262 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10263
10264
10265
10266
10267 hard_links="nottested"
10268 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10269   # do not overwrite the value of need_locks provided by the user
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10271 $as_echo_n "checking if we can lock with hard links... " >&6; }
10272   hard_links=yes
10273   $RM conftest*
10274   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10275   touch conftest.a
10276   ln conftest.a conftest.b 2>&5 || hard_links=no
10277   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10279 $as_echo "$hard_links" >&6; }
10280   if test "$hard_links" = no; then
10281     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10282 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10283     need_locks=warn
10284   fi
10285 else
10286   need_locks=no
10287 fi
10288
10289
10290
10291
10292
10293
10294   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10296
10297   runpath_var=
10298   allow_undefined_flag=
10299   always_export_symbols=no
10300   archive_cmds=
10301   archive_expsym_cmds=
10302   compiler_needs_object=no
10303   enable_shared_with_static_runtimes=no
10304   export_dynamic_flag_spec=
10305   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10306   hardcode_automatic=no
10307   hardcode_direct=no
10308   hardcode_direct_absolute=no
10309   hardcode_libdir_flag_spec=
10310   hardcode_libdir_separator=
10311   hardcode_minus_L=no
10312   hardcode_shlibpath_var=unsupported
10313   inherit_rpath=no
10314   link_all_deplibs=unknown
10315   module_cmds=
10316   module_expsym_cmds=
10317   old_archive_from_new_cmds=
10318   old_archive_from_expsyms_cmds=
10319   thread_safe_flag_spec=
10320   whole_archive_flag_spec=
10321   # include_expsyms should be a list of space-separated symbols to be *always*
10322   # included in the symbol list
10323   include_expsyms=
10324   # exclude_expsyms can be an extended regexp of symbols to exclude
10325   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10326   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10327   # as well as any symbol that contains `d'.
10328   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10329   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10330   # platforms (ab)use it in PIC code, but their linkers get confused if
10331   # the symbol is explicitly referenced.  Since portable code cannot
10332   # rely on this symbol name, it's probably fine to never include it in
10333   # preloaded symbol tables.
10334   # Exclude shared library initialization/finalization symbols.
10335   extract_expsyms_cmds=
10336
10337   case $host_os in
10338   cygwin* | mingw* | pw32* | cegcc*)
10339     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10340     # When not using gcc, we currently assume that we are using
10341     # Microsoft Visual C++.
10342     if test "$GCC" != yes; then
10343       with_gnu_ld=no
10344     fi
10345     ;;
10346   interix*)
10347     # we just hope/assume this is gcc and not c89 (= MSVC++)
10348     with_gnu_ld=yes
10349     ;;
10350   openbsd*)
10351     with_gnu_ld=no
10352     ;;
10353   linux* | k*bsd*-gnu | gnu*)
10354     link_all_deplibs=no
10355     ;;
10356   esac
10357
10358   ld_shlibs=yes
10359
10360   # On some targets, GNU ld is compatible enough with the native linker
10361   # that we're better off using the native interface for both.
10362   lt_use_gnu_ld_interface=no
10363   if test "$with_gnu_ld" = yes; then
10364     case $host_os in
10365       aix*)
10366         # The AIX port of GNU ld has always aspired to compatibility
10367         # with the native linker.  However, as the warning in the GNU ld
10368         # block says, versions before 2.19.5* couldn't really create working
10369         # shared libraries, regardless of the interface used.
10370         case `$LD -v 2>&1` in
10371           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10372           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10373           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10374           *)
10375             lt_use_gnu_ld_interface=yes
10376             ;;
10377         esac
10378         ;;
10379       *)
10380         lt_use_gnu_ld_interface=yes
10381         ;;
10382     esac
10383   fi
10384
10385   if test "$lt_use_gnu_ld_interface" = yes; then
10386     # If archive_cmds runs LD, not CC, wlarc should be empty
10387     wlarc='${wl}'
10388
10389     # Set some defaults for GNU ld with shared library support. These
10390     # are reset later if shared libraries are not supported. Putting them
10391     # here allows them to be overridden if necessary.
10392     runpath_var=LD_RUN_PATH
10393     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10394     export_dynamic_flag_spec='${wl}--export-dynamic'
10395     # ancient GNU ld didn't support --whole-archive et. al.
10396     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10397       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10398     else
10399       whole_archive_flag_spec=
10400     fi
10401     supports_anon_versioning=no
10402     case `$LD -v 2>&1` in
10403       *GNU\ gold*) supports_anon_versioning=yes ;;
10404       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10405       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10406       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10407       *\ 2.11.*) ;; # other 2.11 versions
10408       *) supports_anon_versioning=yes ;;
10409     esac
10410
10411     # See if GNU ld supports shared libraries.
10412     case $host_os in
10413     aix[3-9]*)
10414       # On AIX/PPC, the GNU linker is very broken
10415       if test "$host_cpu" != ia64; then
10416         ld_shlibs=no
10417         cat <<_LT_EOF 1>&2
10418
10419 *** Warning: the GNU linker, at least up to release 2.19, is reported
10420 *** to be unable to reliably create shared libraries on AIX.
10421 *** Therefore, libtool is disabling shared libraries support.  If you
10422 *** really care for shared libraries, you may want to install binutils
10423 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10424 *** You will then need to restart the configuration process.
10425
10426 _LT_EOF
10427       fi
10428       ;;
10429
10430     amigaos*)
10431       case $host_cpu in
10432       powerpc)
10433             # see comment about AmigaOS4 .so support
10434             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10435             archive_expsym_cmds=''
10436         ;;
10437       m68k)
10438             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)'
10439             hardcode_libdir_flag_spec='-L$libdir'
10440             hardcode_minus_L=yes
10441         ;;
10442       esac
10443       ;;
10444
10445     beos*)
10446       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10447         allow_undefined_flag=unsupported
10448         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10449         # support --undefined.  This deserves some investigation.  FIXME
10450         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10451       else
10452         ld_shlibs=no
10453       fi
10454       ;;
10455
10456     cygwin* | mingw* | pw32* | cegcc*)
10457       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10458       # as there is no search path for DLLs.
10459       hardcode_libdir_flag_spec='-L$libdir'
10460       export_dynamic_flag_spec='${wl}--export-all-symbols'
10461       allow_undefined_flag=unsupported
10462       always_export_symbols=no
10463       enable_shared_with_static_runtimes=yes
10464       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'
10465       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10466
10467       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10468         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10469         # If the export-symbols file already is a .def file (1st line
10470         # is EXPORTS), use it as is; otherwise, prepend...
10471         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10472           cp $export_symbols $output_objdir/$soname.def;
10473         else
10474           echo EXPORTS > $output_objdir/$soname.def;
10475           cat $export_symbols >> $output_objdir/$soname.def;
10476         fi~
10477         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10478       else
10479         ld_shlibs=no
10480       fi
10481       ;;
10482
10483     haiku*)
10484       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10485       link_all_deplibs=yes
10486       ;;
10487
10488     interix[3-9]*)
10489       hardcode_direct=no
10490       hardcode_shlibpath_var=no
10491       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10492       export_dynamic_flag_spec='${wl}-E'
10493       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10494       # Instead, shared libraries are loaded at an image base (0x10000000 by
10495       # default) and relocated if they conflict, which is a slow very memory
10496       # consuming and fragmenting process.  To avoid this, we pick a random,
10497       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10498       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10499       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10500       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'
10501       ;;
10502
10503     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10504       tmp_diet=no
10505       if test "$host_os" = linux-dietlibc; then
10506         case $cc_basename in
10507           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10508         esac
10509       fi
10510       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10511          && test "$tmp_diet" = no
10512       then
10513         tmp_addflag=' $pic_flag'
10514         tmp_sharedflag='-shared'
10515         case $cc_basename,$host_cpu in
10516         pgcc*)                          # Portland Group C compiler
10517           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'
10518           tmp_addflag=' $pic_flag'
10519           ;;
10520         pgf77* | pgf90* | pgf95* | pgfortran*)
10521                                         # Portland Group f77 and f90 compilers
10522           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'
10523           tmp_addflag=' $pic_flag -Mnomain' ;;
10524         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10525           tmp_addflag=' -i_dynamic' ;;
10526         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10527           tmp_addflag=' -i_dynamic -nofor_main' ;;
10528         ifc* | ifort*)                  # Intel Fortran compiler
10529           tmp_addflag=' -nofor_main' ;;
10530         lf95*)                          # Lahey Fortran 8.1
10531           whole_archive_flag_spec=
10532           tmp_sharedflag='--shared' ;;
10533         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10534           tmp_sharedflag='-qmkshrobj'
10535           tmp_addflag= ;;
10536         nvcc*)  # Cuda Compiler Driver 2.2
10537           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'
10538           compiler_needs_object=yes
10539           ;;
10540         esac
10541         case `$CC -V 2>&1 | sed 5q` in
10542         *Sun\ C*)                       # Sun C 5.9
10543           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'
10544           compiler_needs_object=yes
10545           tmp_sharedflag='-G' ;;
10546         *Sun\ F*)                       # Sun Fortran 8.3
10547           tmp_sharedflag='-G' ;;
10548         esac
10549         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10550
10551         if test "x$supports_anon_versioning" = xyes; then
10552           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10553             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10554             echo "local: *; };" >> $output_objdir/$libname.ver~
10555             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10556         fi
10557
10558         case $cc_basename in
10559         xlf* | bgf* | bgxlf* | mpixlf*)
10560           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10561           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10562           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10563           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10564           if test "x$supports_anon_versioning" = xyes; then
10565             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10566               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10567               echo "local: *; };" >> $output_objdir/$libname.ver~
10568               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10569           fi
10570           ;;
10571         esac
10572       else
10573         ld_shlibs=no
10574       fi
10575       ;;
10576
10577     netbsd* | netbsdelf*-gnu)
10578       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10579         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10580         wlarc=
10581       else
10582         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10584       fi
10585       ;;
10586
10587     solaris*)
10588       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10589         ld_shlibs=no
10590         cat <<_LT_EOF 1>&2
10591
10592 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10593 *** create shared libraries on Solaris systems.  Therefore, libtool
10594 *** is disabling shared libraries support.  We urge you to upgrade GNU
10595 *** binutils to release 2.9.1 or newer.  Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10598
10599 _LT_EOF
10600       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10601         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10603       else
10604         ld_shlibs=no
10605       fi
10606       ;;
10607
10608     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10609       case `$LD -v 2>&1` in
10610         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10611         ld_shlibs=no
10612         cat <<_LT_EOF 1>&2
10613
10614 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10615 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10616 *** is disabling shared libraries support.  We urge you to upgrade GNU
10617 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10618 *** your PATH or compiler configuration so that the native linker is
10619 *** used, and then restart.
10620
10621 _LT_EOF
10622         ;;
10623         *)
10624           # For security reasons, it is highly recommended that you always
10625           # use absolute paths for naming shared libraries, and exclude the
10626           # DT_RUNPATH tag from executables and libraries.  But doing so
10627           # requires that you compile everything twice, which is a pain.
10628           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10629             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10630             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10631             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10632           else
10633             ld_shlibs=no
10634           fi
10635         ;;
10636       esac
10637       ;;
10638
10639     sunos4*)
10640       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10641       wlarc=
10642       hardcode_direct=yes
10643       hardcode_shlibpath_var=no
10644       ;;
10645
10646     *)
10647       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10648         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10649         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10650       else
10651         ld_shlibs=no
10652       fi
10653       ;;
10654     esac
10655
10656     if test "$ld_shlibs" = no; then
10657       runpath_var=
10658       hardcode_libdir_flag_spec=
10659       export_dynamic_flag_spec=
10660       whole_archive_flag_spec=
10661     fi
10662   else
10663     # PORTME fill in a description of your system's linker (not GNU ld)
10664     case $host_os in
10665     aix3*)
10666       allow_undefined_flag=unsupported
10667       always_export_symbols=yes
10668       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'
10669       # Note: this linker hardcodes the directories in LIBPATH if there
10670       # are no directories specified by -L.
10671       hardcode_minus_L=yes
10672       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10673         # Neither direct hardcoding nor static linking is supported with a
10674         # broken collect2.
10675         hardcode_direct=unsupported
10676       fi
10677       ;;
10678
10679     aix[4-9]*)
10680       if test "$host_cpu" = ia64; then
10681         # On IA64, the linker does run time linking by default, so we don't
10682         # have to do anything special.
10683         aix_use_runtimelinking=no
10684         exp_sym_flag='-Bexport'
10685         no_entry_flag=""
10686       else
10687         # If we're using GNU nm, then we don't want the "-C" option.
10688         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10689         # Also, AIX nm treats weak defined symbols like other global
10690         # defined symbols, whereas GNU nm marks them as "W".
10691         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10692           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'
10693         else
10694           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'
10695         fi
10696         aix_use_runtimelinking=no
10697
10698         # Test if we are trying to use run time linking or normal
10699         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10700         # need to do runtime linking.
10701         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10702           for ld_flag in $LDFLAGS; do
10703           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10704             aix_use_runtimelinking=yes
10705             break
10706           fi
10707           done
10708           ;;
10709         esac
10710
10711         exp_sym_flag='-bexport'
10712         no_entry_flag='-bnoentry'
10713       fi
10714
10715       # When large executables or shared objects are built, AIX ld can
10716       # have problems creating the table of contents.  If linking a library
10717       # or program results in "error TOC overflow" add -mminimal-toc to
10718       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10719       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10720
10721       archive_cmds=''
10722       hardcode_direct=yes
10723       hardcode_direct_absolute=yes
10724       hardcode_libdir_separator=':'
10725       link_all_deplibs=yes
10726       file_list_spec='${wl}-f,'
10727
10728       if test "$GCC" = yes; then
10729         case $host_os in aix4.[012]|aix4.[012].*)
10730         # We only want to do this on AIX 4.2 and lower, the check
10731         # below for broken collect2 doesn't work under 4.3+
10732           collect2name=`${CC} -print-prog-name=collect2`
10733           if test -f "$collect2name" &&
10734            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10735           then
10736           # We have reworked collect2
10737           :
10738           else
10739           # We have old collect2
10740           hardcode_direct=unsupported
10741           # It fails to find uninstalled libraries when the uninstalled
10742           # path is not listed in the libpath.  Setting hardcode_minus_L
10743           # to unsupported forces relinking
10744           hardcode_minus_L=yes
10745           hardcode_libdir_flag_spec='-L$libdir'
10746           hardcode_libdir_separator=
10747           fi
10748           ;;
10749         esac
10750         shared_flag='-shared'
10751         if test "$aix_use_runtimelinking" = yes; then
10752           shared_flag="$shared_flag "'${wl}-G'
10753         fi
10754         link_all_deplibs=no
10755       else
10756         # not using gcc
10757         if test "$host_cpu" = ia64; then
10758         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10759         # chokes on -Wl,-G. The following line is correct:
10760           shared_flag='-G'
10761         else
10762           if test "$aix_use_runtimelinking" = yes; then
10763             shared_flag='${wl}-G'
10764           else
10765             shared_flag='${wl}-bM:SRE'
10766           fi
10767         fi
10768       fi
10769
10770       export_dynamic_flag_spec='${wl}-bexpall'
10771       # It seems that -bexpall does not export symbols beginning with
10772       # underscore (_), so it is better to generate a list of symbols to export.
10773       always_export_symbols=yes
10774       if test "$aix_use_runtimelinking" = yes; then
10775         # Warning - without using the other runtime loading flags (-brtl),
10776         # -berok will link without error, but may produce a broken library.
10777         allow_undefined_flag='-berok'
10778         # Determine the default libpath from the value encoded in an
10779         # empty executable.
10780         if test "${lt_cv_aix_libpath+set}" = set; then
10781   aix_libpath=$lt_cv_aix_libpath
10782 else
10783   if ${lt_cv_aix_libpath_+:} false; then :
10784   $as_echo_n "(cached) " >&6
10785 else
10786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h.  */
10788
10789 int
10790 main ()
10791 {
10792
10793   ;
10794   return 0;
10795 }
10796 _ACEOF
10797 if ac_fn_c_try_link "$LINENO"; then :
10798
10799   lt_aix_libpath_sed='
10800       /Import File Strings/,/^$/ {
10801           /^0/ {
10802               s/^0  *\([^ ]*\) *$/\1/
10803               p
10804           }
10805       }'
10806   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10807   # Check for a 64-bit object if we didn't find anything.
10808   if test -z "$lt_cv_aix_libpath_"; then
10809     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10810   fi
10811 fi
10812 rm -f core conftest.err conftest.$ac_objext \
10813     conftest$ac_exeext conftest.$ac_ext
10814   if test -z "$lt_cv_aix_libpath_"; then
10815     lt_cv_aix_libpath_="/usr/lib:/lib"
10816   fi
10817
10818 fi
10819
10820   aix_libpath=$lt_cv_aix_libpath_
10821 fi
10822
10823         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10824         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"
10825       else
10826         if test "$host_cpu" = ia64; then
10827           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10828           allow_undefined_flag="-z nodefs"
10829           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"
10830         else
10831          # Determine the default libpath from the value encoded in an
10832          # empty executable.
10833          if test "${lt_cv_aix_libpath+set}" = set; then
10834   aix_libpath=$lt_cv_aix_libpath
10835 else
10836   if ${lt_cv_aix_libpath_+:} false; then :
10837   $as_echo_n "(cached) " >&6
10838 else
10839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10840 /* end confdefs.h.  */
10841
10842 int
10843 main ()
10844 {
10845
10846   ;
10847   return 0;
10848 }
10849 _ACEOF
10850 if ac_fn_c_try_link "$LINENO"; then :
10851
10852   lt_aix_libpath_sed='
10853       /Import File Strings/,/^$/ {
10854           /^0/ {
10855               s/^0  *\([^ ]*\) *$/\1/
10856               p
10857           }
10858       }'
10859   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10860   # Check for a 64-bit object if we didn't find anything.
10861   if test -z "$lt_cv_aix_libpath_"; then
10862     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10863   fi
10864 fi
10865 rm -f core conftest.err conftest.$ac_objext \
10866     conftest$ac_exeext conftest.$ac_ext
10867   if test -z "$lt_cv_aix_libpath_"; then
10868     lt_cv_aix_libpath_="/usr/lib:/lib"
10869   fi
10870
10871 fi
10872
10873   aix_libpath=$lt_cv_aix_libpath_
10874 fi
10875
10876          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10877           # Warning - without using the other run time loading flags,
10878           # -berok will link without error, but may produce a broken library.
10879           no_undefined_flag=' ${wl}-bernotok'
10880           allow_undefined_flag=' ${wl}-berok'
10881           if test "$with_gnu_ld" = yes; then
10882             # We only use this code for GNU lds that support --whole-archive.
10883             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10884           else
10885             # Exported symbols can be pulled into shared objects from archives
10886             whole_archive_flag_spec='$convenience'
10887           fi
10888           archive_cmds_need_lc=yes
10889           # This is similar to how AIX traditionally builds its shared libraries.
10890           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'
10891         fi
10892       fi
10893       ;;
10894
10895     amigaos*)
10896       case $host_cpu in
10897       powerpc)
10898             # see comment about AmigaOS4 .so support
10899             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10900             archive_expsym_cmds=''
10901         ;;
10902       m68k)
10903             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)'
10904             hardcode_libdir_flag_spec='-L$libdir'
10905             hardcode_minus_L=yes
10906         ;;
10907       esac
10908       ;;
10909
10910     bsdi[45]*)
10911       export_dynamic_flag_spec=-rdynamic
10912       ;;
10913
10914     cygwin* | mingw* | pw32* | cegcc*)
10915       # When not using gcc, we currently assume that we are using
10916       # Microsoft Visual C++.
10917       # hardcode_libdir_flag_spec is actually meaningless, as there is
10918       # no search path for DLLs.
10919       case $cc_basename in
10920       cl*)
10921         # Native MSVC
10922         hardcode_libdir_flag_spec=' '
10923         allow_undefined_flag=unsupported
10924         always_export_symbols=yes
10925         file_list_spec='@'
10926         # Tell ltmain to make .lib files, not .a files.
10927         libext=lib
10928         # Tell ltmain to make .dll files, not .so files.
10929         shrext_cmds=".dll"
10930         # FIXME: Setting linknames here is a bad hack.
10931         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10932         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10933             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10934           else
10935             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10936           fi~
10937           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10938           linknames='
10939         # The linker will not automatically build a static lib if we build a DLL.
10940         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10941         enable_shared_with_static_runtimes=yes
10942         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10943         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10944         # Don't use ranlib
10945         old_postinstall_cmds='chmod 644 $oldlib'
10946         postlink_cmds='lt_outputfile="@OUTPUT@"~
10947           lt_tool_outputfile="@TOOL_OUTPUT@"~
10948           case $lt_outputfile in
10949             *.exe|*.EXE) ;;
10950             *)
10951               lt_outputfile="$lt_outputfile.exe"
10952               lt_tool_outputfile="$lt_tool_outputfile.exe"
10953               ;;
10954           esac~
10955           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10956             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10957             $RM "$lt_outputfile.manifest";
10958           fi'
10959         ;;
10960       *)
10961         # Assume MSVC wrapper
10962         hardcode_libdir_flag_spec=' '
10963         allow_undefined_flag=unsupported
10964         # Tell ltmain to make .lib files, not .a files.
10965         libext=lib
10966         # Tell ltmain to make .dll files, not .so files.
10967         shrext_cmds=".dll"
10968         # FIXME: Setting linknames here is a bad hack.
10969         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10970         # The linker will automatically build a .lib file if we build a DLL.
10971         old_archive_from_new_cmds='true'
10972         # FIXME: Should let the user specify the lib program.
10973         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10974         enable_shared_with_static_runtimes=yes
10975         ;;
10976       esac
10977       ;;
10978
10979     darwin* | rhapsody*)
10980
10981
10982   archive_cmds_need_lc=no
10983   hardcode_direct=no
10984   hardcode_automatic=yes
10985   hardcode_shlibpath_var=unsupported
10986   if test "$lt_cv_ld_force_load" = "yes"; then
10987     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\"`'
10988
10989   else
10990     whole_archive_flag_spec=''
10991   fi
10992   link_all_deplibs=yes
10993   allow_undefined_flag="$_lt_dar_allow_undefined"
10994   case $cc_basename in
10995      ifort*) _lt_dar_can_shared=yes ;;
10996      *) _lt_dar_can_shared=$GCC ;;
10997   esac
10998   if test "$_lt_dar_can_shared" = "yes"; then
10999     output_verbose_link_cmd=func_echo_all
11000     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11001     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11002     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}"
11003     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}"
11004
11005   else
11006   ld_shlibs=no
11007   fi
11008
11009       ;;
11010
11011     dgux*)
11012       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11013       hardcode_libdir_flag_spec='-L$libdir'
11014       hardcode_shlibpath_var=no
11015       ;;
11016
11017     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11018     # support.  Future versions do this automatically, but an explicit c++rt0.o
11019     # does not break anything, and helps significantly (at the cost of a little
11020     # extra space).
11021     freebsd2.2*)
11022       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11023       hardcode_libdir_flag_spec='-R$libdir'
11024       hardcode_direct=yes
11025       hardcode_shlibpath_var=no
11026       ;;
11027
11028     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11029     freebsd2.*)
11030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11031       hardcode_direct=yes
11032       hardcode_minus_L=yes
11033       hardcode_shlibpath_var=no
11034       ;;
11035
11036     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11037     freebsd* | dragonfly*)
11038       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11039       hardcode_libdir_flag_spec='-R$libdir'
11040       hardcode_direct=yes
11041       hardcode_shlibpath_var=no
11042       ;;
11043
11044     hpux9*)
11045       if test "$GCC" = yes; then
11046         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'
11047       else
11048         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'
11049       fi
11050       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11051       hardcode_libdir_separator=:
11052       hardcode_direct=yes
11053
11054       # hardcode_minus_L: Not really in the search PATH,
11055       # but as the default location of the library.
11056       hardcode_minus_L=yes
11057       export_dynamic_flag_spec='${wl}-E'
11058       ;;
11059
11060     hpux10*)
11061       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11062         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11063       else
11064         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11065       fi
11066       if test "$with_gnu_ld" = no; then
11067         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11068         hardcode_libdir_separator=:
11069         hardcode_direct=yes
11070         hardcode_direct_absolute=yes
11071         export_dynamic_flag_spec='${wl}-E'
11072         # hardcode_minus_L: Not really in the search PATH,
11073         # but as the default location of the library.
11074         hardcode_minus_L=yes
11075       fi
11076       ;;
11077
11078     hpux11*)
11079       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11080         case $host_cpu in
11081         hppa*64*)
11082           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11083           ;;
11084         ia64*)
11085           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11086           ;;
11087         *)
11088           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11089           ;;
11090         esac
11091       else
11092         case $host_cpu in
11093         hppa*64*)
11094           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11095           ;;
11096         ia64*)
11097           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11098           ;;
11099         *)
11100
11101           # Older versions of the 11.00 compiler do not understand -b yet
11102           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11103           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11104 $as_echo_n "checking if $CC understands -b... " >&6; }
11105 if ${lt_cv_prog_compiler__b+:} false; then :
11106   $as_echo_n "(cached) " >&6
11107 else
11108   lt_cv_prog_compiler__b=no
11109    save_LDFLAGS="$LDFLAGS"
11110    LDFLAGS="$LDFLAGS -b"
11111    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11112    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11113      # The linker can only warn and ignore the option if not recognized
11114      # So say no if there are warnings
11115      if test -s conftest.err; then
11116        # Append any errors to the config.log.
11117        cat conftest.err 1>&5
11118        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11119        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11120        if diff conftest.exp conftest.er2 >/dev/null; then
11121          lt_cv_prog_compiler__b=yes
11122        fi
11123      else
11124        lt_cv_prog_compiler__b=yes
11125      fi
11126    fi
11127    $RM -r conftest*
11128    LDFLAGS="$save_LDFLAGS"
11129
11130 fi
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11133
11134 if test x"$lt_cv_prog_compiler__b" = xyes; then
11135     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11136 else
11137     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11138 fi
11139
11140           ;;
11141         esac
11142       fi
11143       if test "$with_gnu_ld" = no; then
11144         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11145         hardcode_libdir_separator=:
11146
11147         case $host_cpu in
11148         hppa*64*|ia64*)
11149           hardcode_direct=no
11150           hardcode_shlibpath_var=no
11151           ;;
11152         *)
11153           hardcode_direct=yes
11154           hardcode_direct_absolute=yes
11155           export_dynamic_flag_spec='${wl}-E'
11156
11157           # hardcode_minus_L: Not really in the search PATH,
11158           # but as the default location of the library.
11159           hardcode_minus_L=yes
11160           ;;
11161         esac
11162       fi
11163       ;;
11164
11165     irix5* | irix6* | nonstopux*)
11166       if test "$GCC" = yes; then
11167         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'
11168         # Try to use the -exported_symbol ld option, if it does not
11169         # work, assume that -exports_file does not work either and
11170         # implicitly export all symbols.
11171         # This should be the same for all languages, so no per-tag cache variable.
11172         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11174 if ${lt_cv_irix_exported_symbol+:} false; then :
11175   $as_echo_n "(cached) " >&6
11176 else
11177   save_LDFLAGS="$LDFLAGS"
11178            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11179            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11180 /* end confdefs.h.  */
11181 int foo (void) { return 0; }
11182 _ACEOF
11183 if ac_fn_c_try_link "$LINENO"; then :
11184   lt_cv_irix_exported_symbol=yes
11185 else
11186   lt_cv_irix_exported_symbol=no
11187 fi
11188 rm -f core conftest.err conftest.$ac_objext \
11189     conftest$ac_exeext conftest.$ac_ext
11190            LDFLAGS="$save_LDFLAGS"
11191 fi
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11194         if test "$lt_cv_irix_exported_symbol" = yes; then
11195           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'
11196         fi
11197       else
11198         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'
11199         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'
11200       fi
11201       archive_cmds_need_lc='no'
11202       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11203       hardcode_libdir_separator=:
11204       inherit_rpath=yes
11205       link_all_deplibs=yes
11206       ;;
11207
11208     netbsd* | netbsdelf*-gnu)
11209       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11210         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11211       else
11212         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11213       fi
11214       hardcode_libdir_flag_spec='-R$libdir'
11215       hardcode_direct=yes
11216       hardcode_shlibpath_var=no
11217       ;;
11218
11219     newsos6)
11220       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11221       hardcode_direct=yes
11222       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11223       hardcode_libdir_separator=:
11224       hardcode_shlibpath_var=no
11225       ;;
11226
11227     *nto* | *qnx*)
11228       ;;
11229
11230     openbsd*)
11231       if test -f /usr/libexec/ld.so; then
11232         hardcode_direct=yes
11233         hardcode_shlibpath_var=no
11234         hardcode_direct_absolute=yes
11235         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11236           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11237           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11238           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11239           export_dynamic_flag_spec='${wl}-E'
11240         else
11241           case $host_os in
11242            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11243              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11244              hardcode_libdir_flag_spec='-R$libdir'
11245              ;;
11246            *)
11247              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11248              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11249              ;;
11250           esac
11251         fi
11252       else
11253         ld_shlibs=no
11254       fi
11255       ;;
11256
11257     os2*)
11258       hardcode_libdir_flag_spec='-L$libdir'
11259       hardcode_minus_L=yes
11260       allow_undefined_flag=unsupported
11261       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'
11262       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11263       ;;
11264
11265     osf3*)
11266       if test "$GCC" = yes; then
11267         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11268         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'
11269       else
11270         allow_undefined_flag=' -expect_unresolved \*'
11271         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'
11272       fi
11273       archive_cmds_need_lc='no'
11274       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11275       hardcode_libdir_separator=:
11276       ;;
11277
11278     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11279       if test "$GCC" = yes; then
11280         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11281         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'
11282         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11283       else
11284         allow_undefined_flag=' -expect_unresolved \*'
11285         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'
11286         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~
11287         $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'
11288
11289         # Both c and cxx compiler support -rpath directly
11290         hardcode_libdir_flag_spec='-rpath $libdir'
11291       fi
11292       archive_cmds_need_lc='no'
11293       hardcode_libdir_separator=:
11294       ;;
11295
11296     solaris*)
11297       no_undefined_flag=' -z defs'
11298       if test "$GCC" = yes; then
11299         wlarc='${wl}'
11300         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11301         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11302           $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'
11303       else
11304         case `$CC -V 2>&1` in
11305         *"Compilers 5.0"*)
11306           wlarc=''
11307           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11308           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11309           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11310           ;;
11311         *)
11312           wlarc='${wl}'
11313           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11314           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11315           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11316           ;;
11317         esac
11318       fi
11319       hardcode_libdir_flag_spec='-R$libdir'
11320       hardcode_shlibpath_var=no
11321       case $host_os in
11322       solaris2.[0-5] | solaris2.[0-5].*) ;;
11323       *)
11324         # The compiler driver will combine and reorder linker options,
11325         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11326         # but is careful enough not to reorder.
11327         # Supported since Solaris 2.6 (maybe 2.5.1?)
11328         if test "$GCC" = yes; then
11329           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11330         else
11331           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11332         fi
11333         ;;
11334       esac
11335       link_all_deplibs=yes
11336       ;;
11337
11338     sunos4*)
11339       if test "x$host_vendor" = xsequent; then
11340         # Use $CC to link under sequent, because it throws in some extra .o
11341         # files that make .init and .fini sections work.
11342         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11343       else
11344         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11345       fi
11346       hardcode_libdir_flag_spec='-L$libdir'
11347       hardcode_direct=yes
11348       hardcode_minus_L=yes
11349       hardcode_shlibpath_var=no
11350       ;;
11351
11352     sysv4)
11353       case $host_vendor in
11354         sni)
11355           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11356           hardcode_direct=yes # is this really true???
11357         ;;
11358         siemens)
11359           ## LD is ld it makes a PLAMLIB
11360           ## CC just makes a GrossModule.
11361           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11362           reload_cmds='$CC -r -o $output$reload_objs'
11363           hardcode_direct=no
11364         ;;
11365         motorola)
11366           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11367           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11368         ;;
11369       esac
11370       runpath_var='LD_RUN_PATH'
11371       hardcode_shlibpath_var=no
11372       ;;
11373
11374     sysv4.3*)
11375       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11376       hardcode_shlibpath_var=no
11377       export_dynamic_flag_spec='-Bexport'
11378       ;;
11379
11380     sysv4*MP*)
11381       if test -d /usr/nec; then
11382         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11383         hardcode_shlibpath_var=no
11384         runpath_var=LD_RUN_PATH
11385         hardcode_runpath_var=yes
11386         ld_shlibs=yes
11387       fi
11388       ;;
11389
11390     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11391       no_undefined_flag='${wl}-z,text'
11392       archive_cmds_need_lc=no
11393       hardcode_shlibpath_var=no
11394       runpath_var='LD_RUN_PATH'
11395
11396       if test "$GCC" = yes; then
11397         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11398         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399       else
11400         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402       fi
11403       ;;
11404
11405     sysv5* | sco3.2v5* | sco5v6*)
11406       # Note: We can NOT use -z defs as we might desire, because we do not
11407       # link with -lc, and that would cause any symbols used from libc to
11408       # always be unresolved, which means just about no library would
11409       # ever link correctly.  If we're not using GNU ld we use -z text
11410       # though, which does catch some bad symbols but isn't as heavy-handed
11411       # as -z defs.
11412       no_undefined_flag='${wl}-z,text'
11413       allow_undefined_flag='${wl}-z,nodefs'
11414       archive_cmds_need_lc=no
11415       hardcode_shlibpath_var=no
11416       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11417       hardcode_libdir_separator=':'
11418       link_all_deplibs=yes
11419       export_dynamic_flag_spec='${wl}-Bexport'
11420       runpath_var='LD_RUN_PATH'
11421
11422       if test "$GCC" = yes; then
11423         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11424         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11425       else
11426         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11427         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11428       fi
11429       ;;
11430
11431     uts4*)
11432       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11433       hardcode_libdir_flag_spec='-L$libdir'
11434       hardcode_shlibpath_var=no
11435       ;;
11436
11437     *)
11438       ld_shlibs=no
11439       ;;
11440     esac
11441
11442     if test x$host_vendor = xsni; then
11443       case $host in
11444       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11445         export_dynamic_flag_spec='${wl}-Blargedynsym'
11446         ;;
11447       esac
11448     fi
11449   fi
11450
11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11452 $as_echo "$ld_shlibs" >&6; }
11453 test "$ld_shlibs" = no && can_build_shared=no
11454
11455 with_gnu_ld=$with_gnu_ld
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471 #
11472 # Do we need to explicitly link libc?
11473 #
11474 case "x$archive_cmds_need_lc" in
11475 x|xyes)
11476   # Assume -lc should be added
11477   archive_cmds_need_lc=yes
11478
11479   if test "$enable_shared" = yes && test "$GCC" = yes; then
11480     case $archive_cmds in
11481     *'~'*)
11482       # FIXME: we may have to deal with multi-command sequences.
11483       ;;
11484     '$CC '*)
11485       # Test whether the compiler implicitly links with -lc since on some
11486       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11487       # to ld, don't add -lc before -lgcc.
11488       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11489 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11490 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11491   $as_echo_n "(cached) " >&6
11492 else
11493   $RM conftest*
11494         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11495
11496         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11497   (eval $ac_compile) 2>&5
11498   ac_status=$?
11499   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11500   test $ac_status = 0; } 2>conftest.err; then
11501           soname=conftest
11502           lib=conftest
11503           libobjs=conftest.$ac_objext
11504           deplibs=
11505           wl=$lt_prog_compiler_wl
11506           pic_flag=$lt_prog_compiler_pic
11507           compiler_flags=-v
11508           linker_flags=-v
11509           verstring=
11510           output_objdir=.
11511           libname=conftest
11512           lt_save_allow_undefined_flag=$allow_undefined_flag
11513           allow_undefined_flag=
11514           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11515   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11516   ac_status=$?
11517   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11518   test $ac_status = 0; }
11519           then
11520             lt_cv_archive_cmds_need_lc=no
11521           else
11522             lt_cv_archive_cmds_need_lc=yes
11523           fi
11524           allow_undefined_flag=$lt_save_allow_undefined_flag
11525         else
11526           cat conftest.err 1>&5
11527         fi
11528         $RM conftest*
11529
11530 fi
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11532 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11533       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11534       ;;
11535     esac
11536   fi
11537   ;;
11538 esac
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
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11692 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11693
11694 if test "$GCC" = yes; then
11695   case $host_os in
11696     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11697     *) lt_awk_arg="/^libraries:/" ;;
11698   esac
11699   case $host_os in
11700     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11701     *) lt_sed_strip_eq="s,=/,/,g" ;;
11702   esac
11703   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11704   case $lt_search_path_spec in
11705   *\;*)
11706     # if the path contains ";" then we assume it to be the separator
11707     # otherwise default to the standard path separator (i.e. ":") - it is
11708     # assumed that no part of a normal pathname contains ";" but that should
11709     # okay in the real world where ";" in dirpaths is itself problematic.
11710     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11711     ;;
11712   *)
11713     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11714     ;;
11715   esac
11716   # Ok, now we have the path, separated by spaces, we can step through it
11717   # and add multilib dir if necessary.
11718   lt_tmp_lt_search_path_spec=
11719   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11720   for lt_sys_path in $lt_search_path_spec; do
11721     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11722       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11723     else
11724       test -d "$lt_sys_path" && \
11725         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11726     fi
11727   done
11728   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11729 BEGIN {RS=" "; FS="/|\n";} {
11730   lt_foo="";
11731   lt_count=0;
11732   for (lt_i = NF; lt_i > 0; lt_i--) {
11733     if ($lt_i != "" && $lt_i != ".") {
11734       if ($lt_i == "..") {
11735         lt_count++;
11736       } else {
11737         if (lt_count == 0) {
11738           lt_foo="/" $lt_i lt_foo;
11739         } else {
11740           lt_count--;
11741         }
11742       }
11743     }
11744   }
11745   if (lt_foo != "") { lt_freq[lt_foo]++; }
11746   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11747 }'`
11748   # AWK program above erroneously prepends '/' to C:/dos/paths
11749   # for these hosts.
11750   case $host_os in
11751     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11752       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11753   esac
11754   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11755 else
11756   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11757 fi
11758 library_names_spec=
11759 libname_spec='lib$name'
11760 soname_spec=
11761 shrext_cmds=".so"
11762 postinstall_cmds=
11763 postuninstall_cmds=
11764 finish_cmds=
11765 finish_eval=
11766 shlibpath_var=
11767 shlibpath_overrides_runpath=unknown
11768 version_type=none
11769 dynamic_linker="$host_os ld.so"
11770 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11771 need_lib_prefix=unknown
11772 hardcode_into_libs=no
11773
11774 # when you set need_version to no, make sure it does not cause -set_version
11775 # flags to be left without arguments
11776 need_version=unknown
11777
11778 case $host_os in
11779 aix3*)
11780   version_type=linux # correct to gnu/linux during the next big refactor
11781   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11782   shlibpath_var=LIBPATH
11783
11784   # AIX 3 has no versioning support, so we append a major version to the name.
11785   soname_spec='${libname}${release}${shared_ext}$major'
11786   ;;
11787
11788 aix[4-9]*)
11789   version_type=linux # correct to gnu/linux during the next big refactor
11790   need_lib_prefix=no
11791   need_version=no
11792   hardcode_into_libs=yes
11793   if test "$host_cpu" = ia64; then
11794     # AIX 5 supports IA64
11795     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11796     shlibpath_var=LD_LIBRARY_PATH
11797   else
11798     # With GCC up to 2.95.x, collect2 would create an import file
11799     # for dependence libraries.  The import file would start with
11800     # the line `#! .'.  This would cause the generated library to
11801     # depend on `.', always an invalid library.  This was fixed in
11802     # development snapshots of GCC prior to 3.0.
11803     case $host_os in
11804       aix4 | aix4.[01] | aix4.[01].*)
11805       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11806            echo ' yes '
11807            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11808         :
11809       else
11810         can_build_shared=no
11811       fi
11812       ;;
11813     esac
11814     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11815     # soname into executable. Probably we can add versioning support to
11816     # collect2, so additional links can be useful in future.
11817     if test "$aix_use_runtimelinking" = yes; then
11818       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11819       # instead of lib<name>.a to let people know that these are not
11820       # typical AIX shared libraries.
11821       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11822     else
11823       # We preserve .a as extension for shared libraries through AIX4.2
11824       # and later when we are not doing run time linking.
11825       library_names_spec='${libname}${release}.a $libname.a'
11826       soname_spec='${libname}${release}${shared_ext}$major'
11827     fi
11828     shlibpath_var=LIBPATH
11829   fi
11830   ;;
11831
11832 amigaos*)
11833   case $host_cpu in
11834   powerpc)
11835     # Since July 2007 AmigaOS4 officially supports .so libraries.
11836     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11837     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11838     ;;
11839   m68k)
11840     library_names_spec='$libname.ixlibrary $libname.a'
11841     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11842     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'
11843     ;;
11844   esac
11845   ;;
11846
11847 beos*)
11848   library_names_spec='${libname}${shared_ext}'
11849   dynamic_linker="$host_os ld.so"
11850   shlibpath_var=LIBRARY_PATH
11851   ;;
11852
11853 bsdi[45]*)
11854   version_type=linux # correct to gnu/linux during the next big refactor
11855   need_version=no
11856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11857   soname_spec='${libname}${release}${shared_ext}$major'
11858   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11859   shlibpath_var=LD_LIBRARY_PATH
11860   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11861   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11862   # the default ld.so.conf also contains /usr/contrib/lib and
11863   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11864   # libtool to hard-code these into programs
11865   ;;
11866
11867 cygwin* | mingw* | pw32* | cegcc*)
11868   version_type=windows
11869   shrext_cmds=".dll"
11870   need_version=no
11871   need_lib_prefix=no
11872
11873   case $GCC,$cc_basename in
11874   yes,*)
11875     # gcc
11876     library_names_spec='$libname.dll.a'
11877     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11878     postinstall_cmds='base_file=`basename \${file}`~
11879       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11880       dldir=$destdir/`dirname \$dlpath`~
11881       test -d \$dldir || mkdir -p \$dldir~
11882       $install_prog $dir/$dlname \$dldir/$dlname~
11883       chmod a+x \$dldir/$dlname~
11884       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11885         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11886       fi'
11887     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11888       dlpath=$dir/\$dldll~
11889        $RM \$dlpath'
11890     shlibpath_overrides_runpath=yes
11891
11892     case $host_os in
11893     cygwin*)
11894       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11895       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11896
11897       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11898       ;;
11899     mingw* | cegcc*)
11900       # MinGW DLLs use traditional 'lib' prefix
11901       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11902       ;;
11903     pw32*)
11904       # pw32 DLLs use 'pw' prefix rather than 'lib'
11905       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11906       ;;
11907     esac
11908     dynamic_linker='Win32 ld.exe'
11909     ;;
11910
11911   *,cl*)
11912     # Native MSVC
11913     libname_spec='$name'
11914     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11915     library_names_spec='${libname}.dll.lib'
11916
11917     case $build_os in
11918     mingw*)
11919       sys_lib_search_path_spec=
11920       lt_save_ifs=$IFS
11921       IFS=';'
11922       for lt_path in $LIB
11923       do
11924         IFS=$lt_save_ifs
11925         # Let DOS variable expansion print the short 8.3 style file name.
11926         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11927         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11928       done
11929       IFS=$lt_save_ifs
11930       # Convert to MSYS style.
11931       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11932       ;;
11933     cygwin*)
11934       # Convert to unix form, then to dos form, then back to unix form
11935       # but this time dos style (no spaces!) so that the unix form looks
11936       # like /cygdrive/c/PROGRA~1:/cygdr...
11937       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11938       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11939       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11940       ;;
11941     *)
11942       sys_lib_search_path_spec="$LIB"
11943       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11944         # It is most probably a Windows format PATH.
11945         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11946       else
11947         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11948       fi
11949       # FIXME: find the short name or the path components, as spaces are
11950       # common. (e.g. "Program Files" -> "PROGRA~1")
11951       ;;
11952     esac
11953
11954     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11955     postinstall_cmds='base_file=`basename \${file}`~
11956       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11957       dldir=$destdir/`dirname \$dlpath`~
11958       test -d \$dldir || mkdir -p \$dldir~
11959       $install_prog $dir/$dlname \$dldir/$dlname'
11960     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11961       dlpath=$dir/\$dldll~
11962        $RM \$dlpath'
11963     shlibpath_overrides_runpath=yes
11964     dynamic_linker='Win32 link.exe'
11965     ;;
11966
11967   *)
11968     # Assume MSVC wrapper
11969     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11970     dynamic_linker='Win32 ld.exe'
11971     ;;
11972   esac
11973   # FIXME: first we should search . and the directory the executable is in
11974   shlibpath_var=PATH
11975   ;;
11976
11977 darwin* | rhapsody*)
11978   dynamic_linker="$host_os dyld"
11979   version_type=darwin
11980   need_lib_prefix=no
11981   need_version=no
11982   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11983   soname_spec='${libname}${release}${major}$shared_ext'
11984   shlibpath_overrides_runpath=yes
11985   shlibpath_var=DYLD_LIBRARY_PATH
11986   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11987
11988   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11989   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11990   ;;
11991
11992 dgux*)
11993   version_type=linux # correct to gnu/linux during the next big refactor
11994   need_lib_prefix=no
11995   need_version=no
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11997   soname_spec='${libname}${release}${shared_ext}$major'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   ;;
12000
12001 freebsd* | dragonfly*)
12002   # DragonFly does not have aout.  When/if they implement a new
12003   # versioning mechanism, adjust this.
12004   if test -x /usr/bin/objformat; then
12005     objformat=`/usr/bin/objformat`
12006   else
12007     case $host_os in
12008     freebsd[23].*) objformat=aout ;;
12009     *) objformat=elf ;;
12010     esac
12011   fi
12012   version_type=freebsd-$objformat
12013   case $version_type in
12014     freebsd-elf*)
12015       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12016       need_version=no
12017       need_lib_prefix=no
12018       ;;
12019     freebsd-*)
12020       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12021       need_version=yes
12022       ;;
12023   esac
12024   shlibpath_var=LD_LIBRARY_PATH
12025   case $host_os in
12026   freebsd2.*)
12027     shlibpath_overrides_runpath=yes
12028     ;;
12029   freebsd3.[01]* | freebsdelf3.[01]*)
12030     shlibpath_overrides_runpath=yes
12031     hardcode_into_libs=yes
12032     ;;
12033   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12034   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12035     shlibpath_overrides_runpath=no
12036     hardcode_into_libs=yes
12037     ;;
12038   *) # from 4.6 on, and DragonFly
12039     shlibpath_overrides_runpath=yes
12040     hardcode_into_libs=yes
12041     ;;
12042   esac
12043   ;;
12044
12045 haiku*)
12046   version_type=linux # correct to gnu/linux during the next big refactor
12047   need_lib_prefix=no
12048   need_version=no
12049   dynamic_linker="$host_os runtime_loader"
12050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12051   soname_spec='${libname}${release}${shared_ext}$major'
12052   shlibpath_var=LIBRARY_PATH
12053   shlibpath_overrides_runpath=yes
12054   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12055   hardcode_into_libs=yes
12056   ;;
12057
12058 hpux9* | hpux10* | hpux11*)
12059   # Give a soname corresponding to the major version so that dld.sl refuses to
12060   # link against other versions.
12061   version_type=sunos
12062   need_lib_prefix=no
12063   need_version=no
12064   case $host_cpu in
12065   ia64*)
12066     shrext_cmds='.so'
12067     hardcode_into_libs=yes
12068     dynamic_linker="$host_os dld.so"
12069     shlibpath_var=LD_LIBRARY_PATH
12070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072     soname_spec='${libname}${release}${shared_ext}$major'
12073     if test "X$HPUX_IA64_MODE" = X32; then
12074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12075     else
12076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12077     fi
12078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079     ;;
12080   hppa*64*)
12081     shrext_cmds='.sl'
12082     hardcode_into_libs=yes
12083     dynamic_linker="$host_os dld.sl"
12084     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087     soname_spec='${libname}${release}${shared_ext}$major'
12088     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12089     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12090     ;;
12091   *)
12092     shrext_cmds='.sl'
12093     dynamic_linker="$host_os dld.sl"
12094     shlibpath_var=SHLIB_PATH
12095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097     soname_spec='${libname}${release}${shared_ext}$major'
12098     ;;
12099   esac
12100   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12101   postinstall_cmds='chmod 555 $lib'
12102   # or fails outright, so override atomically:
12103   install_override_mode=555
12104   ;;
12105
12106 interix[3-9]*)
12107   version_type=linux # correct to gnu/linux during the next big refactor
12108   need_lib_prefix=no
12109   need_version=no
12110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12111   soname_spec='${libname}${release}${shared_ext}$major'
12112   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12113   shlibpath_var=LD_LIBRARY_PATH
12114   shlibpath_overrides_runpath=no
12115   hardcode_into_libs=yes
12116   ;;
12117
12118 irix5* | irix6* | nonstopux*)
12119   case $host_os in
12120     nonstopux*) version_type=nonstopux ;;
12121     *)
12122         if test "$lt_cv_prog_gnu_ld" = yes; then
12123                 version_type=linux # correct to gnu/linux during the next big refactor
12124         else
12125                 version_type=irix
12126         fi ;;
12127   esac
12128   need_lib_prefix=no
12129   need_version=no
12130   soname_spec='${libname}${release}${shared_ext}$major'
12131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12132   case $host_os in
12133   irix5* | nonstopux*)
12134     libsuff= shlibsuff=
12135     ;;
12136   *)
12137     case $LD in # libtool.m4 will add one of these switches to LD
12138     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12139       libsuff= shlibsuff= libmagic=32-bit;;
12140     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12141       libsuff=32 shlibsuff=N32 libmagic=N32;;
12142     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12143       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12144     *) libsuff= shlibsuff= libmagic=never-match;;
12145     esac
12146     ;;
12147   esac
12148   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12149   shlibpath_overrides_runpath=no
12150   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12151   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12152   hardcode_into_libs=yes
12153   ;;
12154
12155 # No shared lib support for Linux oldld, aout, or coff.
12156 linux*oldld* | linux*aout* | linux*coff*)
12157   dynamic_linker=no
12158   ;;
12159
12160 # This must be glibc/ELF.
12161 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12162   version_type=linux # correct to gnu/linux during the next big refactor
12163   need_lib_prefix=no
12164   need_version=no
12165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166   soname_spec='${libname}${release}${shared_ext}$major'
12167   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12168   shlibpath_var=LD_LIBRARY_PATH
12169   shlibpath_overrides_runpath=no
12170
12171   # Some binutils ld are patched to set DT_RUNPATH
12172   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   lt_cv_shlibpath_overrides_runpath=no
12176     save_LDFLAGS=$LDFLAGS
12177     save_libdir=$libdir
12178     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12179          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12180     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12181 /* end confdefs.h.  */
12182
12183 int
12184 main ()
12185 {
12186
12187   ;
12188   return 0;
12189 }
12190 _ACEOF
12191 if ac_fn_c_try_link "$LINENO"; then :
12192   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12193   lt_cv_shlibpath_overrides_runpath=yes
12194 fi
12195 fi
12196 rm -f core conftest.err conftest.$ac_objext \
12197     conftest$ac_exeext conftest.$ac_ext
12198     LDFLAGS=$save_LDFLAGS
12199     libdir=$save_libdir
12200
12201 fi
12202
12203   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12204
12205   # This implies no fast_install, which is unacceptable.
12206   # Some rework will be needed to allow for fast_install
12207   # before this can be enabled.
12208   hardcode_into_libs=yes
12209
12210   # Append ld.so.conf contents to the search path
12211   if test -f /etc/ld.so.conf; then
12212     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' ' '`
12213     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12214   fi
12215
12216   # We used to test for /lib/ld.so.1 and disable shared libraries on
12217   # powerpc, because MkLinux only supported shared libraries with the
12218   # GNU dynamic linker.  Since this was broken with cross compilers,
12219   # most powerpc-linux boxes support dynamic linking these days and
12220   # people can always --disable-shared, the test was removed, and we
12221   # assume the GNU/Linux dynamic linker is in use.
12222   dynamic_linker='GNU/Linux ld.so'
12223   ;;
12224
12225 netbsdelf*-gnu)
12226   version_type=linux
12227   need_lib_prefix=no
12228   need_version=no
12229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12230   soname_spec='${libname}${release}${shared_ext}$major'
12231   shlibpath_var=LD_LIBRARY_PATH
12232   shlibpath_overrides_runpath=no
12233   hardcode_into_libs=yes
12234   dynamic_linker='NetBSD ld.elf_so'
12235   ;;
12236
12237 netbsd*)
12238   version_type=sunos
12239   need_lib_prefix=no
12240   need_version=no
12241   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12242     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12243     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12244     dynamic_linker='NetBSD (a.out) ld.so'
12245   else
12246     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12247     soname_spec='${libname}${release}${shared_ext}$major'
12248     dynamic_linker='NetBSD ld.elf_so'
12249   fi
12250   shlibpath_var=LD_LIBRARY_PATH
12251   shlibpath_overrides_runpath=yes
12252   hardcode_into_libs=yes
12253   ;;
12254
12255 newsos6)
12256   version_type=linux # correct to gnu/linux during the next big refactor
12257   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12258   shlibpath_var=LD_LIBRARY_PATH
12259   shlibpath_overrides_runpath=yes
12260   ;;
12261
12262 *nto* | *qnx*)
12263   version_type=qnx
12264   need_lib_prefix=no
12265   need_version=no
12266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12267   soname_spec='${libname}${release}${shared_ext}$major'
12268   shlibpath_var=LD_LIBRARY_PATH
12269   shlibpath_overrides_runpath=no
12270   hardcode_into_libs=yes
12271   dynamic_linker='ldqnx.so'
12272   ;;
12273
12274 openbsd*)
12275   version_type=sunos
12276   sys_lib_dlsearch_path_spec="/usr/lib"
12277   need_lib_prefix=no
12278   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12279   case $host_os in
12280     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12281     *)                          need_version=no  ;;
12282   esac
12283   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12284   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12285   shlibpath_var=LD_LIBRARY_PATH
12286   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12287     case $host_os in
12288       openbsd2.[89] | openbsd2.[89].*)
12289         shlibpath_overrides_runpath=no
12290         ;;
12291       *)
12292         shlibpath_overrides_runpath=yes
12293         ;;
12294       esac
12295   else
12296     shlibpath_overrides_runpath=yes
12297   fi
12298   ;;
12299
12300 os2*)
12301   libname_spec='$name'
12302   shrext_cmds=".dll"
12303   need_lib_prefix=no
12304   library_names_spec='$libname${shared_ext} $libname.a'
12305   dynamic_linker='OS/2 ld.exe'
12306   shlibpath_var=LIBPATH
12307   ;;
12308
12309 osf3* | osf4* | osf5*)
12310   version_type=osf
12311   need_lib_prefix=no
12312   need_version=no
12313   soname_spec='${libname}${release}${shared_ext}$major'
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12315   shlibpath_var=LD_LIBRARY_PATH
12316   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12317   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12318   ;;
12319
12320 rdos*)
12321   dynamic_linker=no
12322   ;;
12323
12324 solaris*)
12325   version_type=linux # correct to gnu/linux during the next big refactor
12326   need_lib_prefix=no
12327   need_version=no
12328   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12329   soname_spec='${libname}${release}${shared_ext}$major'
12330   shlibpath_var=LD_LIBRARY_PATH
12331   shlibpath_overrides_runpath=yes
12332   hardcode_into_libs=yes
12333   # ldd complains unless libraries are executable
12334   postinstall_cmds='chmod +x $lib'
12335   ;;
12336
12337 sunos4*)
12338   version_type=sunos
12339   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12340   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12341   shlibpath_var=LD_LIBRARY_PATH
12342   shlibpath_overrides_runpath=yes
12343   if test "$with_gnu_ld" = yes; then
12344     need_lib_prefix=no
12345   fi
12346   need_version=yes
12347   ;;
12348
12349 sysv4 | sysv4.3*)
12350   version_type=linux # correct to gnu/linux during the next big refactor
12351   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12352   soname_spec='${libname}${release}${shared_ext}$major'
12353   shlibpath_var=LD_LIBRARY_PATH
12354   case $host_vendor in
12355     sni)
12356       shlibpath_overrides_runpath=no
12357       need_lib_prefix=no
12358       runpath_var=LD_RUN_PATH
12359       ;;
12360     siemens)
12361       need_lib_prefix=no
12362       ;;
12363     motorola)
12364       need_lib_prefix=no
12365       need_version=no
12366       shlibpath_overrides_runpath=no
12367       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12368       ;;
12369   esac
12370   ;;
12371
12372 sysv4*MP*)
12373   if test -d /usr/nec ;then
12374     version_type=linux # correct to gnu/linux during the next big refactor
12375     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12376     soname_spec='$libname${shared_ext}.$major'
12377     shlibpath_var=LD_LIBRARY_PATH
12378   fi
12379   ;;
12380
12381 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12382   version_type=freebsd-elf
12383   need_lib_prefix=no
12384   need_version=no
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12386   soname_spec='${libname}${release}${shared_ext}$major'
12387   shlibpath_var=LD_LIBRARY_PATH
12388   shlibpath_overrides_runpath=yes
12389   hardcode_into_libs=yes
12390   if test "$with_gnu_ld" = yes; then
12391     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12392   else
12393     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12394     case $host_os in
12395       sco3.2v5*)
12396         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12397         ;;
12398     esac
12399   fi
12400   sys_lib_dlsearch_path_spec='/usr/lib'
12401   ;;
12402
12403 tpf*)
12404   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12405   version_type=linux # correct to gnu/linux during the next big refactor
12406   need_lib_prefix=no
12407   need_version=no
12408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12409   shlibpath_var=LD_LIBRARY_PATH
12410   shlibpath_overrides_runpath=no
12411   hardcode_into_libs=yes
12412   ;;
12413
12414 uts4*)
12415   version_type=linux # correct to gnu/linux during the next big refactor
12416   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12417   soname_spec='${libname}${release}${shared_ext}$major'
12418   shlibpath_var=LD_LIBRARY_PATH
12419   ;;
12420
12421 *)
12422   dynamic_linker=no
12423   ;;
12424 esac
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12426 $as_echo "$dynamic_linker" >&6; }
12427 test "$dynamic_linker" = no && can_build_shared=no
12428
12429 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12430 if test "$GCC" = yes; then
12431   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12432 fi
12433
12434 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12435   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12436 fi
12437 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12438   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12439 fi
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
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516
12517
12518
12519
12520
12521
12522
12523
12524
12525
12526
12527
12528
12529
12530
12531
12532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12533 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12534 hardcode_action=
12535 if test -n "$hardcode_libdir_flag_spec" ||
12536    test -n "$runpath_var" ||
12537    test "X$hardcode_automatic" = "Xyes" ; then
12538
12539   # We can hardcode non-existent directories.
12540   if test "$hardcode_direct" != no &&
12541      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12542      # have to relink, otherwise we might link with an installed library
12543      # when we should be linking with a yet-to-be-installed one
12544      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12545      test "$hardcode_minus_L" != no; then
12546     # Linking always hardcodes the temporary library directory.
12547     hardcode_action=relink
12548   else
12549     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12550     hardcode_action=immediate
12551   fi
12552 else
12553   # We cannot hardcode anything, or else we can only hardcode existing
12554   # directories.
12555   hardcode_action=unsupported
12556 fi
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12558 $as_echo "$hardcode_action" >&6; }
12559
12560 if test "$hardcode_action" = relink ||
12561    test "$inherit_rpath" = yes; then
12562   # Fast installation is not supported
12563   enable_fast_install=no
12564 elif test "$shlibpath_overrides_runpath" = yes ||
12565      test "$enable_shared" = no; then
12566   # Fast installation is not necessary
12567   enable_fast_install=needless
12568 fi
12569
12570
12571
12572
12573
12574
12575   if test "x$enable_dlopen" != xyes; then
12576   enable_dlopen=unknown
12577   enable_dlopen_self=unknown
12578   enable_dlopen_self_static=unknown
12579 else
12580   lt_cv_dlopen=no
12581   lt_cv_dlopen_libs=
12582
12583   case $host_os in
12584   beos*)
12585     lt_cv_dlopen="load_add_on"
12586     lt_cv_dlopen_libs=
12587     lt_cv_dlopen_self=yes
12588     ;;
12589
12590   mingw* | pw32* | cegcc*)
12591     lt_cv_dlopen="LoadLibrary"
12592     lt_cv_dlopen_libs=
12593     ;;
12594
12595   cygwin*)
12596     lt_cv_dlopen="dlopen"
12597     lt_cv_dlopen_libs=
12598     ;;
12599
12600   darwin*)
12601   # if libdl is installed we need to link against it
12602     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12603 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12604 if ${ac_cv_lib_dl_dlopen+:} false; then :
12605   $as_echo_n "(cached) " >&6
12606 else
12607   ac_check_lib_save_LIBS=$LIBS
12608 LIBS="-ldl  $LIBS"
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h.  */
12611
12612 /* Override any GCC internal prototype to avoid an error.
12613    Use char because int might match the return type of a GCC
12614    builtin and then its argument prototype would still apply.  */
12615 #ifdef __cplusplus
12616 extern "C"
12617 #endif
12618 char dlopen ();
12619 int
12620 main ()
12621 {
12622 return dlopen ();
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 if ac_fn_c_try_link "$LINENO"; then :
12628   ac_cv_lib_dl_dlopen=yes
12629 else
12630   ac_cv_lib_dl_dlopen=no
12631 fi
12632 rm -f core conftest.err conftest.$ac_objext \
12633     conftest$ac_exeext conftest.$ac_ext
12634 LIBS=$ac_check_lib_save_LIBS
12635 fi
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12637 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12638 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12639   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12640 else
12641
12642     lt_cv_dlopen="dyld"
12643     lt_cv_dlopen_libs=
12644     lt_cv_dlopen_self=yes
12645
12646 fi
12647
12648     ;;
12649
12650   *)
12651     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12652 if test "x$ac_cv_func_shl_load" = xyes; then :
12653   lt_cv_dlopen="shl_load"
12654 else
12655   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12656 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12657 if ${ac_cv_lib_dld_shl_load+:} false; then :
12658   $as_echo_n "(cached) " >&6
12659 else
12660   ac_check_lib_save_LIBS=$LIBS
12661 LIBS="-ldld  $LIBS"
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h.  */
12664
12665 /* Override any GCC internal prototype to avoid an error.
12666    Use char because int might match the return type of a GCC
12667    builtin and then its argument prototype would still apply.  */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char shl_load ();
12672 int
12673 main ()
12674 {
12675 return shl_load ();
12676   ;
12677   return 0;
12678 }
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681   ac_cv_lib_dld_shl_load=yes
12682 else
12683   ac_cv_lib_dld_shl_load=no
12684 fi
12685 rm -f core conftest.err conftest.$ac_objext \
12686     conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12688 fi
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12690 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12691 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12692   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12693 else
12694   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12695 if test "x$ac_cv_func_dlopen" = xyes; then :
12696   lt_cv_dlopen="dlopen"
12697 else
12698   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12699 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12700 if ${ac_cv_lib_dl_dlopen+:} false; then :
12701   $as_echo_n "(cached) " >&6
12702 else
12703   ac_check_lib_save_LIBS=$LIBS
12704 LIBS="-ldl  $LIBS"
12705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12706 /* end confdefs.h.  */
12707
12708 /* Override any GCC internal prototype to avoid an error.
12709    Use char because int might match the return type of a GCC
12710    builtin and then its argument prototype would still apply.  */
12711 #ifdef __cplusplus
12712 extern "C"
12713 #endif
12714 char dlopen ();
12715 int
12716 main ()
12717 {
12718 return dlopen ();
12719   ;
12720   return 0;
12721 }
12722 _ACEOF
12723 if ac_fn_c_try_link "$LINENO"; then :
12724   ac_cv_lib_dl_dlopen=yes
12725 else
12726   ac_cv_lib_dl_dlopen=no
12727 fi
12728 rm -f core conftest.err conftest.$ac_objext \
12729     conftest$ac_exeext conftest.$ac_ext
12730 LIBS=$ac_check_lib_save_LIBS
12731 fi
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12733 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12734 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12735   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12736 else
12737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12738 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12739 if ${ac_cv_lib_svld_dlopen+:} false; then :
12740   $as_echo_n "(cached) " >&6
12741 else
12742   ac_check_lib_save_LIBS=$LIBS
12743 LIBS="-lsvld  $LIBS"
12744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12745 /* end confdefs.h.  */
12746
12747 /* Override any GCC internal prototype to avoid an error.
12748    Use char because int might match the return type of a GCC
12749    builtin and then its argument prototype would still apply.  */
12750 #ifdef __cplusplus
12751 extern "C"
12752 #endif
12753 char dlopen ();
12754 int
12755 main ()
12756 {
12757 return dlopen ();
12758   ;
12759   return 0;
12760 }
12761 _ACEOF
12762 if ac_fn_c_try_link "$LINENO"; then :
12763   ac_cv_lib_svld_dlopen=yes
12764 else
12765   ac_cv_lib_svld_dlopen=no
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext \
12768     conftest$ac_exeext conftest.$ac_ext
12769 LIBS=$ac_check_lib_save_LIBS
12770 fi
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12772 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12773 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12774   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12775 else
12776   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12777 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12778 if ${ac_cv_lib_dld_dld_link+:} false; then :
12779   $as_echo_n "(cached) " >&6
12780 else
12781   ac_check_lib_save_LIBS=$LIBS
12782 LIBS="-ldld  $LIBS"
12783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h.  */
12785
12786 /* Override any GCC internal prototype to avoid an error.
12787    Use char because int might match the return type of a GCC
12788    builtin and then its argument prototype would still apply.  */
12789 #ifdef __cplusplus
12790 extern "C"
12791 #endif
12792 char dld_link ();
12793 int
12794 main ()
12795 {
12796 return dld_link ();
12797   ;
12798   return 0;
12799 }
12800 _ACEOF
12801 if ac_fn_c_try_link "$LINENO"; then :
12802   ac_cv_lib_dld_dld_link=yes
12803 else
12804   ac_cv_lib_dld_dld_link=no
12805 fi
12806 rm -f core conftest.err conftest.$ac_objext \
12807     conftest$ac_exeext conftest.$ac_ext
12808 LIBS=$ac_check_lib_save_LIBS
12809 fi
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12811 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12812 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12813   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12814 fi
12815
12816
12817 fi
12818
12819
12820 fi
12821
12822
12823 fi
12824
12825
12826 fi
12827
12828
12829 fi
12830
12831     ;;
12832   esac
12833
12834   if test "x$lt_cv_dlopen" != xno; then
12835     enable_dlopen=yes
12836   else
12837     enable_dlopen=no
12838   fi
12839
12840   case $lt_cv_dlopen in
12841   dlopen)
12842     save_CPPFLAGS="$CPPFLAGS"
12843     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12844
12845     save_LDFLAGS="$LDFLAGS"
12846     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12847
12848     save_LIBS="$LIBS"
12849     LIBS="$lt_cv_dlopen_libs $LIBS"
12850
12851     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12852 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12853 if ${lt_cv_dlopen_self+:} false; then :
12854   $as_echo_n "(cached) " >&6
12855 else
12856           if test "$cross_compiling" = yes; then :
12857   lt_cv_dlopen_self=cross
12858 else
12859   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12860   lt_status=$lt_dlunknown
12861   cat > conftest.$ac_ext <<_LT_EOF
12862 #line $LINENO "configure"
12863 #include "confdefs.h"
12864
12865 #if HAVE_DLFCN_H
12866 #include <dlfcn.h>
12867 #endif
12868
12869 #include <stdio.h>
12870
12871 #ifdef RTLD_GLOBAL
12872 #  define LT_DLGLOBAL           RTLD_GLOBAL
12873 #else
12874 #  ifdef DL_GLOBAL
12875 #    define LT_DLGLOBAL         DL_GLOBAL
12876 #  else
12877 #    define LT_DLGLOBAL         0
12878 #  endif
12879 #endif
12880
12881 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12882    find out it does not work in some platform. */
12883 #ifndef LT_DLLAZY_OR_NOW
12884 #  ifdef RTLD_LAZY
12885 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12886 #  else
12887 #    ifdef DL_LAZY
12888 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12889 #    else
12890 #      ifdef RTLD_NOW
12891 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12892 #      else
12893 #        ifdef DL_NOW
12894 #          define LT_DLLAZY_OR_NOW      DL_NOW
12895 #        else
12896 #          define LT_DLLAZY_OR_NOW      0
12897 #        endif
12898 #      endif
12899 #    endif
12900 #  endif
12901 #endif
12902
12903 /* When -fvisbility=hidden is used, assume the code has been annotated
12904    correspondingly for the symbols needed.  */
12905 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12906 int fnord () __attribute__((visibility("default")));
12907 #endif
12908
12909 int fnord () { return 42; }
12910 int main ()
12911 {
12912   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12913   int status = $lt_dlunknown;
12914
12915   if (self)
12916     {
12917       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12918       else
12919         {
12920           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12921           else puts (dlerror ());
12922         }
12923       /* dlclose (self); */
12924     }
12925   else
12926     puts (dlerror ());
12927
12928   return status;
12929 }
12930 _LT_EOF
12931   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12932   (eval $ac_link) 2>&5
12933   ac_status=$?
12934   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12935   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12936     (./conftest; exit; ) >&5 2>/dev/null
12937     lt_status=$?
12938     case x$lt_status in
12939       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12940       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12941       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12942     esac
12943   else :
12944     # compilation failed
12945     lt_cv_dlopen_self=no
12946   fi
12947 fi
12948 rm -fr conftest*
12949
12950
12951 fi
12952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12953 $as_echo "$lt_cv_dlopen_self" >&6; }
12954
12955     if test "x$lt_cv_dlopen_self" = xyes; then
12956       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12957       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12958 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12959 if ${lt_cv_dlopen_self_static+:} false; then :
12960   $as_echo_n "(cached) " >&6
12961 else
12962           if test "$cross_compiling" = yes; then :
12963   lt_cv_dlopen_self_static=cross
12964 else
12965   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12966   lt_status=$lt_dlunknown
12967   cat > conftest.$ac_ext <<_LT_EOF
12968 #line $LINENO "configure"
12969 #include "confdefs.h"
12970
12971 #if HAVE_DLFCN_H
12972 #include <dlfcn.h>
12973 #endif
12974
12975 #include <stdio.h>
12976
12977 #ifdef RTLD_GLOBAL
12978 #  define LT_DLGLOBAL           RTLD_GLOBAL
12979 #else
12980 #  ifdef DL_GLOBAL
12981 #    define LT_DLGLOBAL         DL_GLOBAL
12982 #  else
12983 #    define LT_DLGLOBAL         0
12984 #  endif
12985 #endif
12986
12987 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12988    find out it does not work in some platform. */
12989 #ifndef LT_DLLAZY_OR_NOW
12990 #  ifdef RTLD_LAZY
12991 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12992 #  else
12993 #    ifdef DL_LAZY
12994 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12995 #    else
12996 #      ifdef RTLD_NOW
12997 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12998 #      else
12999 #        ifdef DL_NOW
13000 #          define LT_DLLAZY_OR_NOW      DL_NOW
13001 #        else
13002 #          define LT_DLLAZY_OR_NOW      0
13003 #        endif
13004 #      endif
13005 #    endif
13006 #  endif
13007 #endif
13008
13009 /* When -fvisbility=hidden is used, assume the code has been annotated
13010    correspondingly for the symbols needed.  */
13011 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13012 int fnord () __attribute__((visibility("default")));
13013 #endif
13014
13015 int fnord () { return 42; }
13016 int main ()
13017 {
13018   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13019   int status = $lt_dlunknown;
13020
13021   if (self)
13022     {
13023       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13024       else
13025         {
13026           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13027           else puts (dlerror ());
13028         }
13029       /* dlclose (self); */
13030     }
13031   else
13032     puts (dlerror ());
13033
13034   return status;
13035 }
13036 _LT_EOF
13037   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13038   (eval $ac_link) 2>&5
13039   ac_status=$?
13040   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13041   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13042     (./conftest; exit; ) >&5 2>/dev/null
13043     lt_status=$?
13044     case x$lt_status in
13045       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13046       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13047       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13048     esac
13049   else :
13050     # compilation failed
13051     lt_cv_dlopen_self_static=no
13052   fi
13053 fi
13054 rm -fr conftest*
13055
13056
13057 fi
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13059 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13060     fi
13061
13062     CPPFLAGS="$save_CPPFLAGS"
13063     LDFLAGS="$save_LDFLAGS"
13064     LIBS="$save_LIBS"
13065     ;;
13066   esac
13067
13068   case $lt_cv_dlopen_self in
13069   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13070   *) enable_dlopen_self=unknown ;;
13071   esac
13072
13073   case $lt_cv_dlopen_self_static in
13074   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13075   *) enable_dlopen_self_static=unknown ;;
13076   esac
13077 fi
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095 striplib=
13096 old_striplib=
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13098 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13099 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13100   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13101   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13103 $as_echo "yes" >&6; }
13104 else
13105 # FIXME - insert some real tests, host_os isn't really good enough
13106   case $host_os in
13107   darwin*)
13108     if test -n "$STRIP" ; then
13109       striplib="$STRIP -x"
13110       old_striplib="$STRIP -S"
13111       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13112 $as_echo "yes" >&6; }
13113     else
13114       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13115 $as_echo "no" >&6; }
13116     fi
13117     ;;
13118   *)
13119     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13120 $as_echo "no" >&6; }
13121     ;;
13122   esac
13123 fi
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136   # Report which library types will actually be built
13137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13138 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13140 $as_echo "$can_build_shared" >&6; }
13141
13142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13143 $as_echo_n "checking whether to build shared libraries... " >&6; }
13144   test "$can_build_shared" = "no" && enable_shared=no
13145
13146   # On AIX, shared libraries and static libraries use the same namespace, and
13147   # are all built from PIC.
13148   case $host_os in
13149   aix3*)
13150     test "$enable_shared" = yes && enable_static=no
13151     if test -n "$RANLIB"; then
13152       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13153       postinstall_cmds='$RANLIB $lib'
13154     fi
13155     ;;
13156
13157   aix[4-9]*)
13158     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13159       test "$enable_shared" = yes && enable_static=no
13160     fi
13161     ;;
13162   esac
13163   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13164 $as_echo "$enable_shared" >&6; }
13165
13166   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13167 $as_echo_n "checking whether to build static libraries... " >&6; }
13168   # Make sure either enable_shared or enable_static is yes.
13169   test "$enable_shared" = yes || enable_static=yes
13170   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13171 $as_echo "$enable_static" >&6; }
13172
13173
13174
13175
13176 fi
13177 ac_ext=c
13178 ac_cpp='$CPP $CPPFLAGS'
13179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13182
13183 CC="$lt_save_CC"
13184
13185       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13186     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13187     (test "X$CXX" != "Xg++"))) ; then
13188   ac_ext=cpp
13189 ac_cpp='$CXXCPP $CPPFLAGS'
13190 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13191 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13192 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13194 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13195 if test -z "$CXXCPP"; then
13196   if ${ac_cv_prog_CXXCPP+:} false; then :
13197   $as_echo_n "(cached) " >&6
13198 else
13199       # Double quotes because CXXCPP needs to be expanded
13200     for CXXCPP in "$CXX -E" "/lib/cpp"
13201     do
13202       ac_preproc_ok=false
13203 for ac_cxx_preproc_warn_flag in '' yes
13204 do
13205   # Use a header file that comes with gcc, so configuring glibc
13206   # with a fresh cross-compiler works.
13207   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13208   # <limits.h> exists even on freestanding compilers.
13209   # On the NeXT, cc -E runs the code through the compiler's parser,
13210   # not just through cpp. "Syntax error" is here to catch this case.
13211   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13212 /* end confdefs.h.  */
13213 #ifdef __STDC__
13214 # include <limits.h>
13215 #else
13216 # include <assert.h>
13217 #endif
13218                      Syntax error
13219 _ACEOF
13220 if ac_fn_cxx_try_cpp "$LINENO"; then :
13221
13222 else
13223   # Broken: fails on valid input.
13224 continue
13225 fi
13226 rm -f conftest.err conftest.i conftest.$ac_ext
13227
13228   # OK, works on sane cases.  Now check whether nonexistent headers
13229   # can be detected and how.
13230   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13231 /* end confdefs.h.  */
13232 #include <ac_nonexistent.h>
13233 _ACEOF
13234 if ac_fn_cxx_try_cpp "$LINENO"; then :
13235   # Broken: success on invalid input.
13236 continue
13237 else
13238   # Passes both tests.
13239 ac_preproc_ok=:
13240 break
13241 fi
13242 rm -f conftest.err conftest.i conftest.$ac_ext
13243
13244 done
13245 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13246 rm -f conftest.i conftest.err conftest.$ac_ext
13247 if $ac_preproc_ok; then :
13248   break
13249 fi
13250
13251     done
13252     ac_cv_prog_CXXCPP=$CXXCPP
13253
13254 fi
13255   CXXCPP=$ac_cv_prog_CXXCPP
13256 else
13257   ac_cv_prog_CXXCPP=$CXXCPP
13258 fi
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13260 $as_echo "$CXXCPP" >&6; }
13261 ac_preproc_ok=false
13262 for ac_cxx_preproc_warn_flag in '' yes
13263 do
13264   # Use a header file that comes with gcc, so configuring glibc
13265   # with a fresh cross-compiler works.
13266   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13267   # <limits.h> exists even on freestanding compilers.
13268   # On the NeXT, cc -E runs the code through the compiler's parser,
13269   # not just through cpp. "Syntax error" is here to catch this case.
13270   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h.  */
13272 #ifdef __STDC__
13273 # include <limits.h>
13274 #else
13275 # include <assert.h>
13276 #endif
13277                      Syntax error
13278 _ACEOF
13279 if ac_fn_cxx_try_cpp "$LINENO"; then :
13280
13281 else
13282   # Broken: fails on valid input.
13283 continue
13284 fi
13285 rm -f conftest.err conftest.i conftest.$ac_ext
13286
13287   # OK, works on sane cases.  Now check whether nonexistent headers
13288   # can be detected and how.
13289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290 /* end confdefs.h.  */
13291 #include <ac_nonexistent.h>
13292 _ACEOF
13293 if ac_fn_cxx_try_cpp "$LINENO"; then :
13294   # Broken: success on invalid input.
13295 continue
13296 else
13297   # Passes both tests.
13298 ac_preproc_ok=:
13299 break
13300 fi
13301 rm -f conftest.err conftest.i conftest.$ac_ext
13302
13303 done
13304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13305 rm -f conftest.i conftest.err conftest.$ac_ext
13306 if $ac_preproc_ok; then :
13307
13308 else
13309   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13310 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13311 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13312 See \`config.log' for more details" "$LINENO" 5; }
13313 fi
13314
13315 ac_ext=c
13316 ac_cpp='$CPP $CPPFLAGS'
13317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13320
13321 else
13322   _lt_caught_CXX_error=yes
13323 fi
13324
13325 ac_ext=cpp
13326 ac_cpp='$CXXCPP $CPPFLAGS'
13327 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13328 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13329 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13330
13331 archive_cmds_need_lc_CXX=no
13332 allow_undefined_flag_CXX=
13333 always_export_symbols_CXX=no
13334 archive_expsym_cmds_CXX=
13335 compiler_needs_object_CXX=no
13336 export_dynamic_flag_spec_CXX=
13337 hardcode_direct_CXX=no
13338 hardcode_direct_absolute_CXX=no
13339 hardcode_libdir_flag_spec_CXX=
13340 hardcode_libdir_separator_CXX=
13341 hardcode_minus_L_CXX=no
13342 hardcode_shlibpath_var_CXX=unsupported
13343 hardcode_automatic_CXX=no
13344 inherit_rpath_CXX=no
13345 module_cmds_CXX=
13346 module_expsym_cmds_CXX=
13347 link_all_deplibs_CXX=unknown
13348 old_archive_cmds_CXX=$old_archive_cmds
13349 reload_flag_CXX=$reload_flag
13350 reload_cmds_CXX=$reload_cmds
13351 no_undefined_flag_CXX=
13352 whole_archive_flag_spec_CXX=
13353 enable_shared_with_static_runtimes_CXX=no
13354
13355 # Source file extension for C++ test sources.
13356 ac_ext=cpp
13357
13358 # Object file extension for compiled C++ test sources.
13359 objext=o
13360 objext_CXX=$objext
13361
13362 # No sense in running all these tests if we already determined that
13363 # the CXX compiler isn't working.  Some variables (like enable_shared)
13364 # are currently assumed to apply to all compilers on this platform,
13365 # and will be corrupted by setting them based on a non-working compiler.
13366 if test "$_lt_caught_CXX_error" != yes; then
13367   # Code to be used in simple compile tests
13368   lt_simple_compile_test_code="int some_variable = 0;"
13369
13370   # Code to be used in simple link tests
13371   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13372
13373   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13374
13375
13376
13377
13378
13379
13380 # If no C compiler was specified, use CC.
13381 LTCC=${LTCC-"$CC"}
13382
13383 # If no C compiler flags were specified, use CFLAGS.
13384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13385
13386 # Allow CC to be a program name with arguments.
13387 compiler=$CC
13388
13389
13390   # save warnings/boilerplate of simple test code
13391   ac_outfile=conftest.$ac_objext
13392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13394 _lt_compiler_boilerplate=`cat conftest.err`
13395 $RM conftest*
13396
13397   ac_outfile=conftest.$ac_objext
13398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13400 _lt_linker_boilerplate=`cat conftest.err`
13401 $RM -r conftest*
13402
13403
13404   # Allow CC to be a program name with arguments.
13405   lt_save_CC=$CC
13406   lt_save_CFLAGS=$CFLAGS
13407   lt_save_LD=$LD
13408   lt_save_GCC=$GCC
13409   GCC=$GXX
13410   lt_save_with_gnu_ld=$with_gnu_ld
13411   lt_save_path_LD=$lt_cv_path_LD
13412   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13413     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13414   else
13415     $as_unset lt_cv_prog_gnu_ld
13416   fi
13417   if test -n "${lt_cv_path_LDCXX+set}"; then
13418     lt_cv_path_LD=$lt_cv_path_LDCXX
13419   else
13420     $as_unset lt_cv_path_LD
13421   fi
13422   test -z "${LDCXX+set}" || LD=$LDCXX
13423   CC=${CXX-"c++"}
13424   CFLAGS=$CXXFLAGS
13425   compiler=$CC
13426   compiler_CXX=$CC
13427   for cc_temp in $compiler""; do
13428   case $cc_temp in
13429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13431     \-*) ;;
13432     *) break;;
13433   esac
13434 done
13435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13436
13437
13438   if test -n "$compiler"; then
13439     # We don't want -fno-exception when compiling C++ code, so set the
13440     # no_builtin_flag separately
13441     if test "$GXX" = yes; then
13442       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13443     else
13444       lt_prog_compiler_no_builtin_flag_CXX=
13445     fi
13446
13447     if test "$GXX" = yes; then
13448       # Set up default GNU C++ configuration
13449
13450
13451
13452 # Check whether --with-gnu-ld was given.
13453 if test "${with_gnu_ld+set}" = set; then :
13454   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13455 else
13456   with_gnu_ld=no
13457 fi
13458
13459 ac_prog=ld
13460 if test "$GCC" = yes; then
13461   # Check if gcc -print-prog-name=ld gives a path.
13462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13463 $as_echo_n "checking for ld used by $CC... " >&6; }
13464   case $host in
13465   *-*-mingw*)
13466     # gcc leaves a trailing carriage return which upsets mingw
13467     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13468   *)
13469     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13470   esac
13471   case $ac_prog in
13472     # Accept absolute paths.
13473     [\\/]* | ?:[\\/]*)
13474       re_direlt='/[^/][^/]*/\.\./'
13475       # Canonicalize the pathname of ld
13476       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13477       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13478         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13479       done
13480       test -z "$LD" && LD="$ac_prog"
13481       ;;
13482   "")
13483     # If it fails, then pretend we aren't using GCC.
13484     ac_prog=ld
13485     ;;
13486   *)
13487     # If it is relative, then search for the first ld in PATH.
13488     with_gnu_ld=unknown
13489     ;;
13490   esac
13491 elif test "$with_gnu_ld" = yes; then
13492   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13493 $as_echo_n "checking for GNU ld... " >&6; }
13494 else
13495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13496 $as_echo_n "checking for non-GNU ld... " >&6; }
13497 fi
13498 if ${lt_cv_path_LD+:} false; then :
13499   $as_echo_n "(cached) " >&6
13500 else
13501   if test -z "$LD"; then
13502   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13503   for ac_dir in $PATH; do
13504     IFS="$lt_save_ifs"
13505     test -z "$ac_dir" && ac_dir=.
13506     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13507       lt_cv_path_LD="$ac_dir/$ac_prog"
13508       # Check to see if the program is GNU ld.  I'd rather use --version,
13509       # but apparently some variants of GNU ld only accept -v.
13510       # Break only if it was the GNU/non-GNU ld that we prefer.
13511       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13512       *GNU* | *'with BFD'*)
13513         test "$with_gnu_ld" != no && break
13514         ;;
13515       *)
13516         test "$with_gnu_ld" != yes && break
13517         ;;
13518       esac
13519     fi
13520   done
13521   IFS="$lt_save_ifs"
13522 else
13523   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13524 fi
13525 fi
13526
13527 LD="$lt_cv_path_LD"
13528 if test -n "$LD"; then
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13530 $as_echo "$LD" >&6; }
13531 else
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534 fi
13535 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13537 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13538 if ${lt_cv_prog_gnu_ld+:} false; then :
13539   $as_echo_n "(cached) " >&6
13540 else
13541   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13542 case `$LD -v 2>&1 </dev/null` in
13543 *GNU* | *'with BFD'*)
13544   lt_cv_prog_gnu_ld=yes
13545   ;;
13546 *)
13547   lt_cv_prog_gnu_ld=no
13548   ;;
13549 esac
13550 fi
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13552 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13553 with_gnu_ld=$lt_cv_prog_gnu_ld
13554
13555
13556
13557
13558
13559
13560
13561       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13562       # archiving commands below assume that GNU ld is being used.
13563       if test "$with_gnu_ld" = yes; then
13564         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13565         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'
13566
13567         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13568         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13569
13570         # If archive_cmds runs LD, not CC, wlarc should be empty
13571         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13572         #     investigate it a little bit more. (MM)
13573         wlarc='${wl}'
13574
13575         # ancient GNU ld didn't support --whole-archive et. al.
13576         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13577           $GREP 'no-whole-archive' > /dev/null; then
13578           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13579         else
13580           whole_archive_flag_spec_CXX=
13581         fi
13582       else
13583         with_gnu_ld=no
13584         wlarc=
13585
13586         # A generic and very simple default shared library creation
13587         # command for GNU C++ for the case where it uses the native
13588         # linker, instead of GNU ld.  If possible, this setting should
13589         # overridden to take advantage of the native linker features on
13590         # the platform it is being used on.
13591         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13592       fi
13593
13594       # Commands to make compiler produce verbose output that lists
13595       # what "hidden" libraries, object files and flags are used when
13596       # linking a shared library.
13597       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13598
13599     else
13600       GXX=no
13601       with_gnu_ld=no
13602       wlarc=
13603     fi
13604
13605     # PORTME: fill in a description of your system's C++ link characteristics
13606     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13607 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13608     ld_shlibs_CXX=yes
13609     case $host_os in
13610       aix3*)
13611         # FIXME: insert proper C++ library support
13612         ld_shlibs_CXX=no
13613         ;;
13614       aix[4-9]*)
13615         if test "$host_cpu" = ia64; then
13616           # On IA64, the linker does run time linking by default, so we don't
13617           # have to do anything special.
13618           aix_use_runtimelinking=no
13619           exp_sym_flag='-Bexport'
13620           no_entry_flag=""
13621         else
13622           aix_use_runtimelinking=no
13623
13624           # Test if we are trying to use run time linking or normal
13625           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13626           # need to do runtime linking.
13627           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13628             for ld_flag in $LDFLAGS; do
13629               case $ld_flag in
13630               *-brtl*)
13631                 aix_use_runtimelinking=yes
13632                 break
13633                 ;;
13634               esac
13635             done
13636             ;;
13637           esac
13638
13639           exp_sym_flag='-bexport'
13640           no_entry_flag='-bnoentry'
13641         fi
13642
13643         # When large executables or shared objects are built, AIX ld can
13644         # have problems creating the table of contents.  If linking a library
13645         # or program results in "error TOC overflow" add -mminimal-toc to
13646         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13647         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13648
13649         archive_cmds_CXX=''
13650         hardcode_direct_CXX=yes
13651         hardcode_direct_absolute_CXX=yes
13652         hardcode_libdir_separator_CXX=':'
13653         link_all_deplibs_CXX=yes
13654         file_list_spec_CXX='${wl}-f,'
13655
13656         if test "$GXX" = yes; then
13657           case $host_os in aix4.[012]|aix4.[012].*)
13658           # We only want to do this on AIX 4.2 and lower, the check
13659           # below for broken collect2 doesn't work under 4.3+
13660           collect2name=`${CC} -print-prog-name=collect2`
13661           if test -f "$collect2name" &&
13662              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13663           then
13664             # We have reworked collect2
13665             :
13666           else
13667             # We have old collect2
13668             hardcode_direct_CXX=unsupported
13669             # It fails to find uninstalled libraries when the uninstalled
13670             # path is not listed in the libpath.  Setting hardcode_minus_L
13671             # to unsupported forces relinking
13672             hardcode_minus_L_CXX=yes
13673             hardcode_libdir_flag_spec_CXX='-L$libdir'
13674             hardcode_libdir_separator_CXX=
13675           fi
13676           esac
13677           shared_flag='-shared'
13678           if test "$aix_use_runtimelinking" = yes; then
13679             shared_flag="$shared_flag "'${wl}-G'
13680           fi
13681         else
13682           # not using gcc
13683           if test "$host_cpu" = ia64; then
13684           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13685           # chokes on -Wl,-G. The following line is correct:
13686           shared_flag='-G'
13687           else
13688             if test "$aix_use_runtimelinking" = yes; then
13689               shared_flag='${wl}-G'
13690             else
13691               shared_flag='${wl}-bM:SRE'
13692             fi
13693           fi
13694         fi
13695
13696         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13697         # It seems that -bexpall does not export symbols beginning with
13698         # underscore (_), so it is better to generate a list of symbols to
13699         # export.
13700         always_export_symbols_CXX=yes
13701         if test "$aix_use_runtimelinking" = yes; then
13702           # Warning - without using the other runtime loading flags (-brtl),
13703           # -berok will link without error, but may produce a broken library.
13704           allow_undefined_flag_CXX='-berok'
13705           # Determine the default libpath from the value encoded in an empty
13706           # executable.
13707           if test "${lt_cv_aix_libpath+set}" = set; then
13708   aix_libpath=$lt_cv_aix_libpath
13709 else
13710   if ${lt_cv_aix_libpath__CXX+:} false; then :
13711   $as_echo_n "(cached) " >&6
13712 else
13713   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13714 /* end confdefs.h.  */
13715
13716 int
13717 main ()
13718 {
13719
13720   ;
13721   return 0;
13722 }
13723 _ACEOF
13724 if ac_fn_cxx_try_link "$LINENO"; then :
13725
13726   lt_aix_libpath_sed='
13727       /Import File Strings/,/^$/ {
13728           /^0/ {
13729               s/^0  *\([^ ]*\) *$/\1/
13730               p
13731           }
13732       }'
13733   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13734   # Check for a 64-bit object if we didn't find anything.
13735   if test -z "$lt_cv_aix_libpath__CXX"; then
13736     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13737   fi
13738 fi
13739 rm -f core conftest.err conftest.$ac_objext \
13740     conftest$ac_exeext conftest.$ac_ext
13741   if test -z "$lt_cv_aix_libpath__CXX"; then
13742     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13743   fi
13744
13745 fi
13746
13747   aix_libpath=$lt_cv_aix_libpath__CXX
13748 fi
13749
13750           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13751
13752           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"
13753         else
13754           if test "$host_cpu" = ia64; then
13755             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13756             allow_undefined_flag_CXX="-z nodefs"
13757             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"
13758           else
13759             # Determine the default libpath from the value encoded in an
13760             # empty executable.
13761             if test "${lt_cv_aix_libpath+set}" = set; then
13762   aix_libpath=$lt_cv_aix_libpath
13763 else
13764   if ${lt_cv_aix_libpath__CXX+:} false; then :
13765   $as_echo_n "(cached) " >&6
13766 else
13767   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13768 /* end confdefs.h.  */
13769
13770 int
13771 main ()
13772 {
13773
13774   ;
13775   return 0;
13776 }
13777 _ACEOF
13778 if ac_fn_cxx_try_link "$LINENO"; then :
13779
13780   lt_aix_libpath_sed='
13781       /Import File Strings/,/^$/ {
13782           /^0/ {
13783               s/^0  *\([^ ]*\) *$/\1/
13784               p
13785           }
13786       }'
13787   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13788   # Check for a 64-bit object if we didn't find anything.
13789   if test -z "$lt_cv_aix_libpath__CXX"; then
13790     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13791   fi
13792 fi
13793 rm -f core conftest.err conftest.$ac_objext \
13794     conftest$ac_exeext conftest.$ac_ext
13795   if test -z "$lt_cv_aix_libpath__CXX"; then
13796     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13797   fi
13798
13799 fi
13800
13801   aix_libpath=$lt_cv_aix_libpath__CXX
13802 fi
13803
13804             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13805             # Warning - without using the other run time loading flags,
13806             # -berok will link without error, but may produce a broken library.
13807             no_undefined_flag_CXX=' ${wl}-bernotok'
13808             allow_undefined_flag_CXX=' ${wl}-berok'
13809             if test "$with_gnu_ld" = yes; then
13810               # We only use this code for GNU lds that support --whole-archive.
13811               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13812             else
13813               # Exported symbols can be pulled into shared objects from archives
13814               whole_archive_flag_spec_CXX='$convenience'
13815             fi
13816             archive_cmds_need_lc_CXX=yes
13817             # This is similar to how AIX traditionally builds its shared
13818             # libraries.
13819             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'
13820           fi
13821         fi
13822         ;;
13823
13824       beos*)
13825         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13826           allow_undefined_flag_CXX=unsupported
13827           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13828           # support --undefined.  This deserves some investigation.  FIXME
13829           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13830         else
13831           ld_shlibs_CXX=no
13832         fi
13833         ;;
13834
13835       chorus*)
13836         case $cc_basename in
13837           *)
13838           # FIXME: insert proper C++ library support
13839           ld_shlibs_CXX=no
13840           ;;
13841         esac
13842         ;;
13843
13844       cygwin* | mingw* | pw32* | cegcc*)
13845         case $GXX,$cc_basename in
13846         ,cl* | no,cl*)
13847           # Native MSVC
13848           # hardcode_libdir_flag_spec is actually meaningless, as there is
13849           # no search path for DLLs.
13850           hardcode_libdir_flag_spec_CXX=' '
13851           allow_undefined_flag_CXX=unsupported
13852           always_export_symbols_CXX=yes
13853           file_list_spec_CXX='@'
13854           # Tell ltmain to make .lib files, not .a files.
13855           libext=lib
13856           # Tell ltmain to make .dll files, not .so files.
13857           shrext_cmds=".dll"
13858           # FIXME: Setting linknames here is a bad hack.
13859           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13860           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13861               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13862             else
13863               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13864             fi~
13865             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13866             linknames='
13867           # The linker will not automatically build a static lib if we build a DLL.
13868           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13869           enable_shared_with_static_runtimes_CXX=yes
13870           # Don't use ranlib
13871           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13872           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13873             lt_tool_outputfile="@TOOL_OUTPUT@"~
13874             case $lt_outputfile in
13875               *.exe|*.EXE) ;;
13876               *)
13877                 lt_outputfile="$lt_outputfile.exe"
13878                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13879                 ;;
13880             esac~
13881             func_to_tool_file "$lt_outputfile"~
13882             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13883               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13884               $RM "$lt_outputfile.manifest";
13885             fi'
13886           ;;
13887         *)
13888           # g++
13889           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13890           # as there is no search path for DLLs.
13891           hardcode_libdir_flag_spec_CXX='-L$libdir'
13892           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13893           allow_undefined_flag_CXX=unsupported
13894           always_export_symbols_CXX=no
13895           enable_shared_with_static_runtimes_CXX=yes
13896
13897           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13898             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'
13899             # If the export-symbols file already is a .def file (1st line
13900             # is EXPORTS), use it as is; otherwise, prepend...
13901             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13902               cp $export_symbols $output_objdir/$soname.def;
13903             else
13904               echo EXPORTS > $output_objdir/$soname.def;
13905               cat $export_symbols >> $output_objdir/$soname.def;
13906             fi~
13907             $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'
13908           else
13909             ld_shlibs_CXX=no
13910           fi
13911           ;;
13912         esac
13913         ;;
13914       darwin* | rhapsody*)
13915
13916
13917   archive_cmds_need_lc_CXX=no
13918   hardcode_direct_CXX=no
13919   hardcode_automatic_CXX=yes
13920   hardcode_shlibpath_var_CXX=unsupported
13921   if test "$lt_cv_ld_force_load" = "yes"; then
13922     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\"`'
13923
13924   else
13925     whole_archive_flag_spec_CXX=''
13926   fi
13927   link_all_deplibs_CXX=yes
13928   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13929   case $cc_basename in
13930      ifort*) _lt_dar_can_shared=yes ;;
13931      *) _lt_dar_can_shared=$GCC ;;
13932   esac
13933   if test "$_lt_dar_can_shared" = "yes"; then
13934     output_verbose_link_cmd=func_echo_all
13935     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}"
13936     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13937     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}"
13938     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}"
13939        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13940       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}"
13941       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}"
13942     fi
13943
13944   else
13945   ld_shlibs_CXX=no
13946   fi
13947
13948         ;;
13949
13950       dgux*)
13951         case $cc_basename in
13952           ec++*)
13953             # FIXME: insert proper C++ library support
13954             ld_shlibs_CXX=no
13955             ;;
13956           ghcx*)
13957             # Green Hills C++ Compiler
13958             # FIXME: insert proper C++ library support
13959             ld_shlibs_CXX=no
13960             ;;
13961           *)
13962             # FIXME: insert proper C++ library support
13963             ld_shlibs_CXX=no
13964             ;;
13965         esac
13966         ;;
13967
13968       freebsd2.*)
13969         # C++ shared libraries reported to be fairly broken before
13970         # switch to ELF
13971         ld_shlibs_CXX=no
13972         ;;
13973
13974       freebsd-elf*)
13975         archive_cmds_need_lc_CXX=no
13976         ;;
13977
13978       freebsd* | dragonfly*)
13979         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13980         # conventions
13981         ld_shlibs_CXX=yes
13982         ;;
13983
13984       haiku*)
13985         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13986         link_all_deplibs_CXX=yes
13987         ;;
13988
13989       hpux9*)
13990         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13991         hardcode_libdir_separator_CXX=:
13992         export_dynamic_flag_spec_CXX='${wl}-E'
13993         hardcode_direct_CXX=yes
13994         hardcode_minus_L_CXX=yes # Not in the search PATH,
13995                                              # but as the default
13996                                              # location of the library.
13997
13998         case $cc_basename in
13999           CC*)
14000             # FIXME: insert proper C++ library support
14001             ld_shlibs_CXX=no
14002             ;;
14003           aCC*)
14004             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'
14005             # Commands to make compiler produce verbose output that lists
14006             # what "hidden" libraries, object files and flags are used when
14007             # linking a shared library.
14008             #
14009             # There doesn't appear to be a way to prevent this compiler from
14010             # explicitly linking system object files so we need to strip them
14011             # from the output so that they don't get included in the library
14012             # dependencies.
14013             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"'
14014             ;;
14015           *)
14016             if test "$GXX" = yes; then
14017               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'
14018             else
14019               # FIXME: insert proper C++ library support
14020               ld_shlibs_CXX=no
14021             fi
14022             ;;
14023         esac
14024         ;;
14025
14026       hpux10*|hpux11*)
14027         if test $with_gnu_ld = no; then
14028           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14029           hardcode_libdir_separator_CXX=:
14030
14031           case $host_cpu in
14032             hppa*64*|ia64*)
14033               ;;
14034             *)
14035               export_dynamic_flag_spec_CXX='${wl}-E'
14036               ;;
14037           esac
14038         fi
14039         case $host_cpu in
14040           hppa*64*|ia64*)
14041             hardcode_direct_CXX=no
14042             hardcode_shlibpath_var_CXX=no
14043             ;;
14044           *)
14045             hardcode_direct_CXX=yes
14046             hardcode_direct_absolute_CXX=yes
14047             hardcode_minus_L_CXX=yes # Not in the search PATH,
14048                                                  # but as the default
14049                                                  # location of the library.
14050             ;;
14051         esac
14052
14053         case $cc_basename in
14054           CC*)
14055             # FIXME: insert proper C++ library support
14056             ld_shlibs_CXX=no
14057             ;;
14058           aCC*)
14059             case $host_cpu in
14060               hppa*64*)
14061                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                 ;;
14063               ia64*)
14064                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065                 ;;
14066               *)
14067                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14068                 ;;
14069             esac
14070             # Commands to make compiler produce verbose output that lists
14071             # what "hidden" libraries, object files and flags are used when
14072             # linking a shared library.
14073             #
14074             # There doesn't appear to be a way to prevent this compiler from
14075             # explicitly linking system object files so we need to strip them
14076             # from the output so that they don't get included in the library
14077             # dependencies.
14078             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"'
14079             ;;
14080           *)
14081             if test "$GXX" = yes; then
14082               if test $with_gnu_ld = no; then
14083                 case $host_cpu in
14084                   hppa*64*)
14085                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14086                     ;;
14087                   ia64*)
14088                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14089                     ;;
14090                   *)
14091                     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'
14092                     ;;
14093                 esac
14094               fi
14095             else
14096               # FIXME: insert proper C++ library support
14097               ld_shlibs_CXX=no
14098             fi
14099             ;;
14100         esac
14101         ;;
14102
14103       interix[3-9]*)
14104         hardcode_direct_CXX=no
14105         hardcode_shlibpath_var_CXX=no
14106         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14107         export_dynamic_flag_spec_CXX='${wl}-E'
14108         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14109         # Instead, shared libraries are loaded at an image base (0x10000000 by
14110         # default) and relocated if they conflict, which is a slow very memory
14111         # consuming and fragmenting process.  To avoid this, we pick a random,
14112         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14113         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14114         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'
14115         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'
14116         ;;
14117       irix5* | irix6*)
14118         case $cc_basename in
14119           CC*)
14120             # SGI C++
14121             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'
14122
14123             # Archives containing C++ object files must be created using
14124             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14125             # necessary to make sure instantiated templates are included
14126             # in the archive.
14127             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14128             ;;
14129           *)
14130             if test "$GXX" = yes; then
14131               if test "$with_gnu_ld" = no; then
14132                 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'
14133               else
14134                 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'
14135               fi
14136             fi
14137             link_all_deplibs_CXX=yes
14138             ;;
14139         esac
14140         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14141         hardcode_libdir_separator_CXX=:
14142         inherit_rpath_CXX=yes
14143         ;;
14144
14145       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14146         case $cc_basename in
14147           KCC*)
14148             # Kuck and Associates, Inc. (KAI) C++ Compiler
14149
14150             # KCC will only create a shared library if the output file
14151             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14152             # to its proper name (with version) after linking.
14153             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'
14154             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'
14155             # Commands to make compiler produce verbose output that lists
14156             # what "hidden" libraries, object files and flags are used when
14157             # linking a shared library.
14158             #
14159             # There doesn't appear to be a way to prevent this compiler from
14160             # explicitly linking system object files so we need to strip them
14161             # from the output so that they don't get included in the library
14162             # dependencies.
14163             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"'
14164
14165             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14166             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14167
14168             # Archives containing C++ object files must be created using
14169             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14170             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14171             ;;
14172           icpc* | ecpc* )
14173             # Intel C++
14174             with_gnu_ld=yes
14175             # version 8.0 and above of icpc choke on multiply defined symbols
14176             # if we add $predep_objects and $postdep_objects, however 7.1 and
14177             # earlier do not add the objects themselves.
14178             case `$CC -V 2>&1` in
14179               *"Version 7."*)
14180                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14181                 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'
14182                 ;;
14183               *)  # Version 8.0 or newer
14184                 tmp_idyn=
14185                 case $host_cpu in
14186                   ia64*) tmp_idyn=' -i_dynamic';;
14187                 esac
14188                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14189                 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'
14190                 ;;
14191             esac
14192             archive_cmds_need_lc_CXX=no
14193             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14194             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14195             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14196             ;;
14197           pgCC* | pgcpp*)
14198             # Portland Group C++ compiler
14199             case `$CC -V` in
14200             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14201               prelink_cmds_CXX='tpldir=Template.dir~
14202                 rm -rf $tpldir~
14203                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14204                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14205               old_archive_cmds_CXX='tpldir=Template.dir~
14206                 rm -rf $tpldir~
14207                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14208                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14209                 $RANLIB $oldlib'
14210               archive_cmds_CXX='tpldir=Template.dir~
14211                 rm -rf $tpldir~
14212                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14213                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14214               archive_expsym_cmds_CXX='tpldir=Template.dir~
14215                 rm -rf $tpldir~
14216                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14217                 $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'
14218               ;;
14219             *) # Version 6 and above use weak symbols
14220               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14221               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'
14222               ;;
14223             esac
14224
14225             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14226             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14227             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'
14228             ;;
14229           cxx*)
14230             # Compaq C++
14231             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14232             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'
14233
14234             runpath_var=LD_RUN_PATH
14235             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14236             hardcode_libdir_separator_CXX=:
14237
14238             # Commands to make compiler produce verbose output that lists
14239             # what "hidden" libraries, object files and flags are used when
14240             # linking a shared library.
14241             #
14242             # There doesn't appear to be a way to prevent this compiler from
14243             # explicitly linking system object files so we need to strip them
14244             # from the output so that they don't get included in the library
14245             # dependencies.
14246             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'
14247             ;;
14248           xl* | mpixl* | bgxl*)
14249             # IBM XL 8.0 on PPC, with GNU ld
14250             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14251             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14252             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14253             if test "x$supports_anon_versioning" = xyes; then
14254               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14255                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14256                 echo "local: *; };" >> $output_objdir/$libname.ver~
14257                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14258             fi
14259             ;;
14260           *)
14261             case `$CC -V 2>&1 | sed 5q` in
14262             *Sun\ C*)
14263               # Sun C++ 5.9
14264               no_undefined_flag_CXX=' -zdefs'
14265               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14266               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'
14267               hardcode_libdir_flag_spec_CXX='-R$libdir'
14268               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'
14269               compiler_needs_object_CXX=yes
14270
14271               # Not sure whether something based on
14272               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14273               # would be better.
14274               output_verbose_link_cmd='func_echo_all'
14275
14276               # Archives containing C++ object files must be created using
14277               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14278               # necessary to make sure instantiated templates are included
14279               # in the archive.
14280               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14281               ;;
14282             esac
14283             ;;
14284         esac
14285         ;;
14286
14287       lynxos*)
14288         # FIXME: insert proper C++ library support
14289         ld_shlibs_CXX=no
14290         ;;
14291
14292       m88k*)
14293         # FIXME: insert proper C++ library support
14294         ld_shlibs_CXX=no
14295         ;;
14296
14297       mvs*)
14298         case $cc_basename in
14299           cxx*)
14300             # FIXME: insert proper C++ library support
14301             ld_shlibs_CXX=no
14302             ;;
14303           *)
14304             # FIXME: insert proper C++ library support
14305             ld_shlibs_CXX=no
14306             ;;
14307         esac
14308         ;;
14309
14310       netbsd*)
14311         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14313           wlarc=
14314           hardcode_libdir_flag_spec_CXX='-R$libdir'
14315           hardcode_direct_CXX=yes
14316           hardcode_shlibpath_var_CXX=no
14317         fi
14318         # Workaround some broken pre-1.5 toolchains
14319         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14320         ;;
14321
14322       *nto* | *qnx*)
14323         ld_shlibs_CXX=yes
14324         ;;
14325
14326       openbsd2*)
14327         # C++ shared libraries are fairly broken
14328         ld_shlibs_CXX=no
14329         ;;
14330
14331       openbsd*)
14332         if test -f /usr/libexec/ld.so; then
14333           hardcode_direct_CXX=yes
14334           hardcode_shlibpath_var_CXX=no
14335           hardcode_direct_absolute_CXX=yes
14336           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14337           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14338           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14339             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14340             export_dynamic_flag_spec_CXX='${wl}-E'
14341             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14342           fi
14343           output_verbose_link_cmd=func_echo_all
14344         else
14345           ld_shlibs_CXX=no
14346         fi
14347         ;;
14348
14349       osf3* | osf4* | osf5*)
14350         case $cc_basename in
14351           KCC*)
14352             # Kuck and Associates, Inc. (KAI) C++ Compiler
14353
14354             # KCC will only create a shared library if the output file
14355             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14356             # to its proper name (with version) after linking.
14357             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'
14358
14359             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14360             hardcode_libdir_separator_CXX=:
14361
14362             # Archives containing C++ object files must be created using
14363             # the KAI C++ compiler.
14364             case $host in
14365               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14366               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14367             esac
14368             ;;
14369           RCC*)
14370             # Rational C++ 2.4.1
14371             # FIXME: insert proper C++ library support
14372             ld_shlibs_CXX=no
14373             ;;
14374           cxx*)
14375             case $host in
14376               osf3*)
14377                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14378                 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'
14379                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14380                 ;;
14381               *)
14382                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14383                 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'
14384                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14385                   echo "-hidden">> $lib.exp~
14386                   $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~
14387                   $RM $lib.exp'
14388                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14389                 ;;
14390             esac
14391
14392             hardcode_libdir_separator_CXX=:
14393
14394             # Commands to make compiler produce verbose output that lists
14395             # what "hidden" libraries, object files and flags are used when
14396             # linking a shared library.
14397             #
14398             # There doesn't appear to be a way to prevent this compiler from
14399             # explicitly linking system object files so we need to strip them
14400             # from the output so that they don't get included in the library
14401             # dependencies.
14402             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"'
14403             ;;
14404           *)
14405             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14406               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14407               case $host in
14408                 osf3*)
14409                   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'
14410                   ;;
14411                 *)
14412                   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'
14413                   ;;
14414               esac
14415
14416               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14417               hardcode_libdir_separator_CXX=:
14418
14419               # Commands to make compiler produce verbose output that lists
14420               # what "hidden" libraries, object files and flags are used when
14421               # linking a shared library.
14422               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14423
14424             else
14425               # FIXME: insert proper C++ library support
14426               ld_shlibs_CXX=no
14427             fi
14428             ;;
14429         esac
14430         ;;
14431
14432       psos*)
14433         # FIXME: insert proper C++ library support
14434         ld_shlibs_CXX=no
14435         ;;
14436
14437       sunos4*)
14438         case $cc_basename in
14439           CC*)
14440             # Sun C++ 4.x
14441             # FIXME: insert proper C++ library support
14442             ld_shlibs_CXX=no
14443             ;;
14444           lcc*)
14445             # Lucid
14446             # FIXME: insert proper C++ library support
14447             ld_shlibs_CXX=no
14448             ;;
14449           *)
14450             # FIXME: insert proper C++ library support
14451             ld_shlibs_CXX=no
14452             ;;
14453         esac
14454         ;;
14455
14456       solaris*)
14457         case $cc_basename in
14458           CC* | sunCC*)
14459             # Sun C++ 4.2, 5.x and Centerline C++
14460             archive_cmds_need_lc_CXX=yes
14461             no_undefined_flag_CXX=' -zdefs'
14462             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14463             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14464               $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'
14465
14466             hardcode_libdir_flag_spec_CXX='-R$libdir'
14467             hardcode_shlibpath_var_CXX=no
14468             case $host_os in
14469               solaris2.[0-5] | solaris2.[0-5].*) ;;
14470               *)
14471                 # The compiler driver will combine and reorder linker options,
14472                 # but understands `-z linker_flag'.
14473                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14474                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14475                 ;;
14476             esac
14477             link_all_deplibs_CXX=yes
14478
14479             output_verbose_link_cmd='func_echo_all'
14480
14481             # Archives containing C++ object files must be created using
14482             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14483             # necessary to make sure instantiated templates are included
14484             # in the archive.
14485             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14486             ;;
14487           gcx*)
14488             # Green Hills C++ Compiler
14489             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14490
14491             # The C++ compiler must be used to create the archive.
14492             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14493             ;;
14494           *)
14495             # GNU C++ compiler with Solaris linker
14496             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14497               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14498               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14499                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14500                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14501                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14502
14503                 # Commands to make compiler produce verbose output that lists
14504                 # what "hidden" libraries, object files and flags are used when
14505                 # linking a shared library.
14506                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14507               else
14508                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14509                 # platform.
14510                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14511                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14512                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14513
14514                 # Commands to make compiler produce verbose output that lists
14515                 # what "hidden" libraries, object files and flags are used when
14516                 # linking a shared library.
14517                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14518               fi
14519
14520               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14521               case $host_os in
14522                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14523                 *)
14524                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14525                   ;;
14526               esac
14527             fi
14528             ;;
14529         esac
14530         ;;
14531
14532     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14533       no_undefined_flag_CXX='${wl}-z,text'
14534       archive_cmds_need_lc_CXX=no
14535       hardcode_shlibpath_var_CXX=no
14536       runpath_var='LD_RUN_PATH'
14537
14538       case $cc_basename in
14539         CC*)
14540           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14541           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14542           ;;
14543         *)
14544           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546           ;;
14547       esac
14548       ;;
14549
14550       sysv5* | sco3.2v5* | sco5v6*)
14551         # Note: We can NOT use -z defs as we might desire, because we do not
14552         # link with -lc, and that would cause any symbols used from libc to
14553         # always be unresolved, which means just about no library would
14554         # ever link correctly.  If we're not using GNU ld we use -z text
14555         # though, which does catch some bad symbols but isn't as heavy-handed
14556         # as -z defs.
14557         no_undefined_flag_CXX='${wl}-z,text'
14558         allow_undefined_flag_CXX='${wl}-z,nodefs'
14559         archive_cmds_need_lc_CXX=no
14560         hardcode_shlibpath_var_CXX=no
14561         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14562         hardcode_libdir_separator_CXX=':'
14563         link_all_deplibs_CXX=yes
14564         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14565         runpath_var='LD_RUN_PATH'
14566
14567         case $cc_basename in
14568           CC*)
14569             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14570             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14571             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14572               '"$old_archive_cmds_CXX"
14573             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14574               '"$reload_cmds_CXX"
14575             ;;
14576           *)
14577             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14578             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14579             ;;
14580         esac
14581       ;;
14582
14583       tandem*)
14584         case $cc_basename in
14585           NCC*)
14586             # NonStop-UX NCC 3.20
14587             # FIXME: insert proper C++ library support
14588             ld_shlibs_CXX=no
14589             ;;
14590           *)
14591             # FIXME: insert proper C++ library support
14592             ld_shlibs_CXX=no
14593             ;;
14594         esac
14595         ;;
14596
14597       vxworks*)
14598         # FIXME: insert proper C++ library support
14599         ld_shlibs_CXX=no
14600         ;;
14601
14602       *)
14603         # FIXME: insert proper C++ library support
14604         ld_shlibs_CXX=no
14605         ;;
14606     esac
14607
14608     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14609 $as_echo "$ld_shlibs_CXX" >&6; }
14610     test "$ld_shlibs_CXX" = no && can_build_shared=no
14611
14612     GCC_CXX="$GXX"
14613     LD_CXX="$LD"
14614
14615     ## CAVEAT EMPTOR:
14616     ## There is no encapsulation within the following macros, do not change
14617     ## the running order or otherwise move them around unless you know exactly
14618     ## what you are doing...
14619     # Dependencies to place before and after the object being linked:
14620 predep_objects_CXX=
14621 postdep_objects_CXX=
14622 predeps_CXX=
14623 postdeps_CXX=
14624 compiler_lib_search_path_CXX=
14625
14626 cat > conftest.$ac_ext <<_LT_EOF
14627 class Foo
14628 {
14629 public:
14630   Foo (void) { a = 0; }
14631 private:
14632   int a;
14633 };
14634 _LT_EOF
14635
14636
14637 _lt_libdeps_save_CFLAGS=$CFLAGS
14638 case "$CC $CFLAGS " in #(
14639 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14640 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14641 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14642 esac
14643
14644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14645   (eval $ac_compile) 2>&5
14646   ac_status=$?
14647   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14648   test $ac_status = 0; }; then
14649   # Parse the compiler output and extract the necessary
14650   # objects, libraries and library flags.
14651
14652   # Sentinel used to keep track of whether or not we are before
14653   # the conftest object file.
14654   pre_test_object_deps_done=no
14655
14656   for p in `eval "$output_verbose_link_cmd"`; do
14657     case ${prev}${p} in
14658
14659     -L* | -R* | -l*)
14660        # Some compilers place space between "-{L,R}" and the path.
14661        # Remove the space.
14662        if test $p = "-L" ||
14663           test $p = "-R"; then
14664          prev=$p
14665          continue
14666        fi
14667
14668        # Expand the sysroot to ease extracting the directories later.
14669        if test -z "$prev"; then
14670          case $p in
14671          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14672          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14673          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14674          esac
14675        fi
14676        case $p in
14677        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14678        esac
14679        if test "$pre_test_object_deps_done" = no; then
14680          case ${prev} in
14681          -L | -R)
14682            # Internal compiler library paths should come after those
14683            # provided the user.  The postdeps already come after the
14684            # user supplied libs so there is no need to process them.
14685            if test -z "$compiler_lib_search_path_CXX"; then
14686              compiler_lib_search_path_CXX="${prev}${p}"
14687            else
14688              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14689            fi
14690            ;;
14691          # The "-l" case would never come before the object being
14692          # linked, so don't bother handling this case.
14693          esac
14694        else
14695          if test -z "$postdeps_CXX"; then
14696            postdeps_CXX="${prev}${p}"
14697          else
14698            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14699          fi
14700        fi
14701        prev=
14702        ;;
14703
14704     *.lto.$objext) ;; # Ignore GCC LTO objects
14705     *.$objext)
14706        # This assumes that the test object file only shows up
14707        # once in the compiler output.
14708        if test "$p" = "conftest.$objext"; then
14709          pre_test_object_deps_done=yes
14710          continue
14711        fi
14712
14713        if test "$pre_test_object_deps_done" = no; then
14714          if test -z "$predep_objects_CXX"; then
14715            predep_objects_CXX="$p"
14716          else
14717            predep_objects_CXX="$predep_objects_CXX $p"
14718          fi
14719        else
14720          if test -z "$postdep_objects_CXX"; then
14721            postdep_objects_CXX="$p"
14722          else
14723            postdep_objects_CXX="$postdep_objects_CXX $p"
14724          fi
14725        fi
14726        ;;
14727
14728     *) ;; # Ignore the rest.
14729
14730     esac
14731   done
14732
14733   # Clean up.
14734   rm -f a.out a.exe
14735 else
14736   echo "libtool.m4: error: problem compiling CXX test program"
14737 fi
14738
14739 $RM -f confest.$objext
14740 CFLAGS=$_lt_libdeps_save_CFLAGS
14741
14742 # PORTME: override above test on systems where it is broken
14743 case $host_os in
14744 interix[3-9]*)
14745   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14746   # hack all around it, let's just trust "g++" to DTRT.
14747   predep_objects_CXX=
14748   postdep_objects_CXX=
14749   postdeps_CXX=
14750   ;;
14751
14752 linux*)
14753   case `$CC -V 2>&1 | sed 5q` in
14754   *Sun\ C*)
14755     # Sun C++ 5.9
14756
14757     # The more standards-conforming stlport4 library is
14758     # incompatible with the Cstd library. Avoid specifying
14759     # it if it's in CXXFLAGS. Ignore libCrun as
14760     # -library=stlport4 depends on it.
14761     case " $CXX $CXXFLAGS " in
14762     *" -library=stlport4 "*)
14763       solaris_use_stlport4=yes
14764       ;;
14765     esac
14766
14767     if test "$solaris_use_stlport4" != yes; then
14768       postdeps_CXX='-library=Cstd -library=Crun'
14769     fi
14770     ;;
14771   esac
14772   ;;
14773
14774 solaris*)
14775   case $cc_basename in
14776   CC* | sunCC*)
14777     # The more standards-conforming stlport4 library is
14778     # incompatible with the Cstd library. Avoid specifying
14779     # it if it's in CXXFLAGS. Ignore libCrun as
14780     # -library=stlport4 depends on it.
14781     case " $CXX $CXXFLAGS " in
14782     *" -library=stlport4 "*)
14783       solaris_use_stlport4=yes
14784       ;;
14785     esac
14786
14787     # Adding this requires a known-good setup of shared libraries for
14788     # Sun compiler versions before 5.6, else PIC objects from an old
14789     # archive will be linked into the output, leading to subtle bugs.
14790     if test "$solaris_use_stlport4" != yes; then
14791       postdeps_CXX='-library=Cstd -library=Crun'
14792     fi
14793     ;;
14794   esac
14795   ;;
14796 esac
14797
14798
14799 case " $postdeps_CXX " in
14800 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14801 esac
14802  compiler_lib_search_dirs_CXX=
14803 if test -n "${compiler_lib_search_path_CXX}"; then
14804  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14805 fi
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821
14822
14823
14824
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837     lt_prog_compiler_wl_CXX=
14838 lt_prog_compiler_pic_CXX=
14839 lt_prog_compiler_static_CXX=
14840
14841
14842   # C++ specific cases for pic, static, wl, etc.
14843   if test "$GXX" = yes; then
14844     lt_prog_compiler_wl_CXX='-Wl,'
14845     lt_prog_compiler_static_CXX='-static'
14846
14847     case $host_os in
14848     aix*)
14849       # All AIX code is PIC.
14850       if test "$host_cpu" = ia64; then
14851         # AIX 5 now supports IA64 processor
14852         lt_prog_compiler_static_CXX='-Bstatic'
14853       fi
14854       ;;
14855
14856     amigaos*)
14857       case $host_cpu in
14858       powerpc)
14859             # see comment about AmigaOS4 .so support
14860             lt_prog_compiler_pic_CXX='-fPIC'
14861         ;;
14862       m68k)
14863             # FIXME: we need at least 68020 code to build shared libraries, but
14864             # adding the `-m68020' flag to GCC prevents building anything better,
14865             # like `-m68040'.
14866             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14867         ;;
14868       esac
14869       ;;
14870
14871     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14872       # PIC is the default for these OSes.
14873       ;;
14874     mingw* | cygwin* | os2* | pw32* | cegcc*)
14875       # This hack is so that the source file can tell whether it is being
14876       # built for inclusion in a dll (and should export symbols for example).
14877       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14878       # (--disable-auto-import) libraries
14879       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14880       ;;
14881     darwin* | rhapsody*)
14882       # PIC is the default on this platform
14883       # Common symbols not allowed in MH_DYLIB files
14884       lt_prog_compiler_pic_CXX='-fno-common'
14885       ;;
14886     *djgpp*)
14887       # DJGPP does not support shared libraries at all
14888       lt_prog_compiler_pic_CXX=
14889       ;;
14890     haiku*)
14891       # PIC is the default for Haiku.
14892       # The "-static" flag exists, but is broken.
14893       lt_prog_compiler_static_CXX=
14894       ;;
14895     interix[3-9]*)
14896       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14897       # Instead, we relocate shared libraries at runtime.
14898       ;;
14899     sysv4*MP*)
14900       if test -d /usr/nec; then
14901         lt_prog_compiler_pic_CXX=-Kconform_pic
14902       fi
14903       ;;
14904     hpux*)
14905       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14906       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14907       # sets the default TLS model and affects inlining.
14908       case $host_cpu in
14909       hppa*64*)
14910         ;;
14911       *)
14912         lt_prog_compiler_pic_CXX='-fPIC'
14913         ;;
14914       esac
14915       ;;
14916     *qnx* | *nto*)
14917       # QNX uses GNU C++, but need to define -shared option too, otherwise
14918       # it will coredump.
14919       lt_prog_compiler_pic_CXX='-fPIC -shared'
14920       ;;
14921     *)
14922       lt_prog_compiler_pic_CXX='-fPIC'
14923       ;;
14924     esac
14925   else
14926     case $host_os in
14927       aix[4-9]*)
14928         # All AIX code is PIC.
14929         if test "$host_cpu" = ia64; then
14930           # AIX 5 now supports IA64 processor
14931           lt_prog_compiler_static_CXX='-Bstatic'
14932         else
14933           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14934         fi
14935         ;;
14936       chorus*)
14937         case $cc_basename in
14938         cxch68*)
14939           # Green Hills C++ Compiler
14940           # _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"
14941           ;;
14942         esac
14943         ;;
14944       mingw* | cygwin* | os2* | pw32* | cegcc*)
14945         # This hack is so that the source file can tell whether it is being
14946         # built for inclusion in a dll (and should export symbols for example).
14947         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14948         ;;
14949       dgux*)
14950         case $cc_basename in
14951           ec++*)
14952             lt_prog_compiler_pic_CXX='-KPIC'
14953             ;;
14954           ghcx*)
14955             # Green Hills C++ Compiler
14956             lt_prog_compiler_pic_CXX='-pic'
14957             ;;
14958           *)
14959             ;;
14960         esac
14961         ;;
14962       freebsd* | dragonfly*)
14963         # FreeBSD uses GNU C++
14964         ;;
14965       hpux9* | hpux10* | hpux11*)
14966         case $cc_basename in
14967           CC*)
14968             lt_prog_compiler_wl_CXX='-Wl,'
14969             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14970             if test "$host_cpu" != ia64; then
14971               lt_prog_compiler_pic_CXX='+Z'
14972             fi
14973             ;;
14974           aCC*)
14975             lt_prog_compiler_wl_CXX='-Wl,'
14976             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14977             case $host_cpu in
14978             hppa*64*|ia64*)
14979               # +Z the default
14980               ;;
14981             *)
14982               lt_prog_compiler_pic_CXX='+Z'
14983               ;;
14984             esac
14985             ;;
14986           *)
14987             ;;
14988         esac
14989         ;;
14990       interix*)
14991         # This is c89, which is MS Visual C++ (no shared libs)
14992         # Anyone wants to do a port?
14993         ;;
14994       irix5* | irix6* | nonstopux*)
14995         case $cc_basename in
14996           CC*)
14997             lt_prog_compiler_wl_CXX='-Wl,'
14998             lt_prog_compiler_static_CXX='-non_shared'
14999             # CC pic flag -KPIC is the default.
15000             ;;
15001           *)
15002             ;;
15003         esac
15004         ;;
15005       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15006         case $cc_basename in
15007           KCC*)
15008             # KAI C++ Compiler
15009             lt_prog_compiler_wl_CXX='--backend -Wl,'
15010             lt_prog_compiler_pic_CXX='-fPIC'
15011             ;;
15012           ecpc* )
15013             # old Intel C++ for x86_64 which still supported -KPIC.
15014             lt_prog_compiler_wl_CXX='-Wl,'
15015             lt_prog_compiler_pic_CXX='-KPIC'
15016             lt_prog_compiler_static_CXX='-static'
15017             ;;
15018           icpc* )
15019             # Intel C++, used to be incompatible with GCC.
15020             # ICC 10 doesn't accept -KPIC any more.
15021             lt_prog_compiler_wl_CXX='-Wl,'
15022             lt_prog_compiler_pic_CXX='-fPIC'
15023             lt_prog_compiler_static_CXX='-static'
15024             ;;
15025           pgCC* | pgcpp*)
15026             # Portland Group C++ compiler
15027             lt_prog_compiler_wl_CXX='-Wl,'
15028             lt_prog_compiler_pic_CXX='-fpic'
15029             lt_prog_compiler_static_CXX='-Bstatic'
15030             ;;
15031           cxx*)
15032             # Compaq C++
15033             # Make sure the PIC flag is empty.  It appears that all Alpha
15034             # Linux and Compaq Tru64 Unix objects are PIC.
15035             lt_prog_compiler_pic_CXX=
15036             lt_prog_compiler_static_CXX='-non_shared'
15037             ;;
15038           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15039             # IBM XL 8.0, 9.0 on PPC and BlueGene
15040             lt_prog_compiler_wl_CXX='-Wl,'
15041             lt_prog_compiler_pic_CXX='-qpic'
15042             lt_prog_compiler_static_CXX='-qstaticlink'
15043             ;;
15044           *)
15045             case `$CC -V 2>&1 | sed 5q` in
15046             *Sun\ C*)
15047               # Sun C++ 5.9
15048               lt_prog_compiler_pic_CXX='-KPIC'
15049               lt_prog_compiler_static_CXX='-Bstatic'
15050               lt_prog_compiler_wl_CXX='-Qoption ld '
15051               ;;
15052             esac
15053             ;;
15054         esac
15055         ;;
15056       lynxos*)
15057         ;;
15058       m88k*)
15059         ;;
15060       mvs*)
15061         case $cc_basename in
15062           cxx*)
15063             lt_prog_compiler_pic_CXX='-W c,exportall'
15064             ;;
15065           *)
15066             ;;
15067         esac
15068         ;;
15069       netbsd* | netbsdelf*-gnu)
15070         ;;
15071       *qnx* | *nto*)
15072         # QNX uses GNU C++, but need to define -shared option too, otherwise
15073         # it will coredump.
15074         lt_prog_compiler_pic_CXX='-fPIC -shared'
15075         ;;
15076       osf3* | osf4* | osf5*)
15077         case $cc_basename in
15078           KCC*)
15079             lt_prog_compiler_wl_CXX='--backend -Wl,'
15080             ;;
15081           RCC*)
15082             # Rational C++ 2.4.1
15083             lt_prog_compiler_pic_CXX='-pic'
15084             ;;
15085           cxx*)
15086             # Digital/Compaq C++
15087             lt_prog_compiler_wl_CXX='-Wl,'
15088             # Make sure the PIC flag is empty.  It appears that all Alpha
15089             # Linux and Compaq Tru64 Unix objects are PIC.
15090             lt_prog_compiler_pic_CXX=
15091             lt_prog_compiler_static_CXX='-non_shared'
15092             ;;
15093           *)
15094             ;;
15095         esac
15096         ;;
15097       psos*)
15098         ;;
15099       solaris*)
15100         case $cc_basename in
15101           CC* | sunCC*)
15102             # Sun C++ 4.2, 5.x and Centerline C++
15103             lt_prog_compiler_pic_CXX='-KPIC'
15104             lt_prog_compiler_static_CXX='-Bstatic'
15105             lt_prog_compiler_wl_CXX='-Qoption ld '
15106             ;;
15107           gcx*)
15108             # Green Hills C++ Compiler
15109             lt_prog_compiler_pic_CXX='-PIC'
15110             ;;
15111           *)
15112             ;;
15113         esac
15114         ;;
15115       sunos4*)
15116         case $cc_basename in
15117           CC*)
15118             # Sun C++ 4.x
15119             lt_prog_compiler_pic_CXX='-pic'
15120             lt_prog_compiler_static_CXX='-Bstatic'
15121             ;;
15122           lcc*)
15123             # Lucid
15124             lt_prog_compiler_pic_CXX='-pic'
15125             ;;
15126           *)
15127             ;;
15128         esac
15129         ;;
15130       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15131         case $cc_basename in
15132           CC*)
15133             lt_prog_compiler_wl_CXX='-Wl,'
15134             lt_prog_compiler_pic_CXX='-KPIC'
15135             lt_prog_compiler_static_CXX='-Bstatic'
15136             ;;
15137         esac
15138         ;;
15139       tandem*)
15140         case $cc_basename in
15141           NCC*)
15142             # NonStop-UX NCC 3.20
15143             lt_prog_compiler_pic_CXX='-KPIC'
15144             ;;
15145           *)
15146             ;;
15147         esac
15148         ;;
15149       vxworks*)
15150         ;;
15151       *)
15152         lt_prog_compiler_can_build_shared_CXX=no
15153         ;;
15154     esac
15155   fi
15156
15157 case $host_os in
15158   # For platforms which do not support PIC, -DPIC is meaningless:
15159   *djgpp*)
15160     lt_prog_compiler_pic_CXX=
15161     ;;
15162   *)
15163     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15164     ;;
15165 esac
15166
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15168 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15169 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15170   $as_echo_n "(cached) " >&6
15171 else
15172   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15173 fi
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15175 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15176 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15177
15178 #
15179 # Check to make sure the PIC flag actually works.
15180 #
15181 if test -n "$lt_prog_compiler_pic_CXX"; then
15182   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15183 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15184 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15185   $as_echo_n "(cached) " >&6
15186 else
15187   lt_cv_prog_compiler_pic_works_CXX=no
15188    ac_outfile=conftest.$ac_objext
15189    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15190    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15191    # Insert the option either (1) after the last *FLAGS variable, or
15192    # (2) before a word containing "conftest.", or (3) at the end.
15193    # Note that $ac_compile itself does not contain backslashes and begins
15194    # with a dollar sign (not a hyphen), so the echo should work correctly.
15195    # The option is referenced via a variable to avoid confusing sed.
15196    lt_compile=`echo "$ac_compile" | $SED \
15197    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15198    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15199    -e 's:$: $lt_compiler_flag:'`
15200    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15201    (eval "$lt_compile" 2>conftest.err)
15202    ac_status=$?
15203    cat conftest.err >&5
15204    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205    if (exit $ac_status) && test -s "$ac_outfile"; then
15206      # The compiler can only warn and ignore the option if not recognized
15207      # So say no if there are warnings other than the usual output.
15208      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15209      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15210      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15211        lt_cv_prog_compiler_pic_works_CXX=yes
15212      fi
15213    fi
15214    $RM conftest*
15215
15216 fi
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15218 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15219
15220 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15221     case $lt_prog_compiler_pic_CXX in
15222      "" | " "*) ;;
15223      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15224      esac
15225 else
15226     lt_prog_compiler_pic_CXX=
15227      lt_prog_compiler_can_build_shared_CXX=no
15228 fi
15229
15230 fi
15231
15232
15233
15234
15235
15236 #
15237 # Check to make sure the static flag actually works.
15238 #
15239 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15241 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15242 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15243   $as_echo_n "(cached) " >&6
15244 else
15245   lt_cv_prog_compiler_static_works_CXX=no
15246    save_LDFLAGS="$LDFLAGS"
15247    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15248    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15249    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15250      # The linker can only warn and ignore the option if not recognized
15251      # So say no if there are warnings
15252      if test -s conftest.err; then
15253        # Append any errors to the config.log.
15254        cat conftest.err 1>&5
15255        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15256        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15257        if diff conftest.exp conftest.er2 >/dev/null; then
15258          lt_cv_prog_compiler_static_works_CXX=yes
15259        fi
15260      else
15261        lt_cv_prog_compiler_static_works_CXX=yes
15262      fi
15263    fi
15264    $RM -r conftest*
15265    LDFLAGS="$save_LDFLAGS"
15266
15267 fi
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15269 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15270
15271 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15272     :
15273 else
15274     lt_prog_compiler_static_CXX=
15275 fi
15276
15277
15278
15279
15280     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15281 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15282 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15283   $as_echo_n "(cached) " >&6
15284 else
15285   lt_cv_prog_compiler_c_o_CXX=no
15286    $RM -r conftest 2>/dev/null
15287    mkdir conftest
15288    cd conftest
15289    mkdir out
15290    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15291
15292    lt_compiler_flag="-o out/conftest2.$ac_objext"
15293    # Insert the option either (1) after the last *FLAGS variable, or
15294    # (2) before a word containing "conftest.", or (3) at the end.
15295    # Note that $ac_compile itself does not contain backslashes and begins
15296    # with a dollar sign (not a hyphen), so the echo should work correctly.
15297    lt_compile=`echo "$ac_compile" | $SED \
15298    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15299    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15300    -e 's:$: $lt_compiler_flag:'`
15301    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15302    (eval "$lt_compile" 2>out/conftest.err)
15303    ac_status=$?
15304    cat out/conftest.err >&5
15305    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15306    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15307    then
15308      # The compiler can only warn and ignore the option if not recognized
15309      # So say no if there are warnings
15310      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15311      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15312      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15313        lt_cv_prog_compiler_c_o_CXX=yes
15314      fi
15315    fi
15316    chmod u+w . 2>&5
15317    $RM conftest*
15318    # SGI C++ compiler will create directory out/ii_files/ for
15319    # template instantiation
15320    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15321    $RM out/* && rmdir out
15322    cd ..
15323    $RM -r conftest
15324    $RM conftest*
15325
15326 fi
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15328 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15329
15330
15331
15332     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15333 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15334 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15335   $as_echo_n "(cached) " >&6
15336 else
15337   lt_cv_prog_compiler_c_o_CXX=no
15338    $RM -r conftest 2>/dev/null
15339    mkdir conftest
15340    cd conftest
15341    mkdir out
15342    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15343
15344    lt_compiler_flag="-o out/conftest2.$ac_objext"
15345    # Insert the option either (1) after the last *FLAGS variable, or
15346    # (2) before a word containing "conftest.", or (3) at the end.
15347    # Note that $ac_compile itself does not contain backslashes and begins
15348    # with a dollar sign (not a hyphen), so the echo should work correctly.
15349    lt_compile=`echo "$ac_compile" | $SED \
15350    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15351    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15352    -e 's:$: $lt_compiler_flag:'`
15353    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15354    (eval "$lt_compile" 2>out/conftest.err)
15355    ac_status=$?
15356    cat out/conftest.err >&5
15357    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15358    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15359    then
15360      # The compiler can only warn and ignore the option if not recognized
15361      # So say no if there are warnings
15362      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15363      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15364      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15365        lt_cv_prog_compiler_c_o_CXX=yes
15366      fi
15367    fi
15368    chmod u+w . 2>&5
15369    $RM conftest*
15370    # SGI C++ compiler will create directory out/ii_files/ for
15371    # template instantiation
15372    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15373    $RM out/* && rmdir out
15374    cd ..
15375    $RM -r conftest
15376    $RM conftest*
15377
15378 fi
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15380 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15381
15382
15383
15384
15385 hard_links="nottested"
15386 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15387   # do not overwrite the value of need_locks provided by the user
15388   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15389 $as_echo_n "checking if we can lock with hard links... " >&6; }
15390   hard_links=yes
15391   $RM conftest*
15392   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15393   touch conftest.a
15394   ln conftest.a conftest.b 2>&5 || hard_links=no
15395   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15397 $as_echo "$hard_links" >&6; }
15398   if test "$hard_links" = no; then
15399     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15400 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15401     need_locks=warn
15402   fi
15403 else
15404   need_locks=no
15405 fi
15406
15407
15408
15409     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15410 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15411
15412   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15413   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15414   case $host_os in
15415   aix[4-9]*)
15416     # If we're using GNU nm, then we don't want the "-C" option.
15417     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15418     # Also, AIX nm treats weak defined symbols like other global defined
15419     # symbols, whereas GNU nm marks them as "W".
15420     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15421       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'
15422     else
15423       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'
15424     fi
15425     ;;
15426   pw32*)
15427     export_symbols_cmds_CXX="$ltdll_cmds"
15428     ;;
15429   cygwin* | mingw* | cegcc*)
15430     case $cc_basename in
15431     cl*)
15432       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15433       ;;
15434     *)
15435       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'
15436       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15437       ;;
15438     esac
15439     ;;
15440   linux* | k*bsd*-gnu | gnu*)
15441     link_all_deplibs_CXX=no
15442     ;;
15443   *)
15444     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15445     ;;
15446   esac
15447
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15449 $as_echo "$ld_shlibs_CXX" >&6; }
15450 test "$ld_shlibs_CXX" = no && can_build_shared=no
15451
15452 with_gnu_ld_CXX=$with_gnu_ld
15453
15454
15455
15456
15457
15458
15459 #
15460 # Do we need to explicitly link libc?
15461 #
15462 case "x$archive_cmds_need_lc_CXX" in
15463 x|xyes)
15464   # Assume -lc should be added
15465   archive_cmds_need_lc_CXX=yes
15466
15467   if test "$enable_shared" = yes && test "$GCC" = yes; then
15468     case $archive_cmds_CXX in
15469     *'~'*)
15470       # FIXME: we may have to deal with multi-command sequences.
15471       ;;
15472     '$CC '*)
15473       # Test whether the compiler implicitly links with -lc since on some
15474       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15475       # to ld, don't add -lc before -lgcc.
15476       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15477 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15478 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15479   $as_echo_n "(cached) " >&6
15480 else
15481   $RM conftest*
15482         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15483
15484         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15485   (eval $ac_compile) 2>&5
15486   ac_status=$?
15487   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15488   test $ac_status = 0; } 2>conftest.err; then
15489           soname=conftest
15490           lib=conftest
15491           libobjs=conftest.$ac_objext
15492           deplibs=
15493           wl=$lt_prog_compiler_wl_CXX
15494           pic_flag=$lt_prog_compiler_pic_CXX
15495           compiler_flags=-v
15496           linker_flags=-v
15497           verstring=
15498           output_objdir=.
15499           libname=conftest
15500           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15501           allow_undefined_flag_CXX=
15502           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15503   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15504   ac_status=$?
15505   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15506   test $ac_status = 0; }
15507           then
15508             lt_cv_archive_cmds_need_lc_CXX=no
15509           else
15510             lt_cv_archive_cmds_need_lc_CXX=yes
15511           fi
15512           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15513         else
15514           cat conftest.err 1>&5
15515         fi
15516         $RM conftest*
15517
15518 fi
15519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15520 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15521       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15522       ;;
15523     esac
15524   fi
15525   ;;
15526 esac
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15590 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15591
15592 library_names_spec=
15593 libname_spec='lib$name'
15594 soname_spec=
15595 shrext_cmds=".so"
15596 postinstall_cmds=
15597 postuninstall_cmds=
15598 finish_cmds=
15599 finish_eval=
15600 shlibpath_var=
15601 shlibpath_overrides_runpath=unknown
15602 version_type=none
15603 dynamic_linker="$host_os ld.so"
15604 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15605 need_lib_prefix=unknown
15606 hardcode_into_libs=no
15607
15608 # when you set need_version to no, make sure it does not cause -set_version
15609 # flags to be left without arguments
15610 need_version=unknown
15611
15612 case $host_os in
15613 aix3*)
15614   version_type=linux # correct to gnu/linux during the next big refactor
15615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15616   shlibpath_var=LIBPATH
15617
15618   # AIX 3 has no versioning support, so we append a major version to the name.
15619   soname_spec='${libname}${release}${shared_ext}$major'
15620   ;;
15621
15622 aix[4-9]*)
15623   version_type=linux # correct to gnu/linux during the next big refactor
15624   need_lib_prefix=no
15625   need_version=no
15626   hardcode_into_libs=yes
15627   if test "$host_cpu" = ia64; then
15628     # AIX 5 supports IA64
15629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15630     shlibpath_var=LD_LIBRARY_PATH
15631   else
15632     # With GCC up to 2.95.x, collect2 would create an import file
15633     # for dependence libraries.  The import file would start with
15634     # the line `#! .'.  This would cause the generated library to
15635     # depend on `.', always an invalid library.  This was fixed in
15636     # development snapshots of GCC prior to 3.0.
15637     case $host_os in
15638       aix4 | aix4.[01] | aix4.[01].*)
15639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15640            echo ' yes '
15641            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15642         :
15643       else
15644         can_build_shared=no
15645       fi
15646       ;;
15647     esac
15648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15649     # soname into executable. Probably we can add versioning support to
15650     # collect2, so additional links can be useful in future.
15651     if test "$aix_use_runtimelinking" = yes; then
15652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15653       # instead of lib<name>.a to let people know that these are not
15654       # typical AIX shared libraries.
15655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15656     else
15657       # We preserve .a as extension for shared libraries through AIX4.2
15658       # and later when we are not doing run time linking.
15659       library_names_spec='${libname}${release}.a $libname.a'
15660       soname_spec='${libname}${release}${shared_ext}$major'
15661     fi
15662     shlibpath_var=LIBPATH
15663   fi
15664   ;;
15665
15666 amigaos*)
15667   case $host_cpu in
15668   powerpc)
15669     # Since July 2007 AmigaOS4 officially supports .so libraries.
15670     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15671     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15672     ;;
15673   m68k)
15674     library_names_spec='$libname.ixlibrary $libname.a'
15675     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15676     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'
15677     ;;
15678   esac
15679   ;;
15680
15681 beos*)
15682   library_names_spec='${libname}${shared_ext}'
15683   dynamic_linker="$host_os ld.so"
15684   shlibpath_var=LIBRARY_PATH
15685   ;;
15686
15687 bsdi[45]*)
15688   version_type=linux # correct to gnu/linux during the next big refactor
15689   need_version=no
15690   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15691   soname_spec='${libname}${release}${shared_ext}$major'
15692   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15693   shlibpath_var=LD_LIBRARY_PATH
15694   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15695   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15696   # the default ld.so.conf also contains /usr/contrib/lib and
15697   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15698   # libtool to hard-code these into programs
15699   ;;
15700
15701 cygwin* | mingw* | pw32* | cegcc*)
15702   version_type=windows
15703   shrext_cmds=".dll"
15704   need_version=no
15705   need_lib_prefix=no
15706
15707   case $GCC,$cc_basename in
15708   yes,*)
15709     # gcc
15710     library_names_spec='$libname.dll.a'
15711     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15712     postinstall_cmds='base_file=`basename \${file}`~
15713       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15714       dldir=$destdir/`dirname \$dlpath`~
15715       test -d \$dldir || mkdir -p \$dldir~
15716       $install_prog $dir/$dlname \$dldir/$dlname~
15717       chmod a+x \$dldir/$dlname~
15718       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15719         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15720       fi'
15721     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15722       dlpath=$dir/\$dldll~
15723        $RM \$dlpath'
15724     shlibpath_overrides_runpath=yes
15725
15726     case $host_os in
15727     cygwin*)
15728       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15729       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15730
15731       ;;
15732     mingw* | cegcc*)
15733       # MinGW DLLs use traditional 'lib' prefix
15734       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15735       ;;
15736     pw32*)
15737       # pw32 DLLs use 'pw' prefix rather than 'lib'
15738       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15739       ;;
15740     esac
15741     dynamic_linker='Win32 ld.exe'
15742     ;;
15743
15744   *,cl*)
15745     # Native MSVC
15746     libname_spec='$name'
15747     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15748     library_names_spec='${libname}.dll.lib'
15749
15750     case $build_os in
15751     mingw*)
15752       sys_lib_search_path_spec=
15753       lt_save_ifs=$IFS
15754       IFS=';'
15755       for lt_path in $LIB
15756       do
15757         IFS=$lt_save_ifs
15758         # Let DOS variable expansion print the short 8.3 style file name.
15759         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15760         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15761       done
15762       IFS=$lt_save_ifs
15763       # Convert to MSYS style.
15764       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15765       ;;
15766     cygwin*)
15767       # Convert to unix form, then to dos form, then back to unix form
15768       # but this time dos style (no spaces!) so that the unix form looks
15769       # like /cygdrive/c/PROGRA~1:/cygdr...
15770       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15771       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15772       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15773       ;;
15774     *)
15775       sys_lib_search_path_spec="$LIB"
15776       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15777         # It is most probably a Windows format PATH.
15778         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15779       else
15780         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15781       fi
15782       # FIXME: find the short name or the path components, as spaces are
15783       # common. (e.g. "Program Files" -> "PROGRA~1")
15784       ;;
15785     esac
15786
15787     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15788     postinstall_cmds='base_file=`basename \${file}`~
15789       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15790       dldir=$destdir/`dirname \$dlpath`~
15791       test -d \$dldir || mkdir -p \$dldir~
15792       $install_prog $dir/$dlname \$dldir/$dlname'
15793     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15794       dlpath=$dir/\$dldll~
15795        $RM \$dlpath'
15796     shlibpath_overrides_runpath=yes
15797     dynamic_linker='Win32 link.exe'
15798     ;;
15799
15800   *)
15801     # Assume MSVC wrapper
15802     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15803     dynamic_linker='Win32 ld.exe'
15804     ;;
15805   esac
15806   # FIXME: first we should search . and the directory the executable is in
15807   shlibpath_var=PATH
15808   ;;
15809
15810 darwin* | rhapsody*)
15811   dynamic_linker="$host_os dyld"
15812   version_type=darwin
15813   need_lib_prefix=no
15814   need_version=no
15815   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15816   soname_spec='${libname}${release}${major}$shared_ext'
15817   shlibpath_overrides_runpath=yes
15818   shlibpath_var=DYLD_LIBRARY_PATH
15819   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15820
15821   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15822   ;;
15823
15824 dgux*)
15825   version_type=linux # correct to gnu/linux during the next big refactor
15826   need_lib_prefix=no
15827   need_version=no
15828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15829   soname_spec='${libname}${release}${shared_ext}$major'
15830   shlibpath_var=LD_LIBRARY_PATH
15831   ;;
15832
15833 freebsd* | dragonfly*)
15834   # DragonFly does not have aout.  When/if they implement a new
15835   # versioning mechanism, adjust this.
15836   if test -x /usr/bin/objformat; then
15837     objformat=`/usr/bin/objformat`
15838   else
15839     case $host_os in
15840     freebsd[23].*) objformat=aout ;;
15841     *) objformat=elf ;;
15842     esac
15843   fi
15844   version_type=freebsd-$objformat
15845   case $version_type in
15846     freebsd-elf*)
15847       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15848       need_version=no
15849       need_lib_prefix=no
15850       ;;
15851     freebsd-*)
15852       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15853       need_version=yes
15854       ;;
15855   esac
15856   shlibpath_var=LD_LIBRARY_PATH
15857   case $host_os in
15858   freebsd2.*)
15859     shlibpath_overrides_runpath=yes
15860     ;;
15861   freebsd3.[01]* | freebsdelf3.[01]*)
15862     shlibpath_overrides_runpath=yes
15863     hardcode_into_libs=yes
15864     ;;
15865   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15866   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15867     shlibpath_overrides_runpath=no
15868     hardcode_into_libs=yes
15869     ;;
15870   *) # from 4.6 on, and DragonFly
15871     shlibpath_overrides_runpath=yes
15872     hardcode_into_libs=yes
15873     ;;
15874   esac
15875   ;;
15876
15877 haiku*)
15878   version_type=linux # correct to gnu/linux during the next big refactor
15879   need_lib_prefix=no
15880   need_version=no
15881   dynamic_linker="$host_os runtime_loader"
15882   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15883   soname_spec='${libname}${release}${shared_ext}$major'
15884   shlibpath_var=LIBRARY_PATH
15885   shlibpath_overrides_runpath=yes
15886   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15887   hardcode_into_libs=yes
15888   ;;
15889
15890 hpux9* | hpux10* | hpux11*)
15891   # Give a soname corresponding to the major version so that dld.sl refuses to
15892   # link against other versions.
15893   version_type=sunos
15894   need_lib_prefix=no
15895   need_version=no
15896   case $host_cpu in
15897   ia64*)
15898     shrext_cmds='.so'
15899     hardcode_into_libs=yes
15900     dynamic_linker="$host_os dld.so"
15901     shlibpath_var=LD_LIBRARY_PATH
15902     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904     soname_spec='${libname}${release}${shared_ext}$major'
15905     if test "X$HPUX_IA64_MODE" = X32; then
15906       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15907     else
15908       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15909     fi
15910     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15911     ;;
15912   hppa*64*)
15913     shrext_cmds='.sl'
15914     hardcode_into_libs=yes
15915     dynamic_linker="$host_os dld.sl"
15916     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15917     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15918     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15919     soname_spec='${libname}${release}${shared_ext}$major'
15920     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15921     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15922     ;;
15923   *)
15924     shrext_cmds='.sl'
15925     dynamic_linker="$host_os dld.sl"
15926     shlibpath_var=SHLIB_PATH
15927     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15928     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15929     soname_spec='${libname}${release}${shared_ext}$major'
15930     ;;
15931   esac
15932   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15933   postinstall_cmds='chmod 555 $lib'
15934   # or fails outright, so override atomically:
15935   install_override_mode=555
15936   ;;
15937
15938 interix[3-9]*)
15939   version_type=linux # correct to gnu/linux during the next big refactor
15940   need_lib_prefix=no
15941   need_version=no
15942   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15943   soname_spec='${libname}${release}${shared_ext}$major'
15944   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15945   shlibpath_var=LD_LIBRARY_PATH
15946   shlibpath_overrides_runpath=no
15947   hardcode_into_libs=yes
15948   ;;
15949
15950 irix5* | irix6* | nonstopux*)
15951   case $host_os in
15952     nonstopux*) version_type=nonstopux ;;
15953     *)
15954         if test "$lt_cv_prog_gnu_ld" = yes; then
15955                 version_type=linux # correct to gnu/linux during the next big refactor
15956         else
15957                 version_type=irix
15958         fi ;;
15959   esac
15960   need_lib_prefix=no
15961   need_version=no
15962   soname_spec='${libname}${release}${shared_ext}$major'
15963   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15964   case $host_os in
15965   irix5* | nonstopux*)
15966     libsuff= shlibsuff=
15967     ;;
15968   *)
15969     case $LD in # libtool.m4 will add one of these switches to LD
15970     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15971       libsuff= shlibsuff= libmagic=32-bit;;
15972     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15973       libsuff=32 shlibsuff=N32 libmagic=N32;;
15974     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15975       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15976     *) libsuff= shlibsuff= libmagic=never-match;;
15977     esac
15978     ;;
15979   esac
15980   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15981   shlibpath_overrides_runpath=no
15982   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15983   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15984   hardcode_into_libs=yes
15985   ;;
15986
15987 # No shared lib support for Linux oldld, aout, or coff.
15988 linux*oldld* | linux*aout* | linux*coff*)
15989   dynamic_linker=no
15990   ;;
15991
15992 # This must be glibc/ELF.
15993 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15994   version_type=linux # correct to gnu/linux during the next big refactor
15995   need_lib_prefix=no
15996   need_version=no
15997   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15998   soname_spec='${libname}${release}${shared_ext}$major'
15999   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16000   shlibpath_var=LD_LIBRARY_PATH
16001   shlibpath_overrides_runpath=no
16002
16003   # Some binutils ld are patched to set DT_RUNPATH
16004   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
16005   $as_echo_n "(cached) " >&6
16006 else
16007   lt_cv_shlibpath_overrides_runpath=no
16008     save_LDFLAGS=$LDFLAGS
16009     save_libdir=$libdir
16010     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16011          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16012     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h.  */
16014
16015 int
16016 main ()
16017 {
16018
16019   ;
16020   return 0;
16021 }
16022 _ACEOF
16023 if ac_fn_cxx_try_link "$LINENO"; then :
16024   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16025   lt_cv_shlibpath_overrides_runpath=yes
16026 fi
16027 fi
16028 rm -f core conftest.err conftest.$ac_objext \
16029     conftest$ac_exeext conftest.$ac_ext
16030     LDFLAGS=$save_LDFLAGS
16031     libdir=$save_libdir
16032
16033 fi
16034
16035   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16036
16037   # This implies no fast_install, which is unacceptable.
16038   # Some rework will be needed to allow for fast_install
16039   # before this can be enabled.
16040   hardcode_into_libs=yes
16041
16042   # Append ld.so.conf contents to the search path
16043   if test -f /etc/ld.so.conf; then
16044     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' ' '`
16045     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16046   fi
16047
16048   # We used to test for /lib/ld.so.1 and disable shared libraries on
16049   # powerpc, because MkLinux only supported shared libraries with the
16050   # GNU dynamic linker.  Since this was broken with cross compilers,
16051   # most powerpc-linux boxes support dynamic linking these days and
16052   # people can always --disable-shared, the test was removed, and we
16053   # assume the GNU/Linux dynamic linker is in use.
16054   dynamic_linker='GNU/Linux ld.so'
16055   ;;
16056
16057 netbsdelf*-gnu)
16058   version_type=linux
16059   need_lib_prefix=no
16060   need_version=no
16061   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16062   soname_spec='${libname}${release}${shared_ext}$major'
16063   shlibpath_var=LD_LIBRARY_PATH
16064   shlibpath_overrides_runpath=no
16065   hardcode_into_libs=yes
16066   dynamic_linker='NetBSD ld.elf_so'
16067   ;;
16068
16069 netbsd*)
16070   version_type=sunos
16071   need_lib_prefix=no
16072   need_version=no
16073   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16074     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16075     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16076     dynamic_linker='NetBSD (a.out) ld.so'
16077   else
16078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16079     soname_spec='${libname}${release}${shared_ext}$major'
16080     dynamic_linker='NetBSD ld.elf_so'
16081   fi
16082   shlibpath_var=LD_LIBRARY_PATH
16083   shlibpath_overrides_runpath=yes
16084   hardcode_into_libs=yes
16085   ;;
16086
16087 newsos6)
16088   version_type=linux # correct to gnu/linux during the next big refactor
16089   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16090   shlibpath_var=LD_LIBRARY_PATH
16091   shlibpath_overrides_runpath=yes
16092   ;;
16093
16094 *nto* | *qnx*)
16095   version_type=qnx
16096   need_lib_prefix=no
16097   need_version=no
16098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16099   soname_spec='${libname}${release}${shared_ext}$major'
16100   shlibpath_var=LD_LIBRARY_PATH
16101   shlibpath_overrides_runpath=no
16102   hardcode_into_libs=yes
16103   dynamic_linker='ldqnx.so'
16104   ;;
16105
16106 openbsd*)
16107   version_type=sunos
16108   sys_lib_dlsearch_path_spec="/usr/lib"
16109   need_lib_prefix=no
16110   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16111   case $host_os in
16112     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16113     *)                          need_version=no  ;;
16114   esac
16115   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16116   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16117   shlibpath_var=LD_LIBRARY_PATH
16118   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16119     case $host_os in
16120       openbsd2.[89] | openbsd2.[89].*)
16121         shlibpath_overrides_runpath=no
16122         ;;
16123       *)
16124         shlibpath_overrides_runpath=yes
16125         ;;
16126       esac
16127   else
16128     shlibpath_overrides_runpath=yes
16129   fi
16130   ;;
16131
16132 os2*)
16133   libname_spec='$name'
16134   shrext_cmds=".dll"
16135   need_lib_prefix=no
16136   library_names_spec='$libname${shared_ext} $libname.a'
16137   dynamic_linker='OS/2 ld.exe'
16138   shlibpath_var=LIBPATH
16139   ;;
16140
16141 osf3* | osf4* | osf5*)
16142   version_type=osf
16143   need_lib_prefix=no
16144   need_version=no
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16147   shlibpath_var=LD_LIBRARY_PATH
16148   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16149   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16150   ;;
16151
16152 rdos*)
16153   dynamic_linker=no
16154   ;;
16155
16156 solaris*)
16157   version_type=linux # correct to gnu/linux during the next big refactor
16158   need_lib_prefix=no
16159   need_version=no
16160   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16161   soname_spec='${libname}${release}${shared_ext}$major'
16162   shlibpath_var=LD_LIBRARY_PATH
16163   shlibpath_overrides_runpath=yes
16164   hardcode_into_libs=yes
16165   # ldd complains unless libraries are executable
16166   postinstall_cmds='chmod +x $lib'
16167   ;;
16168
16169 sunos4*)
16170   version_type=sunos
16171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16172   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16173   shlibpath_var=LD_LIBRARY_PATH
16174   shlibpath_overrides_runpath=yes
16175   if test "$with_gnu_ld" = yes; then
16176     need_lib_prefix=no
16177   fi
16178   need_version=yes
16179   ;;
16180
16181 sysv4 | sysv4.3*)
16182   version_type=linux # correct to gnu/linux during the next big refactor
16183   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16184   soname_spec='${libname}${release}${shared_ext}$major'
16185   shlibpath_var=LD_LIBRARY_PATH
16186   case $host_vendor in
16187     sni)
16188       shlibpath_overrides_runpath=no
16189       need_lib_prefix=no
16190       runpath_var=LD_RUN_PATH
16191       ;;
16192     siemens)
16193       need_lib_prefix=no
16194       ;;
16195     motorola)
16196       need_lib_prefix=no
16197       need_version=no
16198       shlibpath_overrides_runpath=no
16199       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16200       ;;
16201   esac
16202   ;;
16203
16204 sysv4*MP*)
16205   if test -d /usr/nec ;then
16206     version_type=linux # correct to gnu/linux during the next big refactor
16207     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16208     soname_spec='$libname${shared_ext}.$major'
16209     shlibpath_var=LD_LIBRARY_PATH
16210   fi
16211   ;;
16212
16213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16214   version_type=freebsd-elf
16215   need_lib_prefix=no
16216   need_version=no
16217   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16218   soname_spec='${libname}${release}${shared_ext}$major'
16219   shlibpath_var=LD_LIBRARY_PATH
16220   shlibpath_overrides_runpath=yes
16221   hardcode_into_libs=yes
16222   if test "$with_gnu_ld" = yes; then
16223     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16224   else
16225     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16226     case $host_os in
16227       sco3.2v5*)
16228         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16229         ;;
16230     esac
16231   fi
16232   sys_lib_dlsearch_path_spec='/usr/lib'
16233   ;;
16234
16235 tpf*)
16236   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16237   version_type=linux # correct to gnu/linux during the next big refactor
16238   need_lib_prefix=no
16239   need_version=no
16240   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16241   shlibpath_var=LD_LIBRARY_PATH
16242   shlibpath_overrides_runpath=no
16243   hardcode_into_libs=yes
16244   ;;
16245
16246 uts4*)
16247   version_type=linux # correct to gnu/linux during the next big refactor
16248   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16249   soname_spec='${libname}${release}${shared_ext}$major'
16250   shlibpath_var=LD_LIBRARY_PATH
16251   ;;
16252
16253 *)
16254   dynamic_linker=no
16255   ;;
16256 esac
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16258 $as_echo "$dynamic_linker" >&6; }
16259 test "$dynamic_linker" = no && can_build_shared=no
16260
16261 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16262 if test "$GCC" = yes; then
16263   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16264 fi
16265
16266 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16267   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16268 fi
16269 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16270   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16271 fi
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16311 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16312 hardcode_action_CXX=
16313 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16314    test -n "$runpath_var_CXX" ||
16315    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16316
16317   # We can hardcode non-existent directories.
16318   if test "$hardcode_direct_CXX" != no &&
16319      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16320      # have to relink, otherwise we might link with an installed library
16321      # when we should be linking with a yet-to-be-installed one
16322      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16323      test "$hardcode_minus_L_CXX" != no; then
16324     # Linking always hardcodes the temporary library directory.
16325     hardcode_action_CXX=relink
16326   else
16327     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16328     hardcode_action_CXX=immediate
16329   fi
16330 else
16331   # We cannot hardcode anything, or else we can only hardcode existing
16332   # directories.
16333   hardcode_action_CXX=unsupported
16334 fi
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16336 $as_echo "$hardcode_action_CXX" >&6; }
16337
16338 if test "$hardcode_action_CXX" = relink ||
16339    test "$inherit_rpath_CXX" = yes; then
16340   # Fast installation is not supported
16341   enable_fast_install=no
16342 elif test "$shlibpath_overrides_runpath" = yes ||
16343      test "$enable_shared" = no; then
16344   # Fast installation is not necessary
16345   enable_fast_install=needless
16346 fi
16347
16348
16349
16350
16351
16352
16353
16354   fi # test -n "$compiler"
16355
16356   CC=$lt_save_CC
16357   CFLAGS=$lt_save_CFLAGS
16358   LDCXX=$LD
16359   LD=$lt_save_LD
16360   GCC=$lt_save_GCC
16361   with_gnu_ld=$lt_save_with_gnu_ld
16362   lt_cv_path_LDCXX=$lt_cv_path_LD
16363   lt_cv_path_LD=$lt_save_path_LD
16364   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16365   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16366 fi # test "$_lt_caught_CXX_error" != yes
16367
16368 ac_ext=c
16369 ac_cpp='$CPP $CPPFLAGS'
16370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16373
16374
16375
16376
16377
16378
16379
16380
16381
16382
16383
16384
16385
16386
16387
16388         ac_config_commands="$ac_config_commands libtool"
16389
16390
16391
16392
16393 # Only expand once:
16394
16395
16396
16397 LT_DLLOADERS=
16398
16399
16400 ac_ext=c
16401 ac_cpp='$CPP $CPPFLAGS'
16402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16405
16406
16407 LIBADD_DLOPEN=
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16409 $as_echo_n "checking for library containing dlopen... " >&6; }
16410 if ${ac_cv_search_dlopen+:} false; then :
16411   $as_echo_n "(cached) " >&6
16412 else
16413   ac_func_search_save_LIBS=$LIBS
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h.  */
16416
16417 /* Override any GCC internal prototype to avoid an error.
16418    Use char because int might match the return type of a GCC
16419    builtin and then its argument prototype would still apply.  */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char dlopen ();
16424 int
16425 main ()
16426 {
16427 return dlopen ();
16428   ;
16429   return 0;
16430 }
16431 _ACEOF
16432 for ac_lib in '' dl; do
16433   if test -z "$ac_lib"; then
16434     ac_res="none required"
16435   else
16436     ac_res=-l$ac_lib
16437     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16438   fi
16439   if ac_fn_c_try_link "$LINENO"; then :
16440   ac_cv_search_dlopen=$ac_res
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext \
16443     conftest$ac_exeext
16444   if ${ac_cv_search_dlopen+:} false; then :
16445   break
16446 fi
16447 done
16448 if ${ac_cv_search_dlopen+:} false; then :
16449
16450 else
16451   ac_cv_search_dlopen=no
16452 fi
16453 rm conftest.$ac_ext
16454 LIBS=$ac_func_search_save_LIBS
16455 fi
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16457 $as_echo "$ac_cv_search_dlopen" >&6; }
16458 ac_res=$ac_cv_search_dlopen
16459 if test "$ac_res" != no; then :
16460   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16461
16462 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16463
16464         if test "$ac_cv_search_dlopen" != "none required" ; then
16465           LIBADD_DLOPEN="-ldl"
16466         fi
16467         libltdl_cv_lib_dl_dlopen="yes"
16468         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16469 else
16470   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16471 /* end confdefs.h.  */
16472 #if HAVE_DLFCN_H
16473 #  include <dlfcn.h>
16474 #endif
16475
16476 int
16477 main ()
16478 {
16479 dlopen(0, 0);
16480   ;
16481   return 0;
16482 }
16483 _ACEOF
16484 if ac_fn_c_try_link "$LINENO"; then :
16485
16486 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16487
16488             libltdl_cv_func_dlopen="yes"
16489             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16490 else
16491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16492 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16493 if ${ac_cv_lib_svld_dlopen+:} false; then :
16494   $as_echo_n "(cached) " >&6
16495 else
16496   ac_check_lib_save_LIBS=$LIBS
16497 LIBS="-lsvld  $LIBS"
16498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16499 /* end confdefs.h.  */
16500
16501 /* Override any GCC internal prototype to avoid an error.
16502    Use char because int might match the return type of a GCC
16503    builtin and then its argument prototype would still apply.  */
16504 #ifdef __cplusplus
16505 extern "C"
16506 #endif
16507 char dlopen ();
16508 int
16509 main ()
16510 {
16511 return dlopen ();
16512   ;
16513   return 0;
16514 }
16515 _ACEOF
16516 if ac_fn_c_try_link "$LINENO"; then :
16517   ac_cv_lib_svld_dlopen=yes
16518 else
16519   ac_cv_lib_svld_dlopen=no
16520 fi
16521 rm -f core conftest.err conftest.$ac_objext \
16522     conftest$ac_exeext conftest.$ac_ext
16523 LIBS=$ac_check_lib_save_LIBS
16524 fi
16525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16526 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16527 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16528
16529 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16530
16531                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16532                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16533 fi
16534
16535 fi
16536 rm -f core conftest.err conftest.$ac_objext \
16537     conftest$ac_exeext conftest.$ac_ext
16538 fi
16539
16540 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16541 then
16542   lt_save_LIBS="$LIBS"
16543   LIBS="$LIBS $LIBADD_DLOPEN"
16544   for ac_func in dlerror
16545 do :
16546   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16547 if test "x$ac_cv_func_dlerror" = xyes; then :
16548   cat >>confdefs.h <<_ACEOF
16549 #define HAVE_DLERROR 1
16550 _ACEOF
16551
16552 fi
16553 done
16554
16555   LIBS="$lt_save_LIBS"
16556 fi
16557
16558
16559 LIBADD_SHL_LOAD=
16560 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16561 if test "x$ac_cv_func_shl_load" = xyes; then :
16562
16563 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16564
16565         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16566 else
16567   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16568 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16569 if ${ac_cv_lib_dld_shl_load+:} false; then :
16570   $as_echo_n "(cached) " >&6
16571 else
16572   ac_check_lib_save_LIBS=$LIBS
16573 LIBS="-ldld  $LIBS"
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h.  */
16576
16577 /* Override any GCC internal prototype to avoid an error.
16578    Use char because int might match the return type of a GCC
16579    builtin and then its argument prototype would still apply.  */
16580 #ifdef __cplusplus
16581 extern "C"
16582 #endif
16583 char shl_load ();
16584 int
16585 main ()
16586 {
16587 return shl_load ();
16588   ;
16589   return 0;
16590 }
16591 _ACEOF
16592 if ac_fn_c_try_link "$LINENO"; then :
16593   ac_cv_lib_dld_shl_load=yes
16594 else
16595   ac_cv_lib_dld_shl_load=no
16596 fi
16597 rm -f core conftest.err conftest.$ac_objext \
16598     conftest$ac_exeext conftest.$ac_ext
16599 LIBS=$ac_check_lib_save_LIBS
16600 fi
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16602 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16603 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16604
16605 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16606
16607             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16608             LIBADD_SHL_LOAD="-ldld"
16609 fi
16610
16611 fi
16612
16613
16614
16615 case $host_os in
16616 darwin[1567].*)
16617 # We only want this for pre-Mac OS X 10.4.
16618   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16619 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16620
16621 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16622
16623         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16624 fi
16625
16626   ;;
16627 beos*)
16628   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16629   ;;
16630 cygwin* | mingw* | os2* | pw32*)
16631   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16632 "
16633 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16634   ac_have_decl=1
16635 else
16636   ac_have_decl=0
16637 fi
16638
16639 cat >>confdefs.h <<_ACEOF
16640 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16641 _ACEOF
16642
16643   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16644   ;;
16645 esac
16646
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16648 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16649 if ${ac_cv_lib_dld_dld_link+:} false; then :
16650   $as_echo_n "(cached) " >&6
16651 else
16652   ac_check_lib_save_LIBS=$LIBS
16653 LIBS="-ldld  $LIBS"
16654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16655 /* end confdefs.h.  */
16656
16657 /* Override any GCC internal prototype to avoid an error.
16658    Use char because int might match the return type of a GCC
16659    builtin and then its argument prototype would still apply.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char dld_link ();
16664 int
16665 main ()
16666 {
16667 return dld_link ();
16668   ;
16669   return 0;
16670 }
16671 _ACEOF
16672 if ac_fn_c_try_link "$LINENO"; then :
16673   ac_cv_lib_dld_dld_link=yes
16674 else
16675   ac_cv_lib_dld_dld_link=no
16676 fi
16677 rm -f core conftest.err conftest.$ac_objext \
16678     conftest$ac_exeext conftest.$ac_ext
16679 LIBS=$ac_check_lib_save_LIBS
16680 fi
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16682 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16683 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16684
16685 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16686
16687                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16688 fi
16689
16690
16691
16692
16693 LT_DLPREOPEN=
16694 if test -n "$LT_DLLOADERS"
16695 then
16696   for lt_loader in $LT_DLLOADERS; do
16697     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16698   done
16699
16700 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16701
16702 fi
16703
16704
16705 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16706
16707
16708 ac_ext=c
16709 ac_cpp='$CPP $CPPFLAGS'
16710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16713
16714
16715
16716
16717 if test x$use_libtool != xno; then
16718    DEFAULT_OBJECT_TYPE=".lo"
16719    DEFAULT_ARCHIVE_TYPE=".la"
16720    DEFAULT_SHARED_OBJECT_TYPE=".la"
16721    LIBTOOL="\$(LIBTOOL)"
16722    LIBTOOL_INSTALL_TARGET="libtool-install"
16723    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16724    LIBTOOL_CLEAN_TARGET="libtool-clean"
16725    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16726    FD_PLUGIN_DIR="src/plugins/fd"
16727    have_plugins=yes
16728 else
16729    DEFAULT_OBJECT_TYPE=".o"
16730    DEFAULT_ARCHIVE_TYPE=".a"
16731    DEFAULT_SHARED_OBJECT_TYPE=".so"
16732    LIBTOOL="# \$(LIBTOOL)"
16733    LIBTOOL_INSTALL_TARGET=""
16734    LIBTOOL_UNINSTALL_TARGET=""
16735    LIBTOOL_CLEAN_TARGET=""
16736    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16737    FD_PLUGIN_DIR=""
16738    have_plugins=no
16739 fi
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751 # Check whether --enable-includes was given.
16752 if test "${enable_includes+set}" = set; then :
16753   enableval=$enable_includes;
16754        if test x$enableval = xyes; then
16755           install_includes=yes
16756        fi
16757
16758
16759 fi
16760
16761
16762
16763 if test x$use_libtool != xno -a x$install_includes = xyes; then
16764    INCLUDE_INSTALL_TARGET="install-includes"
16765    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16766 else
16767    INCLUDE_INSTALL_TARGET=""
16768    INCLUDE_UNINSTALL_TARGET=""
16769 fi
16770
16771
16772
16773
16774
16775 case $host_os in
16776   *cygwin* ) CYGWIN=yes;;
16777          * ) CYGWIN=no;;
16778 esac
16779
16780 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16781 then
16782
16783
16784 if $TRUEPRG; then
16785   HAVE_SUN_OS_TRUE=
16786   HAVE_SUN_OS_FALSE='#'
16787 else
16788   HAVE_SUN_OS_TRUE='#'
16789   HAVE_SUN_OS_FALSE=
16790 fi
16791         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16792
16793 else
16794
16795
16796 if $FALSEPRG; then
16797   HAVE_SUN_OS_TRUE=
16798   HAVE_SUN_OS_FALSE='#'
16799 else
16800   HAVE_SUN_OS_TRUE='#'
16801   HAVE_SUN_OS_FALSE=
16802 fi
16803 fi
16804
16805 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16806 then
16807
16808
16809 if $TRUEPRG; then
16810   HAVE_HURD_OS_TRUE=
16811   HAVE_HURD_OS_FALSE='#'
16812 else
16813   HAVE_HURD_OS_TRUE='#'
16814   HAVE_HURD_OS_FALSE=
16815 fi
16816         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16817
16818 else
16819
16820
16821 if $FALSEPRG; then
16822   HAVE_HURD_OS_TRUE=
16823   HAVE_HURD_OS_FALSE='#'
16824 else
16825   HAVE_HURD_OS_TRUE='#'
16826   HAVE_HURD_OS_FALSE=
16827 fi
16828 fi
16829
16830 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16831 then
16832
16833
16834 if $TRUEPRG; then
16835   HAVE_OSF1_OS_TRUE=
16836   HAVE_OSF1_OS_FALSE='#'
16837 else
16838   HAVE_OSF1_OS_TRUE='#'
16839   HAVE_OSF1_OS_FALSE=
16840 fi
16841         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16842
16843 else
16844
16845
16846 if $FALSEPRG; then
16847   HAVE_OSF1_OS_TRUE=
16848   HAVE_OSF1_OS_FALSE='#'
16849 else
16850   HAVE_OSF1_OS_TRUE='#'
16851   HAVE_OSF1_OS_FALSE=
16852 fi
16853 fi
16854
16855 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16856 then
16857
16858
16859 if $TRUEPRG; then
16860   HAVE_AIX_OS_TRUE=
16861   HAVE_AIX_OS_FALSE='#'
16862 else
16863   HAVE_AIX_OS_TRUE='#'
16864   HAVE_AIX_OS_FALSE=
16865 fi
16866         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16867
16868 else
16869
16870
16871 if $FALSEPRG; then
16872   HAVE_AIX_OS_TRUE=
16873   HAVE_AIX_OS_FALSE='#'
16874 else
16875   HAVE_AIX_OS_TRUE='#'
16876   HAVE_AIX_OS_FALSE=
16877 fi
16878 fi
16879
16880 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16881 then
16882
16883
16884 if $TRUEPRG; then
16885   HAVE_HPUX_OS_TRUE=
16886   HAVE_HPUX_OS_FALSE='#'
16887 else
16888   HAVE_HPUX_OS_TRUE='#'
16889   HAVE_HPUX_OS_FALSE=
16890 fi
16891         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16892
16893 else
16894
16895
16896 if $FALSEPRG; then
16897   HAVE_HPUX_OS_TRUE=
16898   HAVE_HPUX_OS_FALSE='#'
16899 else
16900   HAVE_HPUX_OS_TRUE='#'
16901   HAVE_HPUX_OS_FALSE=
16902 fi
16903 fi
16904
16905 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16906 then
16907
16908
16909 if $TRUEPRG; then
16910   HAVE_LINUX_OS_TRUE=
16911   HAVE_LINUX_OS_FALSE='#'
16912 else
16913   HAVE_LINUX_OS_TRUE='#'
16914   HAVE_LINUX_OS_FALSE=
16915 fi
16916         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16917
16918 else
16919
16920
16921 if $FALSEPRG; then
16922   HAVE_LINUX_OS_TRUE=
16923   HAVE_LINUX_OS_FALSE='#'
16924 else
16925   HAVE_LINUX_OS_TRUE='#'
16926   HAVE_LINUX_OS_FALSE=
16927 fi
16928 fi
16929
16930 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16931 then
16932
16933
16934 if $TRUEPRG; then
16935   HAVE_FREEBSD_OS_TRUE=
16936   HAVE_FREEBSD_OS_FALSE='#'
16937 else
16938   HAVE_FREEBSD_OS_TRUE='#'
16939   HAVE_FREEBSD_OS_FALSE=
16940 fi
16941         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16942
16943 else
16944
16945
16946 if $FALSEPRG; then
16947   HAVE_FREEBSD_OS_TRUE=
16948   HAVE_FREEBSD_OS_FALSE='#'
16949 else
16950   HAVE_FREEBSD_OS_TRUE='#'
16951   HAVE_FREEBSD_OS_FALSE=
16952 fi
16953 fi
16954
16955 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16956 then
16957
16958
16959 if $TRUEPRG; then
16960   HAVE_NETBSD_OS_TRUE=
16961   HAVE_NETBSD_OS_FALSE='#'
16962 else
16963   HAVE_NETBSD_OS_TRUE='#'
16964   HAVE_NETBSD_OS_FALSE=
16965 fi
16966         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16967
16968 else
16969
16970
16971 if $FALSEPRG; then
16972   HAVE_NETBSD_OS_TRUE=
16973   HAVE_NETBSD_OS_FALSE='#'
16974 else
16975   HAVE_NETBSD_OS_TRUE='#'
16976   HAVE_NETBSD_OS_FALSE=
16977 fi
16978 fi
16979
16980 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16981 then
16982
16983
16984 if $TRUEPRG; then
16985   HAVE_OPENBSD_OS_TRUE=
16986   HAVE_OPENBSD_OS_FALSE='#'
16987 else
16988   HAVE_OPENBSD_OS_TRUE='#'
16989   HAVE_OPENBSD_OS_FALSE=
16990 fi
16991         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16992
16993 else
16994
16995
16996 if $FALSEPRG; then
16997   HAVE_OPENBSD_OS_TRUE=
16998   HAVE_OPENBSD_OS_FALSE='#'
16999 else
17000   HAVE_OPENBSD_OS_TRUE='#'
17001   HAVE_OPENBSD_OS_FALSE=
17002 fi
17003 fi
17004
17005 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17006 then
17007
17008
17009 if $TRUEPRG; then
17010   HAVE_BSDI_OS_TRUE=
17011   HAVE_BSDI_OS_FALSE='#'
17012 else
17013   HAVE_BSDI_OS_TRUE='#'
17014   HAVE_BSDI_OS_FALSE=
17015 fi
17016         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
17017
17018 else
17019
17020
17021 if $FALSEPRG; then
17022   HAVE_BSDI_OS_TRUE=
17023   HAVE_BSDI_OS_FALSE='#'
17024 else
17025   HAVE_BSDI_OS_TRUE='#'
17026   HAVE_BSDI_OS_FALSE=
17027 fi
17028 fi
17029
17030 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17031 then
17032
17033
17034 if $TRUEPRG; then
17035   HAVE_SGI_OS_TRUE=
17036   HAVE_SGI_OS_FALSE='#'
17037 else
17038   HAVE_SGI_OS_TRUE='#'
17039   HAVE_SGI_OS_FALSE=
17040 fi
17041         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17042
17043 else
17044
17045
17046 if $FALSEPRG; then
17047   HAVE_SGI_OS_TRUE=
17048   HAVE_SGI_OS_FALSE='#'
17049 else
17050   HAVE_SGI_OS_TRUE='#'
17051   HAVE_SGI_OS_FALSE=
17052 fi
17053 fi
17054
17055 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17056 then
17057
17058
17059 if $TRUEPRG; then
17060   HAVE_IRIX_OS_TRUE=
17061   HAVE_IRIX_OS_FALSE='#'
17062 else
17063   HAVE_IRIX_OS_TRUE='#'
17064   HAVE_IRIX_OS_FALSE=
17065 fi
17066         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17067
17068 else
17069
17070
17071 if $FALSEPRG; then
17072   HAVE_IRIX_OS_TRUE=
17073   HAVE_IRIX_OS_FALSE='#'
17074 else
17075   HAVE_IRIX_OS_TRUE='#'
17076   HAVE_IRIX_OS_FALSE=
17077 fi
17078 fi
17079
17080 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17081 then
17082
17083
17084 if $TRUEPRG; then
17085   HAVE_DARWIN_OS_TRUE=
17086   HAVE_DARWIN_OS_FALSE='#'
17087 else
17088   HAVE_DARWIN_OS_TRUE='#'
17089   HAVE_DARWIN_OS_FALSE=
17090 fi
17091     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17092
17093 else
17094
17095
17096 if $FALSEPRG; then
17097   HAVE_DARWIN_OS_TRUE=
17098   HAVE_DARWIN_OS_FALSE='#'
17099 else
17100   HAVE_DARWIN_OS_TRUE='#'
17101   HAVE_DARWIN_OS_FALSE=
17102 fi
17103 fi
17104
17105 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU/kFreeBSD
17106 then
17107
17108
17109 if $TRUEPRG; then
17110   HAVE_KFREEBSD_OS_TRUE=
17111   HAVE_KFREEBSD_OS_FALSE='#'
17112 else
17113   HAVE_KFREEBSD_OS_TRUE='#'
17114   HAVE_KFREEBSD_OS_FALSE=
17115 fi
17116     $as_echo "#define HAVE_KFREEBSD_OS 1" >>confdefs.h
17117
17118 else
17119
17120
17121 if $FALSEPRG; then
17122   HAVE_KFREEBSD_OS_TRUE=
17123   HAVE_KFREEBSD_OS_FALSE='#'
17124 else
17125   HAVE_KFREEBSD_OS_TRUE='#'
17126   HAVE_KFREEBSD_OS_FALSE=
17127 fi
17128 fi
17129
17130
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17132 $as_echo_n "checking for Operating System Distribution... " >&6; }
17133 if test "x$DISTNAME" != "x"
17134 then
17135         echo "distname set to $DISTNAME"
17136 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17137 then
17138         DISTNAME=alpha
17139 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17140 then
17141         DISTNAME=aix
17142 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17143 then
17144         DISTNAME=hpux
17145 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17146 then
17147         DISTNAME=solaris
17148 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17149 then
17150         DISTNAME=hurd
17151 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17152 then
17153         DISTNAME=freebsd
17154 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17155 then
17156         DISTNAME=netbsd
17157 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17158 then
17159         DISTNAME=openbsd
17160 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17161 then
17162         DISTNAME=irix
17163 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17164 then
17165         DISTNAME=bsdi
17166 elif test -f /etc/SuSE-release
17167 then
17168         DISTNAME=suse
17169 elif test -d /etc/SuSEconfig
17170 then
17171         DISTNAME=suse5
17172 elif test -f /etc/mandrake-release
17173 then
17174         DISTNAME=mandrake
17175 elif test -f /etc/whitebox-release
17176 then
17177        DISTNAME=redhat
17178 elif test -f /etc/redhat-release
17179 then
17180         DISTNAME=redhat
17181 elif test -f /etc/gentoo-release
17182 then
17183         DISTNAME=gentoo
17184 elif test -f /etc/debian_version
17185 then
17186         DISTNAME=debian
17187 elif test -f /etc/slackware-version
17188 then
17189         DISTNAME=slackware
17190 elif test x$host_vendor = xapple
17191 then
17192     DISTNAME=osx
17193 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17194 then
17195     DISTNAME=darwin
17196 elif test -f /etc/engarde-version
17197 then
17198         DISTNAME=engarde
17199 elif test -f /etc/arch-release
17200 then
17201         DISTNAME=archlinux
17202 elif test "$CYGWIN" = yes
17203 then
17204         DISTNAME=cygwin
17205         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17206
17207 else
17208         DISTNAME=unknown
17209 fi
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17211 $as_echo "done" >&6; }
17212
17213
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17215 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17216 set x ${MAKE-make}
17217 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17218 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17219   $as_echo_n "(cached) " >&6
17220 else
17221   cat >conftest.make <<\_ACEOF
17222 SHELL = /bin/sh
17223 all:
17224         @echo '@@@%%%=$(MAKE)=@@@%%%'
17225 _ACEOF
17226 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17228   *@@@%%%=?*=@@@%%%*)
17229     eval ac_cv_prog_make_${ac_make}_set=yes;;
17230   *)
17231     eval ac_cv_prog_make_${ac_make}_set=no;;
17232 esac
17233 rm -f conftest.make
17234 fi
17235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17237 $as_echo "yes" >&6; }
17238   SET_MAKE=
17239 else
17240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17241 $as_echo "no" >&6; }
17242   SET_MAKE="MAKE=${MAKE-make}"
17243 fi
17244
17245
17246
17247         MKINSTALLDIRS=
17248   if test -n "$ac_aux_dir"; then
17249     case "$ac_aux_dir" in
17250       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17251       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17252     esac
17253   fi
17254   if test -z "$MKINSTALLDIRS"; then
17255     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17256   fi
17257
17258
17259
17260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17261 $as_echo_n "checking whether NLS is requested... " >&6; }
17262     # Check whether --enable-nls was given.
17263 if test "${enable_nls+set}" = set; then :
17264   enableval=$enable_nls; USE_NLS=$enableval
17265 else
17266   USE_NLS=yes
17267 fi
17268
17269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17270 $as_echo "$USE_NLS" >&6; }
17271
17272
17273
17274
17275
17276
17277 # Prepare PATH_SEPARATOR.
17278 # The user is always right.
17279 if test "${PATH_SEPARATOR+set}" != set; then
17280   echo "#! /bin/sh" >conf$$.sh
17281   echo  "exit 0"   >>conf$$.sh
17282   chmod +x conf$$.sh
17283   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17284     PATH_SEPARATOR=';'
17285   else
17286     PATH_SEPARATOR=:
17287   fi
17288   rm -f conf$$.sh
17289 fi
17290
17291 # Find out how to test for executable files. Don't use a zero-byte file,
17292 # as systems may use methods other than mode bits to determine executability.
17293 cat >conf$$.file <<_ASEOF
17294 #! /bin/sh
17295 exit 0
17296 _ASEOF
17297 chmod +x conf$$.file
17298 if test -x conf$$.file >/dev/null 2>&1; then
17299   ac_executable_p="test -x"
17300 else
17301   ac_executable_p="test -f"
17302 fi
17303 rm -f conf$$.file
17304
17305 # Extract the first word of "msgfmt", so it can be a program name with args.
17306 set dummy msgfmt; ac_word=$2
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17308 $as_echo_n "checking for $ac_word... " >&6; }
17309 if ${ac_cv_path_MSGFMT+:} false; then :
17310   $as_echo_n "(cached) " >&6
17311 else
17312   case "$MSGFMT" in
17313   [\\/]* | ?:[\\/]*)
17314     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17315     ;;
17316   *)
17317     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17318     for ac_dir in $PATH; do
17319       IFS="$ac_save_IFS"
17320       test -z "$ac_dir" && ac_dir=.
17321       for ac_exec_ext in '' $ac_executable_extensions; do
17322         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17323           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17324           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17325      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17326             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17327             break 2
17328           fi
17329         fi
17330       done
17331     done
17332     IFS="$ac_save_IFS"
17333   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17334     ;;
17335 esac
17336 fi
17337 MSGFMT="$ac_cv_path_MSGFMT"
17338 if test "$MSGFMT" != ":"; then
17339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17340 $as_echo "$MSGFMT" >&6; }
17341 else
17342   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17343 $as_echo "no" >&6; }
17344 fi
17345
17346   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17347 set dummy gmsgfmt; ac_word=$2
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17349 $as_echo_n "checking for $ac_word... " >&6; }
17350 if ${ac_cv_path_GMSGFMT+:} false; then :
17351   $as_echo_n "(cached) " >&6
17352 else
17353   case $GMSGFMT in
17354   [\\/]* | ?:[\\/]*)
17355   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17356   ;;
17357   *)
17358   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17359 for as_dir in $PATH
17360 do
17361   IFS=$as_save_IFS
17362   test -z "$as_dir" && as_dir=.
17363     for ac_exec_ext in '' $ac_executable_extensions; do
17364   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17365     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17366     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17367     break 2
17368   fi
17369 done
17370   done
17371 IFS=$as_save_IFS
17372
17373   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17374   ;;
17375 esac
17376 fi
17377 GMSGFMT=$ac_cv_path_GMSGFMT
17378 if test -n "$GMSGFMT"; then
17379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17380 $as_echo "$GMSGFMT" >&6; }
17381 else
17382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17383 $as_echo "no" >&6; }
17384 fi
17385
17386
17387
17388
17389 # Prepare PATH_SEPARATOR.
17390 # The user is always right.
17391 if test "${PATH_SEPARATOR+set}" != set; then
17392   echo "#! /bin/sh" >conf$$.sh
17393   echo  "exit 0"   >>conf$$.sh
17394   chmod +x conf$$.sh
17395   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17396     PATH_SEPARATOR=';'
17397   else
17398     PATH_SEPARATOR=:
17399   fi
17400   rm -f conf$$.sh
17401 fi
17402
17403 # Find out how to test for executable files. Don't use a zero-byte file,
17404 # as systems may use methods other than mode bits to determine executability.
17405 cat >conf$$.file <<_ASEOF
17406 #! /bin/sh
17407 exit 0
17408 _ASEOF
17409 chmod +x conf$$.file
17410 if test -x conf$$.file >/dev/null 2>&1; then
17411   ac_executable_p="test -x"
17412 else
17413   ac_executable_p="test -f"
17414 fi
17415 rm -f conf$$.file
17416
17417 # Extract the first word of "xgettext", so it can be a program name with args.
17418 set dummy xgettext; ac_word=$2
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17420 $as_echo_n "checking for $ac_word... " >&6; }
17421 if ${ac_cv_path_XGETTEXT+:} false; then :
17422   $as_echo_n "(cached) " >&6
17423 else
17424   case "$XGETTEXT" in
17425   [\\/]* | ?:[\\/]*)
17426     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17427     ;;
17428   *)
17429     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17430     for ac_dir in $PATH; do
17431       IFS="$ac_save_IFS"
17432       test -z "$ac_dir" && ac_dir=.
17433       for ac_exec_ext in '' $ac_executable_extensions; do
17434         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17435           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17436           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17437      (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
17438             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17439             break 2
17440           fi
17441         fi
17442       done
17443     done
17444     IFS="$ac_save_IFS"
17445   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17446     ;;
17447 esac
17448 fi
17449 XGETTEXT="$ac_cv_path_XGETTEXT"
17450 if test "$XGETTEXT" != ":"; then
17451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17452 $as_echo "$XGETTEXT" >&6; }
17453 else
17454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17455 $as_echo "no" >&6; }
17456 fi
17457
17458     rm -f messages.po
17459
17460
17461 # Prepare PATH_SEPARATOR.
17462 # The user is always right.
17463 if test "${PATH_SEPARATOR+set}" != set; then
17464   echo "#! /bin/sh" >conf$$.sh
17465   echo  "exit 0"   >>conf$$.sh
17466   chmod +x conf$$.sh
17467   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17468     PATH_SEPARATOR=';'
17469   else
17470     PATH_SEPARATOR=:
17471   fi
17472   rm -f conf$$.sh
17473 fi
17474
17475 # Find out how to test for executable files. Don't use a zero-byte file,
17476 # as systems may use methods other than mode bits to determine executability.
17477 cat >conf$$.file <<_ASEOF
17478 #! /bin/sh
17479 exit 0
17480 _ASEOF
17481 chmod +x conf$$.file
17482 if test -x conf$$.file >/dev/null 2>&1; then
17483   ac_executable_p="test -x"
17484 else
17485   ac_executable_p="test -f"
17486 fi
17487 rm -f conf$$.file
17488
17489 # Extract the first word of "msgmerge", so it can be a program name with args.
17490 set dummy msgmerge; ac_word=$2
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17492 $as_echo_n "checking for $ac_word... " >&6; }
17493 if ${ac_cv_path_MSGMERGE+:} false; then :
17494   $as_echo_n "(cached) " >&6
17495 else
17496   case "$MSGMERGE" in
17497   [\\/]* | ?:[\\/]*)
17498     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17499     ;;
17500   *)
17501     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17502     for ac_dir in $PATH; do
17503       IFS="$ac_save_IFS"
17504       test -z "$ac_dir" && ac_dir=.
17505       for ac_exec_ext in '' $ac_executable_extensions; do
17506         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17507           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17508           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17509             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17510             break 2
17511           fi
17512         fi
17513       done
17514     done
17515     IFS="$ac_save_IFS"
17516   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17517     ;;
17518 esac
17519 fi
17520 MSGMERGE="$ac_cv_path_MSGMERGE"
17521 if test "$MSGMERGE" != ":"; then
17522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17523 $as_echo "$MSGMERGE" >&6; }
17524 else
17525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17526 $as_echo "no" >&6; }
17527 fi
17528
17529
17530       if test "$GMSGFMT" != ":"; then
17531             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17532        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17533       : ;
17534     else
17535       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17536       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17537 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17538       GMSGFMT=":"
17539     fi
17540   fi
17541
17542       if test "$XGETTEXT" != ":"; then
17543             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17544        (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
17545       : ;
17546     else
17547       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17548 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17549       XGETTEXT=":"
17550     fi
17551         rm -f messages.po
17552   fi
17553
17554   ac_config_commands="$ac_config_commands default-1"
17555
17556
17557
17558       if test "X$prefix" = "XNONE"; then
17559     acl_final_prefix="$ac_default_prefix"
17560   else
17561     acl_final_prefix="$prefix"
17562   fi
17563   if test "X$exec_prefix" = "XNONE"; then
17564     acl_final_exec_prefix='${prefix}'
17565   else
17566     acl_final_exec_prefix="$exec_prefix"
17567   fi
17568   acl_save_prefix="$prefix"
17569   prefix="$acl_final_prefix"
17570   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17571   prefix="$acl_save_prefix"
17572
17573
17574 # Check whether --with-gnu-ld was given.
17575 if test "${with_gnu_ld+set}" = set; then :
17576   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17577 else
17578   with_gnu_ld=no
17579 fi
17580
17581 # Prepare PATH_SEPARATOR.
17582 # The user is always right.
17583 if test "${PATH_SEPARATOR+set}" != set; then
17584   echo "#! /bin/sh" >conf$$.sh
17585   echo  "exit 0"   >>conf$$.sh
17586   chmod +x conf$$.sh
17587   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17588     PATH_SEPARATOR=';'
17589   else
17590     PATH_SEPARATOR=:
17591   fi
17592   rm -f conf$$.sh
17593 fi
17594 ac_prog=ld
17595 if test "$GCC" = yes; then
17596   # Check if gcc -print-prog-name=ld gives a path.
17597   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17598 $as_echo_n "checking for ld used by GCC... " >&6; }
17599   case $host in
17600   *-*-mingw*)
17601     # gcc leaves a trailing carriage return which upsets mingw
17602     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17603   *)
17604     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17605   esac
17606   case $ac_prog in
17607     # Accept absolute paths.
17608     [\\/]* | [A-Za-z]:[\\/]*)
17609       re_direlt='/[^/][^/]*/\.\./'
17610       # Canonicalize the path of ld
17611       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17612       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17613         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17614       done
17615       test -z "$LD" && LD="$ac_prog"
17616       ;;
17617   "")
17618     # If it fails, then pretend we aren't using GCC.
17619     ac_prog=ld
17620     ;;
17621   *)
17622     # If it is relative, then search for the first ld in PATH.
17623     with_gnu_ld=unknown
17624     ;;
17625   esac
17626 elif test "$with_gnu_ld" = yes; then
17627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17628 $as_echo_n "checking for GNU ld... " >&6; }
17629 else
17630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17631 $as_echo_n "checking for non-GNU ld... " >&6; }
17632 fi
17633 if ${acl_cv_path_LD+:} false; then :
17634   $as_echo_n "(cached) " >&6
17635 else
17636   if test -z "$LD"; then
17637   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17638   for ac_dir in $PATH; do
17639     test -z "$ac_dir" && ac_dir=.
17640     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17641       acl_cv_path_LD="$ac_dir/$ac_prog"
17642       # Check to see if the program is GNU ld.  I'd rather use --version,
17643       # but apparently some GNU ld's only accept -v.
17644       # Break only if it was the GNU/non-GNU ld that we prefer.
17645       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17646       *GNU* | *'with BFD'*)
17647         test "$with_gnu_ld" != no && break ;;
17648       *)
17649         test "$with_gnu_ld" != yes && break ;;
17650       esac
17651     fi
17652   done
17653   IFS="$ac_save_ifs"
17654 else
17655   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17656 fi
17657 fi
17658
17659 LD="$acl_cv_path_LD"
17660 if test -n "$LD"; then
17661   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17662 $as_echo "$LD" >&6; }
17663 else
17664   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17665 $as_echo "no" >&6; }
17666 fi
17667 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17669 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17670 if ${acl_cv_prog_gnu_ld+:} false; then :
17671   $as_echo_n "(cached) " >&6
17672 else
17673   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17674 case `$LD -v 2>&1 </dev/null` in
17675 *GNU* | *'with BFD'*)
17676   acl_cv_prog_gnu_ld=yes ;;
17677 *)
17678   acl_cv_prog_gnu_ld=no ;;
17679 esac
17680 fi
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17682 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17683 with_gnu_ld=$acl_cv_prog_gnu_ld
17684
17685
17686
17687
17688                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17689 $as_echo_n "checking for shared library run path origin... " >&6; }
17690 if ${acl_cv_rpath+:} false; then :
17691   $as_echo_n "(cached) " >&6
17692 else
17693
17694     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17695     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17696     . ./conftest.sh
17697     rm -f ./conftest.sh
17698     acl_cv_rpath=done
17699
17700 fi
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17702 $as_echo "$acl_cv_rpath" >&6; }
17703   wl="$acl_cv_wl"
17704   libext="$acl_cv_libext"
17705   shlibext="$acl_cv_shlibext"
17706   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17707   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17708   hardcode_direct="$acl_cv_hardcode_direct"
17709   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17710     # Check whether --enable-rpath was given.
17711 if test "${enable_rpath+set}" = set; then :
17712   enableval=$enable_rpath; :
17713 else
17714   enable_rpath=yes
17715 fi
17716
17717
17718
17719
17720
17721
17722
17723
17724     use_additional=yes
17725
17726   acl_save_prefix="$prefix"
17727   prefix="$acl_final_prefix"
17728   acl_save_exec_prefix="$exec_prefix"
17729   exec_prefix="$acl_final_exec_prefix"
17730
17731     eval additional_includedir=\"$includedir\"
17732     eval additional_libdir=\"$libdir\"
17733
17734   exec_prefix="$acl_save_exec_prefix"
17735   prefix="$acl_save_prefix"
17736
17737
17738 # Check whether --with-libiconv-prefix was given.
17739 if test "${with_libiconv_prefix+set}" = set; then :
17740   withval=$with_libiconv_prefix;
17741     if test "X$withval" = "Xno"; then
17742       use_additional=no
17743     else
17744       if test "X$withval" = "X"; then
17745
17746   acl_save_prefix="$prefix"
17747   prefix="$acl_final_prefix"
17748   acl_save_exec_prefix="$exec_prefix"
17749   exec_prefix="$acl_final_exec_prefix"
17750
17751           eval additional_includedir=\"$includedir\"
17752           eval additional_libdir=\"$libdir\"
17753
17754   exec_prefix="$acl_save_exec_prefix"
17755   prefix="$acl_save_prefix"
17756
17757       else
17758         additional_includedir="$withval/include"
17759         additional_libdir="$withval/lib"
17760       fi
17761     fi
17762
17763 fi
17764
17765       LIBICONV=
17766   LTLIBICONV=
17767   INCICONV=
17768   rpathdirs=
17769   ltrpathdirs=
17770   names_already_handled=
17771   names_next_round='iconv '
17772   while test -n "$names_next_round"; do
17773     names_this_round="$names_next_round"
17774     names_next_round=
17775     for name in $names_this_round; do
17776       already_handled=
17777       for n in $names_already_handled; do
17778         if test "$n" = "$name"; then
17779           already_handled=yes
17780           break
17781         fi
17782       done
17783       if test -z "$already_handled"; then
17784         names_already_handled="$names_already_handled $name"
17785                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17786         eval value=\"\$HAVE_LIB$uppername\"
17787         if test -n "$value"; then
17788           if test "$value" = yes; then
17789             eval value=\"\$LIB$uppername\"
17790             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17791             eval value=\"\$LTLIB$uppername\"
17792             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17793           else
17794                                     :
17795           fi
17796         else
17797                               found_dir=
17798           found_la=
17799           found_so=
17800           found_a=
17801           if test $use_additional = yes; then
17802             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17803               found_dir="$additional_libdir"
17804               found_so="$additional_libdir/lib$name.$shlibext"
17805               if test -f "$additional_libdir/lib$name.la"; then
17806                 found_la="$additional_libdir/lib$name.la"
17807               fi
17808             else
17809               if test -f "$additional_libdir/lib$name.$libext"; then
17810                 found_dir="$additional_libdir"
17811                 found_a="$additional_libdir/lib$name.$libext"
17812                 if test -f "$additional_libdir/lib$name.la"; then
17813                   found_la="$additional_libdir/lib$name.la"
17814                 fi
17815               fi
17816             fi
17817           fi
17818           if test "X$found_dir" = "X"; then
17819             for x in $LDFLAGS $LTLIBICONV; do
17820
17821   acl_save_prefix="$prefix"
17822   prefix="$acl_final_prefix"
17823   acl_save_exec_prefix="$exec_prefix"
17824   exec_prefix="$acl_final_exec_prefix"
17825   eval x=\"$x\"
17826   exec_prefix="$acl_save_exec_prefix"
17827   prefix="$acl_save_prefix"
17828
17829               case "$x" in
17830                 -L*)
17831                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17832                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17833                     found_dir="$dir"
17834                     found_so="$dir/lib$name.$shlibext"
17835                     if test -f "$dir/lib$name.la"; then
17836                       found_la="$dir/lib$name.la"
17837                     fi
17838                   else
17839                     if test -f "$dir/lib$name.$libext"; then
17840                       found_dir="$dir"
17841                       found_a="$dir/lib$name.$libext"
17842                       if test -f "$dir/lib$name.la"; then
17843                         found_la="$dir/lib$name.la"
17844                       fi
17845                     fi
17846                   fi
17847                   ;;
17848               esac
17849               if test "X$found_dir" != "X"; then
17850                 break
17851               fi
17852             done
17853           fi
17854           if test "X$found_dir" != "X"; then
17855                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17856             if test "X$found_so" != "X"; then
17857                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17858                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17859               else
17860                                                                                 haveit=
17861                 for x in $ltrpathdirs; do
17862                   if test "X$x" = "X$found_dir"; then
17863                     haveit=yes
17864                     break
17865                   fi
17866                 done
17867                 if test -z "$haveit"; then
17868                   ltrpathdirs="$ltrpathdirs $found_dir"
17869                 fi
17870                                 if test "$hardcode_direct" = yes; then
17871                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17872                 else
17873                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17874                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17875                                                             haveit=
17876                     for x in $rpathdirs; do
17877                       if test "X$x" = "X$found_dir"; then
17878                         haveit=yes
17879                         break
17880                       fi
17881                     done
17882                     if test -z "$haveit"; then
17883                       rpathdirs="$rpathdirs $found_dir"
17884                     fi
17885                   else
17886                                                                                 haveit=
17887                     for x in $LDFLAGS $LIBICONV; do
17888
17889   acl_save_prefix="$prefix"
17890   prefix="$acl_final_prefix"
17891   acl_save_exec_prefix="$exec_prefix"
17892   exec_prefix="$acl_final_exec_prefix"
17893   eval x=\"$x\"
17894   exec_prefix="$acl_save_exec_prefix"
17895   prefix="$acl_save_prefix"
17896
17897                       if test "X$x" = "X-L$found_dir"; then
17898                         haveit=yes
17899                         break
17900                       fi
17901                     done
17902                     if test -z "$haveit"; then
17903                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17904                     fi
17905                     if test "$hardcode_minus_L" != no; then
17906                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17907                     else
17908                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17909                     fi
17910                   fi
17911                 fi
17912               fi
17913             else
17914               if test "X$found_a" != "X"; then
17915                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17916               else
17917                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17918               fi
17919             fi
17920                         additional_includedir=
17921             case "$found_dir" in
17922               */lib | */lib/)
17923                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17924                 additional_includedir="$basedir/include"
17925                 ;;
17926             esac
17927             if test "X$additional_includedir" != "X"; then
17928                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17929                 haveit=
17930                 if test "X$additional_includedir" = "X/usr/local/include"; then
17931                   if test -n "$GCC"; then
17932                     case $host_os in
17933                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17934                     esac
17935                   fi
17936                 fi
17937                 if test -z "$haveit"; then
17938                   for x in $CPPFLAGS $INCICONV; do
17939
17940   acl_save_prefix="$prefix"
17941   prefix="$acl_final_prefix"
17942   acl_save_exec_prefix="$exec_prefix"
17943   exec_prefix="$acl_final_exec_prefix"
17944   eval x=\"$x\"
17945   exec_prefix="$acl_save_exec_prefix"
17946   prefix="$acl_save_prefix"
17947
17948                     if test "X$x" = "X-I$additional_includedir"; then
17949                       haveit=yes
17950                       break
17951                     fi
17952                   done
17953                   if test -z "$haveit"; then
17954                     if test -d "$additional_includedir"; then
17955                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17956                     fi
17957                   fi
17958                 fi
17959               fi
17960             fi
17961                         if test -n "$found_la"; then
17962                                                         save_libdir="$libdir"
17963               case "$found_la" in
17964                 */* | *\\*) . "$found_la" ;;
17965                 *) . "./$found_la" ;;
17966               esac
17967               libdir="$save_libdir"
17968                             for dep in $dependency_libs; do
17969                 case "$dep" in
17970                   -L*)
17971                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17972                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17973                       haveit=
17974                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17975                         if test -n "$GCC"; then
17976                           case $host_os in
17977                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17978                           esac
17979                         fi
17980                       fi
17981                       if test -z "$haveit"; then
17982                         haveit=
17983                         for x in $LDFLAGS $LIBICONV; do
17984
17985   acl_save_prefix="$prefix"
17986   prefix="$acl_final_prefix"
17987   acl_save_exec_prefix="$exec_prefix"
17988   exec_prefix="$acl_final_exec_prefix"
17989   eval x=\"$x\"
17990   exec_prefix="$acl_save_exec_prefix"
17991   prefix="$acl_save_prefix"
17992
17993                           if test "X$x" = "X-L$additional_libdir"; then
17994                             haveit=yes
17995                             break
17996                           fi
17997                         done
17998                         if test -z "$haveit"; then
17999                           if test -d "$additional_libdir"; then
18000                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18001                           fi
18002                         fi
18003                         haveit=
18004                         for x in $LDFLAGS $LTLIBICONV; do
18005
18006   acl_save_prefix="$prefix"
18007   prefix="$acl_final_prefix"
18008   acl_save_exec_prefix="$exec_prefix"
18009   exec_prefix="$acl_final_exec_prefix"
18010   eval x=\"$x\"
18011   exec_prefix="$acl_save_exec_prefix"
18012   prefix="$acl_save_prefix"
18013
18014                           if test "X$x" = "X-L$additional_libdir"; then
18015                             haveit=yes
18016                             break
18017                           fi
18018                         done
18019                         if test -z "$haveit"; then
18020                           if test -d "$additional_libdir"; then
18021                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18022                           fi
18023                         fi
18024                       fi
18025                     fi
18026                     ;;
18027                   -R*)
18028                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18029                     if test "$enable_rpath" != no; then
18030                                                                   haveit=
18031                       for x in $rpathdirs; do
18032                         if test "X$x" = "X$dir"; then
18033                           haveit=yes
18034                           break
18035                         fi
18036                       done
18037                       if test -z "$haveit"; then
18038                         rpathdirs="$rpathdirs $dir"
18039                       fi
18040                                                                   haveit=
18041                       for x in $ltrpathdirs; do
18042                         if test "X$x" = "X$dir"; then
18043                           haveit=yes
18044                           break
18045                         fi
18046                       done
18047                       if test -z "$haveit"; then
18048                         ltrpathdirs="$ltrpathdirs $dir"
18049                       fi
18050                     fi
18051                     ;;
18052                   -l*)
18053                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18054                     ;;
18055                   *.la)
18056                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18057                     ;;
18058                   *)
18059                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18060                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18061                     ;;
18062                 esac
18063               done
18064             fi
18065           else
18066                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18067             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18068           fi
18069         fi
18070       fi
18071     done
18072   done
18073   if test "X$rpathdirs" != "X"; then
18074     if test -n "$hardcode_libdir_separator"; then
18075                         alldirs=
18076       for found_dir in $rpathdirs; do
18077         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18078       done
18079             acl_save_libdir="$libdir"
18080       libdir="$alldirs"
18081       eval flag=\"$hardcode_libdir_flag_spec\"
18082       libdir="$acl_save_libdir"
18083       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18084     else
18085             for found_dir in $rpathdirs; do
18086         acl_save_libdir="$libdir"
18087         libdir="$found_dir"
18088         eval flag=\"$hardcode_libdir_flag_spec\"
18089         libdir="$acl_save_libdir"
18090         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18091       done
18092     fi
18093   fi
18094   if test "X$ltrpathdirs" != "X"; then
18095             for found_dir in $ltrpathdirs; do
18096       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18097     done
18098   fi
18099
18100
18101
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116
18117     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18118 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18119 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18120   $as_echo_n "(cached) " >&6
18121 else
18122   gt_save_CPPFLAGS="$CPPFLAGS"
18123      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18124      gt_save_LIBS="$LIBS"
18125      LIBS="$LIBS -framework CoreFoundation"
18126      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18127 /* end confdefs.h.  */
18128 #include <CFPreferences.h>
18129 int
18130 main ()
18131 {
18132 CFPreferencesCopyAppValue(NULL, NULL)
18133   ;
18134   return 0;
18135 }
18136 _ACEOF
18137 if ac_fn_c_try_link "$LINENO"; then :
18138   gt_cv_func_CFPreferencesCopyAppValue=yes
18139 else
18140   gt_cv_func_CFPreferencesCopyAppValue=no
18141 fi
18142 rm -f core conftest.err conftest.$ac_objext \
18143     conftest$ac_exeext conftest.$ac_ext
18144      CPPFLAGS="$gt_save_CPPFLAGS"
18145      LIBS="$gt_save_LIBS"
18146 fi
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18148 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18149   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18150
18151 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18152
18153   fi
18154     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18155 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18156 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18157   $as_echo_n "(cached) " >&6
18158 else
18159   gt_save_CPPFLAGS="$CPPFLAGS"
18160      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18161      gt_save_LIBS="$LIBS"
18162      LIBS="$LIBS -framework CoreFoundation"
18163      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18164 /* end confdefs.h.  */
18165 #include <CFLocale.h>
18166 int
18167 main ()
18168 {
18169 CFLocaleCopyCurrent();
18170   ;
18171   return 0;
18172 }
18173 _ACEOF
18174 if ac_fn_c_try_link "$LINENO"; then :
18175   gt_cv_func_CFLocaleCopyCurrent=yes
18176 else
18177   gt_cv_func_CFLocaleCopyCurrent=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext \
18180     conftest$ac_exeext conftest.$ac_ext
18181      CPPFLAGS="$gt_save_CPPFLAGS"
18182      LIBS="$gt_save_LIBS"
18183 fi
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18185 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18186   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18187
18188 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18189
18190   fi
18191   INTL_MACOSX_LIBS=
18192   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18193     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18194   fi
18195
18196
18197
18198
18199   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18200 $as_echo_n "checking whether NLS is requested... " >&6; }
18201     # Check whether --enable-nls was given.
18202 if test "${enable_nls+set}" = set; then :
18203   enableval=$enable_nls; USE_NLS=$enableval
18204 else
18205   USE_NLS=yes
18206 fi
18207
18208   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18209 $as_echo "$USE_NLS" >&6; }
18210
18211
18212
18213
18214   LIBINTL=
18215   LTLIBINTL=
18216   POSUB=
18217
18218     if test "$USE_NLS" = "yes"; then
18219     gt_use_preinstalled_gnugettext=no
18220
18221
18222
18223
18224
18225
18226         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18227 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18228 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18229   $as_echo_n "(cached) " >&6
18230 else
18231   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18232 /* end confdefs.h.  */
18233 #include <libintl.h>
18234 extern int _nl_msg_cat_cntr;
18235 extern int *_nl_domain_bindings;
18236 int
18237 main ()
18238 {
18239 bindtextdomain ("", "");
18240 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18241   ;
18242   return 0;
18243 }
18244 _ACEOF
18245 if ac_fn_c_try_link "$LINENO"; then :
18246   gt_cv_func_gnugettext1_libc=yes
18247 else
18248   gt_cv_func_gnugettext1_libc=no
18249 fi
18250 rm -f core conftest.err conftest.$ac_objext \
18251     conftest$ac_exeext conftest.$ac_ext
18252 fi
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18254 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18255
18256         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18257
18258
18259
18260
18261
18262           am_save_CPPFLAGS="$CPPFLAGS"
18263
18264   for element in $INCICONV; do
18265     haveit=
18266     for x in $CPPFLAGS; do
18267
18268   acl_save_prefix="$prefix"
18269   prefix="$acl_final_prefix"
18270   acl_save_exec_prefix="$exec_prefix"
18271   exec_prefix="$acl_final_exec_prefix"
18272   eval x=\"$x\"
18273   exec_prefix="$acl_save_exec_prefix"
18274   prefix="$acl_save_prefix"
18275
18276       if test "X$x" = "X$element"; then
18277         haveit=yes
18278         break
18279       fi
18280     done
18281     if test -z "$haveit"; then
18282       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18283     fi
18284   done
18285
18286
18287   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18288 $as_echo_n "checking for iconv... " >&6; }
18289 if ${am_cv_func_iconv+:} false; then :
18290   $as_echo_n "(cached) " >&6
18291 else
18292
18293     am_cv_func_iconv="no, consider installing GNU libiconv"
18294     am_cv_lib_iconv=no
18295     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h.  */
18297 #include <stdlib.h>
18298 #include <iconv.h>
18299 int
18300 main ()
18301 {
18302 iconv_t cd = iconv_open("","");
18303        iconv(cd,NULL,NULL,NULL,NULL);
18304        iconv_close(cd);
18305   ;
18306   return 0;
18307 }
18308 _ACEOF
18309 if ac_fn_c_try_link "$LINENO"; then :
18310   am_cv_func_iconv=yes
18311 fi
18312 rm -f core conftest.err conftest.$ac_objext \
18313     conftest$ac_exeext conftest.$ac_ext
18314     if test "$am_cv_func_iconv" != yes; then
18315       am_save_LIBS="$LIBS"
18316       LIBS="$LIBS $LIBICONV"
18317       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18318 /* end confdefs.h.  */
18319 #include <stdlib.h>
18320 #include <iconv.h>
18321 int
18322 main ()
18323 {
18324 iconv_t cd = iconv_open("","");
18325          iconv(cd,NULL,NULL,NULL,NULL);
18326          iconv_close(cd);
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 if ac_fn_c_try_link "$LINENO"; then :
18332   am_cv_lib_iconv=yes
18333         am_cv_func_iconv=yes
18334 fi
18335 rm -f core conftest.err conftest.$ac_objext \
18336     conftest$ac_exeext conftest.$ac_ext
18337       LIBS="$am_save_LIBS"
18338     fi
18339
18340 fi
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18342 $as_echo "$am_cv_func_iconv" >&6; }
18343   if test "$am_cv_func_iconv" = yes; then
18344
18345 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18346
18347   fi
18348   if test "$am_cv_lib_iconv" = yes; then
18349     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18350 $as_echo_n "checking how to link with libiconv... " >&6; }
18351     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18352 $as_echo "$LIBICONV" >&6; }
18353   else
18354             CPPFLAGS="$am_save_CPPFLAGS"
18355     LIBICONV=
18356     LTLIBICONV=
18357   fi
18358
18359
18360
18361
18362
18363
18364     use_additional=yes
18365
18366   acl_save_prefix="$prefix"
18367   prefix="$acl_final_prefix"
18368   acl_save_exec_prefix="$exec_prefix"
18369   exec_prefix="$acl_final_exec_prefix"
18370
18371     eval additional_includedir=\"$includedir\"
18372     eval additional_libdir=\"$libdir\"
18373
18374   exec_prefix="$acl_save_exec_prefix"
18375   prefix="$acl_save_prefix"
18376
18377
18378 # Check whether --with-libintl-prefix was given.
18379 if test "${with_libintl_prefix+set}" = set; then :
18380   withval=$with_libintl_prefix;
18381     if test "X$withval" = "Xno"; then
18382       use_additional=no
18383     else
18384       if test "X$withval" = "X"; then
18385
18386   acl_save_prefix="$prefix"
18387   prefix="$acl_final_prefix"
18388   acl_save_exec_prefix="$exec_prefix"
18389   exec_prefix="$acl_final_exec_prefix"
18390
18391           eval additional_includedir=\"$includedir\"
18392           eval additional_libdir=\"$libdir\"
18393
18394   exec_prefix="$acl_save_exec_prefix"
18395   prefix="$acl_save_prefix"
18396
18397       else
18398         additional_includedir="$withval/include"
18399         additional_libdir="$withval/lib"
18400       fi
18401     fi
18402
18403 fi
18404
18405       LIBINTL=
18406   LTLIBINTL=
18407   INCINTL=
18408   rpathdirs=
18409   ltrpathdirs=
18410   names_already_handled=
18411   names_next_round='intl '
18412   while test -n "$names_next_round"; do
18413     names_this_round="$names_next_round"
18414     names_next_round=
18415     for name in $names_this_round; do
18416       already_handled=
18417       for n in $names_already_handled; do
18418         if test "$n" = "$name"; then
18419           already_handled=yes
18420           break
18421         fi
18422       done
18423       if test -z "$already_handled"; then
18424         names_already_handled="$names_already_handled $name"
18425                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18426         eval value=\"\$HAVE_LIB$uppername\"
18427         if test -n "$value"; then
18428           if test "$value" = yes; then
18429             eval value=\"\$LIB$uppername\"
18430             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18431             eval value=\"\$LTLIB$uppername\"
18432             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18433           else
18434                                     :
18435           fi
18436         else
18437                               found_dir=
18438           found_la=
18439           found_so=
18440           found_a=
18441           if test $use_additional = yes; then
18442             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18443               found_dir="$additional_libdir"
18444               found_so="$additional_libdir/lib$name.$shlibext"
18445               if test -f "$additional_libdir/lib$name.la"; then
18446                 found_la="$additional_libdir/lib$name.la"
18447               fi
18448             else
18449               if test -f "$additional_libdir/lib$name.$libext"; then
18450                 found_dir="$additional_libdir"
18451                 found_a="$additional_libdir/lib$name.$libext"
18452                 if test -f "$additional_libdir/lib$name.la"; then
18453                   found_la="$additional_libdir/lib$name.la"
18454                 fi
18455               fi
18456             fi
18457           fi
18458           if test "X$found_dir" = "X"; then
18459             for x in $LDFLAGS $LTLIBINTL; do
18460
18461   acl_save_prefix="$prefix"
18462   prefix="$acl_final_prefix"
18463   acl_save_exec_prefix="$exec_prefix"
18464   exec_prefix="$acl_final_exec_prefix"
18465   eval x=\"$x\"
18466   exec_prefix="$acl_save_exec_prefix"
18467   prefix="$acl_save_prefix"
18468
18469               case "$x" in
18470                 -L*)
18471                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18472                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18473                     found_dir="$dir"
18474                     found_so="$dir/lib$name.$shlibext"
18475                     if test -f "$dir/lib$name.la"; then
18476                       found_la="$dir/lib$name.la"
18477                     fi
18478                   else
18479                     if test -f "$dir/lib$name.$libext"; then
18480                       found_dir="$dir"
18481                       found_a="$dir/lib$name.$libext"
18482                       if test -f "$dir/lib$name.la"; then
18483                         found_la="$dir/lib$name.la"
18484                       fi
18485                     fi
18486                   fi
18487                   ;;
18488               esac
18489               if test "X$found_dir" != "X"; then
18490                 break
18491               fi
18492             done
18493           fi
18494           if test "X$found_dir" != "X"; then
18495                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18496             if test "X$found_so" != "X"; then
18497                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18498                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18499               else
18500                                                                                 haveit=
18501                 for x in $ltrpathdirs; do
18502                   if test "X$x" = "X$found_dir"; then
18503                     haveit=yes
18504                     break
18505                   fi
18506                 done
18507                 if test -z "$haveit"; then
18508                   ltrpathdirs="$ltrpathdirs $found_dir"
18509                 fi
18510                                 if test "$hardcode_direct" = yes; then
18511                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18512                 else
18513                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18514                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18515                                                             haveit=
18516                     for x in $rpathdirs; do
18517                       if test "X$x" = "X$found_dir"; then
18518                         haveit=yes
18519                         break
18520                       fi
18521                     done
18522                     if test -z "$haveit"; then
18523                       rpathdirs="$rpathdirs $found_dir"
18524                     fi
18525                   else
18526                                                                                 haveit=
18527                     for x in $LDFLAGS $LIBINTL; do
18528
18529   acl_save_prefix="$prefix"
18530   prefix="$acl_final_prefix"
18531   acl_save_exec_prefix="$exec_prefix"
18532   exec_prefix="$acl_final_exec_prefix"
18533   eval x=\"$x\"
18534   exec_prefix="$acl_save_exec_prefix"
18535   prefix="$acl_save_prefix"
18536
18537                       if test "X$x" = "X-L$found_dir"; then
18538                         haveit=yes
18539                         break
18540                       fi
18541                     done
18542                     if test -z "$haveit"; then
18543                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18544                     fi
18545                     if test "$hardcode_minus_L" != no; then
18546                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18547                     else
18548                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18549                     fi
18550                   fi
18551                 fi
18552               fi
18553             else
18554               if test "X$found_a" != "X"; then
18555                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18556               else
18557                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18558               fi
18559             fi
18560                         additional_includedir=
18561             case "$found_dir" in
18562               */lib | */lib/)
18563                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18564                 additional_includedir="$basedir/include"
18565                 ;;
18566             esac
18567             if test "X$additional_includedir" != "X"; then
18568                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18569                 haveit=
18570                 if test "X$additional_includedir" = "X/usr/local/include"; then
18571                   if test -n "$GCC"; then
18572                     case $host_os in
18573                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18574                     esac
18575                   fi
18576                 fi
18577                 if test -z "$haveit"; then
18578                   for x in $CPPFLAGS $INCINTL; do
18579
18580   acl_save_prefix="$prefix"
18581   prefix="$acl_final_prefix"
18582   acl_save_exec_prefix="$exec_prefix"
18583   exec_prefix="$acl_final_exec_prefix"
18584   eval x=\"$x\"
18585   exec_prefix="$acl_save_exec_prefix"
18586   prefix="$acl_save_prefix"
18587
18588                     if test "X$x" = "X-I$additional_includedir"; then
18589                       haveit=yes
18590                       break
18591                     fi
18592                   done
18593                   if test -z "$haveit"; then
18594                     if test -d "$additional_includedir"; then
18595                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18596                     fi
18597                   fi
18598                 fi
18599               fi
18600             fi
18601                         if test -n "$found_la"; then
18602                                                         save_libdir="$libdir"
18603               case "$found_la" in
18604                 */* | *\\*) . "$found_la" ;;
18605                 *) . "./$found_la" ;;
18606               esac
18607               libdir="$save_libdir"
18608                             for dep in $dependency_libs; do
18609                 case "$dep" in
18610                   -L*)
18611                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18612                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18613                       haveit=
18614                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18615                         if test -n "$GCC"; then
18616                           case $host_os in
18617                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18618                           esac
18619                         fi
18620                       fi
18621                       if test -z "$haveit"; then
18622                         haveit=
18623                         for x in $LDFLAGS $LIBINTL; do
18624
18625   acl_save_prefix="$prefix"
18626   prefix="$acl_final_prefix"
18627   acl_save_exec_prefix="$exec_prefix"
18628   exec_prefix="$acl_final_exec_prefix"
18629   eval x=\"$x\"
18630   exec_prefix="$acl_save_exec_prefix"
18631   prefix="$acl_save_prefix"
18632
18633                           if test "X$x" = "X-L$additional_libdir"; then
18634                             haveit=yes
18635                             break
18636                           fi
18637                         done
18638                         if test -z "$haveit"; then
18639                           if test -d "$additional_libdir"; then
18640                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18641                           fi
18642                         fi
18643                         haveit=
18644                         for x in $LDFLAGS $LTLIBINTL; do
18645
18646   acl_save_prefix="$prefix"
18647   prefix="$acl_final_prefix"
18648   acl_save_exec_prefix="$exec_prefix"
18649   exec_prefix="$acl_final_exec_prefix"
18650   eval x=\"$x\"
18651   exec_prefix="$acl_save_exec_prefix"
18652   prefix="$acl_save_prefix"
18653
18654                           if test "X$x" = "X-L$additional_libdir"; then
18655                             haveit=yes
18656                             break
18657                           fi
18658                         done
18659                         if test -z "$haveit"; then
18660                           if test -d "$additional_libdir"; then
18661                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18662                           fi
18663                         fi
18664                       fi
18665                     fi
18666                     ;;
18667                   -R*)
18668                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18669                     if test "$enable_rpath" != no; then
18670                                                                   haveit=
18671                       for x in $rpathdirs; do
18672                         if test "X$x" = "X$dir"; then
18673                           haveit=yes
18674                           break
18675                         fi
18676                       done
18677                       if test -z "$haveit"; then
18678                         rpathdirs="$rpathdirs $dir"
18679                       fi
18680                                                                   haveit=
18681                       for x in $ltrpathdirs; do
18682                         if test "X$x" = "X$dir"; then
18683                           haveit=yes
18684                           break
18685                         fi
18686                       done
18687                       if test -z "$haveit"; then
18688                         ltrpathdirs="$ltrpathdirs $dir"
18689                       fi
18690                     fi
18691                     ;;
18692                   -l*)
18693                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18694                     ;;
18695                   *.la)
18696                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18697                     ;;
18698                   *)
18699                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18700                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18701                     ;;
18702                 esac
18703               done
18704             fi
18705           else
18706                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18707             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18708           fi
18709         fi
18710       fi
18711     done
18712   done
18713   if test "X$rpathdirs" != "X"; then
18714     if test -n "$hardcode_libdir_separator"; then
18715                         alldirs=
18716       for found_dir in $rpathdirs; do
18717         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18718       done
18719             acl_save_libdir="$libdir"
18720       libdir="$alldirs"
18721       eval flag=\"$hardcode_libdir_flag_spec\"
18722       libdir="$acl_save_libdir"
18723       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18724     else
18725             for found_dir in $rpathdirs; do
18726         acl_save_libdir="$libdir"
18727         libdir="$found_dir"
18728         eval flag=\"$hardcode_libdir_flag_spec\"
18729         libdir="$acl_save_libdir"
18730         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18731       done
18732     fi
18733   fi
18734   if test "X$ltrpathdirs" != "X"; then
18735             for found_dir in $ltrpathdirs; do
18736       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18737     done
18738   fi
18739
18740           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18741 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18742 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18743   $as_echo_n "(cached) " >&6
18744 else
18745   gt_save_CPPFLAGS="$CPPFLAGS"
18746             CPPFLAGS="$CPPFLAGS $INCINTL"
18747             gt_save_LIBS="$LIBS"
18748             LIBS="$LIBS $LIBINTL"
18749                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18750 /* end confdefs.h.  */
18751 #include <libintl.h>
18752 extern int _nl_msg_cat_cntr;
18753 extern
18754 #ifdef __cplusplus
18755 "C"
18756 #endif
18757 const char *_nl_expand_alias (const char *);
18758 int
18759 main ()
18760 {
18761 bindtextdomain ("", "");
18762 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 if ac_fn_c_try_link "$LINENO"; then :
18768   gt_cv_func_gnugettext1_libintl=yes
18769 else
18770   gt_cv_func_gnugettext1_libintl=no
18771 fi
18772 rm -f core conftest.err conftest.$ac_objext \
18773     conftest$ac_exeext conftest.$ac_ext
18774                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18775               LIBS="$LIBS $LIBICONV"
18776               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18777 /* end confdefs.h.  */
18778 #include <libintl.h>
18779 extern int _nl_msg_cat_cntr;
18780 extern
18781 #ifdef __cplusplus
18782 "C"
18783 #endif
18784 const char *_nl_expand_alias (const char *);
18785 int
18786 main ()
18787 {
18788 bindtextdomain ("", "");
18789 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18790   ;
18791   return 0;
18792 }
18793 _ACEOF
18794 if ac_fn_c_try_link "$LINENO"; then :
18795   LIBINTL="$LIBINTL $LIBICONV"
18796                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18797                 gt_cv_func_gnugettext1_libintl=yes
18798
18799 fi
18800 rm -f core conftest.err conftest.$ac_objext \
18801     conftest$ac_exeext conftest.$ac_ext
18802             fi
18803             CPPFLAGS="$gt_save_CPPFLAGS"
18804             LIBS="$gt_save_LIBS"
18805 fi
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18807 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18808         fi
18809
18810                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18811            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18812                 && test "$PACKAGE" != gettext-runtime \
18813                 && test "$PACKAGE" != gettext-tools; }; then
18814           gt_use_preinstalled_gnugettext=yes
18815         else
18816                     LIBINTL=
18817           LTLIBINTL=
18818           INCINTL=
18819         fi
18820
18821
18822
18823     if test -n "$INTL_MACOSX_LIBS"; then
18824       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18825          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18826                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18827         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18828       fi
18829     fi
18830
18831     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18832        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18833
18834 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18835
18836     else
18837       USE_NLS=no
18838     fi
18839   fi
18840
18841   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18842 $as_echo_n "checking whether to use NLS... " >&6; }
18843   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18844 $as_echo "$USE_NLS" >&6; }
18845   if test "$USE_NLS" = "yes"; then
18846     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18847 $as_echo_n "checking where the gettext function comes from... " >&6; }
18848     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18849       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18850         gt_source="external libintl"
18851       else
18852         gt_source="libc"
18853       fi
18854     else
18855       gt_source="included intl directory"
18856     fi
18857     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18858 $as_echo "$gt_source" >&6; }
18859   fi
18860
18861   if test "$USE_NLS" = "yes"; then
18862
18863     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18864       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18865         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18866 $as_echo_n "checking how to link with libintl... " >&6; }
18867         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18868 $as_echo "$LIBINTL" >&6; }
18869
18870   for element in $INCINTL; do
18871     haveit=
18872     for x in $CPPFLAGS; do
18873
18874   acl_save_prefix="$prefix"
18875   prefix="$acl_final_prefix"
18876   acl_save_exec_prefix="$exec_prefix"
18877   exec_prefix="$acl_final_exec_prefix"
18878   eval x=\"$x\"
18879   exec_prefix="$acl_save_exec_prefix"
18880   prefix="$acl_save_prefix"
18881
18882       if test "X$x" = "X$element"; then
18883         haveit=yes
18884         break
18885       fi
18886     done
18887     if test -z "$haveit"; then
18888       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18889     fi
18890   done
18891
18892       fi
18893
18894
18895 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18896
18897
18898 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18899
18900     fi
18901
18902         POSUB=po
18903   fi
18904
18905
18906
18907     INTLLIBS="$LIBINTL"
18908
18909
18910
18911
18912
18913
18914
18915 os_name=`uname -s 2>/dev/null`
18916 if test x${prefix} = xNONE ; then
18917    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18918       sysconfdir=/etc/bacula
18919    fi
18920
18921    if test `eval echo ${libdir}` = NONE/lib ; then
18922       case ${os_name} in
18923       Linux)
18924          os_processor=`uname -p 2>/dev/null`
18925          case ${os_processor} in
18926          x86_64)
18927             libdir=/usr/lib64
18928             ;;
18929          *)
18930             libdir=/usr/lib
18931             ;;
18932          esac
18933          ;;
18934       *)
18935          libdir=/usr/lib
18936          ;;
18937       esac
18938    fi
18939
18940    if test `eval echo ${includedir}` = NONE/include ; then
18941       includedir=/usr/include
18942    fi
18943
18944    if test `eval echo ${datarootdir}` = NONE/share ; then
18945       datarootdir=/usr/share
18946    fi
18947    prefix=
18948 fi
18949
18950 if test x${exec_prefix} = xNONE ; then
18951    exec_prefix=${prefix}
18952 fi
18953
18954 sysconfdir=`eval echo ${sysconfdir}`
18955 datarootdir=`eval echo ${datarootdir}`
18956 docdir=`eval echo ${docdir}`
18957 htmldir=`eval echo ${htmldir}`
18958 libdir=`eval echo ${libdir}`
18959 includedir=`eval echo ${includedir}`
18960 localedir=`eval echo ${datarootdir}/locale`
18961 cat >>confdefs.h <<_ACEOF
18962 #define SYSCONFDIR "$sysconfdir"
18963 _ACEOF
18964
18965 cat >>confdefs.h <<_ACEOF
18966 #define LOCALEDIR "$localedir"
18967 _ACEOF
18968
18969
18970 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18971    sbindir=${exec_prefix}/sbin
18972 fi
18973 sbindir=`eval echo ${sbindir}`
18974
18975 if test x$mandir = x'${prefix}/man' ; then
18976    mandir=/usr/share/man
18977 fi
18978
18979 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18980    htmldir=`eval echo ${docdir}html`
18981 fi
18982
18983 if test x$docdir = x'/usr/share/doc/' ; then
18984    docdir=`eval echo ${docdir}bacula`
18985 fi
18986
18987
18988 for ac_prog in msgfmt
18989 do
18990   # Extract the first word of "$ac_prog", so it can be a program name with args.
18991 set dummy $ac_prog; ac_word=$2
18992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18993 $as_echo_n "checking for $ac_word... " >&6; }
18994 if ${ac_cv_path_MSGFMT+:} false; then :
18995   $as_echo_n "(cached) " >&6
18996 else
18997   case $MSGFMT in
18998   [\\/]* | ?:[\\/]*)
18999   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
19000   ;;
19001   *)
19002   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19003 for as_dir in $PATH
19004 do
19005   IFS=$as_save_IFS
19006   test -z "$as_dir" && as_dir=.
19007     for ac_exec_ext in '' $ac_executable_extensions; do
19008   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19009     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
19010     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19011     break 2
19012   fi
19013 done
19014   done
19015 IFS=$as_save_IFS
19016
19017   ;;
19018 esac
19019 fi
19020 MSGFMT=$ac_cv_path_MSGFMT
19021 if test -n "$MSGFMT"; then
19022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
19023 $as_echo "$MSGFMT" >&6; }
19024 else
19025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19026 $as_echo "no" >&6; }
19027 fi
19028
19029
19030   test -n "$MSGFMT" && break
19031 done
19032 test -n "$MSGFMT" || MSGFMT="no"
19033
19034 if test "$MSGFMT" = "no"
19035 then
19036    echo 'msgfmt program not found, disabling NLS !'
19037    USE_NLS=no
19038    USE_INCLUDED_LIBINTL=no
19039 #else
19040
19041     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
19042 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
19043 if ${ac_cv_gnu_library_2+:} false; then :
19044   $as_echo_n "(cached) " >&6
19045 else
19046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19047 /* end confdefs.h.  */
19048
19049 #include <features.h>
19050 #ifdef __GNU_LIBRARY__
19051  #if (__GLIBC__ >= 2)
19052   Lucky GNU user
19053  #endif
19054 #endif
19055
19056 _ACEOF
19057 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19058   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19059   ac_cv_gnu_library_2=yes
19060 else
19061   ac_cv_gnu_library_2=no
19062 fi
19063 rm -f conftest*
19064
19065
19066
19067 fi
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19069 $as_echo "$ac_cv_gnu_library_2" >&6; }
19070
19071     GLIBC2="$ac_cv_gnu_library_2"
19072
19073
19074 if test -n "$ac_tool_prefix"; then
19075   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19076 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19078 $as_echo_n "checking for $ac_word... " >&6; }
19079 if ${ac_cv_prog_RANLIB+:} false; then :
19080   $as_echo_n "(cached) " >&6
19081 else
19082   if test -n "$RANLIB"; then
19083   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19084 else
19085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19086 for as_dir in $PATH
19087 do
19088   IFS=$as_save_IFS
19089   test -z "$as_dir" && as_dir=.
19090     for ac_exec_ext in '' $ac_executable_extensions; do
19091   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19092     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19093     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19094     break 2
19095   fi
19096 done
19097   done
19098 IFS=$as_save_IFS
19099
19100 fi
19101 fi
19102 RANLIB=$ac_cv_prog_RANLIB
19103 if test -n "$RANLIB"; then
19104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19105 $as_echo "$RANLIB" >&6; }
19106 else
19107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19108 $as_echo "no" >&6; }
19109 fi
19110
19111
19112 fi
19113 if test -z "$ac_cv_prog_RANLIB"; then
19114   ac_ct_RANLIB=$RANLIB
19115   # Extract the first word of "ranlib", so it can be a program name with args.
19116 set dummy ranlib; ac_word=$2
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19118 $as_echo_n "checking for $ac_word... " >&6; }
19119 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19120   $as_echo_n "(cached) " >&6
19121 else
19122   if test -n "$ac_ct_RANLIB"; then
19123   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19124 else
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19127 do
19128   IFS=$as_save_IFS
19129   test -z "$as_dir" && as_dir=.
19130     for ac_exec_ext in '' $ac_executable_extensions; do
19131   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132     ac_cv_prog_ac_ct_RANLIB="ranlib"
19133     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19134     break 2
19135   fi
19136 done
19137   done
19138 IFS=$as_save_IFS
19139
19140 fi
19141 fi
19142 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19143 if test -n "$ac_ct_RANLIB"; then
19144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19145 $as_echo "$ac_ct_RANLIB" >&6; }
19146 else
19147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19148 $as_echo "no" >&6; }
19149 fi
19150
19151   if test "x$ac_ct_RANLIB" = x; then
19152     RANLIB=":"
19153   else
19154     case $cross_compiling:$ac_tool_warned in
19155 yes:)
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19158 ac_tool_warned=yes ;;
19159 esac
19160     RANLIB=$ac_ct_RANLIB
19161   fi
19162 else
19163   RANLIB="$ac_cv_prog_RANLIB"
19164 fi
19165
19166
19167         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19168 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19169 if ${ac_cv_lib_cposix_strerror+:} false; then :
19170   $as_echo_n "(cached) " >&6
19171 else
19172   ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lcposix  $LIBS"
19174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19175 /* end confdefs.h.  */
19176
19177 /* Override any GCC internal prototype to avoid an error.
19178    Use char because int might match the return type of a GCC
19179    builtin and then its argument prototype would still apply.  */
19180 #ifdef __cplusplus
19181 extern "C"
19182 #endif
19183 char strerror ();
19184 int
19185 main ()
19186 {
19187 return strerror ();
19188   ;
19189   return 0;
19190 }
19191 _ACEOF
19192 if ac_fn_c_try_link "$LINENO"; then :
19193   ac_cv_lib_cposix_strerror=yes
19194 else
19195   ac_cv_lib_cposix_strerror=no
19196 fi
19197 rm -f core conftest.err conftest.$ac_objext \
19198     conftest$ac_exeext conftest.$ac_ext
19199 LIBS=$ac_check_lib_save_LIBS
19200 fi
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19202 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19203 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19204   LIBS="$LIBS -lcposix"
19205 fi
19206
19207
19208
19209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19210 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19211 if ${ac_cv_c_const+:} false; then :
19212   $as_echo_n "(cached) " >&6
19213 else
19214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19215 /* end confdefs.h.  */
19216
19217 int
19218 main ()
19219 {
19220
19221 #ifndef __cplusplus
19222   /* Ultrix mips cc rejects this sort of thing.  */
19223   typedef int charset[2];
19224   const charset cs = { 0, 0 };
19225   /* SunOS 4.1.1 cc rejects this.  */
19226   char const *const *pcpcc;
19227   char **ppc;
19228   /* NEC SVR4.0.2 mips cc rejects this.  */
19229   struct point {int x, y;};
19230   static struct point const zero = {0,0};
19231   /* AIX XL C 1.02.0.0 rejects this.
19232      It does not let you subtract one const X* pointer from another in
19233      an arm of an if-expression whose if-part is not a constant
19234      expression */
19235   const char *g = "string";
19236   pcpcc = &g + (g ? g-g : 0);
19237   /* HPUX 7.0 cc rejects these. */
19238   ++pcpcc;
19239   ppc = (char**) pcpcc;
19240   pcpcc = (char const *const *) ppc;
19241   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19242     char tx;
19243     char *t = &tx;
19244     char const *s = 0 ? (char *) 0 : (char const *) 0;
19245
19246     *t++ = 0;
19247     if (s) return 0;
19248   }
19249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19250     int x[] = {25, 17};
19251     const int *foo = &x[0];
19252     ++foo;
19253   }
19254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19255     typedef const int *iptr;
19256     iptr p = 0;
19257     ++p;
19258   }
19259   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19261     struct s { int j; const int *ap[3]; } bx;
19262     struct s *b = &bx; b->j = 5;
19263   }
19264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19265     const int foo = 10;
19266     if (!foo) return 0;
19267   }
19268   return !cs[0] && !zero.x;
19269 #endif
19270
19271   ;
19272   return 0;
19273 }
19274 _ACEOF
19275 if ac_fn_c_try_compile "$LINENO"; then :
19276   ac_cv_c_const=yes
19277 else
19278   ac_cv_c_const=no
19279 fi
19280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19281 fi
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19283 $as_echo "$ac_cv_c_const" >&6; }
19284 if test $ac_cv_c_const = no; then
19285
19286 $as_echo "#define const /**/" >>confdefs.h
19287
19288 fi
19289
19290
19291   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19292 $as_echo_n "checking for signed... " >&6; }
19293 if ${bh_cv_c_signed+:} false; then :
19294   $as_echo_n "(cached) " >&6
19295 else
19296   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19297 /* end confdefs.h.  */
19298
19299 int
19300 main ()
19301 {
19302 signed char x;
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 if ac_fn_c_try_compile "$LINENO"; then :
19308   bh_cv_c_signed=yes
19309 else
19310   bh_cv_c_signed=no
19311 fi
19312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19313 fi
19314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19315 $as_echo "$bh_cv_c_signed" >&6; }
19316   if test $bh_cv_c_signed = no; then
19317
19318 $as_echo "#define signed /**/" >>confdefs.h
19319
19320   fi
19321
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19323 $as_echo_n "checking for inline... " >&6; }
19324 if ${ac_cv_c_inline+:} false; then :
19325   $as_echo_n "(cached) " >&6
19326 else
19327   ac_cv_c_inline=no
19328 for ac_kw in inline __inline__ __inline; do
19329   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h.  */
19331 #ifndef __cplusplus
19332 typedef int foo_t;
19333 static $ac_kw foo_t static_foo () {return 0; }
19334 $ac_kw foo_t foo () {return 0; }
19335 #endif
19336
19337 _ACEOF
19338 if ac_fn_c_try_compile "$LINENO"; then :
19339   ac_cv_c_inline=$ac_kw
19340 fi
19341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19342   test "$ac_cv_c_inline" != no && break
19343 done
19344
19345 fi
19346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19347 $as_echo "$ac_cv_c_inline" >&6; }
19348
19349 case $ac_cv_c_inline in
19350   inline | yes) ;;
19351   *)
19352     case $ac_cv_c_inline in
19353       no) ac_val=;;
19354       *) ac_val=$ac_cv_c_inline;;
19355     esac
19356     cat >>confdefs.h <<_ACEOF
19357 #ifndef __cplusplus
19358 #define inline $ac_val
19359 #endif
19360 _ACEOF
19361     ;;
19362 esac
19363
19364 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19365 if test "x$ac_cv_type_off_t" = xyes; then :
19366
19367 else
19368
19369 cat >>confdefs.h <<_ACEOF
19370 #define off_t long int
19371 _ACEOF
19372
19373 fi
19374
19375 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19376 if test "x$ac_cv_type_size_t" = xyes; then :
19377
19378 else
19379
19380 cat >>confdefs.h <<_ACEOF
19381 #define size_t unsigned int
19382 _ACEOF
19383
19384 fi
19385
19386
19387   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19388 $as_echo_n "checking for long long... " >&6; }
19389 if ${ac_cv_type_long_long+:} false; then :
19390   $as_echo_n "(cached) " >&6
19391 else
19392   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19393 /* end confdefs.h.  */
19394 long long ll = 1LL; int i = 63;
19395 int
19396 main ()
19397 {
19398 long long llmax = (long long) -1;
19399      return ll << i | ll >> i | llmax / ll | llmax % ll;
19400   ;
19401   return 0;
19402 }
19403 _ACEOF
19404 if ac_fn_c_try_link "$LINENO"; then :
19405   ac_cv_type_long_long=yes
19406 else
19407   ac_cv_type_long_long=no
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext \
19410     conftest$ac_exeext conftest.$ac_ext
19411 fi
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19413 $as_echo "$ac_cv_type_long_long" >&6; }
19414   if test $ac_cv_type_long_long = yes; then
19415
19416 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19417
19418   fi
19419
19420
19421   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19422 $as_echo_n "checking for long double... " >&6; }
19423 if ${gt_cv_c_long_double+:} false; then :
19424   $as_echo_n "(cached) " >&6
19425 else
19426   if test "$GCC" = yes; then
19427        gt_cv_c_long_double=yes
19428      else
19429        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19430 /* end confdefs.h.  */
19431
19432          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19433          long double foo = 0.0;
19434          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19435          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19436
19437 int
19438 main ()
19439 {
19440
19441   ;
19442   return 0;
19443 }
19444 _ACEOF
19445 if ac_fn_c_try_compile "$LINENO"; then :
19446   gt_cv_c_long_double=yes
19447 else
19448   gt_cv_c_long_double=no
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19451      fi
19452 fi
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19454 $as_echo "$gt_cv_c_long_double" >&6; }
19455   if test $gt_cv_c_long_double = yes; then
19456
19457 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19458
19459   fi
19460
19461
19462   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19463 $as_echo_n "checking for wchar_t... " >&6; }
19464 if ${gt_cv_c_wchar_t+:} false; then :
19465   $as_echo_n "(cached) " >&6
19466 else
19467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h.  */
19469 #include <stddef.h>
19470        wchar_t foo = (wchar_t)'\0';
19471 int
19472 main ()
19473 {
19474
19475   ;
19476   return 0;
19477 }
19478 _ACEOF
19479 if ac_fn_c_try_compile "$LINENO"; then :
19480   gt_cv_c_wchar_t=yes
19481 else
19482   gt_cv_c_wchar_t=no
19483 fi
19484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19485 fi
19486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19487 $as_echo "$gt_cv_c_wchar_t" >&6; }
19488   if test $gt_cv_c_wchar_t = yes; then
19489
19490 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19491
19492   fi
19493
19494
19495   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19496 $as_echo_n "checking for wint_t... " >&6; }
19497 if ${gt_cv_c_wint_t+:} false; then :
19498   $as_echo_n "(cached) " >&6
19499 else
19500   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19501 /* end confdefs.h.  */
19502 #include <wchar.h>
19503        wint_t foo = (wchar_t)'\0';
19504 int
19505 main ()
19506 {
19507
19508   ;
19509   return 0;
19510 }
19511 _ACEOF
19512 if ac_fn_c_try_compile "$LINENO"; then :
19513   gt_cv_c_wint_t=yes
19514 else
19515   gt_cv_c_wint_t=no
19516 fi
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 fi
19519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19520 $as_echo "$gt_cv_c_wint_t" >&6; }
19521   if test $gt_cv_c_wint_t = yes; then
19522
19523 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19524
19525   fi
19526
19527
19528   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19529 $as_echo_n "checking for inttypes.h... " >&6; }
19530 if ${gl_cv_header_inttypes_h+:} false; then :
19531   $as_echo_n "(cached) " >&6
19532 else
19533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19534 /* end confdefs.h.  */
19535 #include <sys/types.h>
19536 #include <inttypes.h>
19537 int
19538 main ()
19539 {
19540 uintmax_t i = (uintmax_t) -1;
19541   ;
19542   return 0;
19543 }
19544 _ACEOF
19545 if ac_fn_c_try_compile "$LINENO"; then :
19546   gl_cv_header_inttypes_h=yes
19547 else
19548   gl_cv_header_inttypes_h=no
19549 fi
19550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19551 fi
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19553 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19554   if test $gl_cv_header_inttypes_h = yes; then
19555
19556 cat >>confdefs.h <<_ACEOF
19557 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19558 _ACEOF
19559
19560   fi
19561
19562
19563   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19564 $as_echo_n "checking for stdint.h... " >&6; }
19565 if ${gl_cv_header_stdint_h+:} false; then :
19566   $as_echo_n "(cached) " >&6
19567 else
19568   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19569 /* end confdefs.h.  */
19570 #include <sys/types.h>
19571 #include <stdint.h>
19572 int
19573 main ()
19574 {
19575 uintmax_t i = (uintmax_t) -1;
19576   ;
19577   return 0;
19578 }
19579 _ACEOF
19580 if ac_fn_c_try_compile "$LINENO"; then :
19581   gl_cv_header_stdint_h=yes
19582 else
19583   gl_cv_header_stdint_h=no
19584 fi
19585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19586 fi
19587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19588 $as_echo "$gl_cv_header_stdint_h" >&6; }
19589   if test $gl_cv_header_stdint_h = yes; then
19590
19591 cat >>confdefs.h <<_ACEOF
19592 #define HAVE_STDINT_H_WITH_UINTMAX 1
19593 _ACEOF
19594
19595   fi
19596
19597
19598
19599
19600   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19601 $as_echo_n "checking for intmax_t... " >&6; }
19602 if ${gt_cv_c_intmax_t+:} false; then :
19603   $as_echo_n "(cached) " >&6
19604 else
19605   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19606 /* end confdefs.h.  */
19607
19608 #include <stddef.h>
19609 #include <stdlib.h>
19610 #if HAVE_STDINT_H_WITH_UINTMAX
19611 #include <stdint.h>
19612 #endif
19613 #if HAVE_INTTYPES_H_WITH_UINTMAX
19614 #include <inttypes.h>
19615 #endif
19616
19617 int
19618 main ()
19619 {
19620 intmax_t x = -1;
19621   ;
19622   return 0;
19623 }
19624 _ACEOF
19625 if ac_fn_c_try_compile "$LINENO"; then :
19626   gt_cv_c_intmax_t=yes
19627 else
19628   gt_cv_c_intmax_t=no
19629 fi
19630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 fi
19632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19633 $as_echo "$gt_cv_c_intmax_t" >&6; }
19634   if test $gt_cv_c_intmax_t = yes; then
19635
19636 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19637
19638   fi
19639
19640
19641
19642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19643 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19644 if ${gt_cv_func_printf_posix+:} false; then :
19645   $as_echo_n "(cached) " >&6
19646 else
19647
19648       if test "$cross_compiling" = yes; then :
19649
19650         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19651 /* end confdefs.h.  */
19652
19653 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19654   notposix
19655 #endif
19656
19657 _ACEOF
19658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19659   $EGREP "notposix" >/dev/null 2>&1; then :
19660   gt_cv_func_printf_posix="guessing no"
19661 else
19662   gt_cv_func_printf_posix="guessing yes"
19663 fi
19664 rm -f conftest*
19665
19666
19667 else
19668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19669 /* end confdefs.h.  */
19670
19671 #include <stdio.h>
19672 #include <string.h>
19673 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19674    dollar expansion (possibly an autoconf bug).  */
19675 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19676 static char buf[100];
19677 int main ()
19678 {
19679   sprintf (buf, format, 33, 55);
19680   return (strcmp (buf, "55 33") != 0);
19681 }
19682 _ACEOF
19683 if ac_fn_c_try_run "$LINENO"; then :
19684   gt_cv_func_printf_posix=yes
19685 else
19686   gt_cv_func_printf_posix=no
19687 fi
19688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19689   conftest.$ac_objext conftest.beam conftest.$ac_ext
19690 fi
19691
19692
19693 fi
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19695 $as_echo "$gt_cv_func_printf_posix" >&6; }
19696   case $gt_cv_func_printf_posix in
19697     *yes)
19698
19699 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19700
19701       ;;
19702   esac
19703
19704 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19705 # for constant arguments.  Useless!
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19707 $as_echo_n "checking for working alloca.h... " >&6; }
19708 if ${ac_cv_working_alloca_h+:} false; then :
19709   $as_echo_n "(cached) " >&6
19710 else
19711   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h.  */
19713 #include <alloca.h>
19714 int
19715 main ()
19716 {
19717 char *p = (char *) alloca (2 * sizeof (int));
19718                           if (p) return 0;
19719   ;
19720   return 0;
19721 }
19722 _ACEOF
19723 if ac_fn_c_try_link "$LINENO"; then :
19724   ac_cv_working_alloca_h=yes
19725 else
19726   ac_cv_working_alloca_h=no
19727 fi
19728 rm -f core conftest.err conftest.$ac_objext \
19729     conftest$ac_exeext conftest.$ac_ext
19730 fi
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19732 $as_echo "$ac_cv_working_alloca_h" >&6; }
19733 if test $ac_cv_working_alloca_h = yes; then
19734
19735 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19736
19737 fi
19738
19739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19740 $as_echo_n "checking for alloca... " >&6; }
19741 if ${ac_cv_func_alloca_works+:} false; then :
19742   $as_echo_n "(cached) " >&6
19743 else
19744   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19745 /* end confdefs.h.  */
19746 #ifdef __GNUC__
19747 # define alloca __builtin_alloca
19748 #else
19749 # ifdef _MSC_VER
19750 #  include <malloc.h>
19751 #  define alloca _alloca
19752 # else
19753 #  ifdef HAVE_ALLOCA_H
19754 #   include <alloca.h>
19755 #  else
19756 #   ifdef _AIX
19757  #pragma alloca
19758 #   else
19759 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19760 void *alloca (size_t);
19761 #    endif
19762 #   endif
19763 #  endif
19764 # endif
19765 #endif
19766
19767 int
19768 main ()
19769 {
19770 char *p = (char *) alloca (1);
19771                                     if (p) return 0;
19772   ;
19773   return 0;
19774 }
19775 _ACEOF
19776 if ac_fn_c_try_link "$LINENO"; then :
19777   ac_cv_func_alloca_works=yes
19778 else
19779   ac_cv_func_alloca_works=no
19780 fi
19781 rm -f core conftest.err conftest.$ac_objext \
19782     conftest$ac_exeext conftest.$ac_ext
19783 fi
19784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19785 $as_echo "$ac_cv_func_alloca_works" >&6; }
19786
19787 if test $ac_cv_func_alloca_works = yes; then
19788
19789 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19790
19791 else
19792   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19793 # that cause trouble.  Some versions do not even contain alloca or
19794 # contain a buggy version.  If you still want to use their alloca,
19795 # use ar to extract alloca.o from them instead of compiling alloca.c.
19796
19797 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19798
19799 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19800
19801
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19803 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19804 if ${ac_cv_os_cray+:} false; then :
19805   $as_echo_n "(cached) " >&6
19806 else
19807   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h.  */
19809 #if defined CRAY && ! defined CRAY2
19810 webecray
19811 #else
19812 wenotbecray
19813 #endif
19814
19815 _ACEOF
19816 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19817   $EGREP "webecray" >/dev/null 2>&1; then :
19818   ac_cv_os_cray=yes
19819 else
19820   ac_cv_os_cray=no
19821 fi
19822 rm -f conftest*
19823
19824 fi
19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19826 $as_echo "$ac_cv_os_cray" >&6; }
19827 if test $ac_cv_os_cray = yes; then
19828   for ac_func in _getb67 GETB67 getb67; do
19829     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19830 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19831 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19832
19833 cat >>confdefs.h <<_ACEOF
19834 #define CRAY_STACKSEG_END $ac_func
19835 _ACEOF
19836
19837     break
19838 fi
19839
19840   done
19841 fi
19842
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19844 $as_echo_n "checking stack direction for C alloca... " >&6; }
19845 if ${ac_cv_c_stack_direction+:} false; then :
19846   $as_echo_n "(cached) " >&6
19847 else
19848   if test "$cross_compiling" = yes; then :
19849   ac_cv_c_stack_direction=0
19850 else
19851   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19852 /* end confdefs.h.  */
19853 $ac_includes_default
19854 int
19855 find_stack_direction (int *addr, int depth)
19856 {
19857   int dir, dummy = 0;
19858   if (! addr)
19859     addr = &dummy;
19860   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19861   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19862   return dir + dummy;
19863 }
19864
19865 int
19866 main (int argc, char **argv)
19867 {
19868   return find_stack_direction (0, argc + !argv + 20) < 0;
19869 }
19870 _ACEOF
19871 if ac_fn_c_try_run "$LINENO"; then :
19872   ac_cv_c_stack_direction=1
19873 else
19874   ac_cv_c_stack_direction=-1
19875 fi
19876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19877   conftest.$ac_objext conftest.beam conftest.$ac_ext
19878 fi
19879
19880 fi
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19882 $as_echo "$ac_cv_c_stack_direction" >&6; }
19883 cat >>confdefs.h <<_ACEOF
19884 #define STACK_DIRECTION $ac_cv_c_stack_direction
19885 _ACEOF
19886
19887
19888 fi
19889
19890
19891
19892
19893   for ac_header in $ac_header_list
19894 do :
19895   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19896 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19897 "
19898 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19899   cat >>confdefs.h <<_ACEOF
19900 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19901 _ACEOF
19902
19903 fi
19904
19905 done
19906
19907
19908
19909
19910
19911
19912
19913
19914 for ac_func in getpagesize
19915 do :
19916   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19917 if test "x$ac_cv_func_getpagesize" = xyes; then :
19918   cat >>confdefs.h <<_ACEOF
19919 #define HAVE_GETPAGESIZE 1
19920 _ACEOF
19921
19922 fi
19923 done
19924
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19926 $as_echo_n "checking for working mmap... " >&6; }
19927 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19928   $as_echo_n "(cached) " >&6
19929 else
19930   if test "$cross_compiling" = yes; then :
19931   ac_cv_func_mmap_fixed_mapped=no
19932 else
19933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934 /* end confdefs.h.  */
19935 $ac_includes_default
19936 /* malloc might have been renamed as rpl_malloc. */
19937 #undef malloc
19938
19939 /* Thanks to Mike Haertel and Jim Avera for this test.
19940    Here is a matrix of mmap possibilities:
19941         mmap private not fixed
19942         mmap private fixed at somewhere currently unmapped
19943         mmap private fixed at somewhere already mapped
19944         mmap shared not fixed
19945         mmap shared fixed at somewhere currently unmapped
19946         mmap shared fixed at somewhere already mapped
19947    For private mappings, we should verify that changes cannot be read()
19948    back from the file, nor mmap's back from the file at a different
19949    address.  (There have been systems where private was not correctly
19950    implemented like the infamous i386 svr4.0, and systems where the
19951    VM page cache was not coherent with the file system buffer cache
19952    like early versions of FreeBSD and possibly contemporary NetBSD.)
19953    For shared mappings, we should conversely verify that changes get
19954    propagated back to all the places they're supposed to be.
19955
19956    Grep wants private fixed already mapped.
19957    The main things grep needs to know about mmap are:
19958    * does it exist and is it safe to write into the mmap'd area
19959    * how to use it (BSD variants)  */
19960
19961 #include <fcntl.h>
19962 #include <sys/mman.h>
19963
19964 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19965 char *malloc ();
19966 #endif
19967
19968 /* This mess was copied from the GNU getpagesize.h.  */
19969 #ifndef HAVE_GETPAGESIZE
19970 # ifdef _SC_PAGESIZE
19971 #  define getpagesize() sysconf(_SC_PAGESIZE)
19972 # else /* no _SC_PAGESIZE */
19973 #  ifdef HAVE_SYS_PARAM_H
19974 #   include <sys/param.h>
19975 #   ifdef EXEC_PAGESIZE
19976 #    define getpagesize() EXEC_PAGESIZE
19977 #   else /* no EXEC_PAGESIZE */
19978 #    ifdef NBPG
19979 #     define getpagesize() NBPG * CLSIZE
19980 #     ifndef CLSIZE
19981 #      define CLSIZE 1
19982 #     endif /* no CLSIZE */
19983 #    else /* no NBPG */
19984 #     ifdef NBPC
19985 #      define getpagesize() NBPC
19986 #     else /* no NBPC */
19987 #      ifdef PAGESIZE
19988 #       define getpagesize() PAGESIZE
19989 #      endif /* PAGESIZE */
19990 #     endif /* no NBPC */
19991 #    endif /* no NBPG */
19992 #   endif /* no EXEC_PAGESIZE */
19993 #  else /* no HAVE_SYS_PARAM_H */
19994 #   define getpagesize() 8192   /* punt totally */
19995 #  endif /* no HAVE_SYS_PARAM_H */
19996 # endif /* no _SC_PAGESIZE */
19997
19998 #endif /* no HAVE_GETPAGESIZE */
19999
20000 int
20001 main ()
20002 {
20003   char *data, *data2, *data3;
20004   const char *cdata2;
20005   int i, pagesize;
20006   int fd, fd2;
20007
20008   pagesize = getpagesize ();
20009
20010   /* First, make a file with some known garbage in it. */
20011   data = (char *) malloc (pagesize);
20012   if (!data)
20013     return 1;
20014   for (i = 0; i < pagesize; ++i)
20015     *(data + i) = rand ();
20016   umask (0);
20017   fd = creat ("conftest.mmap", 0600);
20018   if (fd < 0)
20019     return 2;
20020   if (write (fd, data, pagesize) != pagesize)
20021     return 3;
20022   close (fd);
20023
20024   /* Next, check that the tail of a page is zero-filled.  File must have
20025      non-zero length, otherwise we risk SIGBUS for entire page.  */
20026   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
20027   if (fd2 < 0)
20028     return 4;
20029   cdata2 = "";
20030   if (write (fd2, cdata2, 1) != 1)
20031     return 5;
20032   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
20033   if (data2 == MAP_FAILED)
20034     return 6;
20035   for (i = 0; i < pagesize; ++i)
20036     if (*(data2 + i))
20037       return 7;
20038   close (fd2);
20039   if (munmap (data2, pagesize))
20040     return 8;
20041
20042   /* Next, try to mmap the file at a fixed address which already has
20043      something else allocated at it.  If we can, also make sure that
20044      we see the same garbage.  */
20045   fd = open ("conftest.mmap", O_RDWR);
20046   if (fd < 0)
20047     return 9;
20048   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20049                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20050     return 10;
20051   for (i = 0; i < pagesize; ++i)
20052     if (*(data + i) != *(data2 + i))
20053       return 11;
20054
20055   /* Finally, make sure that changes to the mapped area do not
20056      percolate back to the file as seen by read().  (This is a bug on
20057      some variants of i386 svr4.0.)  */
20058   for (i = 0; i < pagesize; ++i)
20059     *(data2 + i) = *(data2 + i) + 1;
20060   data3 = (char *) malloc (pagesize);
20061   if (!data3)
20062     return 12;
20063   if (read (fd, data3, pagesize) != pagesize)
20064     return 13;
20065   for (i = 0; i < pagesize; ++i)
20066     if (*(data + i) != *(data3 + i))
20067       return 14;
20068   close (fd);
20069   return 0;
20070 }
20071 _ACEOF
20072 if ac_fn_c_try_run "$LINENO"; then :
20073   ac_cv_func_mmap_fixed_mapped=yes
20074 else
20075   ac_cv_func_mmap_fixed_mapped=no
20076 fi
20077 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20078   conftest.$ac_objext conftest.beam conftest.$ac_ext
20079 fi
20080
20081 fi
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20083 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20084 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20085
20086 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20087
20088 fi
20089 rm -f conftest.mmap conftest.txt
20090
20091
20092     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20093 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20094 if ${ac_cv_gnu_library_2_1+:} false; then :
20095   $as_echo_n "(cached) " >&6
20096 else
20097   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20098 /* end confdefs.h.  */
20099
20100 #include <features.h>
20101 #ifdef __GNU_LIBRARY__
20102  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20103   Lucky GNU user
20104  #endif
20105 #endif
20106
20107 _ACEOF
20108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20109   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20110   ac_cv_gnu_library_2_1=yes
20111 else
20112   ac_cv_gnu_library_2_1=no
20113 fi
20114 rm -f conftest*
20115
20116
20117
20118 fi
20119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20120 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20121
20122     GLIBC21="$ac_cv_gnu_library_2_1"
20123
20124
20125
20126
20127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20128 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20129 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20130   $as_echo_n "(cached) " >&6
20131 else
20132
20133       if test "$cross_compiling" = yes; then :
20134
20135           # Guess based on the CPU.
20136           case "$host_cpu" in
20137             alpha* | i3456786 | m68k | s390*)
20138               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20139             *)
20140               gt_cv_int_divbyzero_sigfpe="guessing no";;
20141           esac
20142
20143 else
20144   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h.  */
20146
20147 #include <stdlib.h>
20148 #include <signal.h>
20149
20150 static void
20151 #ifdef __cplusplus
20152 sigfpe_handler (int sig)
20153 #else
20154 sigfpe_handler (sig) int sig;
20155 #endif
20156 {
20157   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20158   exit (sig != SIGFPE);
20159 }
20160
20161 int x = 1;
20162 int y = 0;
20163 int z;
20164 int nan;
20165
20166 int main ()
20167 {
20168   signal (SIGFPE, sigfpe_handler);
20169 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20170 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20171   signal (SIGTRAP, sigfpe_handler);
20172 #endif
20173 /* Linux/SPARC yields signal SIGILL.  */
20174 #if defined (__sparc__) && defined (__linux__)
20175   signal (SIGILL, sigfpe_handler);
20176 #endif
20177
20178   z = x / y;
20179   nan = y / y;
20180   exit (1);
20181 }
20182
20183 _ACEOF
20184 if ac_fn_c_try_run "$LINENO"; then :
20185   gt_cv_int_divbyzero_sigfpe=yes
20186 else
20187   gt_cv_int_divbyzero_sigfpe=no
20188 fi
20189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20190   conftest.$ac_objext conftest.beam conftest.$ac_ext
20191 fi
20192
20193
20194 fi
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20196 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20197   case "$gt_cv_int_divbyzero_sigfpe" in
20198     *yes) value=1;;
20199     *) value=0;;
20200   esac
20201
20202 cat >>confdefs.h <<_ACEOF
20203 #define INTDIV0_RAISES_SIGFPE $value
20204 _ACEOF
20205
20206
20207
20208   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20209 $as_echo_n "checking for unsigned long long... " >&6; }
20210 if ${ac_cv_type_unsigned_long_long+:} false; then :
20211   $as_echo_n "(cached) " >&6
20212 else
20213   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20214 /* end confdefs.h.  */
20215 unsigned long long ull = 1ULL; int i = 63;
20216 int
20217 main ()
20218 {
20219 unsigned long long ullmax = (unsigned long long) -1;
20220      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20221   ;
20222   return 0;
20223 }
20224 _ACEOF
20225 if ac_fn_c_try_link "$LINENO"; then :
20226   ac_cv_type_unsigned_long_long=yes
20227 else
20228   ac_cv_type_unsigned_long_long=no
20229 fi
20230 rm -f core conftest.err conftest.$ac_objext \
20231     conftest$ac_exeext conftest.$ac_ext
20232 fi
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20234 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20235   if test $ac_cv_type_unsigned_long_long = yes; then
20236
20237 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20238
20239   fi
20240
20241
20242
20243
20244   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20245
20246     test $ac_cv_type_unsigned_long_long = yes \
20247       && ac_type='unsigned long long' \
20248       || ac_type='unsigned long'
20249
20250 cat >>confdefs.h <<_ACEOF
20251 #define uintmax_t $ac_type
20252 _ACEOF
20253
20254   else
20255
20256 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20257
20258   fi
20259
20260
20261   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20262 $as_echo_n "checking for inttypes.h... " >&6; }
20263 if ${gt_cv_header_inttypes_h+:} false; then :
20264   $as_echo_n "(cached) " >&6
20265 else
20266
20267     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20268 /* end confdefs.h.  */
20269 #include <sys/types.h>
20270 #include <inttypes.h>
20271 int
20272 main ()
20273 {
20274
20275   ;
20276   return 0;
20277 }
20278 _ACEOF
20279 if ac_fn_c_try_compile "$LINENO"; then :
20280   gt_cv_header_inttypes_h=yes
20281 else
20282   gt_cv_header_inttypes_h=no
20283 fi
20284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20285
20286 fi
20287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20288 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20289   if test $gt_cv_header_inttypes_h = yes; then
20290
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_INTTYPES_H 1
20293 _ACEOF
20294
20295   fi
20296
20297
20298
20299   if test $gt_cv_header_inttypes_h = yes; then
20300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20301 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20302 if ${gt_cv_inttypes_pri_broken+:} false; then :
20303   $as_echo_n "(cached) " >&6
20304 else
20305
20306         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h.  */
20308 #include <inttypes.h>
20309 #ifdef PRId32
20310 char *p = PRId32;
20311 #endif
20312
20313 int
20314 main ()
20315 {
20316
20317   ;
20318   return 0;
20319 }
20320 _ACEOF
20321 if ac_fn_c_try_compile "$LINENO"; then :
20322   gt_cv_inttypes_pri_broken=no
20323 else
20324   gt_cv_inttypes_pri_broken=yes
20325 fi
20326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20327
20328 fi
20329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20330 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20331   fi
20332   if test "$gt_cv_inttypes_pri_broken" = yes; then
20333
20334 cat >>confdefs.h <<_ACEOF
20335 #define PRI_MACROS_BROKEN 1
20336 _ACEOF
20337
20338   fi
20339
20340
20341   for ac_header in stdint.h
20342 do :
20343   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20344 if test "x$ac_cv_header_stdint_h" = xyes; then :
20345   cat >>confdefs.h <<_ACEOF
20346 #define HAVE_STDINT_H 1
20347 _ACEOF
20348
20349 fi
20350
20351 done
20352
20353     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20354 $as_echo_n "checking for SIZE_MAX... " >&6; }
20355   result=
20356   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20357 /* end confdefs.h.  */
20358
20359 #include <limits.h>
20360 #if HAVE_STDINT_H
20361 #include <stdint.h>
20362 #endif
20363 #ifdef SIZE_MAX
20364 Found it
20365 #endif
20366
20367 _ACEOF
20368 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20369   $EGREP "Found it" >/dev/null 2>&1; then :
20370   result=yes
20371 fi
20372 rm -f conftest*
20373
20374   if test -z "$result"; then
20375                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20376
20377 else
20378   result=?
20379 fi
20380
20381
20382     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20383
20384 else
20385   result=?
20386 fi
20387
20388
20389     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20390
20391 else
20392   result=?
20393 fi
20394
20395
20396     if test "$fits_in_uint" = 1; then
20397                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h.  */
20399 #include <stddef.h>
20400         extern size_t foo;
20401         extern unsigned long foo;
20402
20403 int
20404 main ()
20405 {
20406
20407   ;
20408   return 0;
20409 }
20410 _ACEOF
20411 if ac_fn_c_try_compile "$LINENO"; then :
20412   fits_in_uint=0
20413 fi
20414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20415     fi
20416     if test -z "$result"; then
20417       if test "$fits_in_uint" = 1; then
20418         result="$res_hi$res_lo"U
20419       else
20420         result="$res_hi$res_lo"UL
20421       fi
20422     else
20423             result='~(size_t)0'
20424     fi
20425   fi
20426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20427 $as_echo "$result" >&6; }
20428   if test "$result" != yes; then
20429
20430 cat >>confdefs.h <<_ACEOF
20431 #define SIZE_MAX $result
20432 _ACEOF
20433
20434   fi
20435
20436
20437
20438
20439   for ac_header in stdint.h
20440 do :
20441   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20442 if test "x$ac_cv_header_stdint_h" = xyes; then :
20443   cat >>confdefs.h <<_ACEOF
20444 #define HAVE_STDINT_H 1
20445 _ACEOF
20446
20447 fi
20448
20449 done
20450
20451
20452
20453
20454
20455
20456
20457
20458   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20459 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20460
20461 else
20462
20463 $as_echo "#define ptrdiff_t long" >>confdefs.h
20464
20465
20466 fi
20467
20468   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20469 stdlib.h string.h unistd.h sys/param.h
20470 do :
20471   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20472 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20473 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20474   cat >>confdefs.h <<_ACEOF
20475 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20476 _ACEOF
20477
20478 fi
20479
20480 done
20481
20482   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20483 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20484 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20485 __fsetlocking
20486 do :
20487   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20488 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20489 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20490   cat >>confdefs.h <<_ACEOF
20491 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20492 _ACEOF
20493
20494 fi
20495 done
20496
20497
20498
20499   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20500 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20501 if ${ac_cv_have_decl__snprintf+:} false; then :
20502   $as_echo_n "(cached) " >&6
20503 else
20504   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20505 /* end confdefs.h.  */
20506 #include <stdio.h>
20507 int
20508 main ()
20509 {
20510
20511 #ifndef _snprintf
20512   char *p = (char *) _snprintf;
20513 #endif
20514
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 if ac_fn_c_try_compile "$LINENO"; then :
20520   ac_cv_have_decl__snprintf=yes
20521 else
20522   ac_cv_have_decl__snprintf=no
20523 fi
20524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20525 fi
20526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20527 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20528   if test $ac_cv_have_decl__snprintf = yes; then
20529     gt_value=1
20530   else
20531     gt_value=0
20532   fi
20533
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_DECL__SNPRINTF $gt_value
20536 _ACEOF
20537
20538
20539
20540   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20541 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20542 if ${ac_cv_have_decl__snwprintf+:} false; then :
20543   $as_echo_n "(cached) " >&6
20544 else
20545   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h.  */
20547 #include <stdio.h>
20548 int
20549 main ()
20550 {
20551
20552 #ifndef _snwprintf
20553   char *p = (char *) _snwprintf;
20554 #endif
20555
20556   ;
20557   return 0;
20558 }
20559 _ACEOF
20560 if ac_fn_c_try_compile "$LINENO"; then :
20561   ac_cv_have_decl__snwprintf=yes
20562 else
20563   ac_cv_have_decl__snwprintf=no
20564 fi
20565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20566 fi
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20568 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20569   if test $ac_cv_have_decl__snwprintf = yes; then
20570     gt_value=1
20571   else
20572     gt_value=0
20573   fi
20574
20575 cat >>confdefs.h <<_ACEOF
20576 #define HAVE_DECL__SNWPRINTF $gt_value
20577 _ACEOF
20578
20579
20580
20581
20582   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20583 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20584 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20585   $as_echo_n "(cached) " >&6
20586 else
20587   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20588 /* end confdefs.h.  */
20589 #include <stdio.h>
20590 int
20591 main ()
20592 {
20593
20594 #ifndef feof_unlocked
20595   char *p = (char *) feof_unlocked;
20596 #endif
20597
20598   ;
20599   return 0;
20600 }
20601 _ACEOF
20602 if ac_fn_c_try_compile "$LINENO"; then :
20603   ac_cv_have_decl_feof_unlocked=yes
20604 else
20605   ac_cv_have_decl_feof_unlocked=no
20606 fi
20607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20608 fi
20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20610 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20611   if test $ac_cv_have_decl_feof_unlocked = yes; then
20612     gt_value=1
20613   else
20614     gt_value=0
20615   fi
20616
20617 cat >>confdefs.h <<_ACEOF
20618 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20619 _ACEOF
20620
20621
20622
20623   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20624 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20625 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20626   $as_echo_n "(cached) " >&6
20627 else
20628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20629 /* end confdefs.h.  */
20630 #include <stdio.h>
20631 int
20632 main ()
20633 {
20634
20635 #ifndef fgets_unlocked
20636   char *p = (char *) fgets_unlocked;
20637 #endif
20638
20639   ;
20640   return 0;
20641 }
20642 _ACEOF
20643 if ac_fn_c_try_compile "$LINENO"; then :
20644   ac_cv_have_decl_fgets_unlocked=yes
20645 else
20646   ac_cv_have_decl_fgets_unlocked=no
20647 fi
20648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20649 fi
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20651 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20652   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20653     gt_value=1
20654   else
20655     gt_value=0
20656   fi
20657
20658 cat >>confdefs.h <<_ACEOF
20659 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20660 _ACEOF
20661
20662
20663
20664   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20665 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20666 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20667   $as_echo_n "(cached) " >&6
20668 else
20669   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20670 /* end confdefs.h.  */
20671 #include <stdio.h>
20672 int
20673 main ()
20674 {
20675
20676 #ifndef getc_unlocked
20677   char *p = (char *) getc_unlocked;
20678 #endif
20679
20680   ;
20681   return 0;
20682 }
20683 _ACEOF
20684 if ac_fn_c_try_compile "$LINENO"; then :
20685   ac_cv_have_decl_getc_unlocked=yes
20686 else
20687   ac_cv_have_decl_getc_unlocked=no
20688 fi
20689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20690 fi
20691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20692 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20693   if test $ac_cv_have_decl_getc_unlocked = yes; then
20694     gt_value=1
20695   else
20696     gt_value=0
20697   fi
20698
20699 cat >>confdefs.h <<_ACEOF
20700 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20701 _ACEOF
20702
20703
20704
20705   case $gt_cv_func_printf_posix in
20706     *yes) HAVE_POSIX_PRINTF=1 ;;
20707     *) HAVE_POSIX_PRINTF=0 ;;
20708   esac
20709
20710   if test "$ac_cv_func_asprintf" = yes; then
20711     HAVE_ASPRINTF=1
20712   else
20713     HAVE_ASPRINTF=0
20714   fi
20715
20716   if test "$ac_cv_func_snprintf" = yes; then
20717     HAVE_SNPRINTF=1
20718   else
20719     HAVE_SNPRINTF=0
20720   fi
20721
20722   if test "$ac_cv_func_wprintf" = yes; then
20723     HAVE_WPRINTF=1
20724   else
20725     HAVE_WPRINTF=0
20726   fi
20727
20728
20729
20730
20731
20732
20733
20734           am_save_CPPFLAGS="$CPPFLAGS"
20735
20736   for element in $INCICONV; do
20737     haveit=
20738     for x in $CPPFLAGS; do
20739
20740   acl_save_prefix="$prefix"
20741   prefix="$acl_final_prefix"
20742   acl_save_exec_prefix="$exec_prefix"
20743   exec_prefix="$acl_final_exec_prefix"
20744   eval x=\"$x\"
20745   exec_prefix="$acl_save_exec_prefix"
20746   prefix="$acl_save_prefix"
20747
20748       if test "X$x" = "X$element"; then
20749         haveit=yes
20750         break
20751       fi
20752     done
20753     if test -z "$haveit"; then
20754       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20755     fi
20756   done
20757
20758
20759   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20760 $as_echo_n "checking for iconv... " >&6; }
20761 if ${am_cv_func_iconv+:} false; then :
20762   $as_echo_n "(cached) " >&6
20763 else
20764
20765     am_cv_func_iconv="no, consider installing GNU libiconv"
20766     am_cv_lib_iconv=no
20767     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20768 /* end confdefs.h.  */
20769 #include <stdlib.h>
20770 #include <iconv.h>
20771 int
20772 main ()
20773 {
20774 iconv_t cd = iconv_open("","");
20775        iconv(cd,NULL,NULL,NULL,NULL);
20776        iconv_close(cd);
20777   ;
20778   return 0;
20779 }
20780 _ACEOF
20781 if ac_fn_c_try_link "$LINENO"; then :
20782   am_cv_func_iconv=yes
20783 fi
20784 rm -f core conftest.err conftest.$ac_objext \
20785     conftest$ac_exeext conftest.$ac_ext
20786     if test "$am_cv_func_iconv" != yes; then
20787       am_save_LIBS="$LIBS"
20788       LIBS="$LIBS $LIBICONV"
20789       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20790 /* end confdefs.h.  */
20791 #include <stdlib.h>
20792 #include <iconv.h>
20793 int
20794 main ()
20795 {
20796 iconv_t cd = iconv_open("","");
20797          iconv(cd,NULL,NULL,NULL,NULL);
20798          iconv_close(cd);
20799   ;
20800   return 0;
20801 }
20802 _ACEOF
20803 if ac_fn_c_try_link "$LINENO"; then :
20804   am_cv_lib_iconv=yes
20805         am_cv_func_iconv=yes
20806 fi
20807 rm -f core conftest.err conftest.$ac_objext \
20808     conftest$ac_exeext conftest.$ac_ext
20809       LIBS="$am_save_LIBS"
20810     fi
20811
20812 fi
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20814 $as_echo "$am_cv_func_iconv" >&6; }
20815   if test "$am_cv_func_iconv" = yes; then
20816
20817 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20818
20819   fi
20820   if test "$am_cv_lib_iconv" = yes; then
20821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20822 $as_echo_n "checking how to link with libiconv... " >&6; }
20823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20824 $as_echo "$LIBICONV" >&6; }
20825   else
20826             CPPFLAGS="$am_save_CPPFLAGS"
20827     LIBICONV=
20828     LTLIBICONV=
20829   fi
20830
20831
20832
20833   if test "$am_cv_func_iconv" = yes; then
20834     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20835 $as_echo_n "checking for iconv declaration... " >&6; }
20836     if ${am_cv_proto_iconv+:} false; then :
20837   $as_echo_n "(cached) " >&6
20838 else
20839
20840       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h.  */
20842
20843 #include <stdlib.h>
20844 #include <iconv.h>
20845 extern
20846 #ifdef __cplusplus
20847 "C"
20848 #endif
20849 #if defined(__STDC__) || defined(__cplusplus)
20850 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20851 #else
20852 size_t iconv();
20853 #endif
20854
20855 int
20856 main ()
20857 {
20858
20859   ;
20860   return 0;
20861 }
20862 _ACEOF
20863 if ac_fn_c_try_compile "$LINENO"; then :
20864   am_cv_proto_iconv_arg1=""
20865 else
20866   am_cv_proto_iconv_arg1="const"
20867 fi
20868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20869       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);"
20870 fi
20871
20872     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20874          }$am_cv_proto_iconv" >&5
20875 $as_echo "${ac_t:-
20876          }$am_cv_proto_iconv" >&6; }
20877
20878 cat >>confdefs.h <<_ACEOF
20879 #define ICONV_CONST $am_cv_proto_iconv_arg1
20880 _ACEOF
20881
20882   fi
20883
20884
20885   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20886 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20887 if ${am_cv_langinfo_codeset+:} false; then :
20888   $as_echo_n "(cached) " >&6
20889 else
20890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h.  */
20892 #include <langinfo.h>
20893 int
20894 main ()
20895 {
20896 char* cs = nl_langinfo(CODESET);
20897   ;
20898   return 0;
20899 }
20900 _ACEOF
20901 if ac_fn_c_try_link "$LINENO"; then :
20902   am_cv_langinfo_codeset=yes
20903 else
20904   am_cv_langinfo_codeset=no
20905 fi
20906 rm -f core conftest.err conftest.$ac_objext \
20907     conftest$ac_exeext conftest.$ac_ext
20908
20909 fi
20910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20911 $as_echo "$am_cv_langinfo_codeset" >&6; }
20912   if test $am_cv_langinfo_codeset = yes; then
20913
20914 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20915
20916   fi
20917
20918   if test $ac_cv_header_locale_h = yes; then
20919
20920   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20921 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20922 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20923   $as_echo_n "(cached) " >&6
20924 else
20925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20926 /* end confdefs.h.  */
20927 #include <locale.h>
20928 int
20929 main ()
20930 {
20931 return LC_MESSAGES
20932   ;
20933   return 0;
20934 }
20935 _ACEOF
20936 if ac_fn_c_try_link "$LINENO"; then :
20937   gt_cv_val_LC_MESSAGES=yes
20938 else
20939   gt_cv_val_LC_MESSAGES=no
20940 fi
20941 rm -f core conftest.err conftest.$ac_objext \
20942     conftest$ac_exeext conftest.$ac_ext
20943 fi
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20945 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20946   if test $gt_cv_val_LC_MESSAGES = yes; then
20947
20948 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20949
20950   fi
20951
20952   fi
20953
20954   if test -n "$INTL_MACOSX_LIBS"; then
20955     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20956   fi
20957
20958                       for ac_prog in bison
20959 do
20960   # Extract the first word of "$ac_prog", so it can be a program name with args.
20961 set dummy $ac_prog; ac_word=$2
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20963 $as_echo_n "checking for $ac_word... " >&6; }
20964 if ${ac_cv_prog_INTLBISON+:} false; then :
20965   $as_echo_n "(cached) " >&6
20966 else
20967   if test -n "$INTLBISON"; then
20968   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20969 else
20970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20971 for as_dir in $PATH
20972 do
20973   IFS=$as_save_IFS
20974   test -z "$as_dir" && as_dir=.
20975     for ac_exec_ext in '' $ac_executable_extensions; do
20976   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20977     ac_cv_prog_INTLBISON="$ac_prog"
20978     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20979     break 2
20980   fi
20981 done
20982   done
20983 IFS=$as_save_IFS
20984
20985 fi
20986 fi
20987 INTLBISON=$ac_cv_prog_INTLBISON
20988 if test -n "$INTLBISON"; then
20989   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20990 $as_echo "$INTLBISON" >&6; }
20991 else
20992   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20993 $as_echo "no" >&6; }
20994 fi
20995
20996
20997   test -n "$INTLBISON" && break
20998 done
20999
21000   if test -z "$INTLBISON"; then
21001     ac_verc_fail=yes
21002   else
21003         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
21004 $as_echo_n "checking version of bison... " >&6; }
21005     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
21006     case $ac_prog_version in
21007       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
21008       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
21009          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
21010       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
21011     esac
21012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
21013 $as_echo "$ac_prog_version" >&6; }
21014   fi
21015   if test $ac_verc_fail = yes; then
21016     INTLBISON=:
21017   fi
21018
21019
21020
21021
21022
21023
21024
21025
21026
21027
21028
21029
21030
21031
21032
21033
21034     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21035 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
21036 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
21037   $as_echo_n "(cached) " >&6
21038 else
21039   gt_save_CPPFLAGS="$CPPFLAGS"
21040      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21041      gt_save_LIBS="$LIBS"
21042      LIBS="$LIBS -framework CoreFoundation"
21043      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21044 /* end confdefs.h.  */
21045 #include <CFPreferences.h>
21046 int
21047 main ()
21048 {
21049 CFPreferencesCopyAppValue(NULL, NULL)
21050   ;
21051   return 0;
21052 }
21053 _ACEOF
21054 if ac_fn_c_try_link "$LINENO"; then :
21055   gt_cv_func_CFPreferencesCopyAppValue=yes
21056 else
21057   gt_cv_func_CFPreferencesCopyAppValue=no
21058 fi
21059 rm -f core conftest.err conftest.$ac_objext \
21060     conftest$ac_exeext conftest.$ac_ext
21061      CPPFLAGS="$gt_save_CPPFLAGS"
21062      LIBS="$gt_save_LIBS"
21063 fi
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21065 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21066   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21067
21068 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21069
21070   fi
21071     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21072 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21073 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21074   $as_echo_n "(cached) " >&6
21075 else
21076   gt_save_CPPFLAGS="$CPPFLAGS"
21077      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21078      gt_save_LIBS="$LIBS"
21079      LIBS="$LIBS -framework CoreFoundation"
21080      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21081 /* end confdefs.h.  */
21082 #include <CFLocale.h>
21083 int
21084 main ()
21085 {
21086 CFLocaleCopyCurrent();
21087   ;
21088   return 0;
21089 }
21090 _ACEOF
21091 if ac_fn_c_try_link "$LINENO"; then :
21092   gt_cv_func_CFLocaleCopyCurrent=yes
21093 else
21094   gt_cv_func_CFLocaleCopyCurrent=no
21095 fi
21096 rm -f core conftest.err conftest.$ac_objext \
21097     conftest$ac_exeext conftest.$ac_ext
21098      CPPFLAGS="$gt_save_CPPFLAGS"
21099      LIBS="$gt_save_LIBS"
21100 fi
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21102 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21103   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21104
21105 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21106
21107   fi
21108   INTL_MACOSX_LIBS=
21109   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21110     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21111   fi
21112
21113
21114
21115
21116   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21117 $as_echo_n "checking whether NLS is requested... " >&6; }
21118     # Check whether --enable-nls was given.
21119 if test "${enable_nls+set}" = set; then :
21120   enableval=$enable_nls; USE_NLS=$enableval
21121 else
21122   USE_NLS=yes
21123 fi
21124
21125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21126 $as_echo "$USE_NLS" >&6; }
21127
21128
21129
21130
21131     BUILD_INCLUDED_LIBINTL=no
21132     USE_INCLUDED_LIBINTL=no
21133
21134   LIBINTL=
21135   LTLIBINTL=
21136   POSUB=
21137
21138     if test "$USE_NLS" = "yes"; then
21139     gt_use_preinstalled_gnugettext=no
21140
21141       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21142 $as_echo_n "checking whether included gettext is requested... " >&6; }
21143
21144 # Check whether --with-included-gettext was given.
21145 if test "${with_included_gettext+set}" = set; then :
21146   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21147 else
21148   nls_cv_force_use_gnu_gettext=no
21149 fi
21150
21151       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21152 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21153
21154       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21155       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21156
21157
21158
21159
21160
21161
21162         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21163 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21164 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21165   $as_echo_n "(cached) " >&6
21166 else
21167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168 /* end confdefs.h.  */
21169 #include <libintl.h>
21170 extern int _nl_msg_cat_cntr;
21171 extern int *_nl_domain_bindings;
21172 int
21173 main ()
21174 {
21175 bindtextdomain ("", "");
21176 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21177   ;
21178   return 0;
21179 }
21180 _ACEOF
21181 if ac_fn_c_try_link "$LINENO"; then :
21182   gt_cv_func_gnugettext1_libc=yes
21183 else
21184   gt_cv_func_gnugettext1_libc=no
21185 fi
21186 rm -f core conftest.err conftest.$ac_objext \
21187     conftest$ac_exeext conftest.$ac_ext
21188 fi
21189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21190 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21191
21192         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21193
21194
21195
21196     use_additional=yes
21197
21198   acl_save_prefix="$prefix"
21199   prefix="$acl_final_prefix"
21200   acl_save_exec_prefix="$exec_prefix"
21201   exec_prefix="$acl_final_exec_prefix"
21202
21203     eval additional_includedir=\"$includedir\"
21204     eval additional_libdir=\"$libdir\"
21205
21206   exec_prefix="$acl_save_exec_prefix"
21207   prefix="$acl_save_prefix"
21208
21209
21210 # Check whether --with-libintl-prefix was given.
21211 if test "${with_libintl_prefix+set}" = set; then :
21212   withval=$with_libintl_prefix;
21213     if test "X$withval" = "Xno"; then
21214       use_additional=no
21215     else
21216       if test "X$withval" = "X"; then
21217
21218   acl_save_prefix="$prefix"
21219   prefix="$acl_final_prefix"
21220   acl_save_exec_prefix="$exec_prefix"
21221   exec_prefix="$acl_final_exec_prefix"
21222
21223           eval additional_includedir=\"$includedir\"
21224           eval additional_libdir=\"$libdir\"
21225
21226   exec_prefix="$acl_save_exec_prefix"
21227   prefix="$acl_save_prefix"
21228
21229       else
21230         additional_includedir="$withval/include"
21231         additional_libdir="$withval/lib"
21232       fi
21233     fi
21234
21235 fi
21236
21237       LIBINTL=
21238   LTLIBINTL=
21239   INCINTL=
21240   rpathdirs=
21241   ltrpathdirs=
21242   names_already_handled=
21243   names_next_round='intl '
21244   while test -n "$names_next_round"; do
21245     names_this_round="$names_next_round"
21246     names_next_round=
21247     for name in $names_this_round; do
21248       already_handled=
21249       for n in $names_already_handled; do
21250         if test "$n" = "$name"; then
21251           already_handled=yes
21252           break
21253         fi
21254       done
21255       if test -z "$already_handled"; then
21256         names_already_handled="$names_already_handled $name"
21257                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21258         eval value=\"\$HAVE_LIB$uppername\"
21259         if test -n "$value"; then
21260           if test "$value" = yes; then
21261             eval value=\"\$LIB$uppername\"
21262             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21263             eval value=\"\$LTLIB$uppername\"
21264             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21265           else
21266                                     :
21267           fi
21268         else
21269                               found_dir=
21270           found_la=
21271           found_so=
21272           found_a=
21273           if test $use_additional = yes; then
21274             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21275               found_dir="$additional_libdir"
21276               found_so="$additional_libdir/lib$name.$shlibext"
21277               if test -f "$additional_libdir/lib$name.la"; then
21278                 found_la="$additional_libdir/lib$name.la"
21279               fi
21280             else
21281               if test -f "$additional_libdir/lib$name.$libext"; then
21282                 found_dir="$additional_libdir"
21283                 found_a="$additional_libdir/lib$name.$libext"
21284                 if test -f "$additional_libdir/lib$name.la"; then
21285                   found_la="$additional_libdir/lib$name.la"
21286                 fi
21287               fi
21288             fi
21289           fi
21290           if test "X$found_dir" = "X"; then
21291             for x in $LDFLAGS $LTLIBINTL; do
21292
21293   acl_save_prefix="$prefix"
21294   prefix="$acl_final_prefix"
21295   acl_save_exec_prefix="$exec_prefix"
21296   exec_prefix="$acl_final_exec_prefix"
21297   eval x=\"$x\"
21298   exec_prefix="$acl_save_exec_prefix"
21299   prefix="$acl_save_prefix"
21300
21301               case "$x" in
21302                 -L*)
21303                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21304                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21305                     found_dir="$dir"
21306                     found_so="$dir/lib$name.$shlibext"
21307                     if test -f "$dir/lib$name.la"; then
21308                       found_la="$dir/lib$name.la"
21309                     fi
21310                   else
21311                     if test -f "$dir/lib$name.$libext"; then
21312                       found_dir="$dir"
21313                       found_a="$dir/lib$name.$libext"
21314                       if test -f "$dir/lib$name.la"; then
21315                         found_la="$dir/lib$name.la"
21316                       fi
21317                     fi
21318                   fi
21319                   ;;
21320               esac
21321               if test "X$found_dir" != "X"; then
21322                 break
21323               fi
21324             done
21325           fi
21326           if test "X$found_dir" != "X"; then
21327                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21328             if test "X$found_so" != "X"; then
21329                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21330                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21331               else
21332                                                                                 haveit=
21333                 for x in $ltrpathdirs; do
21334                   if test "X$x" = "X$found_dir"; then
21335                     haveit=yes
21336                     break
21337                   fi
21338                 done
21339                 if test -z "$haveit"; then
21340                   ltrpathdirs="$ltrpathdirs $found_dir"
21341                 fi
21342                                 if test "$hardcode_direct" = yes; then
21343                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21344                 else
21345                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21346                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21347                                                             haveit=
21348                     for x in $rpathdirs; do
21349                       if test "X$x" = "X$found_dir"; then
21350                         haveit=yes
21351                         break
21352                       fi
21353                     done
21354                     if test -z "$haveit"; then
21355                       rpathdirs="$rpathdirs $found_dir"
21356                     fi
21357                   else
21358                                                                                 haveit=
21359                     for x in $LDFLAGS $LIBINTL; do
21360
21361   acl_save_prefix="$prefix"
21362   prefix="$acl_final_prefix"
21363   acl_save_exec_prefix="$exec_prefix"
21364   exec_prefix="$acl_final_exec_prefix"
21365   eval x=\"$x\"
21366   exec_prefix="$acl_save_exec_prefix"
21367   prefix="$acl_save_prefix"
21368
21369                       if test "X$x" = "X-L$found_dir"; then
21370                         haveit=yes
21371                         break
21372                       fi
21373                     done
21374                     if test -z "$haveit"; then
21375                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21376                     fi
21377                     if test "$hardcode_minus_L" != no; then
21378                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21379                     else
21380                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21381                     fi
21382                   fi
21383                 fi
21384               fi
21385             else
21386               if test "X$found_a" != "X"; then
21387                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21388               else
21389                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21390               fi
21391             fi
21392                         additional_includedir=
21393             case "$found_dir" in
21394               */lib | */lib/)
21395                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21396                 additional_includedir="$basedir/include"
21397                 ;;
21398             esac
21399             if test "X$additional_includedir" != "X"; then
21400                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21401                 haveit=
21402                 if test "X$additional_includedir" = "X/usr/local/include"; then
21403                   if test -n "$GCC"; then
21404                     case $host_os in
21405                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21406                     esac
21407                   fi
21408                 fi
21409                 if test -z "$haveit"; then
21410                   for x in $CPPFLAGS $INCINTL; do
21411
21412   acl_save_prefix="$prefix"
21413   prefix="$acl_final_prefix"
21414   acl_save_exec_prefix="$exec_prefix"
21415   exec_prefix="$acl_final_exec_prefix"
21416   eval x=\"$x\"
21417   exec_prefix="$acl_save_exec_prefix"
21418   prefix="$acl_save_prefix"
21419
21420                     if test "X$x" = "X-I$additional_includedir"; then
21421                       haveit=yes
21422                       break
21423                     fi
21424                   done
21425                   if test -z "$haveit"; then
21426                     if test -d "$additional_includedir"; then
21427                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21428                     fi
21429                   fi
21430                 fi
21431               fi
21432             fi
21433                         if test -n "$found_la"; then
21434                                                         save_libdir="$libdir"
21435               case "$found_la" in
21436                 */* | *\\*) . "$found_la" ;;
21437                 *) . "./$found_la" ;;
21438               esac
21439               libdir="$save_libdir"
21440                             for dep in $dependency_libs; do
21441                 case "$dep" in
21442                   -L*)
21443                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21444                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21445                       haveit=
21446                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21447                         if test -n "$GCC"; then
21448                           case $host_os in
21449                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21450                           esac
21451                         fi
21452                       fi
21453                       if test -z "$haveit"; then
21454                         haveit=
21455                         for x in $LDFLAGS $LIBINTL; do
21456
21457   acl_save_prefix="$prefix"
21458   prefix="$acl_final_prefix"
21459   acl_save_exec_prefix="$exec_prefix"
21460   exec_prefix="$acl_final_exec_prefix"
21461   eval x=\"$x\"
21462   exec_prefix="$acl_save_exec_prefix"
21463   prefix="$acl_save_prefix"
21464
21465                           if test "X$x" = "X-L$additional_libdir"; then
21466                             haveit=yes
21467                             break
21468                           fi
21469                         done
21470                         if test -z "$haveit"; then
21471                           if test -d "$additional_libdir"; then
21472                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21473                           fi
21474                         fi
21475                         haveit=
21476                         for x in $LDFLAGS $LTLIBINTL; do
21477
21478   acl_save_prefix="$prefix"
21479   prefix="$acl_final_prefix"
21480   acl_save_exec_prefix="$exec_prefix"
21481   exec_prefix="$acl_final_exec_prefix"
21482   eval x=\"$x\"
21483   exec_prefix="$acl_save_exec_prefix"
21484   prefix="$acl_save_prefix"
21485
21486                           if test "X$x" = "X-L$additional_libdir"; then
21487                             haveit=yes
21488                             break
21489                           fi
21490                         done
21491                         if test -z "$haveit"; then
21492                           if test -d "$additional_libdir"; then
21493                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21494                           fi
21495                         fi
21496                       fi
21497                     fi
21498                     ;;
21499                   -R*)
21500                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21501                     if test "$enable_rpath" != no; then
21502                                                                   haveit=
21503                       for x in $rpathdirs; do
21504                         if test "X$x" = "X$dir"; then
21505                           haveit=yes
21506                           break
21507                         fi
21508                       done
21509                       if test -z "$haveit"; then
21510                         rpathdirs="$rpathdirs $dir"
21511                       fi
21512                                                                   haveit=
21513                       for x in $ltrpathdirs; do
21514                         if test "X$x" = "X$dir"; then
21515                           haveit=yes
21516                           break
21517                         fi
21518                       done
21519                       if test -z "$haveit"; then
21520                         ltrpathdirs="$ltrpathdirs $dir"
21521                       fi
21522                     fi
21523                     ;;
21524                   -l*)
21525                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21526                     ;;
21527                   *.la)
21528                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21529                     ;;
21530                   *)
21531                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21532                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21533                     ;;
21534                 esac
21535               done
21536             fi
21537           else
21538                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21539             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21540           fi
21541         fi
21542       fi
21543     done
21544   done
21545   if test "X$rpathdirs" != "X"; then
21546     if test -n "$hardcode_libdir_separator"; then
21547                         alldirs=
21548       for found_dir in $rpathdirs; do
21549         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21550       done
21551             acl_save_libdir="$libdir"
21552       libdir="$alldirs"
21553       eval flag=\"$hardcode_libdir_flag_spec\"
21554       libdir="$acl_save_libdir"
21555       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21556     else
21557             for found_dir in $rpathdirs; do
21558         acl_save_libdir="$libdir"
21559         libdir="$found_dir"
21560         eval flag=\"$hardcode_libdir_flag_spec\"
21561         libdir="$acl_save_libdir"
21562         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21563       done
21564     fi
21565   fi
21566   if test "X$ltrpathdirs" != "X"; then
21567             for found_dir in $ltrpathdirs; do
21568       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21569     done
21570   fi
21571
21572           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21573 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21574 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21575   $as_echo_n "(cached) " >&6
21576 else
21577   gt_save_CPPFLAGS="$CPPFLAGS"
21578             CPPFLAGS="$CPPFLAGS $INCINTL"
21579             gt_save_LIBS="$LIBS"
21580             LIBS="$LIBS $LIBINTL"
21581                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21582 /* end confdefs.h.  */
21583 #include <libintl.h>
21584 extern int _nl_msg_cat_cntr;
21585 extern
21586 #ifdef __cplusplus
21587 "C"
21588 #endif
21589 const char *_nl_expand_alias (const char *);
21590 int
21591 main ()
21592 {
21593 bindtextdomain ("", "");
21594 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21595   ;
21596   return 0;
21597 }
21598 _ACEOF
21599 if ac_fn_c_try_link "$LINENO"; then :
21600   gt_cv_func_gnugettext1_libintl=yes
21601 else
21602   gt_cv_func_gnugettext1_libintl=no
21603 fi
21604 rm -f core conftest.err conftest.$ac_objext \
21605     conftest$ac_exeext conftest.$ac_ext
21606                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21607               LIBS="$LIBS $LIBICONV"
21608               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21609 /* end confdefs.h.  */
21610 #include <libintl.h>
21611 extern int _nl_msg_cat_cntr;
21612 extern
21613 #ifdef __cplusplus
21614 "C"
21615 #endif
21616 const char *_nl_expand_alias (const char *);
21617 int
21618 main ()
21619 {
21620 bindtextdomain ("", "");
21621 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21622   ;
21623   return 0;
21624 }
21625 _ACEOF
21626 if ac_fn_c_try_link "$LINENO"; then :
21627   LIBINTL="$LIBINTL $LIBICONV"
21628                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21629                 gt_cv_func_gnugettext1_libintl=yes
21630
21631 fi
21632 rm -f core conftest.err conftest.$ac_objext \
21633     conftest$ac_exeext conftest.$ac_ext
21634             fi
21635             CPPFLAGS="$gt_save_CPPFLAGS"
21636             LIBS="$gt_save_LIBS"
21637 fi
21638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21639 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21640         fi
21641
21642                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21643            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21644                 && test "$PACKAGE" != gettext-runtime \
21645                 && test "$PACKAGE" != gettext-tools; }; then
21646           gt_use_preinstalled_gnugettext=yes
21647         else
21648                     LIBINTL=
21649           LTLIBINTL=
21650           INCINTL=
21651         fi
21652
21653
21654         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21655                               nls_cv_use_gnu_gettext=yes
21656         fi
21657       fi
21658
21659       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21660                 BUILD_INCLUDED_LIBINTL=yes
21661         USE_INCLUDED_LIBINTL=yes
21662         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21663         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21664         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21665       fi
21666
21667       CATOBJEXT=
21668       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21669          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21670                 CATOBJEXT=.gmo
21671       fi
21672
21673
21674     if test -n "$INTL_MACOSX_LIBS"; then
21675       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21676          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21677                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21678         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21679       fi
21680     fi
21681
21682     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21683        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21684
21685 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21686
21687     else
21688       USE_NLS=no
21689     fi
21690   fi
21691
21692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21693 $as_echo_n "checking whether to use NLS... " >&6; }
21694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21695 $as_echo "$USE_NLS" >&6; }
21696   if test "$USE_NLS" = "yes"; then
21697     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21698 $as_echo_n "checking where the gettext function comes from... " >&6; }
21699     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21700       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21701         gt_source="external libintl"
21702       else
21703         gt_source="libc"
21704       fi
21705     else
21706       gt_source="included intl directory"
21707     fi
21708     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21709 $as_echo "$gt_source" >&6; }
21710   fi
21711
21712   if test "$USE_NLS" = "yes"; then
21713
21714     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21715       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21716         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21717 $as_echo_n "checking how to link with libintl... " >&6; }
21718         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21719 $as_echo "$LIBINTL" >&6; }
21720
21721   for element in $INCINTL; do
21722     haveit=
21723     for x in $CPPFLAGS; do
21724
21725   acl_save_prefix="$prefix"
21726   prefix="$acl_final_prefix"
21727   acl_save_exec_prefix="$exec_prefix"
21728   exec_prefix="$acl_final_exec_prefix"
21729   eval x=\"$x\"
21730   exec_prefix="$acl_save_exec_prefix"
21731   prefix="$acl_save_prefix"
21732
21733       if test "X$x" = "X$element"; then
21734         haveit=yes
21735         break
21736       fi
21737     done
21738     if test -z "$haveit"; then
21739       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21740     fi
21741   done
21742
21743       fi
21744
21745
21746 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21747
21748
21749 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21750
21751     fi
21752
21753         POSUB=po
21754   fi
21755
21756
21757             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21758       BUILD_INCLUDED_LIBINTL=yes
21759     fi
21760
21761
21762
21763
21764
21765         nls_cv_header_intl=
21766     nls_cv_header_libgt=
21767
21768         DATADIRNAME=share
21769
21770
21771         INSTOBJEXT=.mo
21772
21773
21774         GENCAT=gencat
21775
21776
21777         INTLOBJS=
21778     if test "$USE_INCLUDED_LIBINTL" = yes; then
21779       INTLOBJS="\$(GETTOBJS)"
21780     fi
21781
21782
21783         INTL_LIBTOOL_SUFFIX_PREFIX=
21784
21785
21786
21787     INTLLIBS="$LIBINTL"
21788
21789
21790
21791
21792
21793
21794 fi
21795
21796 support_smartalloc=yes
21797 support_readline=yes
21798 support_lzo=yes
21799 support_conio=yes
21800 support_bat=no
21801 support_tls=no
21802 support_crypto=no
21803 support_static_tools=no
21804 support_static_fd=no
21805 support_static_sd=no
21806 support_static_dir=no
21807 support_static_cons=no
21808 build_client_only=no
21809 build_dird=yes
21810 build_stored=yes
21811 db_backends=""
21812 batch_insert_db_backends=""
21813 support_lockmgr=no
21814
21815
21816 # Check whether --enable-bat was given.
21817 if test "${enable_bat+set}" = set; then :
21818   enableval=$enable_bat;
21819        if test x$enableval = xyes; then
21820
21821 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21822
21823           support_bat=yes
21824        fi
21825
21826
21827 fi
21828
21829
21830 BAT_DIR=
21831 if test x$support_bat = xyes; then
21832    abc=`$PKGCONFIG QtGui`
21833    pkg=$?
21834    if test $pkg = 0; then
21835       BAT_DIR=src/qt-console
21836    else
21837      abc=`$PKGCONFIG Qt5Gui`
21838      pkg=$?
21839      if test $pkg = 0; then
21840         BAT_DIR=src/qt-console
21841      else
21842         as_fn_error $? "Unable to find either Qt4 or Qt5 installation needed by bat" "$LINENO" 5
21843      fi
21844    fi
21845 fi
21846
21847
21848
21849
21850
21851
21852
21853 # Check whether --enable-smartalloc was given.
21854 if test "${enable_smartalloc+set}" = set; then :
21855   enableval=$enable_smartalloc;
21856        if test x$enableval = xno; then
21857           support_smartalloc=no
21858        fi
21859
21860
21861 fi
21862
21863
21864 if test x$support_smartalloc = xyes; then
21865
21866 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21867
21868 fi
21869
21870 # Check whether --enable-lockmgr was given.
21871 if test "${enable_lockmgr+set}" = set; then :
21872   enableval=$enable_lockmgr;
21873        if test x$enableval = xyes; then
21874           support_lockmgr=yes
21875        fi
21876
21877
21878 fi
21879
21880
21881 if test x$support_lockmgr = xyes; then
21882
21883 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21884
21885 fi
21886
21887
21888 # Check whether --enable-static-tools was given.
21889 if test "${enable_static_tools+set}" = set; then :
21890   enableval=$enable_static_tools;
21891        if test x$enableval = xyes; then
21892           if test x$use_libtool = xyes; then
21893              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21894   please rerun configure with --disable-libtool" "$LINENO" 5
21895           fi
21896           support_static_tools=yes
21897        fi
21898
21899
21900 fi
21901
21902
21903 TTOOL_LDFLAGS=
21904 if test x$support_static_tools = xyes; then
21905    TTOOL_LDFLAGS="-static"
21906 fi
21907
21908
21909 # Check whether --enable-static-fd was given.
21910 if test "${enable_static_fd+set}" = set; then :
21911   enableval=$enable_static_fd;
21912        if test x$enableval = xyes; then
21913           if test x$use_libtool = xyes; then
21914              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21915   please rerun configure with --disable-libtool" "$LINENO" 5
21916           fi
21917           support_static_fd=yes
21918        fi
21919
21920
21921 fi
21922
21923
21924 STATIC_FD=
21925 if test x$support_static_fd = xyes; then
21926    STATIC_FD="static-bacula-fd"
21927 fi
21928
21929
21930 # Check whether --enable-static-sd was given.
21931 if test "${enable_static_sd+set}" = set; then :
21932   enableval=$enable_static_sd;
21933        if test x$enableval = xyes; then
21934           if test x$use_libtool = xyes; then
21935              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21936   please rerun configure with --disable-libtool" "$LINENO" 5
21937           fi
21938           support_static_sd=yes
21939        fi
21940
21941
21942 fi
21943
21944
21945 STATIC_SD=
21946 if test x$support_static_sd = xyes; then
21947    STATIC_SD="static-bacula-sd"
21948 fi
21949
21950
21951 # Check whether --enable-static-dir was given.
21952 if test "${enable_static_dir+set}" = set; then :
21953   enableval=$enable_static_dir;
21954        if test x$enableval = xyes; then
21955           if test x$use_libtool = xyes; then
21956              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21957   please rerun configure with --disable-libtool" "$LINENO" 5
21958           fi
21959           support_static_dir=yes
21960        fi
21961
21962
21963 fi
21964
21965
21966 STATIC_DIR=
21967 if test x$support_static_dir = xyes; then
21968    STATIC_DIR="static-bacula-dir"
21969 fi
21970
21971
21972 # Check whether --enable-static-cons was given.
21973 if test "${enable_static_cons+set}" = set; then :
21974   enableval=$enable_static_cons;
21975        if test x$enableval = xyes; then
21976           if test x$use_libtool = xyes; then
21977              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21978   please rerun configure with --disable-libtool" "$LINENO" 5
21979           fi
21980           support_static_cons=yes
21981        fi
21982
21983
21984 fi
21985
21986
21987 STATIC_CONS=
21988 if test x$support_static_cons = xyes; then
21989    STATIC_CONS="static-bconsole"
21990 fi
21991
21992
21993 # Check whether --enable-client-only was given.
21994 if test "${enable_client_only+set}" = set; then :
21995   enableval=$enable_client_only;
21996        if test x$enableval = xyes; then
21997           build_client_only=yes
21998           db_backends="None"
21999           DB_BACKENDS="none"
22000        fi
22001
22002
22003 fi
22004
22005 if test x$build_client_only = xno; then
22006    ALL_DIRS="subdirs"
22007 else
22008    ALL_DIRS=""
22009 fi
22010
22011
22012 # Check whether --enable-build-dird was given.
22013 if test "${enable_build_dird+set}" = set; then :
22014   enableval=$enable_build_dird;
22015        if test x$enableval = xno; then
22016           build_dird=no
22017        fi
22018
22019
22020 fi
22021
22022
22023 DIRD_DIR="src/dird"
22024 DIR_TOOLS="DIRTOOLS"
22025
22026
22027
22028
22029 # Check whether --enable-build-stored was given.
22030 if test "${enable_build_stored+set}" = set; then :
22031   enableval=$enable_build_stored;
22032       if test x$enableval = xno; then
22033          build_stored=no
22034       fi
22035
22036
22037 fi
22038
22039 if test x$build_stored = xyes; then
22040    STORED_DIR="src/stored"
22041 else
22042    STORED_DIR=""
22043 fi
22044
22045
22046 # Check whether --enable-conio was given.
22047 if test "${enable_conio+set}" = set; then :
22048   enableval=$enable_conio;
22049        if test x$enableval = xno; then
22050           support_conio=no
22051        fi
22052
22053
22054 fi
22055
22056
22057
22058 support_ipv6=yes
22059 # Check whether --enable-ipv6 was given.
22060 if test "${enable_ipv6+set}" = set; then :
22061   enableval=$enable_ipv6;
22062        if test x$enableval = xno; then
22063           support_ipv6=no
22064        fi
22065
22066
22067 fi
22068
22069
22070 if test x$support_ipv6 = xyes; then
22071     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22072 /* end confdefs.h.  */
22073  #include <sys/types.h>
22074 #include <sys/socket.h>
22075 #include <netinet/in.h>
22076 int
22077 main ()
22078 {
22079 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22080   ;
22081   return 0;
22082 }
22083 _ACEOF
22084 if ac_fn_c_try_link "$LINENO"; then :
22085   support_in6addr_any=yes
22086 else
22087   support_in6addr_any=no
22088 fi
22089 rm -f core conftest.err conftest.$ac_objext \
22090     conftest$ac_exeext conftest.$ac_ext
22091
22092    if test x$support_in6addr_any = xno ; then
22093        in6addr_any="const struct in6_addr in6addr_any"
22094    else
22095        in6addr_any="1"
22096    fi
22097
22098    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22099 /* end confdefs.h.  */
22100  #include <sys/types.h>
22101 #include <sys/socket.h>
22102 #include <netinet/in.h>
22103 int
22104 main ()
22105 {
22106 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22107   ;
22108   return 0;
22109 }
22110 _ACEOF
22111 if ac_fn_c_try_link "$LINENO"; then :
22112   support_ipv6=yes
22113 else
22114   support_ipv6=no
22115 fi
22116 rm -f core conftest.err conftest.$ac_objext \
22117     conftest$ac_exeext conftest.$ac_ext
22118 fi
22119
22120 if test x$support_ipv6 = xyes; then
22121
22122 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22123
22124
22125    if test x$support_in6addr_any = xno ; then
22126
22127 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22128
22129    fi
22130 fi
22131
22132 TERM_LIB=""
22133 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22134 if test "x$ac_cv_header_curses_h" = xyes; then :
22135
22136     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22137 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22138 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22139   $as_echo_n "(cached) " >&6
22140 else
22141   ac_check_lib_save_LIBS=$LIBS
22142 LIBS="-ltinfo  $LIBS"
22143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22144 /* end confdefs.h.  */
22145
22146 /* Override any GCC internal prototype to avoid an error.
22147    Use char because int might match the return type of a GCC
22148    builtin and then its argument prototype would still apply.  */
22149 #ifdef __cplusplus
22150 extern "C"
22151 #endif
22152 char tgetent ();
22153 int
22154 main ()
22155 {
22156 return tgetent ();
22157   ;
22158   return 0;
22159 }
22160 _ACEOF
22161 if ac_fn_c_try_link "$LINENO"; then :
22162   ac_cv_lib_tinfo_tgetent=yes
22163 else
22164   ac_cv_lib_tinfo_tgetent=no
22165 fi
22166 rm -f core conftest.err conftest.$ac_objext \
22167     conftest$ac_exeext conftest.$ac_ext
22168 LIBS=$ac_check_lib_save_LIBS
22169 fi
22170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22171 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22172 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22173    TERM_LIB="-ltinfo"
22174 else
22175
22176       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22177 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22178 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22179   $as_echo_n "(cached) " >&6
22180 else
22181   ac_check_lib_save_LIBS=$LIBS
22182 LIBS="-lncurses  $LIBS"
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h.  */
22185
22186 /* Override any GCC internal prototype to avoid an error.
22187    Use char because int might match the return type of a GCC
22188    builtin and then its argument prototype would still apply.  */
22189 #ifdef __cplusplus
22190 extern "C"
22191 #endif
22192 char tgetent ();
22193 int
22194 main ()
22195 {
22196 return tgetent ();
22197   ;
22198   return 0;
22199 }
22200 _ACEOF
22201 if ac_fn_c_try_link "$LINENO"; then :
22202   ac_cv_lib_ncurses_tgetent=yes
22203 else
22204   ac_cv_lib_ncurses_tgetent=no
22205 fi
22206 rm -f core conftest.err conftest.$ac_objext \
22207     conftest$ac_exeext conftest.$ac_ext
22208 LIBS=$ac_check_lib_save_LIBS
22209 fi
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22211 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22212 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22213    TERM_LIB="-lncurses"
22214 else
22215
22216         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22217 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22218 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22219   $as_echo_n "(cached) " >&6
22220 else
22221   ac_check_lib_save_LIBS=$LIBS
22222 LIBS="-ltermcap  $LIBS"
22223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22224 /* end confdefs.h.  */
22225
22226 /* Override any GCC internal prototype to avoid an error.
22227    Use char because int might match the return type of a GCC
22228    builtin and then its argument prototype would still apply.  */
22229 #ifdef __cplusplus
22230 extern "C"
22231 #endif
22232 char tgetent ();
22233 int
22234 main ()
22235 {
22236 return tgetent ();
22237   ;
22238   return 0;
22239 }
22240 _ACEOF
22241 if ac_fn_c_try_link "$LINENO"; then :
22242   ac_cv_lib_termcap_tgetent=yes
22243 else
22244   ac_cv_lib_termcap_tgetent=no
22245 fi
22246 rm -f core conftest.err conftest.$ac_objext \
22247     conftest$ac_exeext conftest.$ac_ext
22248 LIBS=$ac_check_lib_save_LIBS
22249 fi
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22251 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22252 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22253    TERM_LIB="-ltermcap"
22254 fi
22255
22256
22257 fi
22258
22259
22260 fi
22261
22262
22263 else
22264     for ac_header in curses.h
22265 do :
22266   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22267 if test "x$ac_cv_header_curses_h" = xyes; then :
22268   cat >>confdefs.h <<_ACEOF
22269 #define HAVE_CURSES_H 1
22270 _ACEOF
22271
22272 fi
22273
22274 done
22275
22276      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22277 if test "x$ac_cv_header_term_h" = xyes; then :
22278    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22279 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22280 if ${ac_cv_lib_curses_tgetent+:} false; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   ac_check_lib_save_LIBS=$LIBS
22284 LIBS="-lcurses  $LIBS"
22285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22286 /* end confdefs.h.  */
22287
22288 /* Override any GCC internal prototype to avoid an error.
22289    Use char because int might match the return type of a GCC
22290    builtin and then its argument prototype would still apply.  */
22291 #ifdef __cplusplus
22292 extern "C"
22293 #endif
22294 char tgetent ();
22295 int
22296 main ()
22297 {
22298 return tgetent ();
22299   ;
22300   return 0;
22301 }
22302 _ACEOF
22303 if ac_fn_c_try_link "$LINENO"; then :
22304   ac_cv_lib_curses_tgetent=yes
22305 else
22306   ac_cv_lib_curses_tgetent=no
22307 fi
22308 rm -f core conftest.err conftest.$ac_objext \
22309     conftest$ac_exeext conftest.$ac_ext
22310 LIBS=$ac_check_lib_save_LIBS
22311 fi
22312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22313 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22314 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22315    TERM_LIB="-lcurses"
22316 fi
22317
22318
22319 fi
22320
22321
22322
22323 fi
22324
22325
22326
22327
22328 got_conio="no"
22329 if test x$support_conio = xyes; then
22330    if test x$TERM_LIB != x; then
22331       CONS_LIBS=$TERM_LIB
22332       CONS_OBJ="conio.o"
22333       CONS_SRC="conio.c"
22334       got_conio="yes"
22335       support_readline=no
22336
22337 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22338
22339    else
22340       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22341    fi
22342 fi
22343
22344
22345 # Check whether --enable-readline was given.
22346 if test "${enable_readline+set}" = set; then :
22347   enableval=$enable_readline;
22348        if test x$enableval = xno; then
22349           support_readline=no
22350        fi
22351
22352
22353 fi
22354
22355
22356 got_readline="no"
22357 READLINE_SRC=
22358 if test x$support_readline = xyes; then
22359
22360 # Check whether --with-readline was given.
22361 if test "${with_readline+set}" = set; then :
22362   withval=$with_readline;
22363           case "$with_readline" in
22364           no)
22365              :
22366              ;;
22367           yes|*)
22368              if test -f ${with_readline}/readline.h; then
22369                 CONS_INC="-I${with_readline}"
22370                 CONS_LDFLAGS="-L$with_readline"
22371              elif test -f ${with_readline}/include/readline/readline.h; then
22372                 CONS_INC="-I${with_readline}/include/readline"
22373                 CONS_LDFLAGS="-L${with_readline}/lib"
22374                 with_readline="${with_readline}/include/readline"
22375              else
22376                 with_readline="/usr/include/readline"
22377              fi
22378
22379              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22380 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22381 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22382
22383
22384 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22385
22386                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22387                     got_readline="yes"
22388
22389 else
22390
22391                     echo " "
22392                     echo "readline.h not found. readline turned off ..."
22393                     echo " "
22394
22395
22396 fi
22397
22398
22399              ;;
22400           esac
22401
22402 else
22403
22404                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22405 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22406
22407
22408 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22409
22410                 got_readline="yes"
22411                 CONS_INC="-I/usr/include/readline"
22412                 CONS_LIBS="-lreadline ${TERM_LIB}"
22413
22414 else
22415
22416                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22417 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22418 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22419
22420
22421 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22422
22423                         got_readline="yes"
22424                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22425                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22426                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22427                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22428
22429 else
22430
22431                         echo " "
22432                         echo "readline.h not found. readline turned off ..."
22433                         echo " "
22434
22435
22436 fi
22437
22438
22439
22440
22441 fi
22442
22443
22444
22445
22446 fi
22447
22448 fi
22449
22450
22451
22452
22453
22454
22455
22456
22457 MAKE_SHELL=/bin/sh
22458
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22460 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22461 if ${ac_cv_header_stat_broken+:} false; then :
22462   $as_echo_n "(cached) " >&6
22463 else
22464   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22465 /* end confdefs.h.  */
22466 #include <sys/types.h>
22467 #include <sys/stat.h>
22468
22469 #if defined S_ISBLK && defined S_IFDIR
22470 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22471 #endif
22472
22473 #if defined S_ISBLK && defined S_IFCHR
22474 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22475 #endif
22476
22477 #if defined S_ISLNK && defined S_IFREG
22478 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22479 #endif
22480
22481 #if defined S_ISSOCK && defined S_IFREG
22482 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22483 #endif
22484
22485 _ACEOF
22486 if ac_fn_c_try_compile "$LINENO"; then :
22487   ac_cv_header_stat_broken=no
22488 else
22489   ac_cv_header_stat_broken=yes
22490 fi
22491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22492 fi
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22494 $as_echo "$ac_cv_header_stat_broken" >&6; }
22495 if test $ac_cv_header_stat_broken = yes; then
22496
22497 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22498
22499 fi
22500
22501 ac_header_dirent=no
22502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22503   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22505 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22506 if eval \${$as_ac_Header+:} false; then :
22507   $as_echo_n "(cached) " >&6
22508 else
22509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22510 /* end confdefs.h.  */
22511 #include <sys/types.h>
22512 #include <$ac_hdr>
22513
22514 int
22515 main ()
22516 {
22517 if ((DIR *) 0)
22518 return 0;
22519   ;
22520   return 0;
22521 }
22522 _ACEOF
22523 if ac_fn_c_try_compile "$LINENO"; then :
22524   eval "$as_ac_Header=yes"
22525 else
22526   eval "$as_ac_Header=no"
22527 fi
22528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22529 fi
22530 eval ac_res=\$$as_ac_Header
22531                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22532 $as_echo "$ac_res" >&6; }
22533 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22534   cat >>confdefs.h <<_ACEOF
22535 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22536 _ACEOF
22537
22538 ac_header_dirent=$ac_hdr; break
22539 fi
22540
22541 done
22542 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22543 if test $ac_header_dirent = dirent.h; then
22544   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22545 $as_echo_n "checking for library containing opendir... " >&6; }
22546 if ${ac_cv_search_opendir+:} false; then :
22547   $as_echo_n "(cached) " >&6
22548 else
22549   ac_func_search_save_LIBS=$LIBS
22550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22551 /* end confdefs.h.  */
22552
22553 /* Override any GCC internal prototype to avoid an error.
22554    Use char because int might match the return type of a GCC
22555    builtin and then its argument prototype would still apply.  */
22556 #ifdef __cplusplus
22557 extern "C"
22558 #endif
22559 char opendir ();
22560 int
22561 main ()
22562 {
22563 return opendir ();
22564   ;
22565   return 0;
22566 }
22567 _ACEOF
22568 for ac_lib in '' dir; do
22569   if test -z "$ac_lib"; then
22570     ac_res="none required"
22571   else
22572     ac_res=-l$ac_lib
22573     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22574   fi
22575   if ac_fn_c_try_link "$LINENO"; then :
22576   ac_cv_search_opendir=$ac_res
22577 fi
22578 rm -f core conftest.err conftest.$ac_objext \
22579     conftest$ac_exeext
22580   if ${ac_cv_search_opendir+:} false; then :
22581   break
22582 fi
22583 done
22584 if ${ac_cv_search_opendir+:} false; then :
22585
22586 else
22587   ac_cv_search_opendir=no
22588 fi
22589 rm conftest.$ac_ext
22590 LIBS=$ac_func_search_save_LIBS
22591 fi
22592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22593 $as_echo "$ac_cv_search_opendir" >&6; }
22594 ac_res=$ac_cv_search_opendir
22595 if test "$ac_res" != no; then :
22596   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22597
22598 fi
22599
22600 else
22601   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22602 $as_echo_n "checking for library containing opendir... " >&6; }
22603 if ${ac_cv_search_opendir+:} false; then :
22604   $as_echo_n "(cached) " >&6
22605 else
22606   ac_func_search_save_LIBS=$LIBS
22607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22608 /* end confdefs.h.  */
22609
22610 /* Override any GCC internal prototype to avoid an error.
22611    Use char because int might match the return type of a GCC
22612    builtin and then its argument prototype would still apply.  */
22613 #ifdef __cplusplus
22614 extern "C"
22615 #endif
22616 char opendir ();
22617 int
22618 main ()
22619 {
22620 return opendir ();
22621   ;
22622   return 0;
22623 }
22624 _ACEOF
22625 for ac_lib in '' x; do
22626   if test -z "$ac_lib"; then
22627     ac_res="none required"
22628   else
22629     ac_res=-l$ac_lib
22630     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22631   fi
22632   if ac_fn_c_try_link "$LINENO"; then :
22633   ac_cv_search_opendir=$ac_res
22634 fi
22635 rm -f core conftest.err conftest.$ac_objext \
22636     conftest$ac_exeext
22637   if ${ac_cv_search_opendir+:} false; then :
22638   break
22639 fi
22640 done
22641 if ${ac_cv_search_opendir+:} false; then :
22642
22643 else
22644   ac_cv_search_opendir=no
22645 fi
22646 rm conftest.$ac_ext
22647 LIBS=$ac_func_search_save_LIBS
22648 fi
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22650 $as_echo "$ac_cv_search_opendir" >&6; }
22651 ac_res=$ac_cv_search_opendir
22652 if test "$ac_res" != no; then :
22653   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22654
22655 fi
22656
22657 fi
22658
22659 for ac_func in strcasecmp select setenv putenv tcgetattr
22660 do :
22661   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22662 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22663 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22664   cat >>confdefs.h <<_ACEOF
22665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22666 _ACEOF
22667
22668 fi
22669 done
22670
22671 for ac_func in lstat lchown lchmod futimes fchmod fchown lutimes
22672 do :
22673   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22674 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22675 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22676   cat >>confdefs.h <<_ACEOF
22677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22678 _ACEOF
22679
22680 fi
22681 done
22682
22683 for ac_func in nanosleep nl_langinfo
22684 do :
22685   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22686 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22687 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22688   cat >>confdefs.h <<_ACEOF
22689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22690 _ACEOF
22691
22692 fi
22693 done
22694
22695 for ac_func in be64toh htobe64
22696 do :
22697   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22698 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22699 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22700   cat >>confdefs.h <<_ACEOF
22701 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22702 _ACEOF
22703
22704 fi
22705 done
22706
22707 for ac_header in varargs.h
22708 do :
22709   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22710 if test "x$ac_cv_header_varargs_h" = xyes; then :
22711   cat >>confdefs.h <<_ACEOF
22712 #define HAVE_VARARGS_H 1
22713 _ACEOF
22714
22715 fi
22716
22717 done
22718
22719
22720
22721 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22722 if test "x$ac_cv_func_socket" = xyes; then :
22723   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22724 $as_echo "using libc's socket" >&6; }
22725 else
22726   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22727 $as_echo_n "checking for socket in -lxnet... " >&6; }
22728 if ${ac_cv_lib_xnet_socket+:} false; then :
22729   $as_echo_n "(cached) " >&6
22730 else
22731   ac_check_lib_save_LIBS=$LIBS
22732 LIBS="-lxnet  $LIBS"
22733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22734 /* end confdefs.h.  */
22735
22736 /* Override any GCC internal prototype to avoid an error.
22737    Use char because int might match the return type of a GCC
22738    builtin and then its argument prototype would still apply.  */
22739 #ifdef __cplusplus
22740 extern "C"
22741 #endif
22742 char socket ();
22743 int
22744 main ()
22745 {
22746 return socket ();
22747   ;
22748   return 0;
22749 }
22750 _ACEOF
22751 if ac_fn_c_try_link "$LINENO"; then :
22752   ac_cv_lib_xnet_socket=yes
22753 else
22754   ac_cv_lib_xnet_socket=no
22755 fi
22756 rm -f core conftest.err conftest.$ac_objext \
22757     conftest$ac_exeext conftest.$ac_ext
22758 LIBS=$ac_check_lib_save_LIBS
22759 fi
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22761 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22762 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22763   cat >>confdefs.h <<_ACEOF
22764 #define HAVE_LIBXNET 1
22765 _ACEOF
22766
22767   LIBS="-lxnet $LIBS"
22768
22769 fi
22770
22771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22772 $as_echo_n "checking for socket in -lsocket... " >&6; }
22773 if ${ac_cv_lib_socket_socket+:} false; then :
22774   $as_echo_n "(cached) " >&6
22775 else
22776   ac_check_lib_save_LIBS=$LIBS
22777 LIBS="-lsocket  $LIBS"
22778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22779 /* end confdefs.h.  */
22780
22781 /* Override any GCC internal prototype to avoid an error.
22782    Use char because int might match the return type of a GCC
22783    builtin and then its argument prototype would still apply.  */
22784 #ifdef __cplusplus
22785 extern "C"
22786 #endif
22787 char socket ();
22788 int
22789 main ()
22790 {
22791 return socket ();
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 if ac_fn_c_try_link "$LINENO"; then :
22797   ac_cv_lib_socket_socket=yes
22798 else
22799   ac_cv_lib_socket_socket=no
22800 fi
22801 rm -f core conftest.err conftest.$ac_objext \
22802     conftest$ac_exeext conftest.$ac_ext
22803 LIBS=$ac_check_lib_save_LIBS
22804 fi
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22806 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22807 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22808   cat >>confdefs.h <<_ACEOF
22809 #define HAVE_LIBSOCKET 1
22810 _ACEOF
22811
22812   LIBS="-lsocket $LIBS"
22813
22814 fi
22815
22816     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22817 $as_echo_n "checking for socket in -linet... " >&6; }
22818 if ${ac_cv_lib_inet_socket+:} false; then :
22819   $as_echo_n "(cached) " >&6
22820 else
22821   ac_check_lib_save_LIBS=$LIBS
22822 LIBS="-linet  $LIBS"
22823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22824 /* end confdefs.h.  */
22825
22826 /* Override any GCC internal prototype to avoid an error.
22827    Use char because int might match the return type of a GCC
22828    builtin and then its argument prototype would still apply.  */
22829 #ifdef __cplusplus
22830 extern "C"
22831 #endif
22832 char socket ();
22833 int
22834 main ()
22835 {
22836 return socket ();
22837   ;
22838   return 0;
22839 }
22840 _ACEOF
22841 if ac_fn_c_try_link "$LINENO"; then :
22842   ac_cv_lib_inet_socket=yes
22843 else
22844   ac_cv_lib_inet_socket=no
22845 fi
22846 rm -f core conftest.err conftest.$ac_objext \
22847     conftest$ac_exeext conftest.$ac_ext
22848 LIBS=$ac_check_lib_save_LIBS
22849 fi
22850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22851 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22852 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22853   cat >>confdefs.h <<_ACEOF
22854 #define HAVE_LIBINET 1
22855 _ACEOF
22856
22857   LIBS="-linet $LIBS"
22858
22859 fi
22860
22861 fi
22862
22863
22864 TCPW_MSG="no"
22865 WRAPLIBS=""
22866
22867 # Check whether --with-tcp-wrappers was given.
22868 if test "${with_tcp_wrappers+set}" = set; then :
22869   withval=$with_tcp_wrappers;
22870        if test "x$withval" != "xno" ; then
22871           saved_LIBS="$LIBS"
22872           LIBS="$saved_LIBS -lwrap"
22873           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22874 $as_echo_n "checking for library containing nanosleep... " >&6; }
22875 if ${ac_cv_search_nanosleep+:} false; then :
22876   $as_echo_n "(cached) " >&6
22877 else
22878   ac_func_search_save_LIBS=$LIBS
22879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22880 /* end confdefs.h.  */
22881
22882 /* Override any GCC internal prototype to avoid an error.
22883    Use char because int might match the return type of a GCC
22884    builtin and then its argument prototype would still apply.  */
22885 #ifdef __cplusplus
22886 extern "C"
22887 #endif
22888 char nanosleep ();
22889 int
22890 main ()
22891 {
22892 return nanosleep ();
22893   ;
22894   return 0;
22895 }
22896 _ACEOF
22897 for ac_lib in '' rt; do
22898   if test -z "$ac_lib"; then
22899     ac_res="none required"
22900   else
22901     ac_res=-l$ac_lib
22902     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22903   fi
22904   if ac_fn_c_try_link "$LINENO"; then :
22905   ac_cv_search_nanosleep=$ac_res
22906 fi
22907 rm -f core conftest.err conftest.$ac_objext \
22908     conftest$ac_exeext
22909   if ${ac_cv_search_nanosleep+:} false; then :
22910   break
22911 fi
22912 done
22913 if ${ac_cv_search_nanosleep+:} false; then :
22914
22915 else
22916   ac_cv_search_nanosleep=no
22917 fi
22918 rm conftest.$ac_ext
22919 LIBS=$ac_func_search_save_LIBS
22920 fi
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22922 $as_echo "$ac_cv_search_nanosleep" >&6; }
22923 ac_res=$ac_cv_search_nanosleep
22924 if test "$ac_res" != no; then :
22925   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22926
22927 fi
22928
22929           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22930 $as_echo_n "checking for libwrap... " >&6; }
22931           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22932 /* end confdefs.h.  */
22933
22934                #include <sys/types.h>
22935                #include <tcpd.h>
22936                int deny_severity = 0;
22937                int allow_severity = 0;
22938                struct request_info *req;
22939
22940 int
22941 main ()
22942 {
22943
22944                 hosts_access(req);
22945
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 if ac_fn_c_try_link "$LINENO"; then :
22951
22952                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22953 $as_echo "yes" >&6; }
22954
22955 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22956
22957                  TCPW_MSG="yes"
22958                  LIBS="$saved_LIBS"
22959                  WRAPLIBS="-lwrap"
22960
22961 else
22962
22963                  LIBS="$saved_LIBS -lwrap -lnsl"
22964                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22965                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22966 /* end confdefs.h.  */
22967
22968                        #include <sys/types.h>
22969                        #include <tcpd.h>
22970                        int deny_severity = 0;
22971                        int allow_severity = 0;
22972                        struct request_info *req;
22973
22974 int
22975 main ()
22976 {
22977
22978                        hosts_access(req);
22979
22980   ;
22981   return 0;
22982 }
22983 _ACEOF
22984 if ac_fn_c_try_link "$LINENO"; then :
22985
22986                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22987 $as_echo "yes" >&6; }
22988
22989 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22990
22991                       TCPW_MSG="yes"
22992                       LIBS="$saved_LIBS"
22993                       WRAPLIBS="-lwrap"
22994
22995 else
22996
22997                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22998
22999
23000 fi
23001 rm -f core conftest.err conftest.$ac_objext \
23002     conftest$ac_exeext conftest.$ac_ext
23003
23004
23005 fi
23006 rm -f core conftest.err conftest.$ac_objext \
23007     conftest$ac_exeext conftest.$ac_ext
23008        fi
23009
23010
23011 fi
23012
23013
23014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
23015 $as_echo_n "checking for OpenSSL... " >&6; }
23016
23017 # Check whether --with-openssl was given.
23018 if test "${with_openssl+set}" = set; then :
23019   withval=$with_openssl;
23020         with_openssl_directory=${withval}
23021
23022
23023 fi
23024
23025
23026 if test "x$with_openssl_directory" != "xno"; then
23027    OPENSSL_LIBS="-lssl -lcrypto"
23028    OPENSSL_INC=""
23029
23030    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
23031       #
23032       # Make sure the $with_openssl_directory also makes sense
23033       #
23034       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
23035          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
23036          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
23037       fi
23038    fi
23039
23040    saved_LIBS="${LIBS}"
23041    saved_CFLAGS="${CFLAGS}"
23042    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
23043    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
23044
23045    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23046 /* end confdefs.h.  */
23047
23048           #include <openssl/ssl.h>
23049
23050 int
23051 main ()
23052 {
23053
23054            CRYPTO_set_id_callback(NULL);
23055
23056   ;
23057   return 0;
23058 }
23059 _ACEOF
23060 if ac_fn_c_try_link "$LINENO"; then :
23061
23062           support_tls="yes"
23063           support_crypto="yes"
23064
23065 else
23066
23067           support_tls="no"
23068           support_crypto="no"
23069
23070
23071 fi
23072 rm -f core conftest.err conftest.$ac_objext \
23073     conftest$ac_exeext conftest.$ac_ext
23074
23075    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23076 /* end confdefs.h.  */
23077
23078           #include <openssl/evp.h>
23079
23080 int
23081 main ()
23082 {
23083
23084           EVP_sha512();
23085
23086   ;
23087   return 0;
23088 }
23089 _ACEOF
23090 if ac_fn_c_try_link "$LINENO"; then :
23091
23092           ac_cv_openssl_sha2="yes"
23093
23094 else
23095
23096           ac_cv_openssl_sha2="no"
23097
23098
23099 fi
23100 rm -f core conftest.err conftest.$ac_objext \
23101     conftest$ac_exeext conftest.$ac_ext
23102
23103                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104 /* end confdefs.h.  */
23105
23106           #include <openssl/evp.h>
23107
23108 int
23109 main ()
23110 {
23111
23112           EVP_aes_192_cbc();
23113
23114   ;
23115   return 0;
23116 }
23117 _ACEOF
23118 if ac_fn_c_try_link "$LINENO"; then :
23119
23120           ac_cv_openssl_export="no"
23121
23122 else
23123
23124           ac_cv_openssl_export="yes"
23125
23126
23127 fi
23128 rm -f core conftest.err conftest.$ac_objext \
23129     conftest$ac_exeext conftest.$ac_ext
23130
23131    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23132 $as_echo "$support_tls" >&6; }
23133    if test "$support_tls" = "yes"; then
23134
23135 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23136
23137
23138 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23139
23140
23141 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23142
23143    fi
23144
23145    if test "$ac_cv_openssl_sha2" = "yes"; then
23146
23147 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23148
23149    fi
23150
23151    if test "$ac_cv_openssl_export" = "yes"; then
23152
23153 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23154
23155    fi
23156
23157    if test "$support_crypto" = "yes"; then
23158       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23159 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23160 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23161   $as_echo_n "(cached) " >&6
23162 else
23163   ac_check_lib_save_LIBS=$LIBS
23164 LIBS="-lcrypto  $LIBS"
23165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23166 /* end confdefs.h.  */
23167
23168 /* Override any GCC internal prototype to avoid an error.
23169    Use char because int might match the return type of a GCC
23170    builtin and then its argument prototype would still apply.  */
23171 #ifdef __cplusplus
23172 extern "C"
23173 #endif
23174 char EVP_PKEY_encrypt_old ();
23175 int
23176 main ()
23177 {
23178 return EVP_PKEY_encrypt_old ();
23179   ;
23180   return 0;
23181 }
23182 _ACEOF
23183 if ac_fn_c_try_link "$LINENO"; then :
23184   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23185 else
23186   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23187 fi
23188 rm -f core conftest.err conftest.$ac_objext \
23189     conftest$ac_exeext conftest.$ac_ext
23190 LIBS=$ac_check_lib_save_LIBS
23191 fi
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23193 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23194 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23195
23196 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23197
23198 fi
23199
23200    fi
23201
23202    LIBS="${saved_LIBS}"
23203    CFLAGS="${saved_CFLAGS}"
23204 else
23205    support_tls="no"
23206    support_crypto="no"
23207    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23208 $as_echo "$support_tls" >&6; }
23209 fi
23210
23211 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23212    OPENSSL_LIBS=""
23213    OPENSSL_INC=""
23214 fi
23215
23216
23217
23218
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23220 $as_echo_n "checking for library containing dlopen... " >&6; }
23221 if ${ac_cv_search_dlopen+:} false; then :
23222   $as_echo_n "(cached) " >&6
23223 else
23224   ac_func_search_save_LIBS=$LIBS
23225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23226 /* end confdefs.h.  */
23227
23228 /* Override any GCC internal prototype to avoid an error.
23229    Use char because int might match the return type of a GCC
23230    builtin and then its argument prototype would still apply.  */
23231 #ifdef __cplusplus
23232 extern "C"
23233 #endif
23234 char dlopen ();
23235 int
23236 main ()
23237 {
23238 return dlopen ();
23239   ;
23240   return 0;
23241 }
23242 _ACEOF
23243 for ac_lib in '' dl; do
23244   if test -z "$ac_lib"; then
23245     ac_res="none required"
23246   else
23247     ac_res=-l$ac_lib
23248     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23249   fi
23250   if ac_fn_c_try_link "$LINENO"; then :
23251   ac_cv_search_dlopen=$ac_res
23252 fi
23253 rm -f core conftest.err conftest.$ac_objext \
23254     conftest$ac_exeext
23255   if ${ac_cv_search_dlopen+:} false; then :
23256   break
23257 fi
23258 done
23259 if ${ac_cv_search_dlopen+:} false; then :
23260
23261 else
23262   ac_cv_search_dlopen=no
23263 fi
23264 rm conftest.$ac_ext
23265 LIBS=$ac_func_search_save_LIBS
23266 fi
23267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23268 $as_echo "$ac_cv_search_dlopen" >&6; }
23269 ac_res=$ac_cv_search_dlopen
23270 if test "$ac_res" != no; then :
23271   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23272
23273 fi
23274
23275
23276 working_dir=`eval echo /opt/bacula/working`
23277
23278 # Check whether --with-working-dir was given.
23279 if test "${with_working_dir+set}" = set; then :
23280   withval=$with_working_dir;
23281        if test "x$withval" != "xno" ; then
23282          working_dir=$withval
23283        fi
23284
23285
23286 fi
23287
23288
23289
23290
23291 archivedir=/tmp
23292
23293 # Check whether --with-archivedir was given.
23294 if test "${with_archivedir+set}" = set; then :
23295   withval=$with_archivedir;
23296        if test "x$withval" != "xno" ; then
23297           archivedir=$withval
23298        fi
23299
23300
23301 fi
23302
23303
23304
23305
23306 basename=`hostname`
23307
23308 # Check whether --with-basename was given.
23309 if test "${with_basename+set}" = set; then :
23310   withval=$with_basename;
23311        if test "x$withval" != "xno" ; then
23312           basename=$withval
23313        fi
23314
23315
23316 fi
23317
23318
23319
23320
23321 hostname=`uname -n | cut -d '.' -f 1`
23322 if test x${hostname} = x ; then
23323   hostname="localhost"
23324 fi
23325 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23326 if test ! $? = 0; then
23327   hostname="localhost"
23328 fi
23329
23330 # Check whether --with-hostname was given.
23331 if test "${with_hostname+set}" = set; then :
23332   withval=$with_hostname;
23333        if test "x$withval" != "xno" ; then
23334          hostname=$withval
23335        fi
23336
23337
23338 fi
23339
23340
23341
23342
23343
23344 scriptdir=`eval echo ${sysconfdir}`
23345
23346 # Check whether --with-scriptdir was given.
23347 if test "${with_scriptdir+set}" = set; then :
23348   withval=$with_scriptdir;
23349        if test "x$withval" != "xno" ; then
23350           scriptdir=$withval
23351        fi
23352
23353
23354 fi
23355
23356
23357
23358
23359
23360 bsrdir=`eval echo /opt/bacula/bsr`
23361
23362 # Check whether --with-bsrdir was given.
23363 if test "${with_bsrdir+set}" = set; then :
23364   withval=$with_bsrdir;
23365        if test "x$withval" != "xno" ; then
23366           bsrdir=$withval
23367        fi
23368
23369
23370 fi
23371
23372
23373
23374
23375 logdir=`eval echo /opt/bacula/log`
23376
23377 # Check whether --with-logdir was given.
23378 if test "${with_logdir+set}" = set; then :
23379   withval=$with_logdir;
23380        if test "x$withval" != "xno" ; then
23381           logdir=$withval
23382        fi
23383
23384
23385 fi
23386
23387
23388
23389
23390
23391 # ------------------------------------------
23392 # Where to place plugindir (plugin files)
23393 # ------------------------------------------
23394 plugindir=`eval echo ${libdir}`
23395
23396 # Check whether --with-plugindir was given.
23397 if test "${with_plugindir+set}" = set; then :
23398   withval=$with_plugindir;
23399        if test "x$withval" != "xno" ; then
23400           plugindir=$withval
23401        fi
23402
23403
23404 fi
23405
23406
23407
23408
23409
23410 dump_email=root@localhost
23411
23412 # Check whether --with-dump-email was given.
23413 if test "${with_dump_email+set}" = set; then :
23414   withval=$with_dump_email;
23415        if test "x$withval" != "xno" ; then
23416           dump_email=$withval
23417        fi
23418
23419
23420 fi
23421
23422
23423
23424
23425 job_email=root@localhost
23426
23427 # Check whether --with-job-email was given.
23428 if test "${with_job_email+set}" = set; then :
23429   withval=$with_job_email;
23430        if test "x$withval" != "xno" ; then
23431           job_email=$withval
23432        fi
23433
23434
23435 fi
23436
23437
23438
23439
23440 smtp_host=localhost
23441
23442 # Check whether --with-smtp_host was given.
23443 if test "${with_smtp_host+set}" = set; then :
23444   withval=$with_smtp_host;
23445        if test "x$withval" != "xno" ; then
23446           smtp_host=$withval
23447        fi
23448
23449
23450 fi
23451
23452
23453
23454
23455 piddir=/var/run
23456
23457 # Check whether --with-pid-dir was given.
23458 if test "${with_pid_dir+set}" = set; then :
23459   withval=$with_pid_dir;
23460        if test "x$withval" != "xno" ; then
23461           piddir=$withval
23462        fi
23463
23464
23465 fi
23466
23467
23468 cat >>confdefs.h <<_ACEOF
23469 #define _PATH_BACULA_PIDDIR "$piddir"
23470 _ACEOF
23471
23472
23473
23474 subsysdir=/var/run/subsys
23475 if test -d /var/run/subsys; then
23476    subsysdir=/var/run/subsys
23477 elif test -d /var/lock/subsys; then
23478    subsysdir=/var/lock/subsys
23479 else
23480    subsysdir=/var/run/subsys
23481 fi
23482
23483 # Check whether --with-subsys-dir was given.
23484 if test "${with_subsys_dir+set}" = set; then :
23485   withval=$with_subsys_dir;
23486        if test "x$withval" != "xno" ; then
23487           subsysdir=$withval
23488        fi
23489
23490
23491 fi
23492
23493
23494
23495
23496 baseport=9101
23497
23498 # Check whether --with-baseport was given.
23499 if test "${with_baseport+set}" = set; then :
23500   withval=$with_baseport;
23501        if test "x$withval" != "xno" ; then
23502           baseport=$withval
23503        fi
23504
23505
23506 fi
23507
23508
23509
23510 dir_port=`expr $baseport`
23511 fd_port=`expr $baseport + 1`
23512 sd_port=`expr $fd_port + 1`
23513
23514
23515
23516
23517
23518 dir_password=
23519
23520 # Check whether --with-dir-password was given.
23521 if test "${with_dir_password+set}" = set; then :
23522   withval=$with_dir_password;
23523        if test "x$withval" != "xno" ; then
23524           dir_password=$withval
23525        fi
23526
23527
23528 fi
23529
23530
23531 if test "x$dir_password" = "x" ; then
23532    if test "x$OPENSSL" = "xnone" ; then
23533       key=`autoconf/randpass 33`
23534    else
23535       key=`openssl rand -base64 33`
23536    fi
23537    dir_password=$key
23538 fi
23539
23540 fd_password=
23541
23542 # Check whether --with-fd-password was given.
23543 if test "${with_fd_password+set}" = set; then :
23544   withval=$with_fd_password;
23545        if test "x$withval" != "xno" ; then
23546           fd_password=$withval
23547        fi
23548
23549
23550 fi
23551
23552
23553 if test "x$fd_password" = "x" ; then
23554    if test "x$OPENSSL" = "xnone" ; then
23555       key=`autoconf/randpass 37`
23556    else
23557       key=`openssl rand -base64 33`
23558    fi
23559    fd_password=$key
23560 fi
23561
23562 sd_password=
23563
23564 # Check whether --with-sd-password was given.
23565 if test "${with_sd_password+set}" = set; then :
23566   withval=$with_sd_password;
23567        if test "x$withval" != "xno" ; then
23568           sd_password=$withval
23569        fi
23570
23571
23572 fi
23573
23574
23575 if test "x$sd_password" = "x" ; then
23576    if test "x$OPENSSL" = "xnone" ; then
23577       key=`autoconf/randpass 41`
23578    else
23579       key=`openssl rand -base64 33`
23580    fi
23581    sd_password=$key
23582 fi
23583
23584 mon_dir_password=
23585
23586 # Check whether --with-mon-dir-password was given.
23587 if test "${with_mon_dir_password+set}" = set; then :
23588   withval=$with_mon_dir_password;
23589        if test "x$withval" != "xno" ; then
23590           mon_dir_password=$withval
23591        fi
23592
23593
23594 fi
23595
23596
23597 if test "x$mon_dir_password" = "x" ; then
23598    if test "x$OPENSSL" = "xnone" ; then
23599       key=`autoconf/randpass 33`
23600    else
23601       key=`openssl rand -base64 33`
23602    fi
23603    mon_dir_password=$key
23604 fi
23605
23606 mon_fd_password=
23607
23608 # Check whether --with-mon-fd-password was given.
23609 if test "${with_mon_fd_password+set}" = set; then :
23610   withval=$with_mon_fd_password;
23611        if test "x$withval" != "xno" ; then
23612           mon_fd_password=$withval
23613        fi
23614
23615
23616 fi
23617
23618
23619 if test "x$mon_fd_password" = "x" ; then
23620    if test "x$OPENSSL" = "xnone" ; then
23621       key=`autoconf/randpass 37`
23622    else
23623       key=`openssl rand -base64 33`
23624    fi
23625    mon_fd_password=$key
23626 fi
23627
23628 mon_sd_password=
23629
23630 # Check whether --with-mon-sd-password was given.
23631 if test "${with_mon_sd_password+set}" = set; then :
23632   withval=$with_mon_sd_password;
23633        if test "x$withval" != "xno" ; then
23634           mon_sd_password=$withval
23635        fi
23636
23637
23638 fi
23639
23640
23641 if test "x$mon_sd_password" = "x" ; then
23642    if test "x$OPENSSL" = "xnone" ; then
23643       key=`autoconf/randpass 41`
23644    else
23645       key=`openssl rand -base64 33`
23646    fi
23647    mon_sd_password=$key
23648 fi
23649
23650
23651
23652
23653
23654
23655
23656
23657 db_name=bacula
23658
23659 # Check whether --with-db_name was given.
23660 if test "${with_db_name+set}" = set; then :
23661   withval=$with_db_name;
23662        if test "x$withval" != "x" ; then
23663           db_name=$withval
23664        fi
23665
23666
23667 fi
23668
23669
23670
23671 db_user=bacula
23672
23673 # Check whether --with-db_user was given.
23674 if test "${with_db_user+set}" = set; then :
23675   withval=$with_db_user;
23676        if test "x$withval" != "x" ; then
23677           db_user=$withval
23678        fi
23679
23680
23681 fi
23682
23683
23684
23685 db_password=
23686
23687 # Check whether --with-db_password was given.
23688 if test "${with_db_password+set}" = set; then :
23689   withval=$with_db_password;
23690        if test "x$withval" != "x" ; then
23691           db_password=$withval
23692        fi
23693
23694
23695 fi
23696
23697
23698
23699 db_port=" "
23700
23701 # Check whether --with-db_port was given.
23702 if test "${with_db_port+set}" = set; then :
23703   withval=$with_db_port;
23704        if test "x$withval" != "x" ; then
23705           db_port=$withval
23706        fi
23707
23708
23709 fi
23710
23711
23712
23713 db_ssl_options=
23714
23715 # Check whether --with-db_ssl_options was given.
23716 if test "${with_db_ssl_options+set}" = set; then :
23717   withval=$with_db_ssl_options;
23718        if test "x$withval" != "x" ; then
23719          db_ssl_options=$withval
23720        fi
23721
23722
23723 fi
23724
23725
23726
23727 #
23728 # Handle users and groups for each daemon
23729 #
23730 dir_user=
23731
23732 # Check whether --with-dir_user was given.
23733 if test "${with_dir_user+set}" = set; then :
23734   withval=$with_dir_user;
23735        if test "x$withval" != "x" ; then
23736            dir_user=$withval
23737        fi
23738
23739
23740 fi
23741
23742
23743 dir_group=
23744
23745 # Check whether --with-dir_group was given.
23746 if test "${with_dir_group+set}" = set; then :
23747   withval=$with_dir_group;
23748        if test "x$withval" != "x" ; then
23749           dir_group=$withval
23750        fi
23751
23752
23753 fi
23754
23755
23756 sd_user=
23757
23758 # Check whether --with-sd_user was given.
23759 if test "${with_sd_user+set}" = set; then :
23760   withval=$with_sd_user;
23761        if test "x$withval" != "x" ; then
23762           sd_user=$withval
23763        fi
23764
23765
23766 fi
23767
23768
23769 sd_group=
23770
23771 # Check whether --with-sd_group was given.
23772 if test "${with_sd_group+set}" = set; then :
23773   withval=$with_sd_group;
23774        if test "x$withval" != "x" ; then
23775           sd_group=$withval
23776        fi
23777
23778
23779 fi
23780
23781
23782 fd_user=
23783
23784 # Check whether --with-fd_user was given.
23785 if test "${with_fd_user+set}" = set; then :
23786   withval=$with_fd_user;
23787        if test "x$withval" != "x" ; then
23788           fd_user=$withval
23789        fi
23790
23791
23792 fi
23793
23794
23795 fd_group=
23796
23797 # Check whether --with-fd_group was given.
23798 if test "${with_fd_group+set}" = set; then :
23799   withval=$with_fd_group;
23800        if test "x$withval" != "x" ; then
23801           fd_group=$withval
23802        fi
23803
23804
23805 fi
23806
23807
23808
23809
23810
23811
23812
23813
23814
23815 SBINPERM=0750
23816
23817 # Check whether --with-sbin-perm was given.
23818 if test "${with_sbin_perm+set}" = set; then :
23819   withval=$with_sbin_perm;
23820        if test "x$withval" != "x" ; then
23821           SBINPERM=$withval
23822        fi
23823
23824
23825 fi
23826
23827
23828
23829
23830 support_batch_insert=yes
23831 # Check whether --enable-batch-insert was given.
23832 if test "${enable_batch_insert+set}" = set; then :
23833   enableval=$enable_batch_insert;
23834        if test x$enableval = xno; then
23835           support_batch_insert=no
23836        fi
23837
23838
23839 fi
23840
23841
23842 if test x$support_batch_insert = xyes; then
23843
23844 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23845
23846 fi
23847
23848
23849 uncomment_dbi="#"
23850
23851
23852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23853 $as_echo_n "checking for PostgreSQL support... " >&6; }
23854
23855 # Check whether --with-postgresql was given.
23856 if test "${with_postgresql+set}" = set; then :
23857   withval=$with_postgresql;
23858   if test "$withval" != "no"; then
23859       if test "$withval" = "yes"; then
23860           PG_CONFIG=`which pg_config 2>/dev/null`
23861           if test -n "$PG_CONFIG"; then
23862               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23863               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23864               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23865           elif test -f /usr/local/include/libpq-fe.h; then
23866               POSTGRESQL_INCDIR=/usr/local/include
23867               if test -d /usr/local/lib64; then
23868                  POSTGRESQL_LIBDIR=/usr/local/lib64
23869               else
23870                  POSTGRESQL_LIBDIR=/usr/local/lib
23871               fi
23872               POSTGRESQL_BINDIR=/usr/local/bin
23873           elif test -f /usr/include/libpq-fe.h; then
23874               POSTGRESQL_INCDIR=/usr/include
23875               if test -d /usr/lib64; then
23876                  POSTGRESQL_LIBDIR=/usr/lib64
23877               else
23878                  POSTGRESQL_LIBDIR=/usr/lib
23879               fi
23880               POSTGRESQL_BINDIR=/usr/bin
23881           elif test -f /usr/include/pgsql/libpq-fe.h; then
23882               POSTGRESQL_INCDIR=/usr/include/pgsql
23883               if test -d /usr/lib64/pgsql; then
23884                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23885               else
23886                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23887               fi
23888               POSTGRESQL_BINDIR=/usr/bin
23889           elif test -f /usr/include/postgresql/libpq-fe.h; then
23890               POSTGRESQL_INCDIR=/usr/include/postgresql
23891               if test -d /usr/lib64/postgresql; then
23892                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23893               else
23894                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23895               fi
23896               POSTGRESQL_BINDIR=/usr/bin
23897           else
23898               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23899 $as_echo "no" >&6; }
23900               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23901           fi
23902       elif test -f $withval/include/libpq-fe.h; then
23903           POSTGRESQL_INCDIR=$withval/include
23904           POSTGRESQL_LIBDIR=$withval/lib
23905           POSTGRESQL_BINDIR=$withval/bin
23906       elif test -f $withval/include/postgresql/libpq-fe.h; then
23907           POSTGRESQL_INCDIR=$withval/include/postgresql
23908           if test -d $withval/lib64; then
23909               POSTGRESQL_LIBDIR=$withval/lib64
23910           else
23911               POSTGRESQL_LIBDIR=$withval/lib
23912           fi
23913           POSTGRESQL_BINDIR=$withval/bin
23914       else
23915           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23916 $as_echo "no" >&6; }
23917           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23918       fi
23919
23920 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23921
23922      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23923 $as_echo "yes" >&6; }
23924
23925      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23926      if test x$use_libtool != xno; then
23927         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23928      else
23929         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23930      fi
23931      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23932 if test "x$ac_cv_func_crypt" = xyes; then :
23933
23934 else
23935   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23936 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23937 if ${ac_cv_lib_crypt_crypt+:} false; then :
23938   $as_echo_n "(cached) " >&6
23939 else
23940   ac_check_lib_save_LIBS=$LIBS
23941 LIBS="-lcrypt  $LIBS"
23942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23943 /* end confdefs.h.  */
23944
23945 /* Override any GCC internal prototype to avoid an error.
23946    Use char because int might match the return type of a GCC
23947    builtin and then its argument prototype would still apply.  */
23948 #ifdef __cplusplus
23949 extern "C"
23950 #endif
23951 char crypt ();
23952 int
23953 main ()
23954 {
23955 return crypt ();
23956   ;
23957   return 0;
23958 }
23959 _ACEOF
23960 if ac_fn_c_try_link "$LINENO"; then :
23961   ac_cv_lib_crypt_crypt=yes
23962 else
23963   ac_cv_lib_crypt_crypt=no
23964 fi
23965 rm -f core conftest.err conftest.$ac_objext \
23966     conftest$ac_exeext conftest.$ac_ext
23967 LIBS=$ac_check_lib_save_LIBS
23968 fi
23969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23970 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23971 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23972   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23973 fi
23974
23975 fi
23976
23977      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23978      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23979
23980      if test -z "${db_backends}"; then
23981          db_backends="PostgreSQL"
23982      else
23983          db_backends="${db_backends} PostgreSQL"
23984      fi
23985      if test -z "${DB_BACKENDS}"; then
23986          DB_BACKENDS="postgresql"
23987      else
23988          DB_BACKENDS="${DB_BACKENDS} postgresql"
23989      fi
23990
23991                     if test "x$support_batch_insert" = "xyes"; then
23992                   saved_LDFLAGS="${LDFLAGS}"
23993          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23994          saved_LIBS="${LIBS}"
23995          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23996             LIBS="${saved_LIBS} -lcrypt"
23997          fi
23998
23999          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
24000 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
24001 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
24002   $as_echo_n "(cached) " >&6
24003 else
24004   ac_check_lib_save_LIBS=$LIBS
24005 LIBS="-lpq  $LIBS"
24006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24007 /* end confdefs.h.  */
24008
24009 /* Override any GCC internal prototype to avoid an error.
24010    Use char because int might match the return type of a GCC
24011    builtin and then its argument prototype would still apply.  */
24012 #ifdef __cplusplus
24013 extern "C"
24014 #endif
24015 char PQisthreadsafe ();
24016 int
24017 main ()
24018 {
24019 return PQisthreadsafe ();
24020   ;
24021   return 0;
24022 }
24023 _ACEOF
24024 if ac_fn_c_try_link "$LINENO"; then :
24025   ac_cv_lib_pq_PQisthreadsafe=yes
24026 else
24027   ac_cv_lib_pq_PQisthreadsafe=no
24028 fi
24029 rm -f core conftest.err conftest.$ac_objext \
24030     conftest$ac_exeext conftest.$ac_ext
24031 LIBS=$ac_check_lib_save_LIBS
24032 fi
24033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
24034 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
24035 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
24036
24037 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
24038
24039 fi
24040
24041          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
24042 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
24043 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
24044   $as_echo_n "(cached) " >&6
24045 else
24046   ac_check_lib_save_LIBS=$LIBS
24047 LIBS="-lpq  $LIBS"
24048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24049 /* end confdefs.h.  */
24050
24051 /* Override any GCC internal prototype to avoid an error.
24052    Use char because int might match the return type of a GCC
24053    builtin and then its argument prototype would still apply.  */
24054 #ifdef __cplusplus
24055 extern "C"
24056 #endif
24057 char PQputCopyData ();
24058 int
24059 main ()
24060 {
24061 return PQputCopyData ();
24062   ;
24063   return 0;
24064 }
24065 _ACEOF
24066 if ac_fn_c_try_link "$LINENO"; then :
24067   ac_cv_lib_pq_PQputCopyData=yes
24068 else
24069   ac_cv_lib_pq_PQputCopyData=no
24070 fi
24071 rm -f core conftest.err conftest.$ac_objext \
24072     conftest$ac_exeext conftest.$ac_ext
24073 LIBS=$ac_check_lib_save_LIBS
24074 fi
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24076 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24077 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24078
24079 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24080
24081 fi
24082
24083          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24084              if test $support_batch_insert = yes ; then
24085
24086 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24087
24088                  if test -z "${batch_insert_db_backends}"; then
24089                      batch_insert_db_backends="PostgreSQL"
24090                  else
24091                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24092                  fi
24093              fi
24094          fi
24095
24096          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24097          then
24098              echo "WARNING: Your PostgreSQL client library is too old to detect "
24099              echo "if it was compiled with --enable-thread-safety, consider to "
24100              echo "upgrade it in order to avoid problems with Batch insert mode"
24101          fi
24102
24103                   LDFLAGS="${saved_LDFLAGS}"
24104          LIBS="${saved_LIBS}"
24105      fi
24106   else
24107      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24108 $as_echo "no" >&6; }
24109   fi
24110
24111 else
24112
24113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24114 $as_echo "no" >&6; }
24115
24116 fi
24117
24118
24119
24120
24121
24122
24123
24124
24125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24126 $as_echo_n "checking for MySQL support... " >&6; }
24127
24128 # Check whether --with-mysql was given.
24129 if test "${with_mysql+set}" = set; then :
24130   withval=$with_mysql;
24131   HAVE_LIBSR="no"
24132   if test "$withval" != "no"; then
24133      if test "$withval" = "yes"; then
24134         MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24135         if test "x${MYSQL_CONFIG}" != x; then
24136            MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24137            ${MYSQL_CONFIG} --libs_r >/dev/null 2>&1
24138            if test $? = 0; then
24139               MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r`
24140               MYSQL_INCDIR=`${MYSQL_CONFIG} --include`
24141               HAVE_LIBSR="yes"
24142            else
24143               ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24144               if test $? = 0 ; then
24145                  MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24146                  MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24147               fi
24148            fi
24149         fi
24150         # if something wrong fall back to old method
24151         if test "x${MYSQL_LIBDIR}" = x -o "x${MYSQL_INCDIR}" = x ; then
24152            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24153               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24154               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24155                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24156                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24157               else
24158                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24159               fi
24160               MYSQL_BINDIR=/usr/local/mysql/bin
24161            elif test -f /usr/include/mysql/mysql.h; then
24162               MYSQL_INCDIR=/usr/include/mysql
24163               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24164                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24165                  MYSQL_LIBDIR=/usr/lib64/mysql
24166               elif test -f /usr/lib64/libmysqlclient_r.a \
24167                         -o -f /usr/lib64/libmysqlclient_r.so; then
24168                  MYSQL_LIBDIR=/usr/lib64
24169               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24170                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24171                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24172               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24173                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24174                  MYSQL_LIBDIR=/usr/lib/mysql
24175               else
24176                  MYSQL_LIBDIR=/usr/lib
24177               fi
24178               MYSQL_BINDIR=/usr/bin
24179            elif test -f /usr/include/mysql.h; then
24180               MYSQL_INCDIR=/usr/include
24181               if test -f /usr/lib64/libmysqlclient_r.a \
24182                       -o -f /usr/lib64/libmysqlclient_r.so; then
24183                  MYSQL_LIBDIR=/usr/lib64
24184               else
24185                  MYSQL_LIBDIR=/usr/lib
24186               fi
24187               MYSQL_BINDIR=/usr/bin
24188            elif test -f /usr/local/include/mysql/mysql.h; then
24189               MYSQL_INCDIR=/usr/local/include/mysql
24190               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24191                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24192                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24193               else
24194                  MYSQL_LIBDIR=/usr/local/lib/mysql
24195               fi
24196               MYSQL_BINDIR=/usr/local/bin
24197            elif test -f /usr/local/include/mysql.h; then
24198               MYSQL_INCDIR=/usr/local/include
24199               if test -f /usr/local/lib64/libmysqlclient_r.a \
24200                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24201                  MYSQL_LIBDIR=/usr/local/lib64
24202               else
24203                  MYSQL_LIBDIR=/usr/local/lib
24204               fi
24205               MYSQL_BINDIR=/usr/local/bin
24206            else
24207               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24208 $as_echo "no" >&6; }
24209               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24210            fi
24211         fi
24212      else
24213         if test -f $withval/include/mysql/mysql.h; then
24214            MYSQL_INCDIR=$withval/include/mysql
24215            if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24216                 -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24217               MYSQL_LIBDIR=$withval/lib64/mysql
24218            elif test -f $withval/lib64/libmysqlclient_r.a \
24219                 -o -f $withval/lib64/libmysqlclient_r.so; then
24220               MYSQL_LIBDIR=$withval/lib64
24221            elif test -f $withval/lib/libmysqlclient_r.a \
24222                 -o -f $withval/lib/libmysqlclient_r.so; then
24223               MYSQL_LIBDIR=$withval/lib
24224            else
24225               MYSQL_LIBDIR=$withval/lib/mysql
24226            fi
24227            MYSQL_BINDIR=$withval/bin
24228         elif test -f $withval/include/mysql.h; then
24229            MYSQL_INCDIR=$withval/include
24230            if test -f $withval/lib64/libmysqlclient_r.a \
24231                 -o -f $withval/lib64/libmysqlclient_r.so; then
24232               MYSQL_LIBDIR=$withval/lib64
24233            else
24234               MYSQL_LIBDIR=$withval/lib
24235            fi
24236            MYSQL_BINDIR=$withval/bin
24237         elif test -f $withval/mysql.h; then
24238                       MYSQL_INCDIR=$withval
24239            { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24240 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24241            case $MYSQL_INCDIR in
24242               *mysql55*)
24243                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24244 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24245                                     if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24246                        -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24247                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24248 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24249                      MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24250                   fi
24251                   MYSQL_BINDIR=$prefix/lib/mysql55/bin
24252               ;;
24253               *mysql51*)
24254                   { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24255 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24256                                     if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24257                        -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24258                      { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24259 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24260                      MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24261                   fi
24262                   MYSQL_BINDIR=$prefix/lib/mysql51/bin
24263               ;;
24264            esac
24265            if test -z "${MYSQL_LIBDIR}" ; then
24266               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24267 $as_echo "no" >&6; }
24268               as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24269            fi
24270         else
24271            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24272 $as_echo "no" >&6; }
24273            as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24274         fi
24275      fi
24276      if test "x${MYSQL_LIBDIR}" != x; then
24277         MYSQL_INCLUDE=-I$MYSQL_INCDIR
24278         if test "x$HAVE_LIBSR" = "xyes"; then
24279            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24280            MYSQL_LIBS="$MYSQL_LIBDIR"
24281            MYSQL_INCLUDE="$MYSQL_INCDIR"
24282
24283 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24284
24285            if test -z "${batch_insert_db_backends}"; then
24286               batch_insert_db_backends="MySQL"
24287            else
24288               batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24289            fi
24290         elif test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24291                -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24292            if test x$use_libtool != xno; then
24293               MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24294            else
24295               MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24296            fi
24297            DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24298         fi
24299         if test "x${MYSQL_LIBS}" = x; then
24300            MYSQL_LIBS=$MYSQL_LIBDIR/libmysqlclient_r.a
24301         fi
24302
24303
24304 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24305
24306         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24307 $as_echo "yes" >&6; }
24308
24309         if test -z "${db_backends}" ; then
24310             db_backends="MySQL"
24311         else
24312             db_backends="${db_backends} MySQL"
24313         fi
24314         if test -z "${DB_BACKENDS}" ; then
24315             DB_BACKENDS="mysql"
24316         else
24317             DB_BACKENDS="${DB_BACKENDS} mysql"
24318         fi
24319
24320                                 if test "x$HAVE_LIBSR" = "xno"; then
24321           if test "x$support_batch_insert" = "xyes"; then
24322                         saved_LDFLAGS="${LDFLAGS}"
24323             LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24324             saved_LIBS="${LIBS}"
24325             LIBS="${saved_LIBS} -lz"
24326
24327             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24328 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24329 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24330   $as_echo_n "(cached) " >&6
24331 else
24332   ac_check_lib_save_LIBS=$LIBS
24333 LIBS="-lmysqlclient_r  $LIBS"
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h.  */
24336
24337 /* Override any GCC internal prototype to avoid an error.
24338    Use char because int might match the return type of a GCC
24339    builtin and then its argument prototype would still apply.  */
24340 #ifdef __cplusplus
24341 extern "C"
24342 #endif
24343 char mysql_thread_safe ();
24344 int
24345 main ()
24346 {
24347 return mysql_thread_safe ();
24348   ;
24349   return 0;
24350 }
24351 _ACEOF
24352 if ac_fn_c_try_link "$LINENO"; then :
24353   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24354 else
24355   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24356 fi
24357 rm -f core conftest.err conftest.$ac_objext \
24358     conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24360 fi
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24362 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24363 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24364
24365 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24366
24367 fi
24368
24369             if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24370                 if test -z "${batch_insert_db_backends}"; then
24371                     batch_insert_db_backends="MySQL"
24372                 else
24373                     batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24374                 fi
24375             fi
24376
24377                         LDFLAGS="${saved_LDFLAGS}"
24378             LIBS="${saved_LIBS}"
24379           fi
24380         fi
24381      else
24382         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24383 $as_echo "no" >&6; }
24384      fi
24385   fi
24386
24387 else
24388
24389   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24390 $as_echo "no" >&6; }
24391
24392 fi
24393
24394
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24396 $as_echo_n "checking for MySQL embedded support... " >&6; }
24397
24398 # Check whether --with-embedded-mysql was given.
24399 if test "${with_embedded_mysql+set}" = set; then :
24400   withval=$with_embedded_mysql;
24401   if test "$withval" != "no"; then
24402         if test "$withval" = "yes"; then
24403                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24404                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24405                         if test -d /usr/local/mysql/lib64/mysql; then
24406                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24407                         else
24408                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24409                         fi
24410                         MYSQL_BINDIR=/usr/local/mysql/bin
24411                 elif test -f /usr/include/mysql/mysql.h; then
24412                         MYSQL_INCDIR=/usr/include/mysql
24413                         if test -d /usr/lib64/mysql; then
24414                                 MYSQL_LIBDIR=/usr/lib64/mysql
24415                         else
24416                                 MYSQL_LIBDIR=/usr/lib/mysql
24417                         fi
24418                         MYSQL_BINDIR=/usr/bin
24419                 elif test -f /usr/include/mysql.h; then
24420                         MYSQL_INCDIR=/usr/include
24421                         if test -d /usr/lib64; then
24422                                 MYSQL_LIBDIR=/usr/lib64
24423                         else
24424                                 MYSQL_LIBDIR=/usr/lib
24425                         fi
24426                         MYSQL_BINDIR=/usr/bin
24427                 elif test -f /usr/local/include/mysql/mysql.h; then
24428                         MYSQL_INCDIR=/usr/local/include/mysql
24429                         if test -d /usr/local/lib64/mysql; then
24430                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24431                         else
24432                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24433                         fi
24434                         MYSQL_BINDIR=/usr/local/bin
24435                 elif test -f /usr/local/include/mysql.h; then
24436                         MYSQL_INCDIR=/usr/local/include
24437                         if test -d /usr/local/lib64; then
24438                                 MYSQL_LIBDIR=/usr/local/lib64
24439                         else
24440                                 MYSQL_LIBDIR=/usr/local/lib
24441                         fi
24442                         MYSQL_BINDIR=/usr/local/bin
24443                 else
24444                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24445 $as_echo "no" >&6; }
24446                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24447                 fi
24448         else
24449                 if test -f $withval/include/mysql/mysql.h; then
24450                         MYSQL_INCDIR=$withval/include/mysql
24451                         if test -d $withval/lib64/mysql; then
24452                                 MYSQL_LIBDIR=$withval/lib64/mysql
24453                         else
24454                                 MYSQL_LIBDIR=$withval/lib/mysql
24455                         fi
24456                         MYSQL_BINDIR=$withval/bin
24457                 elif test -f $withval/include/mysql.h; then
24458                         MYSQL_INCDIR=$withval/include
24459                         if test -d $withval/lib64; then
24460                                 MYSQL_LIBDIR=$withval/lib64
24461                         else
24462                                 MYSQL_LIBDIR=$withval/lib
24463                         fi
24464                         MYSQL_BINDIR=$withval/bin
24465                 else
24466                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 $as_echo "no" >&6; }
24468                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24469                 fi
24470         fi
24471      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24472      if test x$use_libtool != xno; then
24473         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24474      else
24475         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24476      fi
24477      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24478      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24479
24480
24481 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24482
24483
24484 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24485
24486      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24487 $as_echo "yes" >&6; }
24488
24489      if test -z "${db_backends}"; then
24490          db_backends="MySQL"
24491      else
24492          db_backends="${db_backends} MySQL"
24493      fi
24494      if test -z "${DB_BACKENDS}"; then
24495          DB_BACKENDS="mysql"
24496      else
24497          DB_BACKENDS="${DB_BACKENDS} mysql"
24498      fi
24499
24500                     if test "x$support_batch_insert" = "xyes"; then
24501                   saved_LDFLAGS="${LDFLAGS}"
24502          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24503          saved_LIBS="${LIBS}"
24504          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24505
24506          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24507 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24508 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24509   $as_echo_n "(cached) " >&6
24510 else
24511   ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-lmysqlclient_r  $LIBS"
24513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24514 /* end confdefs.h.  */
24515
24516 /* Override any GCC internal prototype to avoid an error.
24517    Use char because int might match the return type of a GCC
24518    builtin and then its argument prototype would still apply.  */
24519 #ifdef __cplusplus
24520 extern "C"
24521 #endif
24522 char mysql_thread_safe ();
24523 int
24524 main ()
24525 {
24526 return mysql_thread_safe ();
24527   ;
24528   return 0;
24529 }
24530 _ACEOF
24531 if ac_fn_c_try_link "$LINENO"; then :
24532   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24533 else
24534   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24535 fi
24536 rm -f core conftest.err conftest.$ac_objext \
24537     conftest$ac_exeext conftest.$ac_ext
24538 LIBS=$ac_check_lib_save_LIBS
24539 fi
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24541 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24542 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24543
24544 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24545
24546 fi
24547
24548          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24549              if test -z "${batch_insert_db_backends}"; then
24550                  batch_insert_db_backends="MySQL"
24551              else
24552                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24553              fi
24554          fi
24555
24556                   LDFLAGS="${saved_LDFLAGS}"
24557          LIBS="${saved_LIBS}"
24558      fi
24559   else
24560      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562   fi
24563
24564 else
24565
24566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24567 $as_echo "no" >&6; }
24568
24569 fi
24570
24571
24572
24573
24574
24575
24576
24577
24578
24579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24580 $as_echo_n "checking for SQLite3 support... " >&6; }
24581
24582 # Check whether --with-sqlite3 was given.
24583 if test "${with_sqlite3+set}" = set; then :
24584   withval=$with_sqlite3;
24585   if test "$withval" != "no"; then
24586      if test "$withval" = "yes"; then
24587         if test -f /usr/local/include/sqlite3.h; then
24588            SQLITE_INCDIR=/usr/local/include
24589            if test -d /usr/local/lib64; then
24590               SQLITE_LIBDIR=/usr/local/lib64
24591            else
24592               SQLITE_LIBDIR=/usr/local/lib
24593            fi
24594            SQLITE_BINDIR=/usr/local/bin
24595         elif test -f /usr/include/sqlite3.h; then
24596            SQLITE_INCDIR=/usr/include
24597            if test -d /usr/lib64; then
24598               SQLITE_LIBDIR=/usr/lib64
24599            else
24600               SQLITE_LIBDIR=/usr/lib
24601            fi
24602            SQLITE_BINDIR=/usr/bin
24603         elif test -f $prefix/include/sqlite3.h; then
24604            SQLITE_INCDIR=$prefix/include
24605            if test -d $prefix/lib64; then
24606               SQLITE_LIBDIR=$prefix/lib64
24607            else
24608               SQLITE_LIBDIR=$prefix/lib
24609            fi
24610            SQLITE_BINDIR=$prefix/bin
24611         else
24612            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24613 $as_echo "no" >&6; }
24614            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24615         fi
24616      else
24617         if test -f $withval/sqlite3.h; then
24618            SQLITE_INCDIR=$withval
24619            SQLITE_LIBDIR=$withval
24620            SQLITE_BINDIR=$withval
24621         elif test -f $withval/include/sqlite3.h; then
24622            SQLITE_INCDIR=$withval/include
24623            if test -d $withval/lib64; then
24624               SQLITE_LIBDIR=$withval/lib64
24625            else
24626               SQLITE_LIBDIR=$withval/lib
24627            fi
24628            SQLITE_BINDIR=$withval/bin
24629         else
24630            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24631 $as_echo "no" >&6; }
24632            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24633         fi
24634      fi
24635      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24636      if test x$use_libtool != xno; then
24637         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24638      else
24639         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24640      fi
24641      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24642      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24643
24644
24645 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24646
24647      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24648 $as_echo "yes" >&6; }
24649
24650      if test -z "${db_backends}"; then
24651          db_backends="SQLite3"
24652      else
24653          db_backends="${db_backends} SQLite3"
24654      fi
24655      if test -z "${DB_BACKENDS}"; then
24656          DB_BACKENDS="sqlite3"
24657      else
24658          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24659      fi
24660
24661                     if test "x$support_batch_insert" = "xyes"; then
24662                   saved_LDFLAGS="${LDFLAGS}"
24663          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24664
24665          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24666 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24667 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24668   $as_echo_n "(cached) " >&6
24669 else
24670   ac_check_lib_save_LIBS=$LIBS
24671 LIBS="-lsqlite3  $LIBS"
24672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24673 /* end confdefs.h.  */
24674
24675 /* Override any GCC internal prototype to avoid an error.
24676    Use char because int might match the return type of a GCC
24677    builtin and then its argument prototype would still apply.  */
24678 #ifdef __cplusplus
24679 extern "C"
24680 #endif
24681 char sqlite3_threadsafe ();
24682 int
24683 main ()
24684 {
24685 return sqlite3_threadsafe ();
24686   ;
24687   return 0;
24688 }
24689 _ACEOF
24690 if ac_fn_c_try_link "$LINENO"; then :
24691   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24692 else
24693   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24694 fi
24695 rm -f core conftest.err conftest.$ac_objext \
24696     conftest$ac_exeext conftest.$ac_ext
24697 LIBS=$ac_check_lib_save_LIBS
24698 fi
24699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24700 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24701 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24702
24703 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24704
24705 fi
24706
24707          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24708              if test -z "${batch_insert_db_backends}"; then
24709                  batch_insert_db_backends="SQLite3"
24710              else
24711                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24712              fi
24713          fi
24714
24715                   LDFLAGS="${saved_LDFLAGS}"
24716      fi
24717   else
24718      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24720   fi
24721
24722 else
24723
24724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24725 $as_echo "no" >&6; }
24726
24727 fi
24728
24729
24730
24731
24732
24733
24734
24735 if test -z "${batch_insert_db_backends}"; then
24736    batch_insert_db_backends="None"
24737 fi
24738
24739 if test "x${db_backends}" = "x" ; then
24740    echo " "
24741    echo " "
24742    echo "You have not specified either --enable-client-only or one of the"
24743    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24744    echo "This is not permitted. Please reconfigure."
24745    echo " "
24746    echo "Aborting the configuration ..."
24747    echo " "
24748    echo " "
24749    exit 1
24750 fi
24751
24752 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24753    1)
24754       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24755       if test x$use_libtool = xno; then
24756          SHARED_CATALOG_TARGETS=""
24757       else
24758          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24759       fi
24760       ;;
24761    *)
24762                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24763
24764                         if test x$use_libtool = xno; then
24765          echo " "
24766          echo " "
24767          echo "You have specified two or more of the"
24768          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24769          echo "This is not permitted when not using libtool Please reconfigure."
24770          echo " "
24771          echo "Aborting the configuration ..."
24772          echo " "
24773          echo " "
24774          exit 1
24775       fi
24776
24777       SHARED_CATALOG_TARGETS=""
24778       for db_type in ${DB_BACKENDS}
24779       do
24780          if test -z "${SHARED_CATALOG_TARGETS}"; then
24781             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24782          else
24783             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24784          fi
24785       done
24786       ;;
24787 esac
24788
24789 if test x$use_libtool = xyes; then
24790    DB_LIBS=""
24791 fi
24792
24793
24794
24795
24796
24797
24798
24799 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24800
24801
24802 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24803    if test -z "$CCOPTS"; then
24804       CCOPTS='-g -O2 -Wall'
24805    fi
24806    CFLAGS="$CCOPTS"
24807 fi
24808
24809
24810
24811 largefile_support="no"
24812
24813    # Check whether --enable-largefile was given.
24814 if test "${enable_largefile+set}" = set; then :
24815   enableval=$enable_largefile;
24816 fi
24817
24818    if test "$enable_largefile" != no; then
24819      if test -n "$ac_tool_prefix"; then
24820   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24821 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24823 $as_echo_n "checking for $ac_word... " >&6; }
24824 if ${ac_cv_prog_GETCONF+:} false; then :
24825   $as_echo_n "(cached) " >&6
24826 else
24827   if test -n "$GETCONF"; then
24828   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24829 else
24830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24831 for as_dir in $PATH
24832 do
24833   IFS=$as_save_IFS
24834   test -z "$as_dir" && as_dir=.
24835     for ac_exec_ext in '' $ac_executable_extensions; do
24836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24837     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24839     break 2
24840   fi
24841 done
24842   done
24843 IFS=$as_save_IFS
24844
24845 fi
24846 fi
24847 GETCONF=$ac_cv_prog_GETCONF
24848 if test -n "$GETCONF"; then
24849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24850 $as_echo "$GETCONF" >&6; }
24851 else
24852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24853 $as_echo "no" >&6; }
24854 fi
24855
24856
24857 fi
24858 if test -z "$ac_cv_prog_GETCONF"; then
24859   ac_ct_GETCONF=$GETCONF
24860   # Extract the first word of "getconf", so it can be a program name with args.
24861 set dummy getconf; ac_word=$2
24862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24863 $as_echo_n "checking for $ac_word... " >&6; }
24864 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24865   $as_echo_n "(cached) " >&6
24866 else
24867   if test -n "$ac_ct_GETCONF"; then
24868   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24869 else
24870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24871 for as_dir in $PATH
24872 do
24873   IFS=$as_save_IFS
24874   test -z "$as_dir" && as_dir=.
24875     for ac_exec_ext in '' $ac_executable_extensions; do
24876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24877     ac_cv_prog_ac_ct_GETCONF="getconf"
24878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24879     break 2
24880   fi
24881 done
24882   done
24883 IFS=$as_save_IFS
24884
24885 fi
24886 fi
24887 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24888 if test -n "$ac_ct_GETCONF"; then
24889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24890 $as_echo "$ac_ct_GETCONF" >&6; }
24891 else
24892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24893 $as_echo "no" >&6; }
24894 fi
24895
24896   if test "x$ac_ct_GETCONF" = x; then
24897     GETCONF=""
24898   else
24899     case $cross_compiling:$ac_tool_warned in
24900 yes:)
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24903 ac_tool_warned=yes ;;
24904 esac
24905     GETCONF=$ac_ct_GETCONF
24906   fi
24907 else
24908   GETCONF="$ac_cv_prog_GETCONF"
24909 fi
24910
24911      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24912 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24913 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24914   $as_echo_n "(cached) " >&6
24915 else
24916   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24917         ac_cv_sys_largefile_CFLAGS=no
24918         case "$host_os" in
24919            # IRIX 6.2 and later require cc -n32.
24920            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24921              if test "$GCC" != yes; then
24922                ac_cv_sys_largefile_CFLAGS=-n32
24923              fi
24924              ac_save_CC="$CC"
24925              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24926              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24927 /* end confdefs.h.  */
24928
24929 int
24930 main ()
24931 {
24932
24933   ;
24934   return 0;
24935 }
24936 _ACEOF
24937 if ac_fn_c_try_link "$LINENO"; then :
24938
24939 else
24940   ac_cv_sys_largefile_CFLAGS=no
24941 fi
24942 rm -f core conftest.err conftest.$ac_objext \
24943     conftest$ac_exeext conftest.$ac_ext
24944              CC="$ac_save_CC"
24945            esac
24946       }
24947 fi
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24949 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24950      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24951 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24952 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24953   $as_echo_n "(cached) " >&6
24954 else
24955   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24956         ac_cv_sys_largefile_LDFLAGS=no
24957
24958       }
24959 fi
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24961 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24962      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24963 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24964 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24965   $as_echo_n "(cached) " >&6
24966 else
24967   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24968         ac_cv_sys_largefile_LIBS=no
24969
24970       }
24971 fi
24972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24973 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24974
24975      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24976        case "$ac_flag" in
24977        no) ;;
24978        -D_FILE_OFFSET_BITS=*) ;;
24979        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24980        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24981        -D?* | -I?*)
24982          case "$ac_flag" in
24983    no) ;;
24984    ?*)
24985      case "$CPPFLAGS" in
24986      '') CPPFLAGS="$ac_flag" ;;
24987      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24988      esac ;;
24989    esac ;;
24990        *)
24991          case "$ac_flag" in
24992    no) ;;
24993    ?*)
24994      case "$CFLAGS" in
24995      '') CFLAGS="$ac_flag" ;;
24996      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24997      esac ;;
24998    esac ;;
24999        esac
25000      done
25001      case "$ac_cv_sys_largefile_LDFLAGS" in
25002    no) ;;
25003    ?*)
25004      case "$LDFLAGS" in
25005      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
25006      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
25007      esac ;;
25008    esac
25009      case "$ac_cv_sys_largefile_LIBS" in
25010    no) ;;
25011    ?*)
25012      case "$LIBS" in
25013      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
25014      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
25015      esac ;;
25016    esac
25017      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
25018 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
25019 if ${ac_cv_sys_file_offset_bits+:} false; then :
25020   $as_echo_n "(cached) " >&6
25021 else
25022   ac_cv_sys_file_offset_bits=no
25023       ac_cv_sys_file_offset_bits=64
25024       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25025         case "$ac_flag" in
25026         -D_FILE_OFFSET_BITS)
25027           ac_cv_sys_file_offset_bits=1 ;;
25028         -D_FILE_OFFSET_BITS=*)
25029           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25030         esac
25031       done
25032
25033 fi
25034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
25035 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
25036    if test "$ac_cv_sys_file_offset_bits" != no; then
25037
25038 cat >>confdefs.h <<_ACEOF
25039 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25040 _ACEOF
25041
25042    fi
25043      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
25044 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
25045 if ${ac_cv_sys_largefile_source+:} false; then :
25046   $as_echo_n "(cached) " >&6
25047 else
25048   ac_cv_sys_largefile_source=no
25049       ac_cv_sys_largefile_source=1
25050       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25051         case "$ac_flag" in
25052         -D_LARGEFILE_SOURCE)
25053           ac_cv_sys_largefile_source=1 ;;
25054         -D_LARGEFILE_SOURCE=*)
25055           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25056         esac
25057       done
25058
25059 fi
25060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
25061 $as_echo "$ac_cv_sys_largefile_source" >&6; }
25062    if test "$ac_cv_sys_largefile_source" != no; then
25063
25064 cat >>confdefs.h <<_ACEOF
25065 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
25066 _ACEOF
25067
25068    fi
25069      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25070 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25071 if ${ac_cv_sys_large_files+:} false; then :
25072   $as_echo_n "(cached) " >&6
25073 else
25074   ac_cv_sys_large_files=no
25075       ac_cv_sys_large_files=1
25076       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25077         case "$ac_flag" in
25078         -D_LARGE_FILES)
25079           ac_cv_sys_large_files=1 ;;
25080         -D_LARGE_FILES=*)
25081           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25082         esac
25083       done
25084
25085 fi
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25087 $as_echo "$ac_cv_sys_large_files" >&6; }
25088    if test "$ac_cv_sys_large_files" != no; then
25089
25090 cat >>confdefs.h <<_ACEOF
25091 #define _LARGE_FILES $ac_cv_sys_large_files
25092 _ACEOF
25093
25094    fi
25095    fi
25096
25097
25098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25099 $as_echo_n "checking for X... " >&6; }
25100
25101
25102 # Check whether --with-x was given.
25103 if test "${with_x+set}" = set; then :
25104   withval=$with_x;
25105 fi
25106
25107 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25108 if test "x$with_x" = xno; then
25109   # The user explicitly disabled X.
25110   have_x=disabled
25111 else
25112   case $x_includes,$x_libraries in #(
25113     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25114     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25115   $as_echo_n "(cached) " >&6
25116 else
25117   # One or both of the vars are not set, and there is no cached value.
25118 ac_x_includes=no ac_x_libraries=no
25119 rm -f -r conftest.dir
25120 if mkdir conftest.dir; then
25121   cd conftest.dir
25122   cat >Imakefile <<'_ACEOF'
25123 incroot:
25124         @echo incroot='${INCROOT}'
25125 usrlibdir:
25126         @echo usrlibdir='${USRLIBDIR}'
25127 libdir:
25128         @echo libdir='${LIBDIR}'
25129 _ACEOF
25130   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25131     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25132     for ac_var in incroot usrlibdir libdir; do
25133       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25134     done
25135     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25136     for ac_extension in a so sl dylib la dll; do
25137       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25138          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25139         ac_im_usrlibdir=$ac_im_libdir; break
25140       fi
25141     done
25142     # Screen out bogus values from the imake configuration.  They are
25143     # bogus both because they are the default anyway, and because
25144     # using them would break gcc on systems where it needs fixed includes.
25145     case $ac_im_incroot in
25146         /usr/include) ac_x_includes= ;;
25147         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25148     esac
25149     case $ac_im_usrlibdir in
25150         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25151         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25152     esac
25153   fi
25154   cd ..
25155   rm -f -r conftest.dir
25156 fi
25157
25158 # Standard set of common directories for X headers.
25159 # Check X11 before X11Rn because it is often a symlink to the current release.
25160 ac_x_header_dirs='
25161 /usr/X11/include
25162 /usr/X11R7/include
25163 /usr/X11R6/include
25164 /usr/X11R5/include
25165 /usr/X11R4/include
25166
25167 /usr/include/X11
25168 /usr/include/X11R7
25169 /usr/include/X11R6
25170 /usr/include/X11R5
25171 /usr/include/X11R4
25172
25173 /usr/local/X11/include
25174 /usr/local/X11R7/include
25175 /usr/local/X11R6/include
25176 /usr/local/X11R5/include
25177 /usr/local/X11R4/include
25178
25179 /usr/local/include/X11
25180 /usr/local/include/X11R7
25181 /usr/local/include/X11R6
25182 /usr/local/include/X11R5
25183 /usr/local/include/X11R4
25184
25185 /usr/X386/include
25186 /usr/x386/include
25187 /usr/XFree86/include/X11
25188
25189 /usr/include
25190 /usr/local/include
25191 /usr/unsupported/include
25192 /usr/athena/include
25193 /usr/local/x11r5/include
25194 /usr/lpp/Xamples/include
25195
25196 /usr/openwin/include
25197 /usr/openwin/share/include'
25198
25199 if test "$ac_x_includes" = no; then
25200   # Guess where to find include files, by looking for Xlib.h.
25201   # First, try using that file with no special directory specified.
25202   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25203 /* end confdefs.h.  */
25204 #include <X11/Xlib.h>
25205 _ACEOF
25206 if ac_fn_c_try_cpp "$LINENO"; then :
25207   # We can compile using X headers with no special include directory.
25208 ac_x_includes=
25209 else
25210   for ac_dir in $ac_x_header_dirs; do
25211   if test -r "$ac_dir/X11/Xlib.h"; then
25212     ac_x_includes=$ac_dir
25213     break
25214   fi
25215 done
25216 fi
25217 rm -f conftest.err conftest.i conftest.$ac_ext
25218 fi # $ac_x_includes = no
25219
25220 if test "$ac_x_libraries" = no; then
25221   # Check for the libraries.
25222   # See if we find them without any special options.
25223   # Don't add to $LIBS permanently.
25224   ac_save_LIBS=$LIBS
25225   LIBS="-lX11 $LIBS"
25226   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25227 /* end confdefs.h.  */
25228 #include <X11/Xlib.h>
25229 int
25230 main ()
25231 {
25232 XrmInitialize ()
25233   ;
25234   return 0;
25235 }
25236 _ACEOF
25237 if ac_fn_c_try_link "$LINENO"; then :
25238   LIBS=$ac_save_LIBS
25239 # We can link X programs with no special library path.
25240 ac_x_libraries=
25241 else
25242   LIBS=$ac_save_LIBS
25243 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25244 do
25245   # Don't even attempt the hair of trying to link an X program!
25246   for ac_extension in a so sl dylib la dll; do
25247     if test -r "$ac_dir/libX11.$ac_extension"; then
25248       ac_x_libraries=$ac_dir
25249       break 2
25250     fi
25251   done
25252 done
25253 fi
25254 rm -f core conftest.err conftest.$ac_objext \
25255     conftest$ac_exeext conftest.$ac_ext
25256 fi # $ac_x_libraries = no
25257
25258 case $ac_x_includes,$ac_x_libraries in #(
25259   no,* | *,no | *\'*)
25260     # Didn't find X, or a directory has "'" in its name.
25261     ac_cv_have_x="have_x=no";; #(
25262   *)
25263     # Record where we found X for the cache.
25264     ac_cv_have_x="have_x=yes\
25265         ac_x_includes='$ac_x_includes'\
25266         ac_x_libraries='$ac_x_libraries'"
25267 esac
25268 fi
25269 ;; #(
25270     *) have_x=yes;;
25271   esac
25272   eval "$ac_cv_have_x"
25273 fi # $with_x != no
25274
25275 if test "$have_x" != yes; then
25276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25277 $as_echo "$have_x" >&6; }
25278   no_x=yes
25279 else
25280   # If each of the values was on the command line, it overrides each guess.
25281   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25282   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25283   # Update the cache value to reflect the command line values.
25284   ac_cv_have_x="have_x=yes\
25285         ac_x_includes='$x_includes'\
25286         ac_x_libraries='$x_libraries'"
25287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25288 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25289 fi
25290
25291 if test "$no_x" = yes; then
25292   # Not all programs may use this symbol, but it does not hurt to define it.
25293
25294 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25295
25296   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25297 else
25298   if test -n "$x_includes"; then
25299     X_CFLAGS="$X_CFLAGS -I$x_includes"
25300   fi
25301
25302   # It would also be nice to do this for all -L options, not just this one.
25303   if test -n "$x_libraries"; then
25304     X_LIBS="$X_LIBS -L$x_libraries"
25305     # For Solaris; some versions of Sun CC require a space after -R and
25306     # others require no space.  Words are not sufficient . . . .
25307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25308 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25309     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25310     ac_xsave_c_werror_flag=$ac_c_werror_flag
25311     ac_c_werror_flag=yes
25312     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25313 /* end confdefs.h.  */
25314
25315 int
25316 main ()
25317 {
25318
25319   ;
25320   return 0;
25321 }
25322 _ACEOF
25323 if ac_fn_c_try_link "$LINENO"; then :
25324   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25325 $as_echo "no" >&6; }
25326        X_LIBS="$X_LIBS -R$x_libraries"
25327 else
25328   LIBS="$ac_xsave_LIBS -R $x_libraries"
25329        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25330 /* end confdefs.h.  */
25331
25332 int
25333 main ()
25334 {
25335
25336   ;
25337   return 0;
25338 }
25339 _ACEOF
25340 if ac_fn_c_try_link "$LINENO"; then :
25341   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25342 $as_echo "yes" >&6; }
25343           X_LIBS="$X_LIBS -R $x_libraries"
25344 else
25345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25346 $as_echo "neither works" >&6; }
25347 fi
25348 rm -f core conftest.err conftest.$ac_objext \
25349     conftest$ac_exeext conftest.$ac_ext
25350 fi
25351 rm -f core conftest.err conftest.$ac_objext \
25352     conftest$ac_exeext conftest.$ac_ext
25353     ac_c_werror_flag=$ac_xsave_c_werror_flag
25354     LIBS=$ac_xsave_LIBS
25355   fi
25356
25357   # Check for system-dependent libraries X programs must link with.
25358   # Do this before checking for the system-independent R6 libraries
25359   # (-lICE), since we may need -lsocket or whatever for X linking.
25360
25361   if test "$ISC" = yes; then
25362     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25363   else
25364     # Martyn Johnson says this is needed for Ultrix, if the X
25365     # libraries were built with DECnet support.  And Karl Berry says
25366     # the Alpha needs dnet_stub (dnet does not exist).
25367     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25368     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25369 /* end confdefs.h.  */
25370
25371 /* Override any GCC internal prototype to avoid an error.
25372    Use char because int might match the return type of a GCC
25373    builtin and then its argument prototype would still apply.  */
25374 #ifdef __cplusplus
25375 extern "C"
25376 #endif
25377 char XOpenDisplay ();
25378 int
25379 main ()
25380 {
25381 return XOpenDisplay ();
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 if ac_fn_c_try_link "$LINENO"; then :
25387
25388 else
25389   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25390 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25391 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25392   $as_echo_n "(cached) " >&6
25393 else
25394   ac_check_lib_save_LIBS=$LIBS
25395 LIBS="-ldnet  $LIBS"
25396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h.  */
25398
25399 /* Override any GCC internal prototype to avoid an error.
25400    Use char because int might match the return type of a GCC
25401    builtin and then its argument prototype would still apply.  */
25402 #ifdef __cplusplus
25403 extern "C"
25404 #endif
25405 char dnet_ntoa ();
25406 int
25407 main ()
25408 {
25409 return dnet_ntoa ();
25410   ;
25411   return 0;
25412 }
25413 _ACEOF
25414 if ac_fn_c_try_link "$LINENO"; then :
25415   ac_cv_lib_dnet_dnet_ntoa=yes
25416 else
25417   ac_cv_lib_dnet_dnet_ntoa=no
25418 fi
25419 rm -f core conftest.err conftest.$ac_objext \
25420     conftest$ac_exeext conftest.$ac_ext
25421 LIBS=$ac_check_lib_save_LIBS
25422 fi
25423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25424 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25425 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25426   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25427 fi
25428
25429     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25430       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25431 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25432 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25433   $as_echo_n "(cached) " >&6
25434 else
25435   ac_check_lib_save_LIBS=$LIBS
25436 LIBS="-ldnet_stub  $LIBS"
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h.  */
25439
25440 /* Override any GCC internal prototype to avoid an error.
25441    Use char because int might match the return type of a GCC
25442    builtin and then its argument prototype would still apply.  */
25443 #ifdef __cplusplus
25444 extern "C"
25445 #endif
25446 char dnet_ntoa ();
25447 int
25448 main ()
25449 {
25450 return dnet_ntoa ();
25451   ;
25452   return 0;
25453 }
25454 _ACEOF
25455 if ac_fn_c_try_link "$LINENO"; then :
25456   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25457 else
25458   ac_cv_lib_dnet_stub_dnet_ntoa=no
25459 fi
25460 rm -f core conftest.err conftest.$ac_objext \
25461     conftest$ac_exeext conftest.$ac_ext
25462 LIBS=$ac_check_lib_save_LIBS
25463 fi
25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25465 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25466 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25467   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25468 fi
25469
25470     fi
25471 fi
25472 rm -f core conftest.err conftest.$ac_objext \
25473     conftest$ac_exeext conftest.$ac_ext
25474     LIBS="$ac_xsave_LIBS"
25475
25476     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25477     # to get the SysV transport functions.
25478     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25479     # needs -lnsl.
25480     # The nsl library prevents programs from opening the X display
25481     # on Irix 5.2, according to T.E. Dickey.
25482     # The functions gethostbyname, getservbyname, and inet_addr are
25483     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25484     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25485 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25486
25487 fi
25488
25489     if test $ac_cv_func_gethostbyname = no; then
25490       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25491 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25492 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25493   $as_echo_n "(cached) " >&6
25494 else
25495   ac_check_lib_save_LIBS=$LIBS
25496 LIBS="-lnsl  $LIBS"
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h.  */
25499
25500 /* Override any GCC internal prototype to avoid an error.
25501    Use char because int might match the return type of a GCC
25502    builtin and then its argument prototype would still apply.  */
25503 #ifdef __cplusplus
25504 extern "C"
25505 #endif
25506 char gethostbyname ();
25507 int
25508 main ()
25509 {
25510 return gethostbyname ();
25511   ;
25512   return 0;
25513 }
25514 _ACEOF
25515 if ac_fn_c_try_link "$LINENO"; then :
25516   ac_cv_lib_nsl_gethostbyname=yes
25517 else
25518   ac_cv_lib_nsl_gethostbyname=no
25519 fi
25520 rm -f core conftest.err conftest.$ac_objext \
25521     conftest$ac_exeext conftest.$ac_ext
25522 LIBS=$ac_check_lib_save_LIBS
25523 fi
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25525 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25526 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25527   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25528 fi
25529
25530       if test $ac_cv_lib_nsl_gethostbyname = no; then
25531         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25532 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25533 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25534   $as_echo_n "(cached) " >&6
25535 else
25536   ac_check_lib_save_LIBS=$LIBS
25537 LIBS="-lbsd  $LIBS"
25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h.  */
25540
25541 /* Override any GCC internal prototype to avoid an error.
25542    Use char because int might match the return type of a GCC
25543    builtin and then its argument prototype would still apply.  */
25544 #ifdef __cplusplus
25545 extern "C"
25546 #endif
25547 char gethostbyname ();
25548 int
25549 main ()
25550 {
25551 return gethostbyname ();
25552   ;
25553   return 0;
25554 }
25555 _ACEOF
25556 if ac_fn_c_try_link "$LINENO"; then :
25557   ac_cv_lib_bsd_gethostbyname=yes
25558 else
25559   ac_cv_lib_bsd_gethostbyname=no
25560 fi
25561 rm -f core conftest.err conftest.$ac_objext \
25562     conftest$ac_exeext conftest.$ac_ext
25563 LIBS=$ac_check_lib_save_LIBS
25564 fi
25565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25566 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25567 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25568   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25569 fi
25570
25571       fi
25572     fi
25573
25574     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25575     # socket/setsockopt and other routines are undefined under SCO ODT
25576     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25577     # on later versions), says Simon Leinen: it contains gethostby*
25578     # variants that don't use the name server (or something).  -lsocket
25579     # must be given before -lnsl if both are needed.  We assume that
25580     # if connect needs -lnsl, so does gethostbyname.
25581     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25582 if test "x$ac_cv_func_connect" = xyes; then :
25583
25584 fi
25585
25586     if test $ac_cv_func_connect = no; then
25587       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25588 $as_echo_n "checking for connect in -lsocket... " >&6; }
25589 if ${ac_cv_lib_socket_connect+:} false; then :
25590   $as_echo_n "(cached) " >&6
25591 else
25592   ac_check_lib_save_LIBS=$LIBS
25593 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25595 /* end confdefs.h.  */
25596
25597 /* Override any GCC internal prototype to avoid an error.
25598    Use char because int might match the return type of a GCC
25599    builtin and then its argument prototype would still apply.  */
25600 #ifdef __cplusplus
25601 extern "C"
25602 #endif
25603 char connect ();
25604 int
25605 main ()
25606 {
25607 return connect ();
25608   ;
25609   return 0;
25610 }
25611 _ACEOF
25612 if ac_fn_c_try_link "$LINENO"; then :
25613   ac_cv_lib_socket_connect=yes
25614 else
25615   ac_cv_lib_socket_connect=no
25616 fi
25617 rm -f core conftest.err conftest.$ac_objext \
25618     conftest$ac_exeext conftest.$ac_ext
25619 LIBS=$ac_check_lib_save_LIBS
25620 fi
25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25622 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25623 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25624   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25625 fi
25626
25627     fi
25628
25629     # Guillermo Gomez says -lposix is necessary on A/UX.
25630     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25631 if test "x$ac_cv_func_remove" = xyes; then :
25632
25633 fi
25634
25635     if test $ac_cv_func_remove = no; then
25636       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25637 $as_echo_n "checking for remove in -lposix... " >&6; }
25638 if ${ac_cv_lib_posix_remove+:} false; then :
25639   $as_echo_n "(cached) " >&6
25640 else
25641   ac_check_lib_save_LIBS=$LIBS
25642 LIBS="-lposix  $LIBS"
25643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25644 /* end confdefs.h.  */
25645
25646 /* Override any GCC internal prototype to avoid an error.
25647    Use char because int might match the return type of a GCC
25648    builtin and then its argument prototype would still apply.  */
25649 #ifdef __cplusplus
25650 extern "C"
25651 #endif
25652 char remove ();
25653 int
25654 main ()
25655 {
25656 return remove ();
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 if ac_fn_c_try_link "$LINENO"; then :
25662   ac_cv_lib_posix_remove=yes
25663 else
25664   ac_cv_lib_posix_remove=no
25665 fi
25666 rm -f core conftest.err conftest.$ac_objext \
25667     conftest$ac_exeext conftest.$ac_ext
25668 LIBS=$ac_check_lib_save_LIBS
25669 fi
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25671 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25672 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25673   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25674 fi
25675
25676     fi
25677
25678     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25679     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25680 if test "x$ac_cv_func_shmat" = xyes; then :
25681
25682 fi
25683
25684     if test $ac_cv_func_shmat = no; then
25685       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25686 $as_echo_n "checking for shmat in -lipc... " >&6; }
25687 if ${ac_cv_lib_ipc_shmat+:} false; then :
25688   $as_echo_n "(cached) " >&6
25689 else
25690   ac_check_lib_save_LIBS=$LIBS
25691 LIBS="-lipc  $LIBS"
25692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25693 /* end confdefs.h.  */
25694
25695 /* Override any GCC internal prototype to avoid an error.
25696    Use char because int might match the return type of a GCC
25697    builtin and then its argument prototype would still apply.  */
25698 #ifdef __cplusplus
25699 extern "C"
25700 #endif
25701 char shmat ();
25702 int
25703 main ()
25704 {
25705 return shmat ();
25706   ;
25707   return 0;
25708 }
25709 _ACEOF
25710 if ac_fn_c_try_link "$LINENO"; then :
25711   ac_cv_lib_ipc_shmat=yes
25712 else
25713   ac_cv_lib_ipc_shmat=no
25714 fi
25715 rm -f core conftest.err conftest.$ac_objext \
25716     conftest$ac_exeext conftest.$ac_ext
25717 LIBS=$ac_check_lib_save_LIBS
25718 fi
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25720 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25721 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25722   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25723 fi
25724
25725     fi
25726   fi
25727
25728   # Check for libraries that X11R6 Xt/Xaw programs need.
25729   ac_save_LDFLAGS=$LDFLAGS
25730   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25731   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25732   # check for ICE first), but we must link in the order -lSM -lICE or
25733   # we get undefined symbols.  So assume we have SM if we have ICE.
25734   # These have to be linked with before -lX11, unlike the other
25735   # libraries we check for below, so use a different variable.
25736   # John Interrante, Karl Berry
25737   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25738 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25739 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25740   $as_echo_n "(cached) " >&6
25741 else
25742   ac_check_lib_save_LIBS=$LIBS
25743 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745 /* end confdefs.h.  */
25746
25747 /* Override any GCC internal prototype to avoid an error.
25748    Use char because int might match the return type of a GCC
25749    builtin and then its argument prototype would still apply.  */
25750 #ifdef __cplusplus
25751 extern "C"
25752 #endif
25753 char IceConnectionNumber ();
25754 int
25755 main ()
25756 {
25757 return IceConnectionNumber ();
25758   ;
25759   return 0;
25760 }
25761 _ACEOF
25762 if ac_fn_c_try_link "$LINENO"; then :
25763   ac_cv_lib_ICE_IceConnectionNumber=yes
25764 else
25765   ac_cv_lib_ICE_IceConnectionNumber=no
25766 fi
25767 rm -f core conftest.err conftest.$ac_objext \
25768     conftest$ac_exeext conftest.$ac_ext
25769 LIBS=$ac_check_lib_save_LIBS
25770 fi
25771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25772 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25773 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25774   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25775 fi
25776
25777   LDFLAGS=$ac_save_LDFLAGS
25778
25779 fi
25780
25781
25782 for ac_header in \
25783    assert.h \
25784    fcntl.h \
25785    grp.h \
25786    pwd.h \
25787    libc.h \
25788    limits.h \
25789    stdarg.h \
25790    stdlib.h \
25791    stdint.h \
25792    inttypes.h \
25793    string.h \
25794    strings.h \
25795    termios.h \
25796    termcap.h \
25797    term.h \
25798    unistd.h \
25799    sys/bitypes.h \
25800    sys/byteorder.h \
25801    sys/ioctl.h \
25802    sys/select.h \
25803    sys/socket.h \
25804    sys/sockio.h \
25805    sys/stat.h \
25806    sys/time.h \
25807    sys/types.h \
25808    arpa/nameser.h \
25809    mtio.h \
25810    sys/mtio.h \
25811    sys/tape.h \
25812    regex.h \
25813
25814 do :
25815   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25816 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25817 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25818   cat >>confdefs.h <<_ACEOF
25819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25820 _ACEOF
25821
25822 fi
25823
25824 done
25825
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25827 $as_echo_n "checking for ANSI C header files... " >&6; }
25828 if ${ac_cv_header_stdc+:} false; then :
25829   $as_echo_n "(cached) " >&6
25830 else
25831   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25832 /* end confdefs.h.  */
25833 #include <stdlib.h>
25834 #include <stdarg.h>
25835 #include <string.h>
25836 #include <float.h>
25837
25838 int
25839 main ()
25840 {
25841
25842   ;
25843   return 0;
25844 }
25845 _ACEOF
25846 if ac_fn_c_try_compile "$LINENO"; then :
25847   ac_cv_header_stdc=yes
25848 else
25849   ac_cv_header_stdc=no
25850 fi
25851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25852
25853 if test $ac_cv_header_stdc = yes; then
25854   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25855   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25856 /* end confdefs.h.  */
25857 #include <string.h>
25858
25859 _ACEOF
25860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25861   $EGREP "memchr" >/dev/null 2>&1; then :
25862
25863 else
25864   ac_cv_header_stdc=no
25865 fi
25866 rm -f conftest*
25867
25868 fi
25869
25870 if test $ac_cv_header_stdc = yes; then
25871   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25872   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25873 /* end confdefs.h.  */
25874 #include <stdlib.h>
25875
25876 _ACEOF
25877 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25878   $EGREP "free" >/dev/null 2>&1; then :
25879
25880 else
25881   ac_cv_header_stdc=no
25882 fi
25883 rm -f conftest*
25884
25885 fi
25886
25887 if test $ac_cv_header_stdc = yes; then
25888   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25889   if test "$cross_compiling" = yes; then :
25890   :
25891 else
25892   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25893 /* end confdefs.h.  */
25894 #include <ctype.h>
25895 #include <stdlib.h>
25896 #if ((' ' & 0x0FF) == 0x020)
25897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25899 #else
25900 # define ISLOWER(c) \
25901                    (('a' <= (c) && (c) <= 'i') \
25902                      || ('j' <= (c) && (c) <= 'r') \
25903                      || ('s' <= (c) && (c) <= 'z'))
25904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25905 #endif
25906
25907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25908 int
25909 main ()
25910 {
25911   int i;
25912   for (i = 0; i < 256; i++)
25913     if (XOR (islower (i), ISLOWER (i))
25914         || toupper (i) != TOUPPER (i))
25915       return 2;
25916   return 0;
25917 }
25918 _ACEOF
25919 if ac_fn_c_try_run "$LINENO"; then :
25920
25921 else
25922   ac_cv_header_stdc=no
25923 fi
25924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25925   conftest.$ac_objext conftest.beam conftest.$ac_ext
25926 fi
25927
25928 fi
25929 fi
25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25931 $as_echo "$ac_cv_header_stdc" >&6; }
25932 if test $ac_cv_header_stdc = yes; then
25933
25934 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25935
25936 fi
25937
25938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25939 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25940 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25941   $as_echo_n "(cached) " >&6
25942 else
25943   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25944 /* end confdefs.h.  */
25945 #include <sys/types.h>
25946 int
25947 main ()
25948 {
25949 return makedev(0, 0);
25950   ;
25951   return 0;
25952 }
25953 _ACEOF
25954 if ac_fn_c_try_link "$LINENO"; then :
25955   ac_cv_header_sys_types_h_makedev=yes
25956 else
25957   ac_cv_header_sys_types_h_makedev=no
25958 fi
25959 rm -f core conftest.err conftest.$ac_objext \
25960     conftest$ac_exeext conftest.$ac_ext
25961
25962 fi
25963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25964 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25965
25966 if test $ac_cv_header_sys_types_h_makedev = no; then
25967 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25968 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25969
25970 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25971
25972 fi
25973
25974
25975
25976   if test $ac_cv_header_sys_mkdev_h = no; then
25977     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25978 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25979
25980 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25981
25982 fi
25983
25984
25985   fi
25986 fi
25987
25988 ac_header_dirent=no
25989 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25990   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25992 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25993 if eval \${$as_ac_Header+:} false; then :
25994   $as_echo_n "(cached) " >&6
25995 else
25996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25997 /* end confdefs.h.  */
25998 #include <sys/types.h>
25999 #include <$ac_hdr>
26000
26001 int
26002 main ()
26003 {
26004 if ((DIR *) 0)
26005 return 0;
26006   ;
26007   return 0;
26008 }
26009 _ACEOF
26010 if ac_fn_c_try_compile "$LINENO"; then :
26011   eval "$as_ac_Header=yes"
26012 else
26013   eval "$as_ac_Header=no"
26014 fi
26015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26016 fi
26017 eval ac_res=\$$as_ac_Header
26018                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26019 $as_echo "$ac_res" >&6; }
26020 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26021   cat >>confdefs.h <<_ACEOF
26022 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
26023 _ACEOF
26024
26025 ac_header_dirent=$ac_hdr; break
26026 fi
26027
26028 done
26029 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
26030 if test $ac_header_dirent = dirent.h; then
26031   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26032 $as_echo_n "checking for library containing opendir... " >&6; }
26033 if ${ac_cv_search_opendir+:} false; then :
26034   $as_echo_n "(cached) " >&6
26035 else
26036   ac_func_search_save_LIBS=$LIBS
26037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26038 /* end confdefs.h.  */
26039
26040 /* Override any GCC internal prototype to avoid an error.
26041    Use char because int might match the return type of a GCC
26042    builtin and then its argument prototype would still apply.  */
26043 #ifdef __cplusplus
26044 extern "C"
26045 #endif
26046 char opendir ();
26047 int
26048 main ()
26049 {
26050 return opendir ();
26051   ;
26052   return 0;
26053 }
26054 _ACEOF
26055 for ac_lib in '' dir; do
26056   if test -z "$ac_lib"; then
26057     ac_res="none required"
26058   else
26059     ac_res=-l$ac_lib
26060     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26061   fi
26062   if ac_fn_c_try_link "$LINENO"; then :
26063   ac_cv_search_opendir=$ac_res
26064 fi
26065 rm -f core conftest.err conftest.$ac_objext \
26066     conftest$ac_exeext
26067   if ${ac_cv_search_opendir+:} false; then :
26068   break
26069 fi
26070 done
26071 if ${ac_cv_search_opendir+:} false; then :
26072
26073 else
26074   ac_cv_search_opendir=no
26075 fi
26076 rm conftest.$ac_ext
26077 LIBS=$ac_func_search_save_LIBS
26078 fi
26079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26080 $as_echo "$ac_cv_search_opendir" >&6; }
26081 ac_res=$ac_cv_search_opendir
26082 if test "$ac_res" != no; then :
26083   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26084
26085 fi
26086
26087 else
26088   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26089 $as_echo_n "checking for library containing opendir... " >&6; }
26090 if ${ac_cv_search_opendir+:} false; then :
26091   $as_echo_n "(cached) " >&6
26092 else
26093   ac_func_search_save_LIBS=$LIBS
26094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26095 /* end confdefs.h.  */
26096
26097 /* Override any GCC internal prototype to avoid an error.
26098    Use char because int might match the return type of a GCC
26099    builtin and then its argument prototype would still apply.  */
26100 #ifdef __cplusplus
26101 extern "C"
26102 #endif
26103 char opendir ();
26104 int
26105 main ()
26106 {
26107 return opendir ();
26108   ;
26109   return 0;
26110 }
26111 _ACEOF
26112 for ac_lib in '' x; do
26113   if test -z "$ac_lib"; then
26114     ac_res="none required"
26115   else
26116     ac_res=-l$ac_lib
26117     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26118   fi
26119   if ac_fn_c_try_link "$LINENO"; then :
26120   ac_cv_search_opendir=$ac_res
26121 fi
26122 rm -f core conftest.err conftest.$ac_objext \
26123     conftest$ac_exeext
26124   if ${ac_cv_search_opendir+:} false; then :
26125   break
26126 fi
26127 done
26128 if ${ac_cv_search_opendir+:} false; then :
26129
26130 else
26131   ac_cv_search_opendir=no
26132 fi
26133 rm conftest.$ac_ext
26134 LIBS=$ac_func_search_save_LIBS
26135 fi
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26137 $as_echo "$ac_cv_search_opendir" >&6; }
26138 ac_res=$ac_cv_search_opendir
26139 if test "$ac_res" != no; then :
26140   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26141
26142 fi
26143
26144 fi
26145
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26147 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26148 if ${ac_cv_header_stat_broken+:} false; then :
26149   $as_echo_n "(cached) " >&6
26150 else
26151   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26152 /* end confdefs.h.  */
26153 #include <sys/types.h>
26154 #include <sys/stat.h>
26155
26156 #if defined S_ISBLK && defined S_IFDIR
26157 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26158 #endif
26159
26160 #if defined S_ISBLK && defined S_IFCHR
26161 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26162 #endif
26163
26164 #if defined S_ISLNK && defined S_IFREG
26165 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26166 #endif
26167
26168 #if defined S_ISSOCK && defined S_IFREG
26169 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26170 #endif
26171
26172 _ACEOF
26173 if ac_fn_c_try_compile "$LINENO"; then :
26174   ac_cv_header_stat_broken=no
26175 else
26176   ac_cv_header_stat_broken=yes
26177 fi
26178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26179 fi
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26181 $as_echo "$ac_cv_header_stat_broken" >&6; }
26182 if test $ac_cv_header_stat_broken = yes; then
26183
26184 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26185
26186 fi
26187
26188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26189 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26190 if ${ac_cv_header_sys_wait_h+:} false; then :
26191   $as_echo_n "(cached) " >&6
26192 else
26193   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26194 /* end confdefs.h.  */
26195 #include <sys/types.h>
26196 #include <sys/wait.h>
26197 #ifndef WEXITSTATUS
26198 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26199 #endif
26200 #ifndef WIFEXITED
26201 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26202 #endif
26203
26204 int
26205 main ()
26206 {
26207   int s;
26208   wait (&s);
26209   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26210   ;
26211   return 0;
26212 }
26213 _ACEOF
26214 if ac_fn_c_try_compile "$LINENO"; then :
26215   ac_cv_header_sys_wait_h=yes
26216 else
26217   ac_cv_header_sys_wait_h=no
26218 fi
26219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26220 fi
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26222 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26223 if test $ac_cv_header_sys_wait_h = yes; then
26224
26225 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26226
26227 fi
26228
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26230 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26231 if ${ac_cv_header_time+:} false; then :
26232   $as_echo_n "(cached) " >&6
26233 else
26234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26235 /* end confdefs.h.  */
26236 #include <sys/types.h>
26237 #include <sys/time.h>
26238 #include <time.h>
26239
26240 int
26241 main ()
26242 {
26243 if ((struct tm *) 0)
26244 return 0;
26245   ;
26246   return 0;
26247 }
26248 _ACEOF
26249 if ac_fn_c_try_compile "$LINENO"; then :
26250   ac_cv_header_time=yes
26251 else
26252   ac_cv_header_time=no
26253 fi
26254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 fi
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26257 $as_echo "$ac_cv_header_time" >&6; }
26258 if test $ac_cv_header_time = yes; then
26259
26260 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26261
26262 fi
26263
26264 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26265 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26266
26267 cat >>confdefs.h <<_ACEOF
26268 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26269 _ACEOF
26270
26271
26272 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26273
26274 fi
26275
26276
26277 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26278 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26279
26280 cat >>confdefs.h <<_ACEOF
26281 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26282 _ACEOF
26283
26284
26285 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26286
26287 else
26288   case " $LIBOBJS " in
26289   *" fileblocks.$ac_objext "* ) ;;
26290   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26291  ;;
26292 esac
26293
26294 fi
26295
26296
26297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26298 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26299 if ${ac_cv_struct_tm+:} false; then :
26300   $as_echo_n "(cached) " >&6
26301 else
26302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26303 /* end confdefs.h.  */
26304 #include <sys/types.h>
26305 #include <time.h>
26306
26307 int
26308 main ()
26309 {
26310 struct tm tm;
26311                                      int *p = &tm.tm_sec;
26312                                      return !p;
26313   ;
26314   return 0;
26315 }
26316 _ACEOF
26317 if ac_fn_c_try_compile "$LINENO"; then :
26318   ac_cv_struct_tm=time.h
26319 else
26320   ac_cv_struct_tm=sys/time.h
26321 fi
26322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26323 fi
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26325 $as_echo "$ac_cv_struct_tm" >&6; }
26326 if test $ac_cv_struct_tm = sys/time.h; then
26327
26328 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26329
26330 fi
26331
26332 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26333 #include <$ac_cv_struct_tm>
26334
26335 "
26336 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26337
26338 cat >>confdefs.h <<_ACEOF
26339 #define HAVE_STRUCT_TM_TM_ZONE 1
26340 _ACEOF
26341
26342
26343 fi
26344
26345 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26346
26347 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26348
26349 else
26350   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26351 "
26352 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26353   ac_have_decl=1
26354 else
26355   ac_have_decl=0
26356 fi
26357
26358 cat >>confdefs.h <<_ACEOF
26359 #define HAVE_DECL_TZNAME $ac_have_decl
26360 _ACEOF
26361
26362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26363 $as_echo_n "checking for tzname... " >&6; }
26364 if ${ac_cv_var_tzname+:} false; then :
26365   $as_echo_n "(cached) " >&6
26366 else
26367   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26368 /* end confdefs.h.  */
26369 #include <time.h>
26370 #if !HAVE_DECL_TZNAME
26371 extern char *tzname[];
26372 #endif
26373
26374 int
26375 main ()
26376 {
26377 return tzname[0][0];
26378   ;
26379   return 0;
26380 }
26381 _ACEOF
26382 if ac_fn_c_try_link "$LINENO"; then :
26383   ac_cv_var_tzname=yes
26384 else
26385   ac_cv_var_tzname=no
26386 fi
26387 rm -f core conftest.err conftest.$ac_objext \
26388     conftest$ac_exeext conftest.$ac_ext
26389 fi
26390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26391 $as_echo "$ac_cv_var_tzname" >&6; }
26392   if test $ac_cv_var_tzname = yes; then
26393
26394 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26395
26396   fi
26397 fi
26398
26399
26400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26401 $as_echo_n "checking for utime.h... " >&6; }
26402 if ${ba_cv_header_utime_h+:} false; then :
26403   $as_echo_n "(cached) " >&6
26404 else
26405
26406        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26407 /* end confdefs.h.  */
26408
26409               #include <sys/types.h>
26410               #include <utime.h>
26411
26412 int
26413 main ()
26414 {
26415
26416               struct utimbuf foo
26417
26418   ;
26419   return 0;
26420 }
26421 _ACEOF
26422 if ac_fn_c_try_compile "$LINENO"; then :
26423
26424               ba_cv_header_utime_h=yes
26425
26426 else
26427
26428               ba_cv_header_utime_h=no
26429
26430
26431 fi
26432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26433
26434
26435 fi
26436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26437 $as_echo "$ba_cv_header_utime_h" >&6; }
26438 test $ba_cv_header_utime_h = yes &&
26439 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26440
26441
26442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26443 $as_echo_n "checking for socklen_t... " >&6; }
26444 if ${ba_cv_header_socklen_t+:} false; then :
26445   $as_echo_n "(cached) " >&6
26446 else
26447
26448        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26449 /* end confdefs.h.  */
26450
26451               #include <sys/types.h>
26452               #include <sys/socket.h>
26453
26454 int
26455 main ()
26456 {
26457
26458               socklen_t x
26459
26460   ;
26461   return 0;
26462 }
26463 _ACEOF
26464 if ac_fn_c_try_compile "$LINENO"; then :
26465
26466              ba_cv_header_socklen_t=yes
26467
26468 else
26469
26470              ba_cv_header_socklen_t=no
26471
26472
26473 fi
26474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26475
26476
26477 fi
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26479 $as_echo "$ba_cv_header_socklen_t" >&6; }
26480 test $ba_cv_header_socklen_t = yes &&
26481 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26482
26483
26484 ac_ext=cpp
26485 ac_cpp='$CXXCPP $CPPFLAGS'
26486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26489
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26491 $as_echo_n "checking for ioctl_req_t... " >&6; }
26492 if ${ba_cv_header_ioctl_req_t+:} false; then :
26493   $as_echo_n "(cached) " >&6
26494 else
26495
26496        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26497 /* end confdefs.h.  */
26498
26499               #include <unistd.h>
26500               #include <sys/types.h>
26501               #include <sys/ioctl.h>
26502
26503 int
26504 main ()
26505 {
26506
26507               int (*d_ioctl)(int fd, unsigned long int request, ...);
26508               d_ioctl = ::ioctl;
26509
26510   ;
26511   return 0;
26512 }
26513 _ACEOF
26514 if ac_fn_cxx_try_compile "$LINENO"; then :
26515
26516              ba_cv_header_ioctl_req_t=yes
26517
26518 else
26519
26520              ba_cv_header_ioctl_req_t=no
26521
26522
26523 fi
26524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26525
26526
26527 fi
26528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26529 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26530 test $ba_cv_header_ioctl_req_t = yes &&
26531 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26532
26533
26534 ac_ext=c
26535 ac_cpp='$CPP $CPPFLAGS'
26536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26539
26540
26541 ac_ext=cpp
26542 ac_cpp='$CXXCPP $CPPFLAGS'
26543 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26544 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26545 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26546
26547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26548 $as_echo_n "checking for typeof... " >&6; }
26549 if ${ba_cv_have_typeof+:} false; then :
26550   $as_echo_n "(cached) " >&6
26551 else
26552
26553        if test "$cross_compiling" = yes; then :
26554
26555               ba_cv_have_typeof=no
26556
26557
26558 else
26559   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26560 /* end confdefs.h.  */
26561
26562               main(){char *a = 0; a = (typeof a)a;}
26563
26564 _ACEOF
26565 if ac_fn_cxx_try_run "$LINENO"; then :
26566
26567               ba_cv_have_typeof=yes
26568
26569 else
26570
26571               ba_cv_have_typeof=no
26572
26573 fi
26574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26575   conftest.$ac_objext conftest.beam conftest.$ac_ext
26576 fi
26577
26578
26579
26580 fi
26581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26582 $as_echo "$ba_cv_have_typeof" >&6; }
26583 test $ba_cv_have_typeof = yes &&
26584 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26585
26586 ac_ext=c
26587 ac_cpp='$CPP $CPPFLAGS'
26588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26591
26592
26593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26594 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26595 if ${ac_cv_c_const+:} false; then :
26596   $as_echo_n "(cached) " >&6
26597 else
26598   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26599 /* end confdefs.h.  */
26600
26601 int
26602 main ()
26603 {
26604
26605 #ifndef __cplusplus
26606   /* Ultrix mips cc rejects this sort of thing.  */
26607   typedef int charset[2];
26608   const charset cs = { 0, 0 };
26609   /* SunOS 4.1.1 cc rejects this.  */
26610   char const *const *pcpcc;
26611   char **ppc;
26612   /* NEC SVR4.0.2 mips cc rejects this.  */
26613   struct point {int x, y;};
26614   static struct point const zero = {0,0};
26615   /* AIX XL C 1.02.0.0 rejects this.
26616      It does not let you subtract one const X* pointer from another in
26617      an arm of an if-expression whose if-part is not a constant
26618      expression */
26619   const char *g = "string";
26620   pcpcc = &g + (g ? g-g : 0);
26621   /* HPUX 7.0 cc rejects these. */
26622   ++pcpcc;
26623   ppc = (char**) pcpcc;
26624   pcpcc = (char const *const *) ppc;
26625   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26626     char tx;
26627     char *t = &tx;
26628     char const *s = 0 ? (char *) 0 : (char const *) 0;
26629
26630     *t++ = 0;
26631     if (s) return 0;
26632   }
26633   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26634     int x[] = {25, 17};
26635     const int *foo = &x[0];
26636     ++foo;
26637   }
26638   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26639     typedef const int *iptr;
26640     iptr p = 0;
26641     ++p;
26642   }
26643   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26644        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26645     struct s { int j; const int *ap[3]; } bx;
26646     struct s *b = &bx; b->j = 5;
26647   }
26648   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26649     const int foo = 10;
26650     if (!foo) return 0;
26651   }
26652   return !cs[0] && !zero.x;
26653 #endif
26654
26655   ;
26656   return 0;
26657 }
26658 _ACEOF
26659 if ac_fn_c_try_compile "$LINENO"; then :
26660   ac_cv_c_const=yes
26661 else
26662   ac_cv_c_const=no
26663 fi
26664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26665 fi
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26667 $as_echo "$ac_cv_c_const" >&6; }
26668 if test $ac_cv_c_const = no; then
26669
26670 $as_echo "#define const /**/" >>confdefs.h
26671
26672 fi
26673
26674
26675  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26676 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26677 if ${ac_cv_c_bigendian+:} false; then :
26678   $as_echo_n "(cached) " >&6
26679 else
26680   ac_cv_c_bigendian=unknown
26681     # See if we're dealing with a universal compiler.
26682     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26683 /* end confdefs.h.  */
26684 #ifndef __APPLE_CC__
26685                not a universal capable compiler
26686              #endif
26687              typedef int dummy;
26688
26689 _ACEOF
26690 if ac_fn_c_try_compile "$LINENO"; then :
26691
26692         # Check for potential -arch flags.  It is not universal unless
26693         # there are at least two -arch flags with different values.
26694         ac_arch=
26695         ac_prev=
26696         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26697          if test -n "$ac_prev"; then
26698            case $ac_word in
26699              i?86 | x86_64 | ppc | ppc64)
26700                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26701                  ac_arch=$ac_word
26702                else
26703                  ac_cv_c_bigendian=universal
26704                  break
26705                fi
26706                ;;
26707            esac
26708            ac_prev=
26709          elif test "x$ac_word" = "x-arch"; then
26710            ac_prev=arch
26711          fi
26712        done
26713 fi
26714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26715     if test $ac_cv_c_bigendian = unknown; then
26716       # See if sys/param.h defines the BYTE_ORDER macro.
26717       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26718 /* end confdefs.h.  */
26719 #include <sys/types.h>
26720              #include <sys/param.h>
26721
26722 int
26723 main ()
26724 {
26725 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26726                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26727                      && LITTLE_ENDIAN)
26728               bogus endian macros
26729              #endif
26730
26731   ;
26732   return 0;
26733 }
26734 _ACEOF
26735 if ac_fn_c_try_compile "$LINENO"; then :
26736   # It does; now see whether it defined to BIG_ENDIAN or not.
26737          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26738 /* end confdefs.h.  */
26739 #include <sys/types.h>
26740                 #include <sys/param.h>
26741
26742 int
26743 main ()
26744 {
26745 #if BYTE_ORDER != BIG_ENDIAN
26746                  not big endian
26747                 #endif
26748
26749   ;
26750   return 0;
26751 }
26752 _ACEOF
26753 if ac_fn_c_try_compile "$LINENO"; then :
26754   ac_cv_c_bigendian=yes
26755 else
26756   ac_cv_c_bigendian=no
26757 fi
26758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26759 fi
26760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26761     fi
26762     if test $ac_cv_c_bigendian = unknown; then
26763       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26764       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26765 /* end confdefs.h.  */
26766 #include <limits.h>
26767
26768 int
26769 main ()
26770 {
26771 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26772               bogus endian macros
26773              #endif
26774
26775   ;
26776   return 0;
26777 }
26778 _ACEOF
26779 if ac_fn_c_try_compile "$LINENO"; then :
26780   # It does; now see whether it defined to _BIG_ENDIAN or not.
26781          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h.  */
26783 #include <limits.h>
26784
26785 int
26786 main ()
26787 {
26788 #ifndef _BIG_ENDIAN
26789                  not big endian
26790                 #endif
26791
26792   ;
26793   return 0;
26794 }
26795 _ACEOF
26796 if ac_fn_c_try_compile "$LINENO"; then :
26797   ac_cv_c_bigendian=yes
26798 else
26799   ac_cv_c_bigendian=no
26800 fi
26801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26802 fi
26803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26804     fi
26805     if test $ac_cv_c_bigendian = unknown; then
26806       # Compile a test program.
26807       if test "$cross_compiling" = yes; then :
26808   # Try to guess by grepping values from an object file.
26809          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26810 /* end confdefs.h.  */
26811 short int ascii_mm[] =
26812                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26813                 short int ascii_ii[] =
26814                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26815                 int use_ascii (int i) {
26816                   return ascii_mm[i] + ascii_ii[i];
26817                 }
26818                 short int ebcdic_ii[] =
26819                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26820                 short int ebcdic_mm[] =
26821                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26822                 int use_ebcdic (int i) {
26823                   return ebcdic_mm[i] + ebcdic_ii[i];
26824                 }
26825                 extern int foo;
26826
26827 int
26828 main ()
26829 {
26830 return use_ascii (foo) == use_ebcdic (foo);
26831   ;
26832   return 0;
26833 }
26834 _ACEOF
26835 if ac_fn_c_try_compile "$LINENO"; then :
26836   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26837               ac_cv_c_bigendian=yes
26838             fi
26839             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26840               if test "$ac_cv_c_bigendian" = unknown; then
26841                 ac_cv_c_bigendian=no
26842               else
26843                 # finding both strings is unlikely to happen, but who knows?
26844                 ac_cv_c_bigendian=unknown
26845               fi
26846             fi
26847 fi
26848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26849 else
26850   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26851 /* end confdefs.h.  */
26852 $ac_includes_default
26853 int
26854 main ()
26855 {
26856
26857              /* Are we little or big endian?  From Harbison&Steele.  */
26858              union
26859              {
26860                long int l;
26861                char c[sizeof (long int)];
26862              } u;
26863              u.l = 1;
26864              return u.c[sizeof (long int) - 1] == 1;
26865
26866   ;
26867   return 0;
26868 }
26869 _ACEOF
26870 if ac_fn_c_try_run "$LINENO"; then :
26871   ac_cv_c_bigendian=no
26872 else
26873   ac_cv_c_bigendian=yes
26874 fi
26875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26876   conftest.$ac_objext conftest.beam conftest.$ac_ext
26877 fi
26878
26879     fi
26880 fi
26881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26882 $as_echo "$ac_cv_c_bigendian" >&6; }
26883  case $ac_cv_c_bigendian in #(
26884    yes)
26885
26886 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26887 ;; #(
26888    no)
26889
26890 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26891  ;; #(
26892    universal)
26893
26894 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26895
26896      ;; #(
26897    *)
26898      as_fn_error $? "unknown endianness
26899  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26900  esac
26901
26902
26903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26904 $as_echo_n "checking how to get filesystem type... " >&6; }
26905 fstype=no
26906 # The order of these tests is important.
26907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26908 /* end confdefs.h.  */
26909
26910        #include <sys/statvfs.h>
26911        #include <sys/fstyp.h>
26912
26913 _ACEOF
26914 if ac_fn_c_try_cpp "$LINENO"; then :
26915   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26916  fstype=SVR4
26917
26918 fi
26919 rm -f conftest.err conftest.i conftest.$ac_ext
26920 if test $fstype = no; then
26921    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26922 /* end confdefs.h.  */
26923
26924           #include <sys/statfs.h>
26925           #include <sys/fstyp.h>
26926
26927 _ACEOF
26928 if ac_fn_c_try_cpp "$LINENO"; then :
26929   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26930  fstype=SVR3
26931
26932 fi
26933 rm -f conftest.err conftest.i conftest.$ac_ext
26934 fi
26935 if test $fstype = no; then
26936    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26937 /* end confdefs.h.  */
26938
26939           #include <sys/statfs.h>
26940           #include <sys/vmount.h>
26941
26942 _ACEOF
26943 if ac_fn_c_try_cpp "$LINENO"; then :
26944   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26945  fstype=AIX
26946
26947 fi
26948 rm -f conftest.err conftest.i conftest.$ac_ext
26949 fi
26950 if test $fstype = no; then
26951    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26952 /* end confdefs.h.  */
26953
26954           #include <mntent.h>
26955
26956 _ACEOF
26957 if ac_fn_c_try_cpp "$LINENO"; then :
26958   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26959  fstype=4.3BSD
26960
26961 fi
26962 rm -f conftest.err conftest.i conftest.$ac_ext
26963 fi
26964 if test $fstype = no; then
26965    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26966 /* end confdefs.h.  */
26967 #include <sys/mount.h>
26968
26969 _ACEOF
26970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26971   $EGREP "f_type;" >/dev/null 2>&1; then :
26972   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26973  fstype=4.4BSD/OSF1
26974 fi
26975 rm -f conftest*
26976
26977 fi
26978 if test $fstype = no; then
26979    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26980 /* end confdefs.h.  */
26981
26982           #include <sys/mount.h>
26983           #include <sys/fs_types.h>
26984
26985 _ACEOF
26986 if ac_fn_c_try_cpp "$LINENO"; then :
26987   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26988  fstype=Ultrix
26989
26990 fi
26991 rm -f conftest.err conftest.i conftest.$ac_ext
26992 fi
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26994 $as_echo "$fstype" >&6; }
26995
26996 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26997 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26998
26999 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
27000
27001 fi
27002
27003
27004
27005 ac_fn_c_check_decl "$LINENO" "O_CLOEXEC" "ac_cv_have_decl_O_CLOEXEC" "
27006 #ifdef HAVE_FCNTL_H
27007 # include <fcntl.h>
27008 #endif
27009
27010 "
27011 if test "x$ac_cv_have_decl_O_CLOEXEC" = xyes; then :
27012   ac_have_decl=1
27013 else
27014   ac_have_decl=0
27015 fi
27016
27017 cat >>confdefs.h <<_ACEOF
27018 #define HAVE_DECL_O_CLOEXEC $ac_have_decl
27019 _ACEOF
27020 if test $ac_have_decl = 1; then :
27021
27022 else
27023
27024 $as_echo "#define O_CLOEXEC 0" >>confdefs.h
27025
27026 fi
27027
27028
27029 ac_fn_c_check_decl "$LINENO" "FD_CLOEXEC" "ac_cv_have_decl_FD_CLOEXEC" "
27030 #ifdef HAVE_FCNTL_H
27031 # include <fcntl.h>
27032 #endif
27033
27034 "
27035 if test "x$ac_cv_have_decl_FD_CLOEXEC" = xyes; then :
27036   ac_have_decl=1
27037 else
27038   ac_have_decl=0
27039 fi
27040
27041 cat >>confdefs.h <<_ACEOF
27042 #define HAVE_DECL_FD_CLOEXEC $ac_have_decl
27043 _ACEOF
27044 if test $ac_have_decl = 1; then :
27045
27046 else
27047
27048 $as_echo "#define FD_CLOEXEC 0" >>confdefs.h
27049
27050 fi
27051
27052
27053 ac_fn_c_check_decl "$LINENO" "SOCK_CLOEXEC" "ac_cv_have_decl_SOCK_CLOEXEC" "
27054 #ifdef HAVE_SYS_SOCKET_H
27055 # include <sys/socket.h>
27056 #endif
27057
27058 "
27059 if test "x$ac_cv_have_decl_SOCK_CLOEXEC" = xyes; then :
27060   ac_have_decl=1
27061 else
27062   ac_have_decl=0
27063 fi
27064
27065 cat >>confdefs.h <<_ACEOF
27066 #define HAVE_DECL_SOCK_CLOEXEC $ac_have_decl
27067 _ACEOF
27068 if test $ac_have_decl = 1; then :
27069
27070 else
27071
27072 $as_echo "#define SOCK_CLOEXEC 0" >>confdefs.h
27073
27074 fi
27075
27076
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close on exec modifier for fopen()" >&5
27078 $as_echo_n "checking for close on exec modifier for fopen()... " >&6; }
27079 if ${ac_cv_feature_stream_cloexec_flag+:} false; then :
27080   $as_echo_n "(cached) " >&6
27081 else
27082   if test $ac_cv_have_decl_O_CLOEXEC = yes ; then
27083         if test $ac_cv_have_decl_SOCK_CLOEXEC = yes ; then
27084             ac_cv_feature_stream_cloexec_flag="e"
27085         fi
27086     fi
27087 fi
27088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_feature_stream_cloexec_flag" >&5
27089 $as_echo "$ac_cv_feature_stream_cloexec_flag" >&6; }
27090
27091 if test "x$ac_cv_feature_stream_cloexec_flag" = "xe" ; then
27092
27093 $as_echo "#define HAVE_STREAM_CLOEXEC 0" >>confdefs.h
27094
27095 fi
27096
27097
27098 cat >>confdefs.h <<_ACEOF
27099 #define STREAM_CLOEXEC "$ac_cv_feature_stream_cloexec_flag"
27100 _ACEOF
27101
27102
27103 ac_fn_c_check_func "$LINENO" "accept4" "ac_cv_func_accept4"
27104 if test "x$ac_cv_func_accept4" = xyes; then :
27105
27106 $as_echo "#define HAVE_ACCEPT4 1" >>confdefs.h
27107
27108 fi
27109
27110
27111 S3_INC=
27112 S3_LIBS=
27113 S3_LDFLAGS=
27114 have_libs3=no
27115
27116 if test x$support_s3 = xyes; then
27117
27118 # Check whether --with-s3 was given.
27119 if test "${with_s3+set}" = set; then :
27120   withval=$with_s3;
27121           case "$with_s3" in
27122           no)
27123              :
27124              ;;
27125           yes|*)
27126              if test -f ${with_s3}/include/libs3.h; then
27127                 S3_INC="-I${with_s3}/include"
27128                 S3_LDFLAGS="-L${with_s3}/lib"
27129                 with_s3="${with_s3}/include"
27130              else
27131                 with_s3="/usr/include"
27132              fi
27133
27134              as_ac_Header=`$as_echo "ac_cv_header_${with_s3}/libs3.h" | $as_tr_sh`
27135 ac_fn_c_check_header_mongrel "$LINENO" "${with_s3}/libs3.h" "$as_ac_Header" "$ac_includes_default"
27136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27137
27138
27139 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27140
27141                     S3_LIBS="${S3_LDFLAGS} -ls3"
27142                     have_libs3="yes"
27143
27144 else
27145
27146                     echo " "
27147                     echo "libs3.h not found. s3 turned off ..."
27148                     echo " "
27149
27150
27151 fi
27152
27153
27154              ;;
27155           esac
27156
27157 else
27158
27159          ac_fn_c_check_header_mongrel "$LINENO" "libs3.h" "ac_cv_header_libs3_h" "$ac_includes_default"
27160 if test "x$ac_cv_header_libs3_h" = xyes; then :
27161
27162             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for S3_initialize in -ls3" >&5
27163 $as_echo_n "checking for S3_initialize in -ls3... " >&6; }
27164 if ${ac_cv_lib_s3_S3_initialize+:} false; then :
27165   $as_echo_n "(cached) " >&6
27166 else
27167   ac_check_lib_save_LIBS=$LIBS
27168 LIBS="-ls3  $LIBS"
27169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h.  */
27171
27172 /* Override any GCC internal prototype to avoid an error.
27173    Use char because int might match the return type of a GCC
27174    builtin and then its argument prototype would still apply.  */
27175 #ifdef __cplusplus
27176 extern "C"
27177 #endif
27178 char S3_initialize ();
27179 int
27180 main ()
27181 {
27182 return S3_initialize ();
27183   ;
27184   return 0;
27185 }
27186 _ACEOF
27187 if ac_fn_c_try_link "$LINENO"; then :
27188   ac_cv_lib_s3_S3_initialize=yes
27189 else
27190   ac_cv_lib_s3_S3_initialize=no
27191 fi
27192 rm -f core conftest.err conftest.$ac_objext \
27193     conftest$ac_exeext conftest.$ac_ext
27194 LIBS=$ac_check_lib_save_LIBS
27195 fi
27196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_s3_S3_initialize" >&5
27197 $as_echo "$ac_cv_lib_s3_S3_initialize" >&6; }
27198 if test "x$ac_cv_lib_s3_S3_initialize" = xyes; then :
27199
27200               S3_LIBS="-ls3"
27201
27202 $as_echo "#define HAVE_LIBS3 1" >>confdefs.h
27203
27204               have_libs3=yes
27205
27206 fi
27207
27208
27209 fi
27210
27211
27212
27213 fi
27214
27215 fi
27216
27217
27218
27219
27220 ac_ext=cpp
27221 ac_cpp='$CXXCPP $CPPFLAGS'
27222 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27223 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27224 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27225
27226 for ac_func in backtrace
27227 do :
27228   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
27229 if test "x$ac_cv_func_backtrace" = xyes; then :
27230   cat >>confdefs.h <<_ACEOF
27231 #define HAVE_BACKTRACE 1
27232 _ACEOF
27233
27234 fi
27235 done
27236
27237 ac_ext=c
27238 ac_cpp='$CPP $CPPFLAGS'
27239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27242
27243
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27245 $as_echo_n "checking return type of signal handlers... " >&6; }
27246 if ${ac_cv_type_signal+:} false; then :
27247   $as_echo_n "(cached) " >&6
27248 else
27249   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27250 /* end confdefs.h.  */
27251 #include <sys/types.h>
27252 #include <signal.h>
27253
27254 int
27255 main ()
27256 {
27257 return *(signal (0, 0)) (0) == 1;
27258   ;
27259   return 0;
27260 }
27261 _ACEOF
27262 if ac_fn_c_try_compile "$LINENO"; then :
27263   ac_cv_type_signal=int
27264 else
27265   ac_cv_type_signal=void
27266 fi
27267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27268 fi
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27270 $as_echo "$ac_cv_type_signal" >&6; }
27271
27272 cat >>confdefs.h <<_ACEOF
27273 #define RETSIGTYPE $ac_cv_type_signal
27274 _ACEOF
27275
27276
27277
27278   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
27279 $as_echo_n "checking for type of signal functions... " >&6; }
27280   if ${bash_cv_signal_vintage+:} false; then :
27281   $as_echo_n "(cached) " >&6
27282 else
27283
27284     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27285 /* end confdefs.h.  */
27286 #include <signal.h>
27287 int
27288 main ()
27289 {
27290
27291       sigset_t ss;
27292       struct sigaction sa;
27293       sigemptyset(&ss); sigsuspend(&ss);
27294       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27295       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27296
27297   ;
27298   return 0;
27299 }
27300 _ACEOF
27301 if ac_fn_c_try_link "$LINENO"; then :
27302   bash_cv_signal_vintage="posix"
27303 else
27304
27305       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27306 /* end confdefs.h.  */
27307 #include <signal.h>
27308 int
27309 main ()
27310 {
27311
27312           int mask = sigmask(SIGINT);
27313           sigsetmask(mask); sigblock(mask); sigpause(mask);
27314
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 if ac_fn_c_try_link "$LINENO"; then :
27320   bash_cv_signal_vintage="4.2bsd"
27321 else
27322
27323         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27324 /* end confdefs.h.  */
27325
27326           #include <signal.h>
27327           RETSIGTYPE foo() { }
27328 int
27329 main ()
27330 {
27331
27332                   int mask = sigmask(SIGINT);
27333                   sigset(SIGINT, foo); sigrelse(SIGINT);
27334                   sighold(SIGINT); sigpause(SIGINT);
27335
27336   ;
27337   return 0;
27338 }
27339 _ACEOF
27340 if ac_fn_c_try_link "$LINENO"; then :
27341   bash_cv_signal_vintage="svr3"
27342 else
27343   bash_cv_signal_vintage="v7"
27344
27345 fi
27346 rm -f core conftest.err conftest.$ac_objext \
27347     conftest$ac_exeext conftest.$ac_ext
27348
27349 fi
27350 rm -f core conftest.err conftest.$ac_objext \
27351     conftest$ac_exeext conftest.$ac_ext
27352
27353 fi
27354 rm -f core conftest.err conftest.$ac_objext \
27355     conftest$ac_exeext conftest.$ac_ext
27356
27357 fi
27358
27359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27360 $as_echo "$bash_cv_signal_vintage" >&6; }
27361   if test "$bash_cv_signal_vintage" = "posix"; then
27362     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27363
27364   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27365     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27366
27367   elif test "$bash_cv_signal_vintage" = "svr3"; then
27368     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27369
27370   fi
27371
27372 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27373 if test "x$ac_cv_type_mode_t" = xyes; then :
27374
27375 else
27376
27377 cat >>confdefs.h <<_ACEOF
27378 #define mode_t int
27379 _ACEOF
27380
27381 fi
27382
27383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27384 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27385 if ${ac_cv_type_uid_t+:} false; then :
27386   $as_echo_n "(cached) " >&6
27387 else
27388   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27389 /* end confdefs.h.  */
27390 #include <sys/types.h>
27391
27392 _ACEOF
27393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27394   $EGREP "uid_t" >/dev/null 2>&1; then :
27395   ac_cv_type_uid_t=yes
27396 else
27397   ac_cv_type_uid_t=no
27398 fi
27399 rm -f conftest*
27400
27401 fi
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27403 $as_echo "$ac_cv_type_uid_t" >&6; }
27404 if test $ac_cv_type_uid_t = no; then
27405
27406 $as_echo "#define uid_t int" >>confdefs.h
27407
27408
27409 $as_echo "#define gid_t int" >>confdefs.h
27410
27411 fi
27412
27413 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27414 if test "x$ac_cv_type_size_t" = xyes; then :
27415
27416 else
27417
27418 cat >>confdefs.h <<_ACEOF
27419 #define size_t unsigned int
27420 _ACEOF
27421
27422 fi
27423
27424 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27425 if test "x$ac_cv_type_pid_t" = xyes; then :
27426
27427 else
27428
27429 cat >>confdefs.h <<_ACEOF
27430 #define pid_t int
27431 _ACEOF
27432
27433 fi
27434
27435 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27436 if test "x$ac_cv_type_off_t" = xyes; then :
27437
27438 else
27439
27440 cat >>confdefs.h <<_ACEOF
27441 #define off_t long int
27442 _ACEOF
27443
27444 fi
27445
27446
27447   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27448 if test "x$ac_cv_type_intptr_t" = xyes; then :
27449
27450 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27451
27452 else
27453   for ac_type in 'int' 'long int' 'long long int'; do
27454        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27455 /* end confdefs.h.  */
27456 $ac_includes_default
27457 int
27458 main ()
27459 {
27460 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27461 test_array [0] = 0;
27462 return test_array [0];
27463
27464   ;
27465   return 0;
27466 }
27467 _ACEOF
27468 if ac_fn_c_try_compile "$LINENO"; then :
27469
27470 cat >>confdefs.h <<_ACEOF
27471 #define intptr_t $ac_type
27472 _ACEOF
27473
27474           ac_type=
27475 fi
27476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27477        test -z "$ac_type" && break
27478      done
27479 fi
27480
27481
27482
27483   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27484 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27485
27486 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27487
27488 else
27489   for ac_type in 'unsigned int' 'unsigned long int' \
27490         'unsigned long long int'; do
27491        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27492 /* end confdefs.h.  */
27493 $ac_includes_default
27494 int
27495 main ()
27496 {
27497 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27498 test_array [0] = 0;
27499 return test_array [0];
27500
27501   ;
27502   return 0;
27503 }
27504 _ACEOF
27505 if ac_fn_c_try_compile "$LINENO"; then :
27506
27507 cat >>confdefs.h <<_ACEOF
27508 #define uintptr_t $ac_type
27509 _ACEOF
27510
27511           ac_type=
27512 fi
27513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27514        test -z "$ac_type" && break
27515      done
27516 fi
27517
27518
27519 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27520 if test "x$ac_cv_type_ino_t" = xyes; then :
27521
27522 else
27523
27524 cat >>confdefs.h <<_ACEOF
27525 #define ino_t unsigned long
27526 _ACEOF
27527
27528 fi
27529
27530 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27531 if test "x$ac_cv_type_dev_t" = xyes; then :
27532
27533 else
27534
27535 cat >>confdefs.h <<_ACEOF
27536 #define dev_t unsigned long
27537 _ACEOF
27538
27539 fi
27540
27541 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27542 if test "x$ac_cv_type_daddr_t" = xyes; then :
27543
27544 else
27545
27546 cat >>confdefs.h <<_ACEOF
27547 #define daddr_t long
27548 _ACEOF
27549
27550 fi
27551
27552 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27553 if test "x$ac_cv_type_major_t" = xyes; then :
27554
27555 else
27556
27557 cat >>confdefs.h <<_ACEOF
27558 #define major_t int
27559 _ACEOF
27560
27561 fi
27562
27563 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27564 if test "x$ac_cv_type_minor_t" = xyes; then :
27565
27566 else
27567
27568 cat >>confdefs.h <<_ACEOF
27569 #define minor_t int
27570 _ACEOF
27571
27572 fi
27573
27574 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27575 if test "x$ac_cv_type_ssize_t" = xyes; then :
27576
27577 else
27578
27579 cat >>confdefs.h <<_ACEOF
27580 #define ssize_t int
27581 _ACEOF
27582
27583 fi
27584
27585 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27586 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27587
27588 cat >>confdefs.h <<_ACEOF
27589 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27590 _ACEOF
27591
27592
27593 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27594
27595 else
27596   case " $LIBOBJS " in
27597   *" fileblocks.$ac_objext "* ) ;;
27598   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27599  ;;
27600 esac
27601
27602 fi
27603
27604
27605 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27606 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27607
27608 cat >>confdefs.h <<_ACEOF
27609 #define HAVE_STRUCT_STAT_ST_RDEV 1
27610 _ACEOF
27611
27612
27613 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27614
27615 fi
27616
27617
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27619 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27620 if ${ac_cv_struct_tm+:} false; then :
27621   $as_echo_n "(cached) " >&6
27622 else
27623   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27624 /* end confdefs.h.  */
27625 #include <sys/types.h>
27626 #include <time.h>
27627
27628 int
27629 main ()
27630 {
27631 struct tm tm;
27632                                      int *p = &tm.tm_sec;
27633                                      return !p;
27634   ;
27635   return 0;
27636 }
27637 _ACEOF
27638 if ac_fn_c_try_compile "$LINENO"; then :
27639   ac_cv_struct_tm=time.h
27640 else
27641   ac_cv_struct_tm=sys/time.h
27642 fi
27643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27644 fi
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27646 $as_echo "$ac_cv_struct_tm" >&6; }
27647 if test $ac_cv_struct_tm = sys/time.h; then
27648
27649 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27650
27651 fi
27652
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27654 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27655 if ${ac_cv_c_const+:} false; then :
27656   $as_echo_n "(cached) " >&6
27657 else
27658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h.  */
27660
27661 int
27662 main ()
27663 {
27664
27665 #ifndef __cplusplus
27666   /* Ultrix mips cc rejects this sort of thing.  */
27667   typedef int charset[2];
27668   const charset cs = { 0, 0 };
27669   /* SunOS 4.1.1 cc rejects this.  */
27670   char const *const *pcpcc;
27671   char **ppc;
27672   /* NEC SVR4.0.2 mips cc rejects this.  */
27673   struct point {int x, y;};
27674   static struct point const zero = {0,0};
27675   /* AIX XL C 1.02.0.0 rejects this.
27676      It does not let you subtract one const X* pointer from another in
27677      an arm of an if-expression whose if-part is not a constant
27678      expression */
27679   const char *g = "string";
27680   pcpcc = &g + (g ? g-g : 0);
27681   /* HPUX 7.0 cc rejects these. */
27682   ++pcpcc;
27683   ppc = (char**) pcpcc;
27684   pcpcc = (char const *const *) ppc;
27685   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27686     char tx;
27687     char *t = &tx;
27688     char const *s = 0 ? (char *) 0 : (char const *) 0;
27689
27690     *t++ = 0;
27691     if (s) return 0;
27692   }
27693   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27694     int x[] = {25, 17};
27695     const int *foo = &x[0];
27696     ++foo;
27697   }
27698   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27699     typedef const int *iptr;
27700     iptr p = 0;
27701     ++p;
27702   }
27703   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27704        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27705     struct s { int j; const int *ap[3]; } bx;
27706     struct s *b = &bx; b->j = 5;
27707   }
27708   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27709     const int foo = 10;
27710     if (!foo) return 0;
27711   }
27712   return !cs[0] && !zero.x;
27713 #endif
27714
27715   ;
27716   return 0;
27717 }
27718 _ACEOF
27719 if ac_fn_c_try_compile "$LINENO"; then :
27720   ac_cv_c_const=yes
27721 else
27722   ac_cv_c_const=no
27723 fi
27724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27725 fi
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27727 $as_echo "$ac_cv_c_const" >&6; }
27728 if test $ac_cv_c_const = no; then
27729
27730 $as_echo "#define const /**/" >>confdefs.h
27731
27732 fi
27733
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27735 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27736 if ${ac_cv_c_restrict+:} false; then :
27737   $as_echo_n "(cached) " >&6
27738 else
27739   ac_cv_c_restrict=no
27740    # The order here caters to the fact that C++ does not require restrict.
27741    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27742      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h.  */
27744 typedef int * int_ptr;
27745         int foo (int_ptr $ac_kw ip) {
27746         return ip[0];
27747        }
27748 int
27749 main ()
27750 {
27751 int s[1];
27752         int * $ac_kw t = s;
27753         t[0] = 0;
27754         return foo(t)
27755   ;
27756   return 0;
27757 }
27758 _ACEOF
27759 if ac_fn_c_try_compile "$LINENO"; then :
27760   ac_cv_c_restrict=$ac_kw
27761 fi
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763      test "$ac_cv_c_restrict" != no && break
27764    done
27765
27766 fi
27767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27768 $as_echo "$ac_cv_c_restrict" >&6; }
27769
27770  case $ac_cv_c_restrict in
27771    restrict) ;;
27772    no) $as_echo "#define restrict /**/" >>confdefs.h
27773  ;;
27774    *)  cat >>confdefs.h <<_ACEOF
27775 #define restrict $ac_cv_c_restrict
27776 _ACEOF
27777  ;;
27778  esac
27779
27780
27781 # The cast to long int works around a bug in the HP C Compiler
27782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27784 # This bug is HP SR number 8606223364.
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27786 $as_echo_n "checking size of char... " >&6; }
27787 if ${ac_cv_sizeof_char+:} false; then :
27788   $as_echo_n "(cached) " >&6
27789 else
27790   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27791
27792 else
27793   if test "$ac_cv_type_char" = yes; then
27794      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27796 as_fn_error 77 "cannot compute sizeof (char)
27797 See \`config.log' for more details" "$LINENO" 5; }
27798    else
27799      ac_cv_sizeof_char=0
27800    fi
27801 fi
27802
27803 fi
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27805 $as_echo "$ac_cv_sizeof_char" >&6; }
27806
27807
27808
27809 cat >>confdefs.h <<_ACEOF
27810 #define SIZEOF_CHAR $ac_cv_sizeof_char
27811 _ACEOF
27812
27813
27814 # The cast to long int works around a bug in the HP C Compiler
27815 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27816 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27817 # This bug is HP SR number 8606223364.
27818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27819 $as_echo_n "checking size of short int... " >&6; }
27820 if ${ac_cv_sizeof_short_int+:} false; then :
27821   $as_echo_n "(cached) " >&6
27822 else
27823   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27824
27825 else
27826   if test "$ac_cv_type_short_int" = yes; then
27827      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27828 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27829 as_fn_error 77 "cannot compute sizeof (short int)
27830 See \`config.log' for more details" "$LINENO" 5; }
27831    else
27832      ac_cv_sizeof_short_int=0
27833    fi
27834 fi
27835
27836 fi
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27838 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27839
27840
27841
27842 cat >>confdefs.h <<_ACEOF
27843 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27844 _ACEOF
27845
27846
27847 # The cast to long int works around a bug in the HP C Compiler
27848 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27849 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27850 # This bug is HP SR number 8606223364.
27851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27852 $as_echo_n "checking size of int... " >&6; }
27853 if ${ac_cv_sizeof_int+:} false; then :
27854   $as_echo_n "(cached) " >&6
27855 else
27856   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27857
27858 else
27859   if test "$ac_cv_type_int" = yes; then
27860      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27862 as_fn_error 77 "cannot compute sizeof (int)
27863 See \`config.log' for more details" "$LINENO" 5; }
27864    else
27865      ac_cv_sizeof_int=0
27866    fi
27867 fi
27868
27869 fi
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27871 $as_echo "$ac_cv_sizeof_int" >&6; }
27872
27873
27874
27875 cat >>confdefs.h <<_ACEOF
27876 #define SIZEOF_INT $ac_cv_sizeof_int
27877 _ACEOF
27878
27879
27880 # The cast to long int works around a bug in the HP C Compiler
27881 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27882 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27883 # This bug is HP SR number 8606223364.
27884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27885 $as_echo_n "checking size of long int... " >&6; }
27886 if ${ac_cv_sizeof_long_int+:} false; then :
27887   $as_echo_n "(cached) " >&6
27888 else
27889   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27890
27891 else
27892   if test "$ac_cv_type_long_int" = yes; then
27893      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27895 as_fn_error 77 "cannot compute sizeof (long int)
27896 See \`config.log' for more details" "$LINENO" 5; }
27897    else
27898      ac_cv_sizeof_long_int=0
27899    fi
27900 fi
27901
27902 fi
27903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27904 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27905
27906
27907
27908 cat >>confdefs.h <<_ACEOF
27909 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27910 _ACEOF
27911
27912
27913 # The cast to long int works around a bug in the HP C Compiler
27914 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27915 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27916 # This bug is HP SR number 8606223364.
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27918 $as_echo_n "checking size of long long int... " >&6; }
27919 if ${ac_cv_sizeof_long_long_int+:} false; then :
27920   $as_echo_n "(cached) " >&6
27921 else
27922   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27923
27924 else
27925   if test "$ac_cv_type_long_long_int" = yes; then
27926      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27928 as_fn_error 77 "cannot compute sizeof (long long int)
27929 See \`config.log' for more details" "$LINENO" 5; }
27930    else
27931      ac_cv_sizeof_long_long_int=0
27932    fi
27933 fi
27934
27935 fi
27936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27937 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27938
27939
27940
27941 cat >>confdefs.h <<_ACEOF
27942 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27943 _ACEOF
27944
27945
27946 # The cast to long int works around a bug in the HP C Compiler
27947 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27948 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27949 # This bug is HP SR number 8606223364.
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27951 $as_echo_n "checking size of int *... " >&6; }
27952 if ${ac_cv_sizeof_int_p+:} false; then :
27953   $as_echo_n "(cached) " >&6
27954 else
27955   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27956
27957 else
27958   if test "$ac_cv_type_int_p" = yes; then
27959      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27960 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27961 as_fn_error 77 "cannot compute sizeof (int *)
27962 See \`config.log' for more details" "$LINENO" 5; }
27963    else
27964      ac_cv_sizeof_int_p=0
27965    fi
27966 fi
27967
27968 fi
27969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27970 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27971
27972
27973
27974 cat >>confdefs.h <<_ACEOF
27975 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27976 _ACEOF
27977
27978
27979
27980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27981 $as_echo_n "checking for u_int type... " >&6; }
27982 if ${ac_cv_have_u_int+:} false; then :
27983   $as_echo_n "(cached) " >&6
27984 else
27985
27986        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27987 /* end confdefs.h.  */
27988
27989               #include <sys/types.h>
27990
27991 int
27992 main ()
27993 {
27994
27995               u_int a; a = 1;
27996
27997   ;
27998   return 0;
27999 }
28000 _ACEOF
28001 if ac_fn_c_try_compile "$LINENO"; then :
28002
28003               ac_cv_have_u_int="yes"
28004
28005 else
28006
28007               ac_cv_have_u_int="no"
28008
28009
28010 fi
28011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28012
28013
28014 fi
28015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
28016 $as_echo "$ac_cv_have_u_int" >&6; }
28017 if test "x$ac_cv_have_u_int" = "xyes" ; then
28018    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
28019
28020    have_u_int=1
28021 fi
28022
28023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
28024 $as_echo_n "checking for intmax_t type... " >&6; }
28025 if ${ac_cv_have_intmax_t+:} false; then :
28026   $as_echo_n "(cached) " >&6
28027 else
28028
28029        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28030 /* end confdefs.h.  */
28031
28032               #include <sys/types.h>
28033
28034 int
28035 main ()
28036 {
28037
28038               intmax_t a; a = 1;
28039
28040   ;
28041   return 0;
28042 }
28043 _ACEOF
28044 if ac_fn_c_try_compile "$LINENO"; then :
28045
28046               ac_cv_have_intmax_t="yes"
28047
28048 else
28049
28050               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28051 /* end confdefs.h.  */
28052
28053                      #include <stdint.h>
28054
28055 int
28056 main ()
28057 {
28058
28059                      intmax_t a; a = 1;
28060
28061   ;
28062   return 0;
28063 }
28064 _ACEOF
28065 if ac_fn_c_try_compile "$LINENO"; then :
28066
28067                      ac_cv_have_intmax_t="yes"
28068
28069 else
28070
28071                      ac_cv_have_intmax_t="no"
28072
28073
28074 fi
28075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28076
28077
28078 fi
28079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28080
28081
28082 fi
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
28084 $as_echo "$ac_cv_have_intmax_t" >&6; }
28085 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
28086    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
28087
28088    have_intmax_t=1
28089 fi
28090
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
28092 $as_echo_n "checking for u_intmax_t type... " >&6; }
28093 if ${ac_cv_have_u_intmax_t+:} false; 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 <sys/types.h>
28101
28102 int
28103 main ()
28104 {
28105
28106               u_intmax_t a; a = 1;
28107
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 if ac_fn_c_try_compile "$LINENO"; then :
28113
28114               ac_cv_have_u_intmax_t="yes"
28115
28116 else
28117
28118               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28119 /* end confdefs.h.  */
28120
28121                      #include <stdint.h>
28122
28123 int
28124 main ()
28125 {
28126
28127                     u_intmax_t a; a = 1;
28128
28129   ;
28130   return 0;
28131 }
28132 _ACEOF
28133 if ac_fn_c_try_compile "$LINENO"; then :
28134
28135                     ac_cv_have_u_intmax_t="yes"
28136
28137 else
28138
28139                     ac_cv_have_u_intmax_t="no"
28140
28141
28142 fi
28143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28144
28145
28146 fi
28147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28148
28149
28150 fi
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
28152 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
28153 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
28154    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
28155
28156    have_u_intmax_t=1
28157 fi
28158
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
28160 $as_echo_n "checking for intXX_t types... " >&6; }
28161 if ${ac_cv_have_intxx_t+:} false; then :
28162   $as_echo_n "(cached) " >&6
28163 else
28164
28165        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28166 /* end confdefs.h.  */
28167
28168               #include <sys/types.h>
28169
28170 int
28171 main ()
28172 {
28173
28174               int8_t a; int16_t b; int32_t c; a = b = c = 1;
28175
28176   ;
28177   return 0;
28178 }
28179 _ACEOF
28180 if ac_fn_c_try_compile "$LINENO"; then :
28181
28182               ac_cv_have_intxx_t="yes"
28183
28184 else
28185
28186               ac_cv_have_intxx_t="no"
28187
28188
28189 fi
28190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28191
28192
28193 fi
28194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
28195 $as_echo "$ac_cv_have_intxx_t" >&6; }
28196 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
28197    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28198
28199    have_intxx_t=1
28200 fi
28201
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
28203 $as_echo_n "checking for int64_t type... " >&6; }
28204 if ${ac_cv_have_int64_t+:} false; then :
28205   $as_echo_n "(cached) " >&6
28206 else
28207
28208        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28209 /* end confdefs.h.  */
28210
28211               #include <sys/types.h>
28212
28213 int
28214 main ()
28215 {
28216
28217               int64_t a; a = 1;
28218
28219   ;
28220   return 0;
28221 }
28222 _ACEOF
28223 if ac_fn_c_try_compile "$LINENO"; then :
28224
28225               ac_cv_have_int64_t="yes"
28226
28227 else
28228
28229               ac_cv_have_int64_t="no"
28230
28231
28232 fi
28233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28234
28235
28236 fi
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
28238 $as_echo "$ac_cv_have_int64_t" >&6; }
28239 if test "x$ac_cv_have_int64_t" = "xyes" ; then
28240    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28241
28242    have_int64_t=1
28243 fi
28244
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
28246 $as_echo_n "checking for u_intXX_t types... " >&6; }
28247 if ${ac_cv_have_u_intxx_t+:} false; then :
28248   $as_echo_n "(cached) " >&6
28249 else
28250
28251        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28252 /* end confdefs.h.  */
28253
28254               #include <sys/types.h>
28255
28256 int
28257 main ()
28258 {
28259
28260               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
28261
28262   ;
28263   return 0;
28264 }
28265 _ACEOF
28266 if ac_fn_c_try_compile "$LINENO"; then :
28267
28268              ac_cv_have_u_intxx_t="yes"
28269
28270 else
28271
28272              ac_cv_have_u_intxx_t="no"
28273
28274
28275 fi
28276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28277
28278
28279 fi
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
28281 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
28282 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
28283    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28284
28285    have_u_intxx_t=1
28286 fi
28287
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28289 $as_echo_n "checking for u_int64_t types... " >&6; }
28290 if ${ac_cv_have_u_int64_t+:} false; then :
28291   $as_echo_n "(cached) " >&6
28292 else
28293
28294        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28295 /* end confdefs.h.  */
28296
28297               #include <sys/types.h>
28298
28299 int
28300 main ()
28301 {
28302
28303               u_int64_t a; a = 1;
28304
28305   ;
28306   return 0;
28307 }
28308 _ACEOF
28309 if ac_fn_c_try_compile "$LINENO"; then :
28310
28311              ac_cv_have_u_int64_t="yes"
28312
28313 else
28314
28315              ac_cv_have_u_int64_t="no"
28316
28317
28318 fi
28319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28320
28321
28322 fi
28323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28324 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28325 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28326    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28327
28328    have_u_int64_t=1
28329 fi
28330
28331 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28332     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28333 then
28334    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28335 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28336    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28337 /* end confdefs.h.  */
28338
28339           #include <sys/bitypes.h>
28340
28341 int
28342 main ()
28343 {
28344
28345           int8_t a; int16_t b; int32_t c;
28346           u_int8_t e; u_int16_t f; u_int32_t g;
28347           a = b = c = e = f = g = 1;
28348
28349   ;
28350   return 0;
28351 }
28352 _ACEOF
28353 if ac_fn_c_try_compile "$LINENO"; then :
28354
28355           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28356
28357           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28358
28359           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28360
28361           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28362 $as_echo "yes" >&6; }
28363
28364 else
28365
28366           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28367 $as_echo "no" >&6; }
28368
28369
28370 fi
28371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28372 fi
28373
28374 if test -z "$have_u_intxx_t" ; then
28375    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28376 $as_echo_n "checking for uintXX_t types... " >&6; }
28377 if ${ac_cv_have_uintxx_t+:} false; then :
28378   $as_echo_n "(cached) " >&6
28379 else
28380
28381           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28382 /* end confdefs.h.  */
28383
28384                  #include <sys/types.h>
28385
28386 int
28387 main ()
28388 {
28389
28390                  uint8_t a; uint16_t b;
28391                  uint32_t c; a = b = c = 1;
28392
28393   ;
28394   return 0;
28395 }
28396 _ACEOF
28397 if ac_fn_c_try_compile "$LINENO"; then :
28398
28399                 ac_cv_have_uintxx_t="yes"
28400
28401 else
28402
28403                 ac_cv_have_uintxx_t="no"
28404
28405
28406 fi
28407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28408
28409
28410 fi
28411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28412 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28413    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28414       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28415
28416    fi
28417 fi
28418
28419 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28420     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28421 then
28422    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28423 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28424    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28425 /* end confdefs.h.  */
28426
28427           #include <sys/bitypes.h>
28428
28429 int
28430 main ()
28431 {
28432
28433           int64_t a; u_int64_t b;
28434           a = b = 1;
28435
28436   ;
28437   return 0;
28438 }
28439 _ACEOF
28440 if ac_fn_c_try_compile "$LINENO"; then :
28441
28442           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28443
28444           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28445
28446           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28447 $as_echo "yes" >&6; }
28448
28449 else
28450
28451           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28452 $as_echo "no" >&6; }
28453
28454
28455 fi
28456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28457 fi
28458
28459 if (test -z "$have_uintxx_t" && \
28460     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28461 then
28462    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28463 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28464    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28465 /* end confdefs.h.  */
28466
28467           #include <sys/bitypes.h>
28468
28469 int
28470 main ()
28471 {
28472
28473           uint8_t a; uint16_t b;
28474           uint32_t c; a = b = c = 1;
28475
28476   ;
28477   return 0;
28478 }
28479 _ACEOF
28480 if ac_fn_c_try_compile "$LINENO"; then :
28481
28482           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28483
28484           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28485 $as_echo "yes" >&6; }
28486
28487 else
28488
28489           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28490 $as_echo "no" >&6; }
28491
28492
28493 fi
28494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28495 fi
28496
28497 for ac_func in \
28498    fork \
28499    getcwd \
28500    gethostname \
28501    getpid \
28502    gettimeofday \
28503    setpgid \
28504    setpgrp \
28505    setsid \
28506    signal \
28507    strerror \
28508    strncmp \
28509    strncpy \
28510    vfprintf \
28511
28512 do :
28513   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28515 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28516   cat >>confdefs.h <<_ACEOF
28517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28518 _ACEOF
28519
28520 else
28521   echo 'configure: cannot find needed function.'; exit 1
28522
28523 fi
28524 done
28525
28526
28527 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28528
28529 "
28530 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28531
28532 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28533
28534 fi
28535
28536
28537 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28538
28539 "
28540 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28541
28542 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28543
28544 fi
28545
28546
28547 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28548 if test "x$ac_cv_func_closefrom" = xyes; then :
28549
28550 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28551
28552 fi
28553
28554 for ac_func in getpagesize
28555 do :
28556   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28557 if test "x$ac_cv_func_getpagesize" = xyes; then :
28558   cat >>confdefs.h <<_ACEOF
28559 #define HAVE_GETPAGESIZE 1
28560 _ACEOF
28561
28562 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28563
28564 fi
28565 done
28566
28567 for ac_func in malloc_trim
28568 do :
28569   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28570 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28571   cat >>confdefs.h <<_ACEOF
28572 #define HAVE_MALLOC_TRIM 1
28573 _ACEOF
28574
28575 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28576
28577 fi
28578 done
28579
28580
28581 for ac_func in fchdir
28582 do :
28583   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28584 if test "x$ac_cv_func_fchdir" = xyes; then :
28585   cat >>confdefs.h <<_ACEOF
28586 #define HAVE_FCHDIR 1
28587 _ACEOF
28588  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28589
28590 fi
28591 done
28592
28593 for ac_func in strtoll
28594 do :
28595   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28596 if test "x$ac_cv_func_strtoll" = xyes; then :
28597   cat >>confdefs.h <<_ACEOF
28598 #define HAVE_STRTOLL 1
28599 _ACEOF
28600  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28601
28602 fi
28603 done
28604
28605 for ac_func in posix_fadvise
28606 do :
28607   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28608 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28609   cat >>confdefs.h <<_ACEOF
28610 #define HAVE_POSIX_FADVISE 1
28611 _ACEOF
28612
28613 fi
28614 done
28615
28616 for ac_func in posix_fallocate
28617 do :
28618   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28619 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28620   cat >>confdefs.h <<_ACEOF
28621 #define HAVE_POSIX_FALLOCATE 1
28622 _ACEOF
28623
28624 fi
28625 done
28626
28627 for ac_func in fdatasync
28628 do :
28629   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28630 if test "x$ac_cv_func_fdatasync" = xyes; then :
28631   cat >>confdefs.h <<_ACEOF
28632 #define HAVE_FDATASYNC 1
28633 _ACEOF
28634
28635 fi
28636 done
28637
28638
28639 for ac_func in chflags
28640 do :
28641   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28642 if test "x$ac_cv_func_chflags" = xyes; then :
28643   cat >>confdefs.h <<_ACEOF
28644 #define HAVE_CHFLAGS 1
28645 _ACEOF
28646
28647 fi
28648 done
28649
28650
28651 for ac_func in snprintf vsnprintf gethostid fseeko
28652 do :
28653   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28654 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28655 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28656   cat >>confdefs.h <<_ACEOF
28657 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28658 _ACEOF
28659
28660 fi
28661 done
28662
28663
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28665 $as_echo_n "checking for va_copy... " >&6; }
28666 if ${ba_cv_va_copy+:} false; then :
28667   $as_echo_n "(cached) " >&6
28668 else
28669
28670        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28671 /* end confdefs.h.  */
28672
28673               #include <stdarg.h>
28674               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28675               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28676
28677 int
28678 main ()
28679 {
28680
28681               call_use_va_copy(1,2,3)
28682
28683   ;
28684   return 0;
28685 }
28686 _ACEOF
28687 if ac_fn_c_try_link "$LINENO"; then :
28688
28689               ba_cv_va_copy=yes
28690
28691 else
28692
28693               ba_cv_va_copy=no
28694
28695
28696 fi
28697 rm -f core conftest.err conftest.$ac_objext \
28698     conftest$ac_exeext conftest.$ac_ext
28699
28700
28701 fi
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28703 $as_echo "$ba_cv_va_copy" >&6; }
28704 test $ba_cv_va_copy = yes &&
28705 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28706
28707
28708 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28709 do :
28710   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28711 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28712 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28713   cat >>confdefs.h <<_ACEOF
28714 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28715 _ACEOF
28716
28717 fi
28718 done
28719
28720
28721 # If resolver functions are not in libc check for -lnsl or -lresolv.
28722 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28723 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28724   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28725 $as_echo "using libc's resolver" >&6; }
28726 else
28727   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28728 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28729 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28730   $as_echo_n "(cached) " >&6
28731 else
28732   ac_check_lib_save_LIBS=$LIBS
28733 LIBS="-lnsl  $LIBS"
28734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28735 /* end confdefs.h.  */
28736
28737 /* Override any GCC internal prototype to avoid an error.
28738    Use char because int might match the return type of a GCC
28739    builtin and then its argument prototype would still apply.  */
28740 #ifdef __cplusplus
28741 extern "C"
28742 #endif
28743 char gethostbyname_r ();
28744 int
28745 main ()
28746 {
28747 return gethostbyname_r ();
28748   ;
28749   return 0;
28750 }
28751 _ACEOF
28752 if ac_fn_c_try_link "$LINENO"; then :
28753   ac_cv_lib_nsl_gethostbyname_r=yes
28754 else
28755   ac_cv_lib_nsl_gethostbyname_r=no
28756 fi
28757 rm -f core conftest.err conftest.$ac_objext \
28758     conftest$ac_exeext conftest.$ac_ext
28759 LIBS=$ac_check_lib_save_LIBS
28760 fi
28761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28762 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28763 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28764   cat >>confdefs.h <<_ACEOF
28765 #define HAVE_LIBNSL 1
28766 _ACEOF
28767
28768   LIBS="-lnsl $LIBS"
28769
28770 fi
28771
28772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28773 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28774 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28775   $as_echo_n "(cached) " >&6
28776 else
28777   ac_check_lib_save_LIBS=$LIBS
28778 LIBS="-lresolv  $LIBS"
28779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h.  */
28781
28782 /* Override any GCC internal prototype to avoid an error.
28783    Use char because int might match the return type of a GCC
28784    builtin and then its argument prototype would still apply.  */
28785 #ifdef __cplusplus
28786 extern "C"
28787 #endif
28788 char gethostbyname_r ();
28789 int
28790 main ()
28791 {
28792 return gethostbyname_r ();
28793   ;
28794   return 0;
28795 }
28796 _ACEOF
28797 if ac_fn_c_try_link "$LINENO"; then :
28798   ac_cv_lib_resolv_gethostbyname_r=yes
28799 else
28800   ac_cv_lib_resolv_gethostbyname_r=no
28801 fi
28802 rm -f core conftest.err conftest.$ac_objext \
28803     conftest$ac_exeext conftest.$ac_ext
28804 LIBS=$ac_check_lib_save_LIBS
28805 fi
28806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28807 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28808 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28809   cat >>confdefs.h <<_ACEOF
28810 #define HAVE_LIBRESOLV 1
28811 _ACEOF
28812
28813   LIBS="-lresolv $LIBS"
28814
28815 fi
28816
28817 fi
28818
28819
28820 for ac_func in inet_pton
28821 do :
28822   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28823 if test "x$ac_cv_func_inet_pton" = xyes; then :
28824   cat >>confdefs.h <<_ACEOF
28825 #define HAVE_INET_PTON 1
28826 _ACEOF
28827  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28828
28829 fi
28830 done
28831
28832 for ac_func in inet_ntop
28833 do :
28834   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28835 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28836   cat >>confdefs.h <<_ACEOF
28837 #define HAVE_INET_NTOP 1
28838 _ACEOF
28839  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28840
28841 fi
28842 done
28843
28844 for ac_func in gethostbyname2
28845 do :
28846   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28847 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28848   cat >>confdefs.h <<_ACEOF
28849 #define HAVE_GETHOSTBYNAME2 1
28850 _ACEOF
28851  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28852
28853 fi
28854 done
28855
28856 for ac_func in getnameinfo
28857 do :
28858   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28859 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28860   cat >>confdefs.h <<_ACEOF
28861 #define HAVE_GETNAMEINFO 1
28862 _ACEOF
28863  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28864
28865 fi
28866 done
28867
28868
28869
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28871 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28872 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28873   $as_echo_n "(cached) " >&6
28874 else
28875
28876        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28877 /* end confdefs.h.  */
28878
28879               #include <sys/socket.h>
28880
28881 int
28882 main ()
28883 {
28884
28885               struct sockaddr s; s.sa_len;
28886
28887   ;
28888   return 0;
28889 }
28890 _ACEOF
28891 if ac_fn_c_try_compile "$LINENO"; then :
28892
28893              ac_cv_struct_sockaddr_sa_len=yes
28894
28895 else
28896   ac_cv_struct_sockaddr_sa_len=no
28897
28898
28899 fi
28900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28901
28902
28903 fi
28904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28905 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28906
28907 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28908
28909 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28910
28911 fi
28912
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28914 $as_echo_n "checking for working getaddrinfo... " >&6; }
28915 if ${ac_cv_working_getaddrinfo+:} false; then :
28916   $as_echo_n "(cached) " >&6
28917 else
28918
28919        if test "$cross_compiling" = yes; then :
28920
28921               ac_cv_working_getaddrinfo="yes"
28922
28923
28924 else
28925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28926 /* end confdefs.h.  */
28927
28928               #include <netdb.h>
28929               #include <string.h>
28930               #include <sys/types.h>
28931               #include <sys/socket.h>
28932
28933               void main(void) {
28934                   struct addrinfo hints, *ai;
28935                   int error;
28936
28937                   memset(&hints, 0, sizeof(hints));
28938                   hints.ai_family = AF_UNSPEC;
28939                   hints.ai_socktype = SOCK_STREAM;
28940                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28941                   if (error) {
28942                       exit(1);
28943                   }
28944                   if (ai->ai_addr->sa_family != AF_INET) {
28945                       exit(1);
28946                   }
28947                   exit(0);
28948               }
28949
28950 _ACEOF
28951 if ac_fn_c_try_run "$LINENO"; then :
28952
28953               ac_cv_working_getaddrinfo="yes"
28954
28955 else
28956
28957               ac_cv_working_getaddrinfo="no"
28958
28959 fi
28960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28961   conftest.$ac_objext conftest.beam conftest.$ac_ext
28962 fi
28963
28964
28965
28966 fi
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28968 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28969 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28970 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28971
28972 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28973
28974 fi
28975
28976
28977 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28978   if test "$ac_cv_func_gai_strerror" != "yes"; then
28979     ac_cv_working_getaddrinfo="no"
28980   else
28981
28982 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28983
28984   fi
28985 fi
28986
28987 for ac_func in strftime
28988 do :
28989   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28990 if test "x$ac_cv_func_strftime" = xyes; then :
28991   cat >>confdefs.h <<_ACEOF
28992 #define HAVE_STRFTIME 1
28993 _ACEOF
28994
28995 else
28996   # strftime is in -lintl on SCO UNIX.
28997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28998 $as_echo_n "checking for strftime in -lintl... " >&6; }
28999 if ${ac_cv_lib_intl_strftime+:} false; then :
29000   $as_echo_n "(cached) " >&6
29001 else
29002   ac_check_lib_save_LIBS=$LIBS
29003 LIBS="-lintl  $LIBS"
29004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29005 /* end confdefs.h.  */
29006
29007 /* Override any GCC internal prototype to avoid an error.
29008    Use char because int might match the return type of a GCC
29009    builtin and then its argument prototype would still apply.  */
29010 #ifdef __cplusplus
29011 extern "C"
29012 #endif
29013 char strftime ();
29014 int
29015 main ()
29016 {
29017 return strftime ();
29018   ;
29019   return 0;
29020 }
29021 _ACEOF
29022 if ac_fn_c_try_link "$LINENO"; then :
29023   ac_cv_lib_intl_strftime=yes
29024 else
29025   ac_cv_lib_intl_strftime=no
29026 fi
29027 rm -f core conftest.err conftest.$ac_objext \
29028     conftest$ac_exeext conftest.$ac_ext
29029 LIBS=$ac_check_lib_save_LIBS
29030 fi
29031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
29032 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
29033 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
29034   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
29035
29036 LIBS="-lintl $LIBS"
29037 fi
29038
29039 fi
29040 done
29041
29042 for ac_func in vprintf
29043 do :
29044   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
29045 if test "x$ac_cv_func_vprintf" = xyes; then :
29046   cat >>confdefs.h <<_ACEOF
29047 #define HAVE_VPRINTF 1
29048 _ACEOF
29049
29050 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
29051 if test "x$ac_cv_func__doprnt" = xyes; then :
29052
29053 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
29054
29055 fi
29056
29057 fi
29058 done
29059
29060
29061 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
29062 # for constant arguments.  Useless!
29063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
29064 $as_echo_n "checking for working alloca.h... " >&6; }
29065 if ${ac_cv_working_alloca_h+:} false; then :
29066   $as_echo_n "(cached) " >&6
29067 else
29068   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29069 /* end confdefs.h.  */
29070 #include <alloca.h>
29071 int
29072 main ()
29073 {
29074 char *p = (char *) alloca (2 * sizeof (int));
29075                           if (p) return 0;
29076   ;
29077   return 0;
29078 }
29079 _ACEOF
29080 if ac_fn_c_try_link "$LINENO"; then :
29081   ac_cv_working_alloca_h=yes
29082 else
29083   ac_cv_working_alloca_h=no
29084 fi
29085 rm -f core conftest.err conftest.$ac_objext \
29086     conftest$ac_exeext conftest.$ac_ext
29087 fi
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
29089 $as_echo "$ac_cv_working_alloca_h" >&6; }
29090 if test $ac_cv_working_alloca_h = yes; then
29091
29092 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
29093
29094 fi
29095
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
29097 $as_echo_n "checking for alloca... " >&6; }
29098 if ${ac_cv_func_alloca_works+:} false; then :
29099   $as_echo_n "(cached) " >&6
29100 else
29101   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29102 /* end confdefs.h.  */
29103 #ifdef __GNUC__
29104 # define alloca __builtin_alloca
29105 #else
29106 # ifdef _MSC_VER
29107 #  include <malloc.h>
29108 #  define alloca _alloca
29109 # else
29110 #  ifdef HAVE_ALLOCA_H
29111 #   include <alloca.h>
29112 #  else
29113 #   ifdef _AIX
29114  #pragma alloca
29115 #   else
29116 #    ifndef alloca /* predefined by HP cc +Olibcalls */
29117 void *alloca (size_t);
29118 #    endif
29119 #   endif
29120 #  endif
29121 # endif
29122 #endif
29123
29124 int
29125 main ()
29126 {
29127 char *p = (char *) alloca (1);
29128                                     if (p) return 0;
29129   ;
29130   return 0;
29131 }
29132 _ACEOF
29133 if ac_fn_c_try_link "$LINENO"; then :
29134   ac_cv_func_alloca_works=yes
29135 else
29136   ac_cv_func_alloca_works=no
29137 fi
29138 rm -f core conftest.err conftest.$ac_objext \
29139     conftest$ac_exeext conftest.$ac_ext
29140 fi
29141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
29142 $as_echo "$ac_cv_func_alloca_works" >&6; }
29143
29144 if test $ac_cv_func_alloca_works = yes; then
29145
29146 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
29147
29148 else
29149   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
29150 # that cause trouble.  Some versions do not even contain alloca or
29151 # contain a buggy version.  If you still want to use their alloca,
29152 # use ar to extract alloca.o from them instead of compiling alloca.c.
29153
29154 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
29155
29156 $as_echo "#define C_ALLOCA 1" >>confdefs.h
29157
29158
29159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
29160 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
29161 if ${ac_cv_os_cray+:} false; then :
29162   $as_echo_n "(cached) " >&6
29163 else
29164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29165 /* end confdefs.h.  */
29166 #if defined CRAY && ! defined CRAY2
29167 webecray
29168 #else
29169 wenotbecray
29170 #endif
29171
29172 _ACEOF
29173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29174   $EGREP "webecray" >/dev/null 2>&1; then :
29175   ac_cv_os_cray=yes
29176 else
29177   ac_cv_os_cray=no
29178 fi
29179 rm -f conftest*
29180
29181 fi
29182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
29183 $as_echo "$ac_cv_os_cray" >&6; }
29184 if test $ac_cv_os_cray = yes; then
29185   for ac_func in _getb67 GETB67 getb67; do
29186     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29189
29190 cat >>confdefs.h <<_ACEOF
29191 #define CRAY_STACKSEG_END $ac_func
29192 _ACEOF
29193
29194     break
29195 fi
29196
29197   done
29198 fi
29199
29200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
29201 $as_echo_n "checking stack direction for C alloca... " >&6; }
29202 if ${ac_cv_c_stack_direction+:} false; then :
29203   $as_echo_n "(cached) " >&6
29204 else
29205   if test "$cross_compiling" = yes; then :
29206   ac_cv_c_stack_direction=0
29207 else
29208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29209 /* end confdefs.h.  */
29210 $ac_includes_default
29211 int
29212 find_stack_direction (int *addr, int depth)
29213 {
29214   int dir, dummy = 0;
29215   if (! addr)
29216     addr = &dummy;
29217   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
29218   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
29219   return dir + dummy;
29220 }
29221
29222 int
29223 main (int argc, char **argv)
29224 {
29225   return find_stack_direction (0, argc + !argv + 20) < 0;
29226 }
29227 _ACEOF
29228 if ac_fn_c_try_run "$LINENO"; then :
29229   ac_cv_c_stack_direction=1
29230 else
29231   ac_cv_c_stack_direction=-1
29232 fi
29233 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29234   conftest.$ac_objext conftest.beam conftest.$ac_ext
29235 fi
29236
29237 fi
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
29239 $as_echo "$ac_cv_c_stack_direction" >&6; }
29240 cat >>confdefs.h <<_ACEOF
29241 #define STACK_DIRECTION $ac_cv_c_stack_direction
29242 _ACEOF
29243
29244
29245 fi
29246
29247 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
29248 # -lseq on Dynix/PTX, -lgen on Unixware.
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
29250 $as_echo_n "checking for library containing getmntent... " >&6; }
29251 if ${ac_cv_search_getmntent+:} false; then :
29252   $as_echo_n "(cached) " >&6
29253 else
29254   ac_func_search_save_LIBS=$LIBS
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h.  */
29257
29258 /* Override any GCC internal prototype to avoid an error.
29259    Use char because int might match the return type of a GCC
29260    builtin and then its argument prototype would still apply.  */
29261 #ifdef __cplusplus
29262 extern "C"
29263 #endif
29264 char getmntent ();
29265 int
29266 main ()
29267 {
29268 return getmntent ();
29269   ;
29270   return 0;
29271 }
29272 _ACEOF
29273 for ac_lib in '' sun seq gen; do
29274   if test -z "$ac_lib"; then
29275     ac_res="none required"
29276   else
29277     ac_res=-l$ac_lib
29278     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
29279   fi
29280   if ac_fn_c_try_link "$LINENO"; then :
29281   ac_cv_search_getmntent=$ac_res
29282 fi
29283 rm -f core conftest.err conftest.$ac_objext \
29284     conftest$ac_exeext
29285   if ${ac_cv_search_getmntent+:} false; then :
29286   break
29287 fi
29288 done
29289 if ${ac_cv_search_getmntent+:} false; then :
29290
29291 else
29292   ac_cv_search_getmntent=no
29293 fi
29294 rm conftest.$ac_ext
29295 LIBS=$ac_func_search_save_LIBS
29296 fi
29297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29298 $as_echo "$ac_cv_search_getmntent" >&6; }
29299 ac_res=$ac_cv_search_getmntent
29300 if test "$ac_res" != no; then :
29301   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29302   ac_cv_func_getmntent=yes
29303
29304 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29305
29306 else
29307   ac_cv_func_getmntent=no
29308 fi
29309
29310
29311 for ac_func in getmntinfo
29312 do :
29313   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29314 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29315   cat >>confdefs.h <<_ACEOF
29316 #define HAVE_GETMNTINFO 1
29317 _ACEOF
29318  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29319
29320 fi
29321 done
29322
29323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29324 $as_echo_n "checking whether closedir returns void... " >&6; }
29325 if ${ac_cv_func_closedir_void+:} false; then :
29326   $as_echo_n "(cached) " >&6
29327 else
29328   if test "$cross_compiling" = yes; then :
29329   ac_cv_func_closedir_void=yes
29330 else
29331   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29332 /* end confdefs.h.  */
29333 $ac_includes_default
29334 #include <$ac_header_dirent>
29335 #ifndef __cplusplus
29336 int closedir ();
29337 #endif
29338
29339 int
29340 main ()
29341 {
29342 return closedir (opendir (".")) != 0;
29343   ;
29344   return 0;
29345 }
29346 _ACEOF
29347 if ac_fn_c_try_run "$LINENO"; then :
29348   ac_cv_func_closedir_void=no
29349 else
29350   ac_cv_func_closedir_void=yes
29351 fi
29352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29353   conftest.$ac_objext conftest.beam conftest.$ac_ext
29354 fi
29355
29356 fi
29357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29358 $as_echo "$ac_cv_func_closedir_void" >&6; }
29359 if test $ac_cv_func_closedir_void = yes; then
29360
29361 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29362
29363 fi
29364
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29366 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29367 if ${ac_cv_func_setpgrp_void+:} false; then :
29368   $as_echo_n "(cached) " >&6
29369 else
29370   if test "$cross_compiling" = yes; then :
29371   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29372 else
29373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29374 /* end confdefs.h.  */
29375 $ac_includes_default
29376 int
29377 main ()
29378 {
29379 /* If this system has a BSD-style setpgrp which takes arguments,
29380   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29381   exit successfully. */
29382   return setpgrp (1,1) != -1;
29383   ;
29384   return 0;
29385 }
29386 _ACEOF
29387 if ac_fn_c_try_run "$LINENO"; then :
29388   ac_cv_func_setpgrp_void=no
29389 else
29390   ac_cv_func_setpgrp_void=yes
29391 fi
29392 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29393   conftest.$ac_objext conftest.beam conftest.$ac_ext
29394 fi
29395
29396 fi
29397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29398 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29399 if test $ac_cv_func_setpgrp_void = yes; then
29400
29401 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29402
29403 fi
29404             # AC_FUNC_FNMATCH    dnl use local version
29405
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29407 $as_echo_n "checking for gettext in -lintl... " >&6; }
29408 if ${ac_cv_lib_intl_gettext+:} false; then :
29409   $as_echo_n "(cached) " >&6
29410 else
29411   ac_check_lib_save_LIBS=$LIBS
29412 LIBS="-lintl  $LIBS"
29413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29414 /* end confdefs.h.  */
29415
29416 /* Override any GCC internal prototype to avoid an error.
29417    Use char because int might match the return type of a GCC
29418    builtin and then its argument prototype would still apply.  */
29419 #ifdef __cplusplus
29420 extern "C"
29421 #endif
29422 char gettext ();
29423 int
29424 main ()
29425 {
29426 return gettext ();
29427   ;
29428   return 0;
29429 }
29430 _ACEOF
29431 if ac_fn_c_try_link "$LINENO"; then :
29432   ac_cv_lib_intl_gettext=yes
29433 else
29434   ac_cv_lib_intl_gettext=no
29435 fi
29436 rm -f core conftest.err conftest.$ac_objext \
29437     conftest$ac_exeext conftest.$ac_ext
29438 LIBS=$ac_check_lib_save_LIBS
29439 fi
29440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29441 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29442 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29443   LIBS="$LIBS -lintl"
29444 fi
29445
29446
29447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29448 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29449 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29450   $as_echo_n "(cached) " >&6
29451 else
29452   ac_check_lib_save_LIBS=$LIBS
29453 LIBS="-lsun  $LIBS"
29454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29455 /* end confdefs.h.  */
29456
29457 /* Override any GCC internal prototype to avoid an error.
29458    Use char because int might match the return type of a GCC
29459    builtin and then its argument prototype would still apply.  */
29460 #ifdef __cplusplus
29461 extern "C"
29462 #endif
29463 char getpwnam ();
29464 int
29465 main ()
29466 {
29467 return getpwnam ();
29468   ;
29469   return 0;
29470 }
29471 _ACEOF
29472 if ac_fn_c_try_link "$LINENO"; then :
29473   ac_cv_lib_sun_getpwnam=yes
29474 else
29475   ac_cv_lib_sun_getpwnam=no
29476 fi
29477 rm -f core conftest.err conftest.$ac_objext \
29478     conftest$ac_exeext conftest.$ac_ext
29479 LIBS=$ac_check_lib_save_LIBS
29480 fi
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29482 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29483 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29484   cat >>confdefs.h <<_ACEOF
29485 #define HAVE_LIBSUN 1
29486 _ACEOF
29487
29488   LIBS="-lsun $LIBS"
29489
29490 fi
29491
29492
29493 for ac_header in zlib.h
29494 do :
29495   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29496 if test "x$ac_cv_header_zlib_h" = xyes; then :
29497   cat >>confdefs.h <<_ACEOF
29498 #define HAVE_ZLIB_H 1
29499 _ACEOF
29500
29501 fi
29502
29503 done
29504
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29506 $as_echo_n "checking for deflate in -lz... " >&6; }
29507 if ${ac_cv_lib_z_deflate+:} false; then :
29508   $as_echo_n "(cached) " >&6
29509 else
29510   ac_check_lib_save_LIBS=$LIBS
29511 LIBS="-lz  $LIBS"
29512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29513 /* end confdefs.h.  */
29514
29515 /* Override any GCC internal prototype to avoid an error.
29516    Use char because int might match the return type of a GCC
29517    builtin and then its argument prototype would still apply.  */
29518 #ifdef __cplusplus
29519 extern "C"
29520 #endif
29521 char deflate ();
29522 int
29523 main ()
29524 {
29525 return deflate ();
29526   ;
29527   return 0;
29528 }
29529 _ACEOF
29530 if ac_fn_c_try_link "$LINENO"; then :
29531   ac_cv_lib_z_deflate=yes
29532 else
29533   ac_cv_lib_z_deflate=no
29534 fi
29535 rm -f core conftest.err conftest.$ac_objext \
29536     conftest$ac_exeext conftest.$ac_ext
29537 LIBS=$ac_check_lib_save_LIBS
29538 fi
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29540 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29541 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29542   ZLIBS="-lz"
29543 fi
29544
29545 have_zlib=no
29546 if test x$ZLIBS = x-lz; then
29547    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29548
29549    have_zlib=yes
29550 fi
29551
29552
29553 AFS_CFLAGS=""
29554 AFS_LIBS=""
29555 support_afs=auto
29556 # Check whether --enable-afs was given.
29557 if test "${enable_afs+set}" = set; then :
29558   enableval=$enable_afs;
29559        if test x$enableval = xyes; then
29560           support_afs=yes
29561        elif test x$enableval = xno; then
29562           support_afs=no
29563        fi
29564
29565
29566 fi
29567
29568
29569 have_afs=no
29570 if test x$support_afs = xyes -o x$support_afs = xauto; then
29571
29572 # Check whether --with-afsdir was given.
29573 if test "${with_afsdir+set}" = set; then :
29574   withval=$with_afsdir; with_afsdir=$withval
29575
29576 fi
29577
29578
29579             if test x$with_afsdir = x; then
29580       for root in /usr /usr/local; do
29581          if test -d ${root}/include/afs/ ; then
29582             with_afsdir=${root}
29583             break
29584          fi
29585          if test -d ${root}/include/openafs/afs/ ; then
29586             with_afsdir=${root}
29587             break
29588          fi
29589       done
29590    fi
29591
29592    if test -d ${with_afsdir}/include/afs/ ; then
29593       AFS_CFLAGS="-I${with_afsdir}/include"
29594    else
29595       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29596          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29597       fi
29598    fi
29599
29600    saved_CFLAGS="${CFLAGS}"
29601    saved_CPPFLAGS="${CPPFLAGS}"
29602    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29603    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29604
29605    for ac_header in afs/afsint.h
29606 do :
29607   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29608 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29609   cat >>confdefs.h <<_ACEOF
29610 #define HAVE_AFS_AFSINT_H 1
29611 _ACEOF
29612
29613 fi
29614
29615 done
29616
29617    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29618 /* end confdefs.h.  */
29619
29620           #include <afs/afsint.h>
29621           #include <afs/venus.h>
29622
29623 _ACEOF
29624 if ac_fn_c_try_cpp "$LINENO"; then :
29625
29626 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29627
29628
29629 fi
29630 rm -f conftest.err conftest.i conftest.$ac_ext
29631
29632    CFLAGS="${saved_CFLAGS}"
29633    CPPFLAGS="${saved_CPPFLAGS}"
29634
29635             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29636 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29637    for dir in ${with_afsdir}/lib \
29638               ${with_afsdir}/lib/afs \
29639               ${with_afsdir}/lib/openafs \
29640               ${with_afsdir}/lib64 \
29641               ${with_afsdir}/lib64/afs \
29642               ${with_afsdir}/lib64/openafs
29643    do
29644       for arch_type in .a .so
29645       do
29646          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29647          pkg=$?
29648          if test $pkg = 0; then
29649             have_afs=yes
29650             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29651             break
29652          fi
29653       done
29654    done
29655
29656    if test $have_afs = yes; then
29657       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29658 $as_echo "yes" >&6; }
29659    else
29660       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29661 $as_echo "no" >&6; }
29662    fi
29663
29664    if test x$support_afs = xyes -a $have_afs != yes; then
29665       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29666   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29667    else
29668       if test $have_afs = yes; then
29669
29670 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29671
29672
29673 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29674
29675       fi
29676    fi
29677 fi
29678
29679
29680
29681
29682 # Check whether --enable-lzo was given.
29683 if test "${enable_lzo+set}" = set; then :
29684   enableval=$enable_lzo;
29685        if test x$enableval = xno; then
29686           support_lzo=no
29687        fi
29688
29689
29690 fi
29691
29692
29693 LZO_INC=
29694 LZO_LIBS=
29695 LZO_LDFLAGS=
29696
29697 have_lzo="no"
29698 if test x$support_lzo = xyes; then
29699
29700 # Check whether --with-lzo was given.
29701 if test "${with_lzo+set}" = set; then :
29702   withval=$with_lzo;
29703           case "$with_lzo" in
29704           no)
29705              :
29706              ;;
29707           yes|*)
29708              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29709                 LZO_INC="-I${with_lzo}/include"
29710                 LZO_LDFLAGS="-L${with_lzo}/lib"
29711                 with_lzo="${with_lzo}/include"
29712              else
29713                 with_lzo="/usr/include"
29714              fi
29715
29716              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29717 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29719
29720
29721 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29722
29723                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29724                     have_lzo="yes"
29725
29726 else
29727
29728                     echo " "
29729                     echo "lzoconf.h not found. lzo turned off ..."
29730                     echo " "
29731
29732
29733 fi
29734
29735
29736              ;;
29737           esac
29738
29739 else
29740
29741          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29742 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29743
29744             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29745 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29746
29747                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29748 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29749 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29750   $as_echo_n "(cached) " >&6
29751 else
29752   ac_check_lib_save_LIBS=$LIBS
29753 LIBS="-llzo2  $LIBS"
29754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29755 /* end confdefs.h.  */
29756
29757 /* Override any GCC internal prototype to avoid an error.
29758    Use char because int might match the return type of a GCC
29759    builtin and then its argument prototype would still apply.  */
29760 #ifdef __cplusplus
29761 extern "C"
29762 #endif
29763 char lzo1x_1_compress ();
29764 int
29765 main ()
29766 {
29767 return lzo1x_1_compress ();
29768   ;
29769   return 0;
29770 }
29771 _ACEOF
29772 if ac_fn_c_try_link "$LINENO"; then :
29773   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29774 else
29775   ac_cv_lib_lzo2_lzo1x_1_compress=no
29776 fi
29777 rm -f core conftest.err conftest.$ac_objext \
29778     conftest$ac_exeext conftest.$ac_ext
29779 LIBS=$ac_check_lib_save_LIBS
29780 fi
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29782 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29783 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29784
29785                  LZO_LIBS="-llzo2"
29786
29787 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29788
29789                  have_lzo=yes
29790
29791 fi
29792
29793
29794 fi
29795
29796
29797
29798 fi
29799
29800
29801
29802 fi
29803
29804 fi
29805
29806
29807
29808
29809
29810 support_acl=auto
29811 # Check whether --enable-acl was given.
29812 if test "${enable_acl+set}" = set; then :
29813   enableval=$enable_acl;
29814        if test x$enableval = xyes; then
29815           support_acl=yes
29816        elif test x$enableval = xno; then
29817           support_acl=no
29818        fi
29819
29820
29821 fi
29822
29823
29824 have_acl=no
29825 have_extended_acl=no
29826 if test x$support_acl = xyes -o x$support_acl = xauto; then
29827    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29828 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29829
29830 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29831
29832 fi
29833
29834
29835
29836             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29837 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29838
29839           have_acl=yes
29840
29841
29842 fi
29843
29844
29845             if test $have_acl = no; then
29846       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29847 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29848 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29849   $as_echo_n "(cached) " >&6
29850 else
29851   ac_check_lib_save_LIBS=$LIBS
29852 LIBS="-lacl  $LIBS"
29853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29854 /* end confdefs.h.  */
29855
29856 /* Override any GCC internal prototype to avoid an error.
29857    Use char because int might match the return type of a GCC
29858    builtin and then its argument prototype would still apply.  */
29859 #ifdef __cplusplus
29860 extern "C"
29861 #endif
29862 char acl_get_file ();
29863 int
29864 main ()
29865 {
29866 return acl_get_file ();
29867   ;
29868   return 0;
29869 }
29870 _ACEOF
29871 if ac_fn_c_try_link "$LINENO"; then :
29872   ac_cv_lib_acl_acl_get_file=yes
29873 else
29874   ac_cv_lib_acl_acl_get_file=no
29875 fi
29876 rm -f core conftest.err conftest.$ac_objext \
29877     conftest$ac_exeext conftest.$ac_ext
29878 LIBS=$ac_check_lib_save_LIBS
29879 fi
29880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29881 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29882 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29883
29884              have_acl=yes
29885              if test $have_afs = yes; then
29886                                                                 if test -d /usr/lib64/; then
29887                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29888                 else
29889                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29890                 fi
29891              else
29892                 FDLIBS="-lacl $FDLIBS"
29893              fi
29894
29895
29896 fi
29897
29898    fi
29899
29900                if test $have_acl = no -a \
29901            x${HAVE_OSF1_OS_TRUE} = x; then
29902       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29903 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29904 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29905   $as_echo_n "(cached) " >&6
29906 else
29907   ac_check_lib_save_LIBS=$LIBS
29908 LIBS="-lpacl  $LIBS"
29909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29910 /* end confdefs.h.  */
29911
29912 /* Override any GCC internal prototype to avoid an error.
29913    Use char because int might match the return type of a GCC
29914    builtin and then its argument prototype would still apply.  */
29915 #ifdef __cplusplus
29916 extern "C"
29917 #endif
29918 char acl_get_file ();
29919 int
29920 main ()
29921 {
29922 return acl_get_file ();
29923   ;
29924   return 0;
29925 }
29926 _ACEOF
29927 if ac_fn_c_try_link "$LINENO"; then :
29928   ac_cv_lib_pacl_acl_get_file=yes
29929 else
29930   ac_cv_lib_pacl_acl_get_file=no
29931 fi
29932 rm -f core conftest.err conftest.$ac_objext \
29933     conftest$ac_exeext conftest.$ac_ext
29934 LIBS=$ac_check_lib_save_LIBS
29935 fi
29936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29937 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29938 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29939
29940              have_acl=yes
29941              FDLIBS="-lpacl $FDLIBS"
29942
29943
29944 fi
29945
29946
29947       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29948 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29949       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29950       if test $? = 0; then
29951
29952 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29953
29954          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29955 $as_echo "yes" >&6; }
29956       else
29957          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29958 $as_echo "no" >&6; }
29959       fi
29960    fi
29961
29962             if test $have_acl = yes -a \
29963            x${HAVE_DARWIN_OS_TRUE} = x; then
29964       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29965 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29966       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29967       if test $? = 0; then
29968
29969 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29970
29971          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29972 $as_echo "yes" >&6; }
29973       else
29974          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29975 $as_echo "no" >&6; }
29976       fi
29977    fi
29978
29979             if test $have_acl = yes -a \
29980            x${HAVE_FREEBSD_OS_TRUE} = x; then
29981       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29982 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29983       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29984       if test $? = 0; then
29985
29986 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29987
29988          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29989 $as_echo "yes" >&6; }
29990       else
29991          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29992 $as_echo "no" >&6; }
29993       fi
29994    fi
29995
29996             if test $have_acl = no -a \
29997            x${HAVE_SUN_OS_TRUE} = x; then
29998       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29999 $as_echo_n "checking for acltotext in -lsec... " >&6; }
30000 if ${ac_cv_lib_sec_acltotext+:} false; then :
30001   $as_echo_n "(cached) " >&6
30002 else
30003   ac_check_lib_save_LIBS=$LIBS
30004 LIBS="-lsec  $LIBS"
30005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30006 /* end confdefs.h.  */
30007
30008 /* Override any GCC internal prototype to avoid an error.
30009    Use char because int might match the return type of a GCC
30010    builtin and then its argument prototype would still apply.  */
30011 #ifdef __cplusplus
30012 extern "C"
30013 #endif
30014 char acltotext ();
30015 int
30016 main ()
30017 {
30018 return acltotext ();
30019   ;
30020   return 0;
30021 }
30022 _ACEOF
30023 if ac_fn_c_try_link "$LINENO"; then :
30024   ac_cv_lib_sec_acltotext=yes
30025 else
30026   ac_cv_lib_sec_acltotext=no
30027 fi
30028 rm -f core conftest.err conftest.$ac_objext \
30029     conftest$ac_exeext conftest.$ac_ext
30030 LIBS=$ac_check_lib_save_LIBS
30031 fi
30032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
30033 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
30034 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
30035
30036              have_acl=yes
30037              FDLIBS="-lsec $FDLIBS"
30038
30039              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
30040 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
30041 if ${ac_cv_lib_sec_acl_totext+:} false; then :
30042   $as_echo_n "(cached) " >&6
30043 else
30044   ac_check_lib_save_LIBS=$LIBS
30045 LIBS="-lsec  $LIBS"
30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h.  */
30048
30049 /* Override any GCC internal prototype to avoid an error.
30050    Use char because int might match the return type of a GCC
30051    builtin and then its argument prototype would still apply.  */
30052 #ifdef __cplusplus
30053 extern "C"
30054 #endif
30055 char acl_totext ();
30056 int
30057 main ()
30058 {
30059 return acl_totext ();
30060   ;
30061   return 0;
30062 }
30063 _ACEOF
30064 if ac_fn_c_try_link "$LINENO"; then :
30065   ac_cv_lib_sec_acl_totext=yes
30066 else
30067   ac_cv_lib_sec_acl_totext=no
30068 fi
30069 rm -f core conftest.err conftest.$ac_objext \
30070     conftest$ac_exeext conftest.$ac_ext
30071 LIBS=$ac_check_lib_save_LIBS
30072 fi
30073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
30074 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
30075 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
30076
30077                     have_extended_acl=yes
30078
30079
30080 fi
30081
30082
30083
30084 fi
30085
30086    fi
30087
30088             if test $have_acl = no -a \
30089            x${HAVE_AIX_OS_TRUE} = x; then
30090       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
30091 if test "x$ac_cv_func_acl_get" = xyes; then :
30092
30093              have_acl=yes
30094
30095              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
30096 if test "x$ac_cv_func_aclx_get" = xyes; then :
30097
30098                     have_extended_acl=yes
30099
30100
30101 fi
30102
30103
30104
30105 fi
30106
30107    fi
30108
30109    if test x$support_acl = xyes -a $have_acl != yes; then
30110       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
30111   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
30112    else
30113       if test $have_acl = yes; then
30114
30115 $as_echo "#define HAVE_ACL 1" >>confdefs.h
30116
30117       fi
30118
30119       if test $have_extended_acl = yes; then
30120
30121 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
30122
30123       fi
30124    fi
30125 fi
30126
30127 support_xattr=auto
30128 # Check whether --enable-xattr was given.
30129 if test "${enable_xattr+set}" = set; then :
30130   enableval=$enable_xattr;
30131        if test x$enableval = xyes; then
30132           support_xattr=yes
30133        elif test x$enableval = xno; then
30134           support_xattr=no
30135        fi
30136
30137
30138 fi
30139
30140
30141 have_xattr=no
30142 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
30143                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
30144            x${HAVE_NETBSD_OS_TRUE} = x -o \
30145            x${HAVE_OPENBSD_OS_TRUE} = x; then
30146       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
30147 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
30148
30149 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
30150
30151 fi
30152
30153
30154       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
30155 if test "x$ac_cv_header_libutil_h" = xyes; then :
30156
30157 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
30158
30159 fi
30160
30161
30162       for ac_func in extattr_get_link extattr_set_link extattr_list_link
30163 do :
30164   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30167   cat >>confdefs.h <<_ACEOF
30168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30169 _ACEOF
30170
30171              have_xattr=yes
30172
30173 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
30174
30175
30176 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
30177
30178
30179 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
30180
30181
30182
30183 fi
30184 done
30185
30186
30187       if test $have_xattr = no; then
30188          for ac_func in extattr_get_file extattr_set_file extattr_list_file
30189 do :
30190   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30191 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30192 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30193   cat >>confdefs.h <<_ACEOF
30194 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30195 _ACEOF
30196
30197                 have_xattr=yes
30198
30199 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
30200
30201
30202 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
30203
30204
30205 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
30206
30207
30208
30209 fi
30210 done
30211
30212       fi
30213
30214       if test $have_xattr = yes; then
30215          have_extattr_string_in_libc=no
30216          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
30217 do :
30218   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30219 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30220 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30221   cat >>confdefs.h <<_ACEOF
30222 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30223 _ACEOF
30224
30225                 have_extattr_string_in_libc=yes
30226
30227 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30228
30229
30230 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30231
30232
30233
30234 fi
30235 done
30236
30237
30238                                  if test $have_extattr_string_in_libc = no; then
30239             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
30240 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
30241 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
30242   $as_echo_n "(cached) " >&6
30243 else
30244   ac_check_lib_save_LIBS=$LIBS
30245 LIBS="-lutil  $LIBS"
30246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30247 /* end confdefs.h.  */
30248
30249 /* Override any GCC internal prototype to avoid an error.
30250    Use char because int might match the return type of a GCC
30251    builtin and then its argument prototype would still apply.  */
30252 #ifdef __cplusplus
30253 extern "C"
30254 #endif
30255 char extattr_namespace_to_string extattr_string_to_namespace ();
30256 int
30257 main ()
30258 {
30259 return extattr_namespace_to_string extattr_string_to_namespace ();
30260   ;
30261   return 0;
30262 }
30263 _ACEOF
30264 if ac_fn_c_try_link "$LINENO"; then :
30265   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
30266 else
30267   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
30268 fi
30269 rm -f core conftest.err conftest.$ac_objext \
30270     conftest$ac_exeext conftest.$ac_ext
30271 LIBS=$ac_check_lib_save_LIBS
30272 fi
30273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
30274 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
30275 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
30276
30277
30278 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
30279
30280
30281 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
30282
30283                    FDLIBS="-lutil $FDLIBS"
30284
30285
30286 fi
30287
30288          fi
30289       fi
30290    fi
30291
30292                if test $have_xattr = no -a \
30293            x${HAVE_AIX_OS_TRUE} = x; then
30294       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30295 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30296
30297 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30298
30299 fi
30300
30301
30302       for ac_func in llistea lgetea lsetea
30303 do :
30304   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30305 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30306 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30307   cat >>confdefs.h <<_ACEOF
30308 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30309 _ACEOF
30310
30311              have_xattr=yes
30312
30313 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30314
30315
30316 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30317
30318
30319 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30320
30321
30322
30323 fi
30324 done
30325
30326
30327       if test $have_xattr = no; then
30328          for ac_func in listea getea setea
30329 do :
30330   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30333   cat >>confdefs.h <<_ACEOF
30334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30335 _ACEOF
30336
30337                 have_xattr=yes
30338
30339 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30340
30341
30342 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30343
30344
30345 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30346
30347
30348
30349 fi
30350 done
30351
30352       fi
30353    fi
30354
30355                if test $have_xattr = no -a \
30356            x${HAVE_OSF1_OS_TRUE} = x; then
30357       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30358 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30359
30360 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30361
30362 fi
30363
30364
30365       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30366 do :
30367   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30368 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30369 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30370   cat >>confdefs.h <<_ACEOF
30371 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30372 _ACEOF
30373
30374              have_xattr=yes
30375
30376 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30377
30378
30379 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30380
30381
30382 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30383
30384
30385 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30386
30387
30388 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30389
30390
30391
30392 fi
30393 done
30394
30395    fi
30396
30397                if test $have_xattr = no -a \
30398            x${HAVE_SUN_OS_TRUE} = x; then
30399       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30400 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30401
30402 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30403
30404 fi
30405
30406
30407       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30408 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30409
30410 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30411
30412 fi
30413
30414
30415       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30416 if test "x$ac_cv_header_attr_h" = xyes; then :
30417
30418 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30419
30420 fi
30421
30422
30423
30424       for ac_func in openat fstatat unlinkat fchownat futimesat
30425 do :
30426   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30429   cat >>confdefs.h <<_ACEOF
30430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30431 _ACEOF
30432
30433              have_xattr=yes
30434
30435 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30436
30437
30438 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30439
30440
30441 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30442
30443
30444 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30445
30446
30447 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30448
30449
30450
30451 fi
30452 done
30453
30454
30455       if test $have_xattr = yes; then
30456          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30457 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30458 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30459   $as_echo_n "(cached) " >&6
30460 else
30461   ac_check_lib_save_LIBS=$LIBS
30462 LIBS="-lnvpair  $LIBS"
30463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30464 /* end confdefs.h.  */
30465
30466 /* Override any GCC internal prototype to avoid an error.
30467    Use char because int might match the return type of a GCC
30468    builtin and then its argument prototype would still apply.  */
30469 #ifdef __cplusplus
30470 extern "C"
30471 #endif
30472 char nvlist_next_nvpair ();
30473 int
30474 main ()
30475 {
30476 return nvlist_next_nvpair ();
30477   ;
30478   return 0;
30479 }
30480 _ACEOF
30481 if ac_fn_c_try_link "$LINENO"; then :
30482   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30483 else
30484   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30485 fi
30486 rm -f core conftest.err conftest.$ac_objext \
30487     conftest$ac_exeext conftest.$ac_ext
30488 LIBS=$ac_check_lib_save_LIBS
30489 fi
30490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30491 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30492 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30493
30494
30495 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30496
30497                 FDLIBS="-lnvpair $FDLIBS"
30498
30499
30500 fi
30501
30502       fi
30503    fi
30504
30505             if test $have_xattr = no; then
30506       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30507 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30508
30509 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30510
30511 fi
30512
30513
30514       for ac_func in llistxattr lgetxattr lsetxattr
30515 do :
30516   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30517 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30518 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30519   cat >>confdefs.h <<_ACEOF
30520 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30521 _ACEOF
30522
30523              have_xattr=yes
30524
30525 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30526
30527
30528 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30529
30530
30531 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30532
30533
30534
30535 fi
30536 done
30537
30538
30539       if test $have_xattr = no; then
30540          for ac_func in listxattr getxattr setxattr
30541 do :
30542   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30543 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30544 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30545   cat >>confdefs.h <<_ACEOF
30546 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30547 _ACEOF
30548
30549                 have_xattr=yes
30550
30551 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30552
30553
30554 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30555
30556
30557 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30558
30559
30560
30561 fi
30562 done
30563
30564       fi
30565    fi
30566
30567    if test x$support_xattr = xyes -a $have_xattr != yes; then
30568       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30569   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30570    else
30571       if test $have_xattr = yes; then
30572
30573 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30574
30575       fi
30576    fi
30577 fi
30578
30579 PTHREAD_LIB=""
30580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30581 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30582 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30583   $as_echo_n "(cached) " >&6
30584 else
30585   ac_check_lib_save_LIBS=$LIBS
30586 LIBS="-lpthread  $LIBS"
30587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30588 /* end confdefs.h.  */
30589
30590 /* Override any GCC internal prototype to avoid an error.
30591    Use char because int might match the return type of a GCC
30592    builtin and then its argument prototype would still apply.  */
30593 #ifdef __cplusplus
30594 extern "C"
30595 #endif
30596 char pthread_create ();
30597 int
30598 main ()
30599 {
30600 return pthread_create ();
30601   ;
30602   return 0;
30603 }
30604 _ACEOF
30605 if ac_fn_c_try_link "$LINENO"; then :
30606   ac_cv_lib_pthread_pthread_create=yes
30607 else
30608   ac_cv_lib_pthread_pthread_create=no
30609 fi
30610 rm -f core conftest.err conftest.$ac_objext \
30611     conftest$ac_exeext conftest.$ac_ext
30612 LIBS=$ac_check_lib_save_LIBS
30613 fi
30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30615 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30616 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30617   PTHREAD_LIB="-lpthread"
30618 else
30619
30620        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30621 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30622 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30623   $as_echo_n "(cached) " >&6
30624 else
30625   ac_check_lib_save_LIBS=$LIBS
30626 LIBS="-lpthreads  $LIBS"
30627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30628 /* end confdefs.h.  */
30629
30630 /* Override any GCC internal prototype to avoid an error.
30631    Use char because int might match the return type of a GCC
30632    builtin and then its argument prototype would still apply.  */
30633 #ifdef __cplusplus
30634 extern "C"
30635 #endif
30636 char pthread_create ();
30637 int
30638 main ()
30639 {
30640 return pthread_create ();
30641   ;
30642   return 0;
30643 }
30644 _ACEOF
30645 if ac_fn_c_try_link "$LINENO"; then :
30646   ac_cv_lib_pthreads_pthread_create=yes
30647 else
30648   ac_cv_lib_pthreads_pthread_create=no
30649 fi
30650 rm -f core conftest.err conftest.$ac_objext \
30651     conftest$ac_exeext conftest.$ac_ext
30652 LIBS=$ac_check_lib_save_LIBS
30653 fi
30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30655 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30656 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30657   PTHREAD_LIB="-lpthreads"
30658 else
30659
30660               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30661 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30662 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30663   $as_echo_n "(cached) " >&6
30664 else
30665   ac_check_lib_save_LIBS=$LIBS
30666 LIBS="-lc_r  $LIBS"
30667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30668 /* end confdefs.h.  */
30669
30670 /* Override any GCC internal prototype to avoid an error.
30671    Use char because int might match the return type of a GCC
30672    builtin and then its argument prototype would still apply.  */
30673 #ifdef __cplusplus
30674 extern "C"
30675 #endif
30676 char pthread_create ();
30677 int
30678 main ()
30679 {
30680 return pthread_create ();
30681   ;
30682   return 0;
30683 }
30684 _ACEOF
30685 if ac_fn_c_try_link "$LINENO"; then :
30686   ac_cv_lib_c_r_pthread_create=yes
30687 else
30688   ac_cv_lib_c_r_pthread_create=no
30689 fi
30690 rm -f core conftest.err conftest.$ac_objext \
30691     conftest$ac_exeext conftest.$ac_ext
30692 LIBS=$ac_check_lib_save_LIBS
30693 fi
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30695 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30696 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30697   PTHREAD_LIB="-lc_r"
30698 else
30699
30700                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30701 if test "x$ac_cv_func_pthread_create" = xyes; then :
30702
30703 fi
30704
30705
30706
30707 fi
30708
30709
30710
30711 fi
30712
30713
30714
30715 fi
30716
30717
30718 for ac_header in sys/prctl.h sys/capability.h
30719 do :
30720   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30721 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30722 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30723   cat >>confdefs.h <<_ACEOF
30724 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30725 _ACEOF
30726
30727 fi
30728
30729 done
30730
30731 for ac_func in prctl setreuid
30732 do :
30733   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30734 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30735 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30736   cat >>confdefs.h <<_ACEOF
30737 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30738 _ACEOF
30739
30740 fi
30741 done
30742
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30744 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30745 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30746   $as_echo_n "(cached) " >&6
30747 else
30748   ac_check_lib_save_LIBS=$LIBS
30749 LIBS="-lcap  $LIBS"
30750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30751 /* end confdefs.h.  */
30752
30753 /* Override any GCC internal prototype to avoid an error.
30754    Use char because int might match the return type of a GCC
30755    builtin and then its argument prototype would still apply.  */
30756 #ifdef __cplusplus
30757 extern "C"
30758 #endif
30759 char cap_set_proc ();
30760 int
30761 main ()
30762 {
30763 return cap_set_proc ();
30764   ;
30765   return 0;
30766 }
30767 _ACEOF
30768 if ac_fn_c_try_link "$LINENO"; then :
30769   ac_cv_lib_cap_cap_set_proc=yes
30770 else
30771   ac_cv_lib_cap_cap_set_proc=no
30772 fi
30773 rm -f core conftest.err conftest.$ac_objext \
30774     conftest$ac_exeext conftest.$ac_ext
30775 LIBS=$ac_check_lib_save_LIBS
30776 fi
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30778 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30779 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30780   CAP_LIBS="-lcap"
30781 else
30782   CAP_LIBS=
30783 fi
30784
30785 if test x$CAP_LIBS = x-lcap; then
30786
30787 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30788
30789 fi
30790
30791
30792
30793 $as_echo "#define FDLIBS 1" >>confdefs.h
30794
30795
30796 CFLAGS=${CFLAGS--O}
30797
30798 if test x$have_gcc = xyes ; then
30799    CPPFLAGS="$CPPFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30800    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30801 fi
30802 LDFLAGS=${LDFLAGS--O}
30803 CPPFLAGS="$CPPFLAGS"
30804 CFLAGS="$CFLAGS"
30805
30806
30807
30808
30809
30810
30811
30812
30813
30814
30815
30816
30817
30818
30819
30820 OBJLIST=
30821
30822
30823 lld="lld"
30824 llu="llu"
30825
30826 WCFLAGS=
30827 WLDFLAGS=
30828
30829 PSCMD="ps -e"
30830 WIN32=
30831 MACOSX=
30832 COMPRESS_MANPAGES=yes
30833
30834 case "$DISTNAME" in
30835 aix)
30836    DISTVER=`uname -r`
30837    PSCMD="ps -e -o pid,comm"
30838    PFILES="${PFILES} platforms/aix/Makefile"
30839    TAPEDRIVE="/dev/rmt0.1"
30840   ;;
30841 alpha)
30842    DISTVER=`uname -r`
30843    PTHREAD_LIB="-lpthread -lexc"
30844    if test "${CC}" = "gcc" ; then
30845       lld="lld"
30846       llu="llu"
30847    else
30848       lld="ld"
30849       llu="lu"
30850    fi
30851    TAPEDRIVE="/dev/nrmt0"
30852   ;;
30853 bsdi)
30854    DISTVER=`uname -a |awk '{print $3}'`
30855    TAPEDRIVE="/dev/nrmt0"
30856    PTHREAD_LIB="-pthread"
30857    CFLAGS="${CFLAGS} -pthread"
30858    PSCMD="ps -ax -o pid,command"
30859    lld="qd"
30860    llu="qu"
30861    PFILES="${PFILES} \
30862        platforms/bsdi/Makefile \
30863        platforms/bsdi/bacula-fd \
30864        platforms/bsdi/bacula-sd \
30865        platforms/bsdi/bacula-dir"
30866    largefile_support="yes"
30867   ;;
30868 cygwin)
30869    DISTVER=`uname -a |awk '{print $3}'`
30870    TAPEDRIVE="/dev/nrst0"
30871    WIN32=win32
30872    WCFLAGS="-mwindows"
30873    WLDFLAGS="-mwindows"
30874   ;;
30875 darwin)
30876    DISTVER=`uname -r`
30877    TAPEDRIVE="/dev/nst0"
30878    PSCMD="ps -e -o pid,command"
30879    MACOSX=macosx
30880    PFILES="${PFILES} \
30881       platforms/darwin/Makefile"
30882   ;;
30883 osx)
30884    DISTVER=`uname -r`
30885    TAPEDRIVE="/dev/nst0"
30886    PSCMD="ps -e -o pid,command"
30887    MACOSX=macosx
30888    PFILES="${PFILES} \
30889       platforms/osx/Makefile"
30890   ;;
30891 debian)
30892    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30893       DISTNAME="ubuntu"
30894    fi
30895    DISTVER=`cat /etc/debian_version`
30896    if test -f /etc/lsb-release ; then
30897       . /etc/lsb-release
30898       if test "x$DISTRIB_ID" != "x" ; then
30899          DISTNAME=$DISTRIB_ID
30900       fi
30901       if test "x$DISTRIB_RELEASE" != "x" ; then
30902          DISTVER=$DISTRIB_RELEASE
30903       fi
30904    fi
30905    if test "$DISTNAME" = "Ubuntu" ; then
30906       DISTNAME="ubuntu"
30907    fi
30908    TAPEDRIVE="/dev/nst0"
30909    PSCMD="ps -e -o pid,command"
30910    if test "$DISTNAME" = "ubuntu" ; then
30911       PFILES="${PFILES} \
30912          platforms/ubuntu/Makefile \
30913          platforms/ubuntu/bacula-fd \
30914          platforms/ubuntu/bacula-sd \
30915          platforms/ubuntu/bacula-dir"
30916    else
30917       PFILES="${PFILES} \
30918          platforms/debian/Makefile \
30919          platforms/debian/bacula-fd \
30920          platforms/debian/bacula-sd \
30921          platforms/debian/bacula-dir"
30922    fi
30923   ;;
30924 freebsd)
30925    DISTVER=`uname -a |awk '{print $3}'`
30926    VER=`echo $DISTVER | cut -c 1`
30927    if test x$VER = x4 ; then
30928       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30929       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30930    fi
30931    lld="qd"
30932    llu="qu"
30933    TAPEDRIVE="/dev/nrsa0"
30934    PSCMD="ps -ax -o pid,command"
30935    PFILES="${PFILES} \
30936        platforms/freebsd/Makefile \
30937        platforms/freebsd/bacula-fd \
30938        platforms/freebsd/bacula-sd \
30939        platforms/freebsd/bacula-dir"
30940    largefile_support="yes"
30941   ;;
30942 hurd)
30943    DISTVER=`uname -r`
30944    TAPEDRIVE="/dev/nst0"
30945    PSCMD="ps -e -o pid,command"
30946    PFILES="${PFILES} \
30947        platforms/hurd/Makefile \
30948        platforms/hurd/bacula-fd \
30949        platforms/hurd/bacula-sd \
30950        platforms/hurd/bacula-dir"
30951   ;;
30952 hpux)
30953    PSCMD="UNIX95=1; ps -e -o pid,comm"
30954    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30955    DISTVER=`uname -r`
30956    TAPEDRIVE="/dev/rmt/0hnb"
30957    PTHREAD_LIB="-lpthread"
30958    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30959
30960   ;;
30961 irix)
30962    DISTVER=`uname -r`
30963    TAPEDRIVE="/dev/rmt/0cbn"
30964    PSCMD="ps -e -o pid,comm"
30965    PFILES="${PFILES} \
30966        platforms/irix/Makefile \
30967        platforms/irix/bacula-fd \
30968        platforms/irix/bacula-sd \
30969        platforms/irix/bacula-dir"
30970   ;;
30971 netbsd)
30972    DISTVER=`uname -a |awk '{print $3}'`
30973    lld="qd"
30974    llu="qu"
30975    TAPEDRIVE="/dev/nrst0"
30976    PSCMD="ps -ax -o pid,command"
30977    PTHREAD_LIB="-pthread"
30978    CFLAGS="${CFLAGS} -pthread"
30979   ;;
30980 openbsd)
30981    DISTVER=`uname -a |awk '{print $3}'`
30982    lld="qd"
30983    llu="qu"
30984    TAPEDRIVE="/dev/nrst0"
30985    PSCMD="ps -ax -o pid,command"
30986    PTHREAD_LIB="-pthread"
30987    CFLAGS="${CFLAGS} -pthread"
30988    PFILES="${PFILES} \
30989        platforms/openbsd/Makefile \
30990        platforms/openbsd/bacula-fd \
30991        platforms/openbsd/bacula-sd \
30992        platforms/openbsd/bacula-dir"
30993   ;;
30994 redhat)
30995    if test -f /etc/whitebox-release ; then
30996       f=/etc/whitebox-release
30997    else
30998       f=/etc/redhat-release
30999    fi
31000    if test `cat $f | grep release |\
31001          cut -f 3 -d ' '`x = "Enterprise"x ; then
31002       DISTVER="Enterprise "`cat $f | grep release |\
31003           cut -f 6 -d ' '`
31004    else
31005        DISTVER=`cat /etc/redhat-release | grep release |\
31006            cut -f 5 -d ' '`
31007    fi
31008    TAPEDRIVE="/dev/nst0"
31009    PSCMD="ps -e -o pid,command"
31010    PFILES="${PFILES} \
31011        platforms/redhat/Makefile \
31012        platforms/redhat/bacula-fd \
31013        platforms/redhat/bacula-sd \
31014        platforms/redhat/bacula-dir
31015        "
31016   ;;
31017 mandrake)
31018    DISTVER=`cat /etc/mandrake-release | grep release |\
31019       cut -f 5 -d ' '`
31020    TAPEDRIVE="/dev/nst0"
31021    PSCMD="ps -e -o pid,command"
31022    PFILES="${PFILES} \
31023        platforms/mandrake/Makefile \
31024        platforms/mandrake/bacula-fd \
31025        platforms/mandrake/bacula-sd \
31026        platforms/mandrake/bacula-dir \
31027        "
31028   ;;
31029 gentoo)
31030    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
31031    TAPEDRIVE="/dev/nst0"
31032    PSCMD="ps -e -o pid,command"
31033    PFILES="${PFILES} \
31034        platforms/gentoo/Makefile \
31035     platforms/gentoo/bacula-init \
31036        platforms/gentoo/bacula-fd \
31037        platforms/gentoo/bacula-sd \
31038        platforms/gentoo/bacula-dir"
31039   ;;
31040 slackware)
31041    DISTVER=`cat /etc/slackware-version`
31042    TAPEDRIVE="/dev/nst0"
31043    PSCMD="ps -e -o pid,command"
31044    PFILES="${PFILES} \
31045        platforms/slackware/Makefile \
31046        platforms/slackware/rc.bacula-fd \
31047        platforms/slackware/rc.bacula-sd \
31048        platforms/slackware/rc.bacula-dir\
31049        platforms/slackware/functions.bacula"
31050   ;;
31051 solaris)
31052    DISTVER=`uname -r`
31053    TAPEDRIVE="/dev/rmt/0cbn"
31054    PSCMD="ps -e -o pid,comm"
31055    PFILES="${PFILES} \
31056        platforms/solaris/Makefile \
31057        platforms/solaris/bacula-fd \
31058        platforms/solaris/bacula-sd \
31059        platforms/solaris/bacula-dir"
31060    COMPRESS_MANPAGES=
31061    case ${DISTVER} in
31062    5.5|5.6)
31063       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
31064
31065       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31066
31067       ;;
31068    5.7|5.8)
31069       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
31070
31071       ;;
31072    5.10)
31073
31074 $as_echo "#define HAVE_SOLARIS10 1" >>confdefs.h
31075
31076       ;;
31077    *)
31078       ;;
31079    esac
31080    LIBS="$LIBS -lresolv -lrt"
31081   ;;
31082 suse)
31083    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
31084        cut -f 3 -d ' '`
31085    TAPEDRIVE="/dev/nst0"
31086    PSCMD="ps -e -o pid,command"
31087    PFILES="${PFILES} \
31088        platforms/suse/Makefile \
31089        platforms/suse/bacula-fd \
31090        platforms/suse/bacula-sd \
31091        platforms/suse/bacula-dir \
31092        platforms/suse/bacula"
31093   ;;
31094 suse5)
31095    DISTNAME=suse
31096    DISTVER=5.x
31097    TAPEDRIVE="/dev/nst0"
31098    PSCMD="ps -e -o pid,command"
31099    PFILES="${PFILES} \
31100        platforms/suse/Makefile \
31101        platforms/suse/bacula-fd \
31102        platforms/suse/bacula-sd \
31103        platforms/suse/bacula-dir"
31104   ;;
31105 unknown)
31106    DISTVER=unknown
31107    TAPEDRIVE="/dev/nst0"
31108   ;;
31109 *)
31110   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
31111   ;;
31112 esac
31113
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
31115 $as_echo_n "checking for systemd support... " >&6; }
31116
31117 # Check whether --with-systemd was given.
31118 if test "${with_systemd+set}" = set; then :
31119   withval=$with_systemd;
31120        if test "$withval" != "no"; then
31121            if test "$withval" = "yes"; then
31122                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
31123            else
31124                SYSTEMD_UNITDIR="${withval}"
31125            fi
31126
31127            PFILES="${PFILES} \
31128                    platforms/systemd/Makefile \
31129                    platforms/systemd/bacula.conf \
31130                    platforms/systemd/bacula-dir.service \
31131                    platforms/systemd/bacula-fd.service \
31132                    platforms/systemd/bacula-sd.service"
31133
31134 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
31135
31136            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31137 $as_echo "yes" >&6; }
31138            support_systemd="yes"
31139        else
31140            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31141 $as_echo "no" >&6; }
31142            support_systemd="no"
31143        fi
31144
31145 else
31146
31147        support_systemd="no"
31148        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31149 $as_echo "no" >&6; }
31150
31151
31152 fi
31153
31154
31155
31156
31157
31158 LIBS="$PTHREAD_LIB $LIBS"
31159
31160 cat >>confdefs.h <<_ACEOF
31161 #define lld "$lld"
31162 _ACEOF
31163
31164 cat >>confdefs.h <<_ACEOF
31165 #define llu "$llu"
31166 _ACEOF
31167
31168
31169
31170
31171
31172
31173
31174
31175
31176 MCOMMON=./autoconf/Make.common
31177
31178
31179 if test "x${subsysdir}" = "x${sbindir}" ; then
31180    echo " "
31181    echo " "
31182    echo "You have set both --sbindir and --with-subsys-dir"
31183    echo "  equal to: ${subsysdir} "
31184    echo "This is not permitted. Please reconfigure."
31185    echo " "
31186    echo "Aborting configuration ..."
31187    echo " "
31188    echo " "
31189    exit 1
31190 fi
31191
31192
31193 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/baculabackupreport scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/mtx-changer scripts/disk-changer scripts/dvd-handler scripts/dvd-simulator scripts/logwatch/Makefile scripts/logwatch/logfile.bacula.conf scripts/bat.desktop scripts/bat.desktop.xsu scripts/bat.desktop.consolehelper scripts/bat.console_apps scripts/bacula-tray-monitor.desktop src/Makefile src/host.h src/console/Makefile src/console/bconsole.conf src/qt-console/bat.conf src/qt-console/bat.pro src/qt-console/bat.pro.mingw32 src/qt-console/bat.pro.mingw64 src/qt-console/install_conf_file src/qt-console/tray-monitor/tray-monitor.conf src/qt-console/tray-monitor/tray-monitor.pro src/qt-console/tray-monitor/tray-monitor.pro.mingw32 src/qt-console/tray-monitor/tray-monitor.pro.mingw64 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 po/Makefile.in updatedb/update_mysql_tables updatedb/update_sqlite3_tables updatedb/update_postgresql_tables 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 examples/nagios/check_bacula/Makefile platforms/rpms/redhat/bacula.spec platforms/rpms/redhat/bacula-bat.spec platforms/rpms/redhat/bacula-docs.spec platforms/rpms/redhat/bacula-mtx.spec platforms/rpms/suse/bacula.spec platforms/rpms/suse/bacula-bat.spec platforms/rpms/suse/bacula-docs.spec platforms/rpms/suse/bacula-mtx.spec $PFILES"
31194
31195 ac_config_commands="$ac_config_commands default"
31196
31197 cat >confcache <<\_ACEOF
31198 # This file is a shell script that caches the results of configure
31199 # tests run on this system so they can be shared between configure
31200 # scripts and configure runs, see configure's option --config-cache.
31201 # It is not useful on other systems.  If it contains results you don't
31202 # want to keep, you may remove or edit it.
31203 #
31204 # config.status only pays attention to the cache file if you give it
31205 # the --recheck option to rerun configure.
31206 #
31207 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31208 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31209 # following values.
31210
31211 _ACEOF
31212
31213 # The following way of writing the cache mishandles newlines in values,
31214 # but we know of no workaround that is simple, portable, and efficient.
31215 # So, we kill variables containing newlines.
31216 # Ultrix sh set writes to stderr and can't be redirected directly,
31217 # and sets the high bit in the cache file unless we assign to the vars.
31218 (
31219   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
31220     eval ac_val=\$$ac_var
31221     case $ac_val in #(
31222     *${as_nl}*)
31223       case $ac_var in #(
31224       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
31225 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31226       esac
31227       case $ac_var in #(
31228       _ | IFS | as_nl) ;; #(
31229       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
31230       *) { eval $ac_var=; unset $ac_var;} ;;
31231       esac ;;
31232     esac
31233   done
31234
31235   (set) 2>&1 |
31236     case $as_nl`(ac_space=' '; set) 2>&1` in #(
31237     *${as_nl}ac_space=\ *)
31238       # `set' does not quote correctly, so add quotes: double-quote
31239       # substitution turns \\\\ into \\, and sed turns \\ into \.
31240       sed -n \
31241         "s/'/'\\\\''/g;
31242           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31243       ;; #(
31244     *)
31245       # `set' quotes correctly as required by POSIX, so do not add quotes.
31246       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31247       ;;
31248     esac |
31249     sort
31250 ) |
31251   sed '
31252      /^ac_cv_env_/b end
31253      t clear
31254      :clear
31255      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31256      t end
31257      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31258      :end' >>confcache
31259 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
31260   if test -w "$cache_file"; then
31261     if test "x$cache_file" != "x/dev/null"; then
31262       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31263 $as_echo "$as_me: updating cache $cache_file" >&6;}
31264       if test ! -f "$cache_file" || test -h "$cache_file"; then
31265         cat confcache >"$cache_file"
31266       else
31267         case $cache_file in #(
31268         */* | ?:*)
31269           mv -f confcache "$cache_file"$$ &&
31270           mv -f "$cache_file"$$ "$cache_file" ;; #(
31271         *)
31272           mv -f confcache "$cache_file" ;;
31273         esac
31274       fi
31275     fi
31276   else
31277     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31278 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31279   fi
31280 fi
31281 rm -f confcache
31282
31283 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31284 # Let make expand exec_prefix.
31285 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31286
31287 DEFS=-DHAVE_CONFIG_H
31288
31289 ac_libobjs=
31290 ac_ltlibobjs=
31291 U=
31292 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31293   # 1. Remove the extension, and $U if already installed.
31294   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31295   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31296   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31297   #    will be set to the directory where LIBOBJS objects are built.
31298   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31299   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31300 done
31301 LIBOBJS=$ac_libobjs
31302
31303 LTLIBOBJS=$ac_ltlibobjs
31304
31305
31306
31307
31308 : "${CONFIG_STATUS=./config.status}"
31309 ac_write_fail=0
31310 ac_clean_files_save=$ac_clean_files
31311 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31312 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31313 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31314 as_write_fail=0
31315 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31316 #! $SHELL
31317 # Generated by $as_me.
31318 # Run this file to recreate the current configuration.
31319 # Compiler output produced by configure, useful for debugging
31320 # configure, is in config.log if it exists.
31321
31322 debug=false
31323 ac_cs_recheck=false
31324 ac_cs_silent=false
31325
31326 SHELL=\${CONFIG_SHELL-$SHELL}
31327 export SHELL
31328 _ASEOF
31329 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31330 ## -------------------- ##
31331 ## M4sh Initialization. ##
31332 ## -------------------- ##
31333
31334 # Be more Bourne compatible
31335 DUALCASE=1; export DUALCASE # for MKS sh
31336 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31337   emulate sh
31338   NULLCMD=:
31339   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31340   # is contrary to our usage.  Disable this feature.
31341   alias -g '${1+"$@"}'='"$@"'
31342   setopt NO_GLOB_SUBST
31343 else
31344   case `(set -o) 2>/dev/null` in #(
31345   *posix*) :
31346     set -o posix ;; #(
31347   *) :
31348      ;;
31349 esac
31350 fi
31351
31352
31353 as_nl='
31354 '
31355 export as_nl
31356 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31357 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31358 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31359 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31360 # Prefer a ksh shell builtin over an external printf program on Solaris,
31361 # but without wasting forks for bash or zsh.
31362 if test -z "$BASH_VERSION$ZSH_VERSION" \
31363     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31364   as_echo='print -r --'
31365   as_echo_n='print -rn --'
31366 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31367   as_echo='printf %s\n'
31368   as_echo_n='printf %s'
31369 else
31370   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31371     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31372     as_echo_n='/usr/ucb/echo -n'
31373   else
31374     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31375     as_echo_n_body='eval
31376       arg=$1;
31377       case $arg in #(
31378       *"$as_nl"*)
31379         expr "X$arg" : "X\\(.*\\)$as_nl";
31380         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31381       esac;
31382       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31383     '
31384     export as_echo_n_body
31385     as_echo_n='sh -c $as_echo_n_body as_echo'
31386   fi
31387   export as_echo_body
31388   as_echo='sh -c $as_echo_body as_echo'
31389 fi
31390
31391 # The user is always right.
31392 if test "${PATH_SEPARATOR+set}" != set; then
31393   PATH_SEPARATOR=:
31394   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31395     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31396       PATH_SEPARATOR=';'
31397   }
31398 fi
31399
31400
31401 # IFS
31402 # We need space, tab and new line, in precisely that order.  Quoting is
31403 # there to prevent editors from complaining about space-tab.
31404 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31405 # splitting by setting IFS to empty value.)
31406 IFS=" ""        $as_nl"
31407
31408 # Find who we are.  Look in the path if we contain no directory separator.
31409 as_myself=
31410 case $0 in #((
31411   *[\\/]* ) as_myself=$0 ;;
31412   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31413 for as_dir in $PATH
31414 do
31415   IFS=$as_save_IFS
31416   test -z "$as_dir" && as_dir=.
31417     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31418   done
31419 IFS=$as_save_IFS
31420
31421      ;;
31422 esac
31423 # We did not find ourselves, most probably we were run as `sh COMMAND'
31424 # in which case we are not to be found in the path.
31425 if test "x$as_myself" = x; then
31426   as_myself=$0
31427 fi
31428 if test ! -f "$as_myself"; then
31429   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31430   exit 1
31431 fi
31432
31433 # Unset variables that we do not need and which cause bugs (e.g. in
31434 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31435 # suppresses any "Segmentation fault" message there.  '((' could
31436 # trigger a bug in pdksh 5.2.14.
31437 for as_var in BASH_ENV ENV MAIL MAILPATH
31438 do eval test x\${$as_var+set} = xset \
31439   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31440 done
31441 PS1='$ '
31442 PS2='> '
31443 PS4='+ '
31444
31445 # NLS nuisances.
31446 LC_ALL=C
31447 export LC_ALL
31448 LANGUAGE=C
31449 export LANGUAGE
31450
31451 # CDPATH.
31452 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31453
31454
31455 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31456 # ----------------------------------------
31457 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31458 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31459 # script with STATUS, using 1 if that was 0.
31460 as_fn_error ()
31461 {
31462   as_status=$1; test $as_status -eq 0 && as_status=1
31463   if test "$4"; then
31464     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31465     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31466   fi
31467   $as_echo "$as_me: error: $2" >&2
31468   as_fn_exit $as_status
31469 } # as_fn_error
31470
31471
31472 # as_fn_set_status STATUS
31473 # -----------------------
31474 # Set $? to STATUS, without forking.
31475 as_fn_set_status ()
31476 {
31477   return $1
31478 } # as_fn_set_status
31479
31480 # as_fn_exit STATUS
31481 # -----------------
31482 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31483 as_fn_exit ()
31484 {
31485   set +e
31486   as_fn_set_status $1
31487   exit $1
31488 } # as_fn_exit
31489
31490 # as_fn_unset VAR
31491 # ---------------
31492 # Portably unset VAR.
31493 as_fn_unset ()
31494 {
31495   { eval $1=; unset $1;}
31496 }
31497 as_unset=as_fn_unset
31498 # as_fn_append VAR VALUE
31499 # ----------------------
31500 # Append the text in VALUE to the end of the definition contained in VAR. Take
31501 # advantage of any shell optimizations that allow amortized linear growth over
31502 # repeated appends, instead of the typical quadratic growth present in naive
31503 # implementations.
31504 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31505   eval 'as_fn_append ()
31506   {
31507     eval $1+=\$2
31508   }'
31509 else
31510   as_fn_append ()
31511   {
31512     eval $1=\$$1\$2
31513   }
31514 fi # as_fn_append
31515
31516 # as_fn_arith ARG...
31517 # ------------------
31518 # Perform arithmetic evaluation on the ARGs, and store the result in the
31519 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31520 # must be portable across $(()) and expr.
31521 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31522   eval 'as_fn_arith ()
31523   {
31524     as_val=$(( $* ))
31525   }'
31526 else
31527   as_fn_arith ()
31528   {
31529     as_val=`expr "$@" || test $? -eq 1`
31530   }
31531 fi # as_fn_arith
31532
31533
31534 if expr a : '\(a\)' >/dev/null 2>&1 &&
31535    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31536   as_expr=expr
31537 else
31538   as_expr=false
31539 fi
31540
31541 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31542   as_basename=basename
31543 else
31544   as_basename=false
31545 fi
31546
31547 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31548   as_dirname=dirname
31549 else
31550   as_dirname=false
31551 fi
31552
31553 as_me=`$as_basename -- "$0" ||
31554 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31555          X"$0" : 'X\(//\)$' \| \
31556          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31557 $as_echo X/"$0" |
31558     sed '/^.*\/\([^/][^/]*\)\/*$/{
31559             s//\1/
31560             q
31561           }
31562           /^X\/\(\/\/\)$/{
31563             s//\1/
31564             q
31565           }
31566           /^X\/\(\/\).*/{
31567             s//\1/
31568             q
31569           }
31570           s/.*/./; q'`
31571
31572 # Avoid depending upon Character Ranges.
31573 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31574 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31575 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31576 as_cr_digits='0123456789'
31577 as_cr_alnum=$as_cr_Letters$as_cr_digits
31578
31579 ECHO_C= ECHO_N= ECHO_T=
31580 case `echo -n x` in #(((((
31581 -n*)
31582   case `echo 'xy\c'` in
31583   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31584   xy)  ECHO_C='\c';;
31585   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31586        ECHO_T=' ';;
31587   esac;;
31588 *)
31589   ECHO_N='-n';;
31590 esac
31591
31592 rm -f conf$$ conf$$.exe conf$$.file
31593 if test -d conf$$.dir; then
31594   rm -f conf$$.dir/conf$$.file
31595 else
31596   rm -f conf$$.dir
31597   mkdir conf$$.dir 2>/dev/null
31598 fi
31599 if (echo >conf$$.file) 2>/dev/null; then
31600   if ln -s conf$$.file conf$$ 2>/dev/null; then
31601     as_ln_s='ln -s'
31602     # ... but there are two gotchas:
31603     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31604     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31605     # In both cases, we have to default to `cp -pR'.
31606     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31607       as_ln_s='cp -pR'
31608   elif ln conf$$.file conf$$ 2>/dev/null; then
31609     as_ln_s=ln
31610   else
31611     as_ln_s='cp -pR'
31612   fi
31613 else
31614   as_ln_s='cp -pR'
31615 fi
31616 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31617 rmdir conf$$.dir 2>/dev/null
31618
31619
31620 # as_fn_mkdir_p
31621 # -------------
31622 # Create "$as_dir" as a directory, including parents if necessary.
31623 as_fn_mkdir_p ()
31624 {
31625
31626   case $as_dir in #(
31627   -*) as_dir=./$as_dir;;
31628   esac
31629   test -d "$as_dir" || eval $as_mkdir_p || {
31630     as_dirs=
31631     while :; do
31632       case $as_dir in #(
31633       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31634       *) as_qdir=$as_dir;;
31635       esac
31636       as_dirs="'$as_qdir' $as_dirs"
31637       as_dir=`$as_dirname -- "$as_dir" ||
31638 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31639          X"$as_dir" : 'X\(//\)[^/]' \| \
31640          X"$as_dir" : 'X\(//\)$' \| \
31641          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31642 $as_echo X"$as_dir" |
31643     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31644             s//\1/
31645             q
31646           }
31647           /^X\(\/\/\)[^/].*/{
31648             s//\1/
31649             q
31650           }
31651           /^X\(\/\/\)$/{
31652             s//\1/
31653             q
31654           }
31655           /^X\(\/\).*/{
31656             s//\1/
31657             q
31658           }
31659           s/.*/./; q'`
31660       test -d "$as_dir" && break
31661     done
31662     test -z "$as_dirs" || eval "mkdir $as_dirs"
31663   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31664
31665
31666 } # as_fn_mkdir_p
31667 if mkdir -p . 2>/dev/null; then
31668   as_mkdir_p='mkdir -p "$as_dir"'
31669 else
31670   test -d ./-p && rmdir ./-p
31671   as_mkdir_p=false
31672 fi
31673
31674
31675 # as_fn_executable_p FILE
31676 # -----------------------
31677 # Test if FILE is an executable regular file.
31678 as_fn_executable_p ()
31679 {
31680   test -f "$1" && test -x "$1"
31681 } # as_fn_executable_p
31682 as_test_x='test -x'
31683 as_executable_p=as_fn_executable_p
31684
31685 # Sed expression to map a string onto a valid CPP name.
31686 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31687
31688 # Sed expression to map a string onto a valid variable name.
31689 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31690
31691
31692 exec 6>&1
31693 ## ----------------------------------- ##
31694 ## Main body of $CONFIG_STATUS script. ##
31695 ## ----------------------------------- ##
31696 _ASEOF
31697 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31698
31699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31700 # Save the log message, to keep $0 and so on meaningful, and to
31701 # report actual input values of CONFIG_FILES etc. instead of their
31702 # values after options handling.
31703 ac_log="
31704 This file was extended by bacula $as_me 9.0.6, which was
31705 generated by GNU Autoconf 2.69.  Invocation command line was
31706
31707   CONFIG_FILES    = $CONFIG_FILES
31708   CONFIG_HEADERS  = $CONFIG_HEADERS
31709   CONFIG_LINKS    = $CONFIG_LINKS
31710   CONFIG_COMMANDS = $CONFIG_COMMANDS
31711   $ $0 $@
31712
31713 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31714 "
31715
31716 _ACEOF
31717
31718 case $ac_config_files in *"
31719 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31720 esac
31721
31722 case $ac_config_headers in *"
31723 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31724 esac
31725
31726
31727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31728 # Files that config.status was made for.
31729 config_files="$ac_config_files"
31730 config_headers="$ac_config_headers"
31731 config_commands="$ac_config_commands"
31732
31733 _ACEOF
31734
31735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31736 ac_cs_usage="\
31737 \`$as_me' instantiates files and other configuration actions
31738 from templates according to the current configuration.  Unless the files
31739 and actions are specified as TAGs, all are instantiated by default.
31740
31741 Usage: $0 [OPTION]... [TAG]...
31742
31743   -h, --help       print this help, then exit
31744   -V, --version    print version number and configuration settings, then exit
31745       --config     print configuration, then exit
31746   -q, --quiet, --silent
31747                    do not print progress messages
31748   -d, --debug      don't remove temporary files
31749       --recheck    update $as_me by reconfiguring in the same conditions
31750       --file=FILE[:TEMPLATE]
31751                    instantiate the configuration file FILE
31752       --header=FILE[:TEMPLATE]
31753                    instantiate the configuration header FILE
31754
31755 Configuration files:
31756 $config_files
31757
31758 Configuration headers:
31759 $config_headers
31760
31761 Configuration commands:
31762 $config_commands
31763
31764 Report bugs to the package provider."
31765
31766 _ACEOF
31767 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31768 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31769 ac_cs_version="\\
31770 bacula config.status 9.0.6
31771 configured by $0, generated by GNU Autoconf 2.69,
31772   with options \\"\$ac_cs_config\\"
31773
31774 Copyright (C) 2012 Free Software Foundation, Inc.
31775 This config.status script is free software; the Free Software Foundation
31776 gives unlimited permission to copy, distribute and modify it."
31777
31778 ac_pwd='$ac_pwd'
31779 srcdir='$srcdir'
31780 INSTALL='$INSTALL'
31781 AWK='$AWK'
31782 test -n "\$AWK" || AWK=awk
31783 _ACEOF
31784
31785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31786 # The default lists apply if the user does not specify any file.
31787 ac_need_defaults=:
31788 while test $# != 0
31789 do
31790   case $1 in
31791   --*=?*)
31792     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31793     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31794     ac_shift=:
31795     ;;
31796   --*=)
31797     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31798     ac_optarg=
31799     ac_shift=:
31800     ;;
31801   *)
31802     ac_option=$1
31803     ac_optarg=$2
31804     ac_shift=shift
31805     ;;
31806   esac
31807
31808   case $ac_option in
31809   # Handling of the options.
31810   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31811     ac_cs_recheck=: ;;
31812   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31813     $as_echo "$ac_cs_version"; exit ;;
31814   --config | --confi | --conf | --con | --co | --c )
31815     $as_echo "$ac_cs_config"; exit ;;
31816   --debug | --debu | --deb | --de | --d | -d )
31817     debug=: ;;
31818   --file | --fil | --fi | --f )
31819     $ac_shift
31820     case $ac_optarg in
31821     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31822     '') as_fn_error $? "missing file argument" ;;
31823     esac
31824     as_fn_append CONFIG_FILES " '$ac_optarg'"
31825     ac_need_defaults=false;;
31826   --header | --heade | --head | --hea )
31827     $ac_shift
31828     case $ac_optarg in
31829     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31830     esac
31831     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31832     ac_need_defaults=false;;
31833   --he | --h)
31834     # Conflict between --help and --header
31835     as_fn_error $? "ambiguous option: \`$1'
31836 Try \`$0 --help' for more information.";;
31837   --help | --hel | -h )
31838     $as_echo "$ac_cs_usage"; exit ;;
31839   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31840   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31841     ac_cs_silent=: ;;
31842
31843   # This is an error.
31844   -*) as_fn_error $? "unrecognized option: \`$1'
31845 Try \`$0 --help' for more information." ;;
31846
31847   *) as_fn_append ac_config_targets " $1"
31848      ac_need_defaults=false ;;
31849
31850   esac
31851   shift
31852 done
31853
31854 ac_configure_extra_args=
31855
31856 if $ac_cs_silent; then
31857   exec 6>/dev/null
31858   ac_configure_extra_args="$ac_configure_extra_args --silent"
31859 fi
31860
31861 _ACEOF
31862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31863 if \$ac_cs_recheck; then
31864   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31865   shift
31866   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31867   CONFIG_SHELL='$SHELL'
31868   export CONFIG_SHELL
31869   exec "\$@"
31870 fi
31871
31872 _ACEOF
31873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31874 exec 5>>config.log
31875 {
31876   echo
31877   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31878 ## Running $as_me. ##
31879 _ASBOX
31880   $as_echo "$ac_log"
31881 } >&5
31882
31883 _ACEOF
31884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31885 #
31886 # INIT-COMMANDS
31887 #
31888
31889
31890 # The HP-UX ksh and POSIX shell print the target directory to stdout
31891 # if CDPATH is set.
31892 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31893
31894 sed_quote_subst='$sed_quote_subst'
31895 double_quote_subst='$double_quote_subst'
31896 delay_variable_subst='$delay_variable_subst'
31897 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31898 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31899 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31900 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31901 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31902 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31903 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31904 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31905 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31906 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31907 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31908 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31909 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31910 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31911 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31912 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31913 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31914 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31915 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31916 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31917 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31918 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31919 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31920 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31921 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31922 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31923 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31924 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31925 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31926 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31927 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31928 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31929 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31930 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31931 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31932 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31933 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31934 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31935 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31936 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31937 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31938 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31939 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31940 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31941 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31942 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31943 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31944 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31945 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31946 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31947 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31948 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31949 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31950 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31951 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31952 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31953 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"`'
31954 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31955 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31956 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31957 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31958 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31959 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31960 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31961 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31962 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31963 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31964 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31965 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31966 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31967 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31968 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31969 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31970 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31971 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31972 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31973 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31974 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31975 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31976 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31977 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31978 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31979 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31980 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31981 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31982 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31983 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31984 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31985 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31986 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31987 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31988 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31989 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31990 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31991 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31992 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31993 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31994 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31995 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31996 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31997 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31998 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31999 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
32000 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
32001 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
32002 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
32003 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
32004 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
32005 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
32006 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
32007 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
32008 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
32009 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
32010 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
32011 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
32012 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
32013 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
32014 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
32015 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
32016 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
32017 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
32018 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
32019 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
32020 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
32021 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
32022 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
32023 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
32024 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
32025 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
32026 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
32027 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
32028 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
32029 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
32030 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
32031 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
32032 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
32033 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
32034 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
32035 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32036 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32037 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
32038 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
32039 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
32040 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
32041 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
32042 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
32043 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
32044 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
32045 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
32046 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32047 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32048 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
32049 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32050 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32051 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32052 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32053 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32054 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32055 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
32056 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32057 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
32058 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
32059 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
32060 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
32061 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
32062 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
32063 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
32064 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
32065 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
32066 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
32067 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
32068 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32069 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32070 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
32071 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32072 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
32073 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
32074 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
32075 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
32076 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32077 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
32078 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
32079 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
32080 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
32081
32082 LTCC='$LTCC'
32083 LTCFLAGS='$LTCFLAGS'
32084 compiler='$compiler_DEFAULT'
32085
32086 # A function that is used when there is no print builtin or printf.
32087 func_fallback_echo ()
32088 {
32089   eval 'cat <<_LTECHO_EOF
32090 \$1
32091 _LTECHO_EOF'
32092 }
32093
32094 # Quote evaled strings.
32095 for var in SHELL \
32096 ECHO \
32097 PATH_SEPARATOR \
32098 SED \
32099 GREP \
32100 EGREP \
32101 FGREP \
32102 LD \
32103 NM \
32104 LN_S \
32105 lt_SP2NL \
32106 lt_NL2SP \
32107 reload_flag \
32108 OBJDUMP \
32109 deplibs_check_method \
32110 file_magic_cmd \
32111 file_magic_glob \
32112 want_nocaseglob \
32113 DLLTOOL \
32114 sharedlib_from_linklib_cmd \
32115 AR \
32116 AR_FLAGS \
32117 archiver_list_spec \
32118 STRIP \
32119 RANLIB \
32120 CC \
32121 CFLAGS \
32122 compiler \
32123 lt_cv_sys_global_symbol_pipe \
32124 lt_cv_sys_global_symbol_to_cdecl \
32125 lt_cv_sys_global_symbol_to_c_name_address \
32126 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
32127 nm_file_list_spec \
32128 lt_prog_compiler_no_builtin_flag \
32129 lt_prog_compiler_pic \
32130 lt_prog_compiler_wl \
32131 lt_prog_compiler_static \
32132 lt_cv_prog_compiler_c_o \
32133 need_locks \
32134 MANIFEST_TOOL \
32135 DSYMUTIL \
32136 NMEDIT \
32137 LIPO \
32138 OTOOL \
32139 OTOOL64 \
32140 shrext_cmds \
32141 export_dynamic_flag_spec \
32142 whole_archive_flag_spec \
32143 compiler_needs_object \
32144 with_gnu_ld \
32145 allow_undefined_flag \
32146 no_undefined_flag \
32147 hardcode_libdir_flag_spec \
32148 hardcode_libdir_separator \
32149 exclude_expsyms \
32150 include_expsyms \
32151 file_list_spec \
32152 variables_saved_for_relink \
32153 libname_spec \
32154 library_names_spec \
32155 soname_spec \
32156 install_override_mode \
32157 finish_eval \
32158 old_striplib \
32159 striplib \
32160 compiler_lib_search_dirs \
32161 predep_objects \
32162 postdep_objects \
32163 predeps \
32164 postdeps \
32165 compiler_lib_search_path \
32166 LD_CXX \
32167 reload_flag_CXX \
32168 compiler_CXX \
32169 lt_prog_compiler_no_builtin_flag_CXX \
32170 lt_prog_compiler_pic_CXX \
32171 lt_prog_compiler_wl_CXX \
32172 lt_prog_compiler_static_CXX \
32173 lt_cv_prog_compiler_c_o_CXX \
32174 export_dynamic_flag_spec_CXX \
32175 whole_archive_flag_spec_CXX \
32176 compiler_needs_object_CXX \
32177 with_gnu_ld_CXX \
32178 allow_undefined_flag_CXX \
32179 no_undefined_flag_CXX \
32180 hardcode_libdir_flag_spec_CXX \
32181 hardcode_libdir_separator_CXX \
32182 exclude_expsyms_CXX \
32183 include_expsyms_CXX \
32184 file_list_spec_CXX \
32185 compiler_lib_search_dirs_CXX \
32186 predep_objects_CXX \
32187 postdep_objects_CXX \
32188 predeps_CXX \
32189 postdeps_CXX \
32190 compiler_lib_search_path_CXX; do
32191     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32192     *[\\\\\\\`\\"\\\$]*)
32193       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
32194       ;;
32195     *)
32196       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32197       ;;
32198     esac
32199 done
32200
32201 # Double-quote double-evaled strings.
32202 for var in reload_cmds \
32203 old_postinstall_cmds \
32204 old_postuninstall_cmds \
32205 old_archive_cmds \
32206 extract_expsyms_cmds \
32207 old_archive_from_new_cmds \
32208 old_archive_from_expsyms_cmds \
32209 archive_cmds \
32210 archive_expsym_cmds \
32211 module_cmds \
32212 module_expsym_cmds \
32213 export_symbols_cmds \
32214 prelink_cmds \
32215 postlink_cmds \
32216 postinstall_cmds \
32217 postuninstall_cmds \
32218 finish_cmds \
32219 sys_lib_search_path_spec \
32220 sys_lib_dlsearch_path_spec \
32221 reload_cmds_CXX \
32222 old_archive_cmds_CXX \
32223 old_archive_from_new_cmds_CXX \
32224 old_archive_from_expsyms_cmds_CXX \
32225 archive_cmds_CXX \
32226 archive_expsym_cmds_CXX \
32227 module_cmds_CXX \
32228 module_expsym_cmds_CXX \
32229 export_symbols_cmds_CXX \
32230 prelink_cmds_CXX \
32231 postlink_cmds_CXX; do
32232     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
32233     *[\\\\\\\`\\"\\\$]*)
32234       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
32235       ;;
32236     *)
32237       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
32238       ;;
32239     esac
32240 done
32241
32242 ac_aux_dir='$ac_aux_dir'
32243 xsi_shell='$xsi_shell'
32244 lt_shell_append='$lt_shell_append'
32245
32246 # See if we are running on zsh, and set the options which allow our
32247 # commands through without removal of \ escapes INIT.
32248 if test -n "\${ZSH_VERSION+set}" ; then
32249    setopt NO_GLOB_SUBST
32250 fi
32251
32252
32253     PACKAGE='$PACKAGE'
32254     VERSION='$VERSION'
32255     TIMESTAMP='$TIMESTAMP'
32256     RM='$RM'
32257     ofile='$ofile'
32258
32259
32260
32261
32262
32263 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
32264     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
32265     # from automake.
32266     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
32267     # Capture the value of LINGUAS because we need it to compute CATALOGS.
32268     LINGUAS="${LINGUAS-%UNSET%}"
32269
32270
32271 _ACEOF
32272
32273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32274
32275 # Handling of arguments.
32276 for ac_config_target in $ac_config_targets
32277 do
32278   case $ac_config_target in
32279     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
32280     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
32281     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
32282     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
32283     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32284     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
32285     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
32286     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
32287     "scripts/baculabackupreport") CONFIG_FILES="$CONFIG_FILES scripts/baculabackupreport" ;;
32288     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
32289     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
32290     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32291     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32292     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32293     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32294     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32295     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32296     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32297     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32298     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32299     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32300     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32301     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32302     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32303     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32304     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32305     "scripts/bacula-tray-monitor.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bacula-tray-monitor.desktop" ;;
32306     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32307     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32308     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32309     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32310     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32311     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32312     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32313     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32314     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32315     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32316     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32317     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32318     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32319     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32320     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32321     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32322     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32323     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32324     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32325     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32326     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32327     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32328     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32329     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32330     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32331     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32332     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32333     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32334     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32335     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32336     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32337     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32338     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32339     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32340     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32341     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32342     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32343     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32344     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32345     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32346     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32347     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32348     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32349     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32350     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32351     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32352     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32353     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32354     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32355     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32356     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32357     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32358     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32359     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32360     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32361     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32362     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32363     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32364     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32365     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32366     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32367     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32368     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32369     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32370     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32371     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32372     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32373     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32374     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32375     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32376     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32377     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32378     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32379     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32380     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32381     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32382     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32383     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32384     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32385     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32386
32387   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32388   esac
32389 done
32390
32391
32392 # If the user did not use the arguments to specify the items to instantiate,
32393 # then the envvar interface is used.  Set only those that are not.
32394 # We use the long form for the default assignment because of an extremely
32395 # bizarre bug on SunOS 4.1.3.
32396 if $ac_need_defaults; then
32397   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32398   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32399   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32400 fi
32401
32402 # Have a temporary directory for convenience.  Make it in the build tree
32403 # simply because there is no reason against having it here, and in addition,
32404 # creating and moving files from /tmp can sometimes cause problems.
32405 # Hook for its removal unless debugging.
32406 # Note that there is a small window in which the directory will not be cleaned:
32407 # after its creation but before its name has been assigned to `$tmp'.
32408 $debug ||
32409 {
32410   tmp= ac_tmp=
32411   trap 'exit_status=$?
32412   : "${ac_tmp:=$tmp}"
32413   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32414 ' 0
32415   trap 'as_fn_exit 1' 1 2 13 15
32416 }
32417 # Create a (secure) tmp directory for tmp files.
32418
32419 {
32420   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32421   test -d "$tmp"
32422 }  ||
32423 {
32424   tmp=./conf$$-$RANDOM
32425   (umask 077 && mkdir "$tmp")
32426 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32427 ac_tmp=$tmp
32428
32429 # Set up the scripts for CONFIG_FILES section.
32430 # No need to generate them if there are no CONFIG_FILES.
32431 # This happens for instance with `./config.status config.h'.
32432 if test -n "$CONFIG_FILES"; then
32433
32434 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32435   ac_cs_awk_getline=:
32436   ac_cs_awk_pipe_init=
32437   ac_cs_awk_read_file='
32438       while ((getline aline < (F[key])) > 0)
32439         print(aline)
32440       close(F[key])'
32441   ac_cs_awk_pipe_fini=
32442 else
32443   ac_cs_awk_getline=false
32444   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32445   ac_cs_awk_read_file='
32446       print "|#_!!_#|"
32447       print "cat " F[key] " &&"
32448       '$ac_cs_awk_pipe_init
32449   # The final `:' finishes the AND list.
32450   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32451 fi
32452 ac_cr=`echo X | tr X '\015'`
32453 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32454 # But we know of no other shell where ac_cr would be empty at this
32455 # point, so we can use a bashism as a fallback.
32456 if test "x$ac_cr" = x; then
32457   eval ac_cr=\$\'\\r\'
32458 fi
32459 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32460 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32461   ac_cs_awk_cr='\\r'
32462 else
32463   ac_cs_awk_cr=$ac_cr
32464 fi
32465
32466 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32467 _ACEOF
32468
32469 # Create commands to substitute file output variables.
32470 {
32471   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32472   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32473   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32474   echo "_ACAWK" &&
32475   echo "_ACEOF"
32476 } >conf$$files.sh &&
32477 . ./conf$$files.sh ||
32478   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32479 rm -f conf$$files.sh
32480
32481 {
32482   echo "cat >conf$$subs.awk <<_ACEOF" &&
32483   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32484   echo "_ACEOF"
32485 } >conf$$subs.sh ||
32486   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32487 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32488 ac_delim='%!_!# '
32489 for ac_last_try in false false false false false :; do
32490   . ./conf$$subs.sh ||
32491     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32492
32493   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32494   if test $ac_delim_n = $ac_delim_num; then
32495     break
32496   elif $ac_last_try; then
32497     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32498   else
32499     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32500   fi
32501 done
32502 rm -f conf$$subs.sh
32503
32504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32505 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32506 _ACEOF
32507 sed -n '
32508 h
32509 s/^/S["/; s/!.*/"]=/
32510 p
32511 g
32512 s/^[^!]*!//
32513 :repl
32514 t repl
32515 s/'"$ac_delim"'$//
32516 t delim
32517 :nl
32518 h
32519 s/\(.\{148\}\)..*/\1/
32520 t more1
32521 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32522 p
32523 n
32524 b repl
32525 :more1
32526 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32527 p
32528 g
32529 s/.\{148\}//
32530 t nl
32531 :delim
32532 h
32533 s/\(.\{148\}\)..*/\1/
32534 t more2
32535 s/["\\]/\\&/g; s/^/"/; s/$/"/
32536 p
32537 b
32538 :more2
32539 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32540 p
32541 g
32542 s/.\{148\}//
32543 t delim
32544 ' <conf$$subs.awk | sed '
32545 /^[^""]/{
32546   N
32547   s/\n//
32548 }
32549 ' >>$CONFIG_STATUS || ac_write_fail=1
32550 rm -f conf$$subs.awk
32551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32552 _ACAWK
32553 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32554   for (key in S) S_is_set[key] = 1
32555   FS = "\a"
32556   \$ac_cs_awk_pipe_init
32557 }
32558 {
32559   line = $ 0
32560   nfields = split(line, field, "@")
32561   substed = 0
32562   len = length(field[1])
32563   for (i = 2; i < nfields; i++) {
32564     key = field[i]
32565     keylen = length(key)
32566     if (S_is_set[key]) {
32567       value = S[key]
32568       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32569       len += length(value) + length(field[++i])
32570       substed = 1
32571     } else
32572       len += 1 + keylen
32573   }
32574   if (nfields == 3 && !substed) {
32575     key = field[2]
32576     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32577       \$ac_cs_awk_read_file
32578       next
32579     }
32580   }
32581   print line
32582 }
32583 \$ac_cs_awk_pipe_fini
32584 _ACAWK
32585 _ACEOF
32586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32587 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32588   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32589 else
32590   cat
32591 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32592   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32593 _ACEOF
32594
32595 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32596 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32597 # trailing colons and then remove the whole line if VPATH becomes empty
32598 # (actually we leave an empty line to preserve line numbers).
32599 if test "x$srcdir" = x.; then
32600   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32601 h
32602 s///
32603 s/^/:/
32604 s/[      ]*$/:/
32605 s/:\$(srcdir):/:/g
32606 s/:\${srcdir}:/:/g
32607 s/:@srcdir@:/:/g
32608 s/^:*//
32609 s/:*$//
32610 x
32611 s/\(=[   ]*\).*/\1/
32612 G
32613 s/\n//
32614 s/^[^=]*=[       ]*$//
32615 }'
32616 fi
32617
32618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32619 fi # test -n "$CONFIG_FILES"
32620
32621 # Set up the scripts for CONFIG_HEADERS section.
32622 # No need to generate them if there are no CONFIG_HEADERS.
32623 # This happens for instance with `./config.status Makefile'.
32624 if test -n "$CONFIG_HEADERS"; then
32625 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32626 BEGIN {
32627 _ACEOF
32628
32629 # Transform confdefs.h into an awk script `defines.awk', embedded as
32630 # here-document in config.status, that substitutes the proper values into
32631 # config.h.in to produce config.h.
32632
32633 # Create a delimiter string that does not exist in confdefs.h, to ease
32634 # handling of long lines.
32635 ac_delim='%!_!# '
32636 for ac_last_try in false false :; do
32637   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32638   if test -z "$ac_tt"; then
32639     break
32640   elif $ac_last_try; then
32641     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32642   else
32643     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32644   fi
32645 done
32646
32647 # For the awk script, D is an array of macro values keyed by name,
32648 # likewise P contains macro parameters if any.  Preserve backslash
32649 # newline sequences.
32650
32651 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32652 sed -n '
32653 s/.\{148\}/&'"$ac_delim"'/g
32654 t rset
32655 :rset
32656 s/^[     ]*#[    ]*define[       ][      ]*/ /
32657 t def
32658 d
32659 :def
32660 s/\\$//
32661 t bsnl
32662 s/["\\]/\\&/g
32663 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32664 D["\1"]=" \3"/p
32665 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32666 d
32667 :bsnl
32668 s/["\\]/\\&/g
32669 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32670 D["\1"]=" \3\\\\\\n"\\/p
32671 t cont
32672 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32673 t cont
32674 d
32675 :cont
32676 n
32677 s/.\{148\}/&'"$ac_delim"'/g
32678 t clear
32679 :clear
32680 s/\\$//
32681 t bsnlc
32682 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32683 d
32684 :bsnlc
32685 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32686 b cont
32687 ' <confdefs.h | sed '
32688 s/'"$ac_delim"'/"\\\
32689 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32690
32691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32692   for (key in D) D_is_set[key] = 1
32693   FS = "\a"
32694 }
32695 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32696   line = \$ 0
32697   split(line, arg, " ")
32698   if (arg[1] == "#") {
32699     defundef = arg[2]
32700     mac1 = arg[3]
32701   } else {
32702     defundef = substr(arg[1], 2)
32703     mac1 = arg[2]
32704   }
32705   split(mac1, mac2, "(") #)
32706   macro = mac2[1]
32707   prefix = substr(line, 1, index(line, defundef) - 1)
32708   if (D_is_set[macro]) {
32709     # Preserve the white space surrounding the "#".
32710     print prefix "define", macro P[macro] D[macro]
32711     next
32712   } else {
32713     # Replace #undef with comments.  This is necessary, for example,
32714     # in the case of _POSIX_SOURCE, which is predefined and required
32715     # on some systems where configure will not decide to define it.
32716     if (defundef == "undef") {
32717       print "/*", prefix defundef, macro, "*/"
32718       next
32719     }
32720   }
32721 }
32722 { print }
32723 _ACAWK
32724 _ACEOF
32725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32726   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32727 fi # test -n "$CONFIG_HEADERS"
32728
32729
32730 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32731 shift
32732 for ac_tag
32733 do
32734   case $ac_tag in
32735   :[FHLC]) ac_mode=$ac_tag; continue;;
32736   esac
32737   case $ac_mode$ac_tag in
32738   :[FHL]*:*);;
32739   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32740   :[FH]-) ac_tag=-:-;;
32741   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32742   esac
32743   ac_save_IFS=$IFS
32744   IFS=:
32745   set x $ac_tag
32746   IFS=$ac_save_IFS
32747   shift
32748   ac_file=$1
32749   shift
32750
32751   case $ac_mode in
32752   :L) ac_source=$1;;
32753   :[FH])
32754     ac_file_inputs=
32755     for ac_f
32756     do
32757       case $ac_f in
32758       -) ac_f="$ac_tmp/stdin";;
32759       *) # Look for the file first in the build tree, then in the source tree
32760          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32761          # because $ac_f cannot contain `:'.
32762          test -f "$ac_f" ||
32763            case $ac_f in
32764            [\\/$]*) false;;
32765            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32766            esac ||
32767            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32768       esac
32769       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32770       as_fn_append ac_file_inputs " '$ac_f'"
32771     done
32772
32773     # Let's still pretend it is `configure' which instantiates (i.e., don't
32774     # use $as_me), people would be surprised to read:
32775     #    /* config.h.  Generated by config.status.  */
32776     configure_input='Generated from '`
32777           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32778         `' by configure.'
32779     if test x"$ac_file" != x-; then
32780       configure_input="$ac_file.  $configure_input"
32781       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32782 $as_echo "$as_me: creating $ac_file" >&6;}
32783     fi
32784     # Neutralize special characters interpreted by sed in replacement strings.
32785     case $configure_input in #(
32786     *\&* | *\|* | *\\* )
32787        ac_sed_conf_input=`$as_echo "$configure_input" |
32788        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32789     *) ac_sed_conf_input=$configure_input;;
32790     esac
32791
32792     case $ac_tag in
32793     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32794       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32795     esac
32796     ;;
32797   esac
32798
32799   ac_dir=`$as_dirname -- "$ac_file" ||
32800 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32801          X"$ac_file" : 'X\(//\)[^/]' \| \
32802          X"$ac_file" : 'X\(//\)$' \| \
32803          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32804 $as_echo X"$ac_file" |
32805     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32806             s//\1/
32807             q
32808           }
32809           /^X\(\/\/\)[^/].*/{
32810             s//\1/
32811             q
32812           }
32813           /^X\(\/\/\)$/{
32814             s//\1/
32815             q
32816           }
32817           /^X\(\/\).*/{
32818             s//\1/
32819             q
32820           }
32821           s/.*/./; q'`
32822   as_dir="$ac_dir"; as_fn_mkdir_p
32823   ac_builddir=.
32824
32825 case "$ac_dir" in
32826 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32827 *)
32828   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32829   # A ".." for each directory in $ac_dir_suffix.
32830   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32831   case $ac_top_builddir_sub in
32832   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32833   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32834   esac ;;
32835 esac
32836 ac_abs_top_builddir=$ac_pwd
32837 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32838 # for backward compatibility:
32839 ac_top_builddir=$ac_top_build_prefix
32840
32841 case $srcdir in
32842   .)  # We are building in place.
32843     ac_srcdir=.
32844     ac_top_srcdir=$ac_top_builddir_sub
32845     ac_abs_top_srcdir=$ac_pwd ;;
32846   [\\/]* | ?:[\\/]* )  # Absolute name.
32847     ac_srcdir=$srcdir$ac_dir_suffix;
32848     ac_top_srcdir=$srcdir
32849     ac_abs_top_srcdir=$srcdir ;;
32850   *) # Relative name.
32851     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32852     ac_top_srcdir=$ac_top_build_prefix$srcdir
32853     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32854 esac
32855 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32856
32857
32858   case $ac_mode in
32859   :F)
32860   #
32861   # CONFIG_FILE
32862   #
32863
32864   case $INSTALL in
32865   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32866   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32867   esac
32868 _ACEOF
32869
32870 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32871 # If the template does not know about datarootdir, expand it.
32872 # FIXME: This hack should be removed a few years after 2.60.
32873 ac_datarootdir_hack=; ac_datarootdir_seen=
32874 ac_sed_dataroot='
32875 /datarootdir/ {
32876   p
32877   q
32878 }
32879 /@datadir@/p
32880 /@docdir@/p
32881 /@infodir@/p
32882 /@localedir@/p
32883 /@mandir@/p'
32884 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32885 *datarootdir*) ac_datarootdir_seen=yes;;
32886 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32887   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32888 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32889 _ACEOF
32890 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32891   ac_datarootdir_hack='
32892   s&@datadir@&$datadir&g
32893   s&@docdir@&$docdir&g
32894   s&@infodir@&$infodir&g
32895   s&@localedir@&$localedir&g
32896   s&@mandir@&$mandir&g
32897   s&\\\${datarootdir}&$datarootdir&g' ;;
32898 esac
32899 _ACEOF
32900
32901 # Neutralize VPATH when `$srcdir' = `.'.
32902 # Shell code in configure.ac might set extrasub.
32903 # FIXME: do we really want to maintain this feature?
32904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32905 ac_sed_extra="$ac_vpsub
32906 $extrasub
32907 _ACEOF
32908 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32909 :t
32910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32911 s|@configure_input@|$ac_sed_conf_input|;t t
32912 s&@top_builddir@&$ac_top_builddir_sub&;t t
32913 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32914 s&@srcdir@&$ac_srcdir&;t t
32915 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32916 s&@top_srcdir@&$ac_top_srcdir&;t t
32917 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32918 s&@builddir@&$ac_builddir&;t t
32919 s&@abs_builddir@&$ac_abs_builddir&;t t
32920 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32921 s&@INSTALL@&$ac_INSTALL&;t t
32922 $ac_datarootdir_hack
32923 "
32924 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32925 if $ac_cs_awk_getline; then
32926   $AWK -f "$ac_tmp/subs.awk"
32927 else
32928   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32929 fi \
32930   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32931
32932 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32933   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32934   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32935       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32936   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32937 which seems to be undefined.  Please make sure it is defined" >&5
32938 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32939 which seems to be undefined.  Please make sure it is defined" >&2;}
32940
32941   rm -f "$ac_tmp/stdin"
32942   case $ac_file in
32943   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32944   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32945   esac \
32946   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32947  ;;
32948   :H)
32949   #
32950   # CONFIG_HEADER
32951   #
32952   if test x"$ac_file" != x-; then
32953     {
32954       $as_echo "/* $configure_input  */" \
32955       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32956     } >"$ac_tmp/config.h" \
32957       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32958     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32959       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32960 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32961     else
32962       rm -f "$ac_file"
32963       mv "$ac_tmp/config.h" "$ac_file" \
32964         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32965     fi
32966   else
32967     $as_echo "/* $configure_input  */" \
32968       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32969       || as_fn_error $? "could not create -" "$LINENO" 5
32970   fi
32971  ;;
32972
32973   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32974 $as_echo "$as_me: executing $ac_file commands" >&6;}
32975  ;;
32976   esac
32977
32978
32979   case $ac_file$ac_mode in
32980     "libtool":C)
32981
32982     # See if we are running on zsh, and set the options which allow our
32983     # commands through without removal of \ escapes.
32984     if test -n "${ZSH_VERSION+set}" ; then
32985       setopt NO_GLOB_SUBST
32986     fi
32987
32988     cfgfile="${ofile}T"
32989     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32990     $RM "$cfgfile"
32991
32992     cat <<_LT_EOF >> "$cfgfile"
32993 #! $SHELL
32994
32995 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32996 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32997 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32998 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32999 #
33000 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
33001 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
33002 #                 Foundation, Inc.
33003 #   Written by Gordon Matzigkeit, 1996
33004 #
33005 #   This file is part of GNU Libtool.
33006 #
33007 # GNU Libtool is free software; you can redistribute it and/or
33008 # modify it under the terms of the GNU General Public License as
33009 # published by the Free Software Foundation; either version 2 of
33010 # the License, or (at your option) any later version.
33011 #
33012 # As a special exception to the GNU General Public License,
33013 # if you distribute this file as part of a program or library that
33014 # is built using GNU Libtool, you may include this file under the
33015 # same distribution terms that you use for the rest of that program.
33016 #
33017 # GNU Libtool is distributed in the hope that it will be useful,
33018 # but WITHOUT ANY WARRANTY; without even the implied warranty of
33019 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33020 # GNU General Public License for more details.
33021 #
33022 # You should have received a copy of the GNU General Public License
33023 # along with GNU Libtool; see the file COPYING.  If not, a copy
33024 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
33025 # obtained by writing to the Free Software Foundation, Inc.,
33026 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
33027
33028
33029 # The names of the tagged configurations supported by this script.
33030 available_tags="CXX "
33031
33032 # ### BEGIN LIBTOOL CONFIG
33033
33034 # Which release of libtool.m4 was used?
33035 macro_version=$macro_version
33036 macro_revision=$macro_revision
33037
33038 # Whether or not to build shared libraries.
33039 build_libtool_libs=$enable_shared
33040
33041 # Whether or not to build static libraries.
33042 build_old_libs=$enable_static
33043
33044 # What type of objects to build.
33045 pic_mode=$pic_mode
33046
33047 # Whether or not to optimize for fast installation.
33048 fast_install=$enable_fast_install
33049
33050 # Shell to use when invoking shell scripts.
33051 SHELL=$lt_SHELL
33052
33053 # An echo program that protects backslashes.
33054 ECHO=$lt_ECHO
33055
33056 # The PATH separator for the build system.
33057 PATH_SEPARATOR=$lt_PATH_SEPARATOR
33058
33059 # The host system.
33060 host_alias=$host_alias
33061 host=$host
33062 host_os=$host_os
33063
33064 # The build system.
33065 build_alias=$build_alias
33066 build=$build
33067 build_os=$build_os
33068
33069 # A sed program that does not truncate output.
33070 SED=$lt_SED
33071
33072 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
33073 Xsed="\$SED -e 1s/^X//"
33074
33075 # A grep program that handles long lines.
33076 GREP=$lt_GREP
33077
33078 # An ERE matcher.
33079 EGREP=$lt_EGREP
33080
33081 # A literal string matcher.
33082 FGREP=$lt_FGREP
33083
33084 # A BSD- or MS-compatible name lister.
33085 NM=$lt_NM
33086
33087 # Whether we need soft or hard links.
33088 LN_S=$lt_LN_S
33089
33090 # What is the maximum length of a command?
33091 max_cmd_len=$max_cmd_len
33092
33093 # Object file suffix (normally "o").
33094 objext=$ac_objext
33095
33096 # Executable file suffix (normally "").
33097 exeext=$exeext
33098
33099 # whether the shell understands "unset".
33100 lt_unset=$lt_unset
33101
33102 # turn spaces into newlines.
33103 SP2NL=$lt_lt_SP2NL
33104
33105 # turn newlines into spaces.
33106 NL2SP=$lt_lt_NL2SP
33107
33108 # convert \$build file names to \$host format.
33109 to_host_file_cmd=$lt_cv_to_host_file_cmd
33110
33111 # convert \$build files to toolchain format.
33112 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
33113
33114 # An object symbol dumper.
33115 OBJDUMP=$lt_OBJDUMP
33116
33117 # Method to check whether dependent libraries are shared objects.
33118 deplibs_check_method=$lt_deplibs_check_method
33119
33120 # Command to use when deplibs_check_method = "file_magic".
33121 file_magic_cmd=$lt_file_magic_cmd
33122
33123 # How to find potential files when deplibs_check_method = "file_magic".
33124 file_magic_glob=$lt_file_magic_glob
33125
33126 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
33127 want_nocaseglob=$lt_want_nocaseglob
33128
33129 # DLL creation program.
33130 DLLTOOL=$lt_DLLTOOL
33131
33132 # Command to associate shared and link libraries.
33133 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
33134
33135 # The archiver.
33136 AR=$lt_AR
33137
33138 # Flags to create an archive.
33139 AR_FLAGS=$lt_AR_FLAGS
33140
33141 # How to feed a file listing to the archiver.
33142 archiver_list_spec=$lt_archiver_list_spec
33143
33144 # A symbol stripping program.
33145 STRIP=$lt_STRIP
33146
33147 # Commands used to install an old-style archive.
33148 RANLIB=$lt_RANLIB
33149 old_postinstall_cmds=$lt_old_postinstall_cmds
33150 old_postuninstall_cmds=$lt_old_postuninstall_cmds
33151
33152 # Whether to use a lock for old archive extraction.
33153 lock_old_archive_extraction=$lock_old_archive_extraction
33154
33155 # A C compiler.
33156 LTCC=$lt_CC
33157
33158 # LTCC compiler flags.
33159 LTCFLAGS=$lt_CFLAGS
33160
33161 # Take the output of nm and produce a listing of raw symbols and C names.
33162 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
33163
33164 # Transform the output of nm in a proper C declaration.
33165 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
33166
33167 # Transform the output of nm in a C name address pair.
33168 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
33169
33170 # Transform the output of nm in a C name address pair when lib prefix is needed.
33171 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
33172
33173 # Specify filename containing input files for \$NM.
33174 nm_file_list_spec=$lt_nm_file_list_spec
33175
33176 # The root where to search for dependent libraries,and in which our libraries should be installed.
33177 lt_sysroot=$lt_sysroot
33178
33179 # The name of the directory that contains temporary libtool files.
33180 objdir=$objdir
33181
33182 # Used to examine libraries when file_magic_cmd begins with "file".
33183 MAGIC_CMD=$MAGIC_CMD
33184
33185 # Must we lock files when doing compilation?
33186 need_locks=$lt_need_locks
33187
33188 # Manifest tool.
33189 MANIFEST_TOOL=$lt_MANIFEST_TOOL
33190
33191 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
33192 DSYMUTIL=$lt_DSYMUTIL
33193
33194 # Tool to change global to local symbols on Mac OS X.
33195 NMEDIT=$lt_NMEDIT
33196
33197 # Tool to manipulate fat objects and archives on Mac OS X.
33198 LIPO=$lt_LIPO
33199
33200 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
33201 OTOOL=$lt_OTOOL
33202
33203 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
33204 OTOOL64=$lt_OTOOL64
33205
33206 # Old archive suffix (normally "a").
33207 libext=$libext
33208
33209 # Shared library suffix (normally ".so").
33210 shrext_cmds=$lt_shrext_cmds
33211
33212 # The commands to extract the exported symbol list from a shared archive.
33213 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33214
33215 # Variables whose values should be saved in libtool wrapper scripts and
33216 # restored at link time.
33217 variables_saved_for_relink=$lt_variables_saved_for_relink
33218
33219 # Do we need the "lib" prefix for modules?
33220 need_lib_prefix=$need_lib_prefix
33221
33222 # Do we need a version for libraries?
33223 need_version=$need_version
33224
33225 # Library versioning type.
33226 version_type=$version_type
33227
33228 # Shared library runtime path variable.
33229 runpath_var=$runpath_var
33230
33231 # Shared library path variable.
33232 shlibpath_var=$shlibpath_var
33233
33234 # Is shlibpath searched before the hard-coded library search path?
33235 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33236
33237 # Format of library name prefix.
33238 libname_spec=$lt_libname_spec
33239
33240 # List of archive names.  First name is the real one, the rest are links.
33241 # The last name is the one that the linker finds with -lNAME
33242 library_names_spec=$lt_library_names_spec
33243
33244 # The coded name of the library, if different from the real name.
33245 soname_spec=$lt_soname_spec
33246
33247 # Permission mode override for installation of shared libraries.
33248 install_override_mode=$lt_install_override_mode
33249
33250 # Command to use after installation of a shared archive.
33251 postinstall_cmds=$lt_postinstall_cmds
33252
33253 # Command to use after uninstallation of a shared archive.
33254 postuninstall_cmds=$lt_postuninstall_cmds
33255
33256 # Commands used to finish a libtool library installation in a directory.
33257 finish_cmds=$lt_finish_cmds
33258
33259 # As "finish_cmds", except a single script fragment to be evaled but
33260 # not shown.
33261 finish_eval=$lt_finish_eval
33262
33263 # Whether we should hardcode library paths into libraries.
33264 hardcode_into_libs=$hardcode_into_libs
33265
33266 # Compile-time system search path for libraries.
33267 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33268
33269 # Run-time system search path for libraries.
33270 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33271
33272 # Whether dlopen is supported.
33273 dlopen_support=$enable_dlopen
33274
33275 # Whether dlopen of programs is supported.
33276 dlopen_self=$enable_dlopen_self
33277
33278 # Whether dlopen of statically linked programs is supported.
33279 dlopen_self_static=$enable_dlopen_self_static
33280
33281 # Commands to strip libraries.
33282 old_striplib=$lt_old_striplib
33283 striplib=$lt_striplib
33284
33285
33286 # The linker used to build libraries.
33287 LD=$lt_LD
33288
33289 # How to create reloadable object files.
33290 reload_flag=$lt_reload_flag
33291 reload_cmds=$lt_reload_cmds
33292
33293 # Commands used to build an old-style archive.
33294 old_archive_cmds=$lt_old_archive_cmds
33295
33296 # A language specific compiler.
33297 CC=$lt_compiler
33298
33299 # Is the compiler the GNU compiler?
33300 with_gcc=$GCC
33301
33302 # Compiler flag to turn off builtin functions.
33303 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33304
33305 # Additional compiler flags for building library objects.
33306 pic_flag=$lt_lt_prog_compiler_pic
33307
33308 # How to pass a linker flag through the compiler.
33309 wl=$lt_lt_prog_compiler_wl
33310
33311 # Compiler flag to prevent dynamic linking.
33312 link_static_flag=$lt_lt_prog_compiler_static
33313
33314 # Does compiler simultaneously support -c and -o options?
33315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33316
33317 # Whether or not to add -lc for building shared libraries.
33318 build_libtool_need_lc=$archive_cmds_need_lc
33319
33320 # Whether or not to disallow shared libs when runtime libs are static.
33321 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33322
33323 # Compiler flag to allow reflexive dlopens.
33324 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33325
33326 # Compiler flag to generate shared objects directly from archives.
33327 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33328
33329 # Whether the compiler copes with passing no objects directly.
33330 compiler_needs_object=$lt_compiler_needs_object
33331
33332 # Create an old-style archive from a shared archive.
33333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33334
33335 # Create a temporary old-style archive to link instead of a shared archive.
33336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33337
33338 # Commands used to build a shared archive.
33339 archive_cmds=$lt_archive_cmds
33340 archive_expsym_cmds=$lt_archive_expsym_cmds
33341
33342 # Commands used to build a loadable module if different from building
33343 # a shared archive.
33344 module_cmds=$lt_module_cmds
33345 module_expsym_cmds=$lt_module_expsym_cmds
33346
33347 # Whether we are building with GNU ld or not.
33348 with_gnu_ld=$lt_with_gnu_ld
33349
33350 # Flag that allows shared libraries with undefined symbols to be built.
33351 allow_undefined_flag=$lt_allow_undefined_flag
33352
33353 # Flag that enforces no undefined symbols.
33354 no_undefined_flag=$lt_no_undefined_flag
33355
33356 # Flag to hardcode \$libdir into a binary during linking.
33357 # This must work even if \$libdir does not exist
33358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33359
33360 # Whether we need a single "-rpath" flag with a separated argument.
33361 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33362
33363 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33364 # DIR into the resulting binary.
33365 hardcode_direct=$hardcode_direct
33366
33367 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33368 # DIR into the resulting binary and the resulting library dependency is
33369 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33370 # library is relocated.
33371 hardcode_direct_absolute=$hardcode_direct_absolute
33372
33373 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33374 # into the resulting binary.
33375 hardcode_minus_L=$hardcode_minus_L
33376
33377 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33378 # into the resulting binary.
33379 hardcode_shlibpath_var=$hardcode_shlibpath_var
33380
33381 # Set to "yes" if building a shared library automatically hardcodes DIR
33382 # into the library and all subsequent libraries and executables linked
33383 # against it.
33384 hardcode_automatic=$hardcode_automatic
33385
33386 # Set to yes if linker adds runtime paths of dependent libraries
33387 # to runtime path list.
33388 inherit_rpath=$inherit_rpath
33389
33390 # Whether libtool must link a program against all its dependency libraries.
33391 link_all_deplibs=$link_all_deplibs
33392
33393 # Set to "yes" if exported symbols are required.
33394 always_export_symbols=$always_export_symbols
33395
33396 # The commands to list exported symbols.
33397 export_symbols_cmds=$lt_export_symbols_cmds
33398
33399 # Symbols that should not be listed in the preloaded symbols.
33400 exclude_expsyms=$lt_exclude_expsyms
33401
33402 # Symbols that must always be exported.
33403 include_expsyms=$lt_include_expsyms
33404
33405 # Commands necessary for linking programs (against libraries) with templates.
33406 prelink_cmds=$lt_prelink_cmds
33407
33408 # Commands necessary for finishing linking programs.
33409 postlink_cmds=$lt_postlink_cmds
33410
33411 # Specify filename containing input files.
33412 file_list_spec=$lt_file_list_spec
33413
33414 # How to hardcode a shared library path into an executable.
33415 hardcode_action=$hardcode_action
33416
33417 # The directories searched by this compiler when creating a shared library.
33418 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33419
33420 # Dependencies to place before and after the objects being linked to
33421 # create a shared library.
33422 predep_objects=$lt_predep_objects
33423 postdep_objects=$lt_postdep_objects
33424 predeps=$lt_predeps
33425 postdeps=$lt_postdeps
33426
33427 # The library search path used internally by the compiler when linking
33428 # a shared library.
33429 compiler_lib_search_path=$lt_compiler_lib_search_path
33430
33431 # ### END LIBTOOL CONFIG
33432
33433 _LT_EOF
33434
33435   case $host_os in
33436   aix3*)
33437     cat <<\_LT_EOF >> "$cfgfile"
33438 # AIX sometimes has problems with the GCC collect2 program.  For some
33439 # reason, if we set the COLLECT_NAMES environment variable, the problems
33440 # vanish in a puff of smoke.
33441 if test "X${COLLECT_NAMES+set}" != Xset; then
33442   COLLECT_NAMES=
33443   export COLLECT_NAMES
33444 fi
33445 _LT_EOF
33446     ;;
33447   esac
33448
33449
33450 ltmain="$ac_aux_dir/ltmain.sh"
33451
33452
33453   # We use sed instead of cat because bash on DJGPP gets confused if
33454   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33455   # text mode, it properly converts lines to CR/LF.  This bash problem
33456   # is reportedly fixed, but why not run on old versions too?
33457   sed '$q' "$ltmain" >> "$cfgfile" \
33458      || (rm -f "$cfgfile"; exit 1)
33459
33460   if test x"$xsi_shell" = xyes; then
33461   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33462 func_dirname ()\
33463 {\
33464 \    case ${1} in\
33465 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33466 \      *  ) func_dirname_result="${3}" ;;\
33467 \    esac\
33468 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33469   && mv -f "$cfgfile.tmp" "$cfgfile" \
33470     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33471 test 0 -eq $? || _lt_function_replace_fail=:
33472
33473
33474   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33475 func_basename ()\
33476 {\
33477 \    func_basename_result="${1##*/}"\
33478 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33479   && mv -f "$cfgfile.tmp" "$cfgfile" \
33480     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33481 test 0 -eq $? || _lt_function_replace_fail=:
33482
33483
33484   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33485 func_dirname_and_basename ()\
33486 {\
33487 \    case ${1} in\
33488 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33489 \      *  ) func_dirname_result="${3}" ;;\
33490 \    esac\
33491 \    func_basename_result="${1##*/}"\
33492 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33493   && mv -f "$cfgfile.tmp" "$cfgfile" \
33494     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33495 test 0 -eq $? || _lt_function_replace_fail=:
33496
33497
33498   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33499 func_stripname ()\
33500 {\
33501 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33502 \    # positional parameters, so assign one to ordinary parameter first.\
33503 \    func_stripname_result=${3}\
33504 \    func_stripname_result=${func_stripname_result#"${1}"}\
33505 \    func_stripname_result=${func_stripname_result%"${2}"}\
33506 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33507   && mv -f "$cfgfile.tmp" "$cfgfile" \
33508     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33509 test 0 -eq $? || _lt_function_replace_fail=:
33510
33511
33512   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33513 func_split_long_opt ()\
33514 {\
33515 \    func_split_long_opt_name=${1%%=*}\
33516 \    func_split_long_opt_arg=${1#*=}\
33517 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33518   && mv -f "$cfgfile.tmp" "$cfgfile" \
33519     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33520 test 0 -eq $? || _lt_function_replace_fail=:
33521
33522
33523   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33524 func_split_short_opt ()\
33525 {\
33526 \    func_split_short_opt_arg=${1#??}\
33527 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33528 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33529   && mv -f "$cfgfile.tmp" "$cfgfile" \
33530     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33531 test 0 -eq $? || _lt_function_replace_fail=:
33532
33533
33534   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33535 func_lo2o ()\
33536 {\
33537 \    case ${1} in\
33538 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33539 \      *)    func_lo2o_result=${1} ;;\
33540 \    esac\
33541 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33542   && mv -f "$cfgfile.tmp" "$cfgfile" \
33543     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33544 test 0 -eq $? || _lt_function_replace_fail=:
33545
33546
33547   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33548 func_xform ()\
33549 {\
33550     func_xform_result=${1%.*}.lo\
33551 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33552   && mv -f "$cfgfile.tmp" "$cfgfile" \
33553     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33554 test 0 -eq $? || _lt_function_replace_fail=:
33555
33556
33557   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33558 func_arith ()\
33559 {\
33560     func_arith_result=$(( $* ))\
33561 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33562   && mv -f "$cfgfile.tmp" "$cfgfile" \
33563     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33564 test 0 -eq $? || _lt_function_replace_fail=:
33565
33566
33567   sed -e '/^func_len ()$/,/^} # func_len /c\
33568 func_len ()\
33569 {\
33570     func_len_result=${#1}\
33571 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33572   && mv -f "$cfgfile.tmp" "$cfgfile" \
33573     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33574 test 0 -eq $? || _lt_function_replace_fail=:
33575
33576 fi
33577
33578 if test x"$lt_shell_append" = xyes; then
33579   sed -e '/^func_append ()$/,/^} # func_append /c\
33580 func_append ()\
33581 {\
33582     eval "${1}+=\\${2}"\
33583 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33584   && mv -f "$cfgfile.tmp" "$cfgfile" \
33585     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33586 test 0 -eq $? || _lt_function_replace_fail=:
33587
33588
33589   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33590 func_append_quoted ()\
33591 {\
33592 \    func_quote_for_eval "${2}"\
33593 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33594 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33595   && mv -f "$cfgfile.tmp" "$cfgfile" \
33596     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33597 test 0 -eq $? || _lt_function_replace_fail=:
33598
33599
33600   # Save a `func_append' function call where possible by direct use of '+='
33601   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33602     && mv -f "$cfgfile.tmp" "$cfgfile" \
33603       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33604   test 0 -eq $? || _lt_function_replace_fail=:
33605 else
33606   # Save a `func_append' function call even when '+=' is not available
33607   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33608     && mv -f "$cfgfile.tmp" "$cfgfile" \
33609       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33610   test 0 -eq $? || _lt_function_replace_fail=:
33611 fi
33612
33613 if test x"$_lt_function_replace_fail" = x":"; then
33614   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33615 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33616 fi
33617
33618
33619    mv -f "$cfgfile" "$ofile" ||
33620     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33621   chmod +x "$ofile"
33622
33623
33624     cat <<_LT_EOF >> "$ofile"
33625
33626 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33627
33628 # The linker used to build libraries.
33629 LD=$lt_LD_CXX
33630
33631 # How to create reloadable object files.
33632 reload_flag=$lt_reload_flag_CXX
33633 reload_cmds=$lt_reload_cmds_CXX
33634
33635 # Commands used to build an old-style archive.
33636 old_archive_cmds=$lt_old_archive_cmds_CXX
33637
33638 # A language specific compiler.
33639 CC=$lt_compiler_CXX
33640
33641 # Is the compiler the GNU compiler?
33642 with_gcc=$GCC_CXX
33643
33644 # Compiler flag to turn off builtin functions.
33645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33646
33647 # Additional compiler flags for building library objects.
33648 pic_flag=$lt_lt_prog_compiler_pic_CXX
33649
33650 # How to pass a linker flag through the compiler.
33651 wl=$lt_lt_prog_compiler_wl_CXX
33652
33653 # Compiler flag to prevent dynamic linking.
33654 link_static_flag=$lt_lt_prog_compiler_static_CXX
33655
33656 # Does compiler simultaneously support -c and -o options?
33657 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33658
33659 # Whether or not to add -lc for building shared libraries.
33660 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33661
33662 # Whether or not to disallow shared libs when runtime libs are static.
33663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33664
33665 # Compiler flag to allow reflexive dlopens.
33666 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33667
33668 # Compiler flag to generate shared objects directly from archives.
33669 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33670
33671 # Whether the compiler copes with passing no objects directly.
33672 compiler_needs_object=$lt_compiler_needs_object_CXX
33673
33674 # Create an old-style archive from a shared archive.
33675 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33676
33677 # Create a temporary old-style archive to link instead of a shared archive.
33678 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33679
33680 # Commands used to build a shared archive.
33681 archive_cmds=$lt_archive_cmds_CXX
33682 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33683
33684 # Commands used to build a loadable module if different from building
33685 # a shared archive.
33686 module_cmds=$lt_module_cmds_CXX
33687 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33688
33689 # Whether we are building with GNU ld or not.
33690 with_gnu_ld=$lt_with_gnu_ld_CXX
33691
33692 # Flag that allows shared libraries with undefined symbols to be built.
33693 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33694
33695 # Flag that enforces no undefined symbols.
33696 no_undefined_flag=$lt_no_undefined_flag_CXX
33697
33698 # Flag to hardcode \$libdir into a binary during linking.
33699 # This must work even if \$libdir does not exist
33700 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33701
33702 # Whether we need a single "-rpath" flag with a separated argument.
33703 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33704
33705 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33706 # DIR into the resulting binary.
33707 hardcode_direct=$hardcode_direct_CXX
33708
33709 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33710 # DIR into the resulting binary and the resulting library dependency is
33711 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33712 # library is relocated.
33713 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33714
33715 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33716 # into the resulting binary.
33717 hardcode_minus_L=$hardcode_minus_L_CXX
33718
33719 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33720 # into the resulting binary.
33721 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33722
33723 # Set to "yes" if building a shared library automatically hardcodes DIR
33724 # into the library and all subsequent libraries and executables linked
33725 # against it.
33726 hardcode_automatic=$hardcode_automatic_CXX
33727
33728 # Set to yes if linker adds runtime paths of dependent libraries
33729 # to runtime path list.
33730 inherit_rpath=$inherit_rpath_CXX
33731
33732 # Whether libtool must link a program against all its dependency libraries.
33733 link_all_deplibs=$link_all_deplibs_CXX
33734
33735 # Set to "yes" if exported symbols are required.
33736 always_export_symbols=$always_export_symbols_CXX
33737
33738 # The commands to list exported symbols.
33739 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33740
33741 # Symbols that should not be listed in the preloaded symbols.
33742 exclude_expsyms=$lt_exclude_expsyms_CXX
33743
33744 # Symbols that must always be exported.
33745 include_expsyms=$lt_include_expsyms_CXX
33746
33747 # Commands necessary for linking programs (against libraries) with templates.
33748 prelink_cmds=$lt_prelink_cmds_CXX
33749
33750 # Commands necessary for finishing linking programs.
33751 postlink_cmds=$lt_postlink_cmds_CXX
33752
33753 # Specify filename containing input files.
33754 file_list_spec=$lt_file_list_spec_CXX
33755
33756 # How to hardcode a shared library path into an executable.
33757 hardcode_action=$hardcode_action_CXX
33758
33759 # The directories searched by this compiler when creating a shared library.
33760 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33761
33762 # Dependencies to place before and after the objects being linked to
33763 # create a shared library.
33764 predep_objects=$lt_predep_objects_CXX
33765 postdep_objects=$lt_postdep_objects_CXX
33766 predeps=$lt_predeps_CXX
33767 postdeps=$lt_postdeps_CXX
33768
33769 # The library search path used internally by the compiler when linking
33770 # a shared library.
33771 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33772
33773 # ### END LIBTOOL TAG CONFIG: CXX
33774 _LT_EOF
33775
33776  ;;
33777     "default-1":C)
33778     for ac_file in $CONFIG_FILES; do
33779       # Support "outfile[:infile[:infile...]]"
33780       case "$ac_file" in
33781         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33782       esac
33783       # PO directories have a Makefile.in generated from Makefile.in.in.
33784       case "$ac_file" in */Makefile.in)
33785         # Adjust a relative srcdir.
33786         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33787         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33788         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33789         # In autoconf-2.13 it is called $ac_given_srcdir.
33790         # In autoconf-2.50 it is called $srcdir.
33791         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33792         case "$ac_given_srcdir" in
33793           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33794           /*) top_srcdir="$ac_given_srcdir" ;;
33795           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33796         esac
33797         # Treat a directory as a PO directory if and only if it has a
33798         # POTFILES.in file. This allows packages to have multiple PO
33799         # directories under different names or in different locations.
33800         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33801           rm -f "$ac_dir/POTFILES"
33802           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33803           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33804           POMAKEFILEDEPS="POTFILES.in"
33805           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33806           # on $ac_dir but don't depend on user-specified configuration
33807           # parameters.
33808           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33809             # The LINGUAS file contains the set of available languages.
33810             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33811               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33812             fi
33813             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33814             # Hide the ALL_LINGUAS assigment from automake.
33815             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33816             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33817           else
33818             # The set of available languages was given in configure.in.
33819             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33820           fi
33821           # Compute POFILES
33822           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33823           # Compute UPDATEPOFILES
33824           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33825           # Compute DUMMYPOFILES
33826           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33827           # Compute GMOFILES
33828           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33829           case "$ac_given_srcdir" in
33830             .) srcdirpre= ;;
33831             *) srcdirpre='$(srcdir)/' ;;
33832           esac
33833           POFILES=
33834           UPDATEPOFILES=
33835           DUMMYPOFILES=
33836           GMOFILES=
33837           for lang in $ALL_LINGUAS; do
33838             POFILES="$POFILES $srcdirpre$lang.po"
33839             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33840             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33841             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33842           done
33843           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33844           # environment variable.
33845           INST_LINGUAS=
33846           if test -n "$ALL_LINGUAS"; then
33847             for presentlang in $ALL_LINGUAS; do
33848               useit=no
33849               if test "%UNSET%" != "$LINGUAS"; then
33850                 desiredlanguages="$LINGUAS"
33851               else
33852                 desiredlanguages="$ALL_LINGUAS"
33853               fi
33854               for desiredlang in $desiredlanguages; do
33855                 # Use the presentlang catalog if desiredlang is
33856                 #   a. equal to presentlang, or
33857                 #   b. a variant of presentlang (because in this case,
33858                 #      presentlang can be used as a fallback for messages
33859                 #      which are not translated in the desiredlang catalog).
33860                 case "$desiredlang" in
33861                   "$presentlang"*) useit=yes;;
33862                 esac
33863               done
33864               if test $useit = yes; then
33865                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33866               fi
33867             done
33868           fi
33869           CATALOGS=
33870           if test -n "$INST_LINGUAS"; then
33871             for lang in $INST_LINGUAS; do
33872               CATALOGS="$CATALOGS $lang.gmo"
33873             done
33874           fi
33875           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33876           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"
33877           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33878             if test -f "$f"; then
33879               case "$f" in
33880                 *.orig | *.bak | *~) ;;
33881                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33882               esac
33883             fi
33884           done
33885         fi
33886         ;;
33887       esac
33888     done ;;
33889     "default":C)
33890  ;;
33891
33892   esac
33893 done # for ac_tag
33894
33895
33896 as_fn_exit 0
33897 _ACEOF
33898 ac_clean_files=$ac_clean_files_save
33899
33900 test $ac_write_fail = 0 ||
33901   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33902
33903
33904 # configure is writing to config.log, and then calls config.status.
33905 # config.status does its own redirection, appending to config.log.
33906 # Unfortunately, on DOS this fails, as config.log is still kept open
33907 # by configure, so config.status won't be able to write to it; its
33908 # output is simply discarded.  So we exec the FD to /dev/null,
33909 # effectively closing config.log, so it can be properly (re)opened and
33910 # appended to by config.status.  When coming back to configure, we
33911 # need to make the FD available again.
33912 if test "$no_create" != yes; then
33913   ac_cs_success=:
33914   ac_config_status_args=
33915   test "$silent" = yes &&
33916     ac_config_status_args="$ac_config_status_args --quiet"
33917   exec 5>/dev/null
33918   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33919   exec 5>>config.log
33920   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33921   # would make configure fail if this is the last instruction.
33922   $ac_cs_success || as_fn_exit 1
33923 fi
33924 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33925   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33926 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33927 fi
33928
33929
33930 if test "${support_bat}" = "yes" ; then
33931    if test "x$QMAKE" = "xnone"; then
33932       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33933    fi
33934
33935    cd src/qt-console
33936    echo "Creating bat Makefile"
33937    touch bat
33938    chmod 755 bat
33939    rm -f Makefile
33940    rm -rf moc32 obj32
33941    $QMAKE
33942    ${MAKE:-make} clean
33943    cd ${BUILD_DIR}
33944 fi
33945
33946 if test X"$GCC" = "Xyes" ; then
33947   echo "Doing make of dependencies"
33948   ${MAKE:-make} depend
33949 fi
33950
33951 cd src/qt-console
33952 chmod 755 install_conf_file build-depkgs-qt-console
33953 cd ${BUILD_DIR}
33954
33955 cd scripts
33956 chmod 755 bacula btraceback mtx-changer
33957 chmod 755 dvd-handler dvd-simulator
33958 chmod 755 bconsole disk-changer devel_bacula logrotate
33959 cd ..
33960
33961 c=updatedb
33962 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33963 chmod 755 $c/update_postgresql_tables_10_to_11
33964 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33965 chmod 755 $c/update_postgresql_tables_11_to_12
33966
33967
33968 c=src/cats
33969
33970 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33971 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33972
33973 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33974 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33975
33976 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33977 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33978
33979 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33980 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33981
33982 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33983 chmod 755 $c/sqlite
33984 chmod 755 $c/mysql
33985
33986 chmod 755 $c/install-default-backend
33987
33988 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33989    largefile_support="yes"
33990 fi
33991
33992 if test X"$GCC" = "Xyes" ; then
33993                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33994    if test "x${CCVERSION}" = "x" ; then
33995       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33996    fi
33997    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33998    if test x"${CXXVERSION}" = x ; then
33999       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
34000    fi
34001 fi
34002
34003 # clean up any old junk
34004 echo " "
34005 echo "Cleaning up"
34006 echo " "
34007 ${MAKE:-make} clean
34008
34009 echo "
34010 Configuration on `date`:
34011
34012    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
34013    Bacula version:           ${BACULA} ${VERSION} (${DATE})
34014    Source code location:     ${srcdir}
34015    Install binaries:         ${sbindir}
34016    Install libraries:        ${libdir}
34017    Install config files:     ${sysconfdir}
34018    Scripts directory:        ${scriptdir}
34019    Archive directory:        ${archivedir}
34020    Working directory:        ${working_dir}
34021    PID directory:            ${piddir}
34022    Subsys directory:         ${subsysdir}
34023    Man directory:            ${mandir}
34024    Data directory:           ${datarootdir}
34025    Plugin directory:         ${plugindir}
34026    C Compiler:               ${CC} ${CCVERSION}
34027    C++ Compiler:             ${CXX} ${CXXVERSION}
34028    Compiler flags:           ${WCFLAGS} ${CFLAGS}
34029    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
34030    Libraries:                ${LIBS}
34031    Statically Linked Tools:  ${support_static_tools}
34032    Statically Linked FD:     ${support_static_fd}
34033    Statically Linked SD:     ${support_static_sd}
34034    Statically Linked DIR:    ${support_static_dir}
34035    Statically Linked CONS:   ${support_static_cons}
34036    Database backends:        ${db_backends}
34037    Database port:            ${db_port}
34038    Database name:            ${db_name}
34039    Database user:            ${db_user}
34040    Database SSL options:     ${db_ssl_options}
34041
34042    Job Output Email:         ${job_email}
34043    Traceback Email:          ${dump_email}
34044    SMTP Host Address:        ${smtp_host}
34045
34046    Director Port:            ${dir_port}
34047    File daemon Port:         ${fd_port}
34048    Storage daemon Port:      ${sd_port}
34049
34050    Director User:            ${dir_user}
34051    Director Group:           ${dir_group}
34052    Storage Daemon User:      ${sd_user}
34053    Storage DaemonGroup:      ${sd_group}
34054    File Daemon User:         ${fd_user}
34055    File Daemon Group:        ${fd_group}
34056
34057    Large file support:       $largefile_support
34058    Bacula conio support:     ${got_conio} ${CONS_LIBS}
34059    readline support:         ${got_readline} ${PRTREADLINE_SRC}
34060    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
34061    TLS support:              ${support_tls}
34062    Encryption support:       ${support_crypto}
34063    ZLIB support:             ${have_zlib}
34064    LZO support:              ${have_lzo}
34065    enable-smartalloc:        ${support_smartalloc}
34066    enable-lockmgr:           ${support_lockmgr}
34067    bat support:              ${support_bat}
34068    client-only:              ${build_client_only}
34069    build-dird:               ${build_dird}
34070    build-stored:             ${build_stored}
34071    Plugin support:           ${have_plugins}
34072    AFS support:              ${have_afs}
34073    ACL support:              ${have_acl}
34074    XATTR support:            ${have_xattr}
34075    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
34076    Batch insert enabled:     ${batch_insert_db_backends}
34077
34078   " > config.out
34079
34080 # create a small shell script useful for support with
34081 # configure options and config.out info
34082 cat > scripts/bacula_config << EOF
34083 #!/bin/sh
34084 cat << __EOC__
34085 $ $0 $ac_configure_args
34086 EOF
34087 cat config.out >> scripts/bacula_config
34088 echo __EOC__ >> scripts/bacula_config
34089 chmod 755 scripts/bacula_config
34090
34091 cat config.out