]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile configure
[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 7.2.1.
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='7.2.1'
591 PACKAGE_STRING='bacula 7.2.1'
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 LIBOBJS
657 X_EXTRA_LIBS
658 X_LIBS
659 X_PRE_LIBS
660 X_CFLAGS
661 XMKMF
662 GETCONF
663 SHARED_CATALOG_TARGETS
664 DEFAULT_DB_TYPE
665 DB_LIBS
666 DB_BACKENDS
667 uncomment_dbi
668 SQLITE_BINDIR
669 SQLITE_INCLUDE
670 SQLITE_LIBS
671 MYSQL_BINDIR
672 MYSQL_INCLUDE
673 MYSQL_LIBS
674 POSTGRESQL_BINDIR
675 POSTGRESQL_INCLUDE
676 POSTGRESQL_LIBS
677 SBINPERM
678 fd_group
679 fd_user
680 sd_group
681 sd_user
682 dir_group
683 dir_user
684 db_ssl_options
685 db_port
686 db_password
687 db_user
688 db_name
689 mon_sd_password
690 mon_fd_password
691 mon_dir_password
692 sd_password
693 fd_password
694 dir_password
695 sd_port
696 fd_port
697 dir_port
698 baseport
699 subsysdir
700 piddir
701 smtp_host
702 job_email
703 dump_email
704 plugindir
705 logdir
706 bsrdir
707 scriptdir
708 hostname
709 basename
710 archivedir
711 working_dir
712 OPENSSL_INC
713 OPENSSL_LIBS
714 READLINE_SRC
715 CONS_LDFLAGS
716 CONS_LIBS
717 CONS_SRC
718 CONS_OBJ
719 CONS_INC
720 STORED_DIR
721 DIR_TOOLS
722 DIRD_DIR
723 ALL_DIRS
724 STATIC_CONS
725 STATIC_DIR
726 STATIC_SD
727 STATIC_FD
728 TTOOL_LDFLAGS
729 QWT
730 QWT_LIB
731 QWT_LDFLAGS
732 QWT_INC
733 BAT_DIR
734 INTL_LIBTOOL_SUFFIX_PREFIX
735 INTLOBJS
736 GENCAT
737 INSTOBJEXT
738 DATADIRNAME
739 CATOBJEXT
740 USE_INCLUDED_LIBINTL
741 BUILD_INCLUDED_LIBINTL
742 INTLBISON
743 HAVE_WPRINTF
744 HAVE_SNPRINTF
745 HAVE_ASPRINTF
746 HAVE_POSIX_PRINTF
747 GLIBC21
748 ALLOCA
749 GLIBC2
750 POSUB
751 LTLIBINTL
752 LIBINTL
753 INTLLIBS
754 LTLIBICONV
755 LIBICONV
756 INTL_MACOSX_LIBS
757 MSGMERGE
758 XGETTEXT
759 GMSGFMT
760 MSGFMT
761 USE_NLS
762 MKINSTALLDIRS
763 SET_MAKE
764 HAVE_DARWIN_OS_FALSE
765 HAVE_DARWIN_OS_TRUE
766 HAVE_IRIX_OS_FALSE
767 HAVE_IRIX_OS_TRUE
768 HAVE_SGI_OS_FALSE
769 HAVE_SGI_OS_TRUE
770 HAVE_BSDI_OS_FALSE
771 HAVE_BSDI_OS_TRUE
772 HAVE_OPENBSD_OS_FALSE
773 HAVE_OPENBSD_OS_TRUE
774 HAVE_NETBSD_OS_FALSE
775 HAVE_NETBSD_OS_TRUE
776 HAVE_FREEBSD_OS_FALSE
777 HAVE_FREEBSD_OS_TRUE
778 HAVE_LINUX_OS_FALSE
779 HAVE_LINUX_OS_TRUE
780 HAVE_HPUX_OS_FALSE
781 HAVE_HPUX_OS_TRUE
782 HAVE_AIX_OS_FALSE
783 HAVE_AIX_OS_TRUE
784 HAVE_OSF1_OS_FALSE
785 HAVE_OSF1_OS_TRUE
786 HAVE_HURD_OS_FALSE
787 HAVE_HURD_OS_TRUE
788 HAVE_SUN_OS_FALSE
789 HAVE_SUN_OS_TRUE
790 INCLUDE_UNINSTALL_TARGET
791 INCLUDE_INSTALL_TARGET
792 FD_PLUGIN_DIR
793 QMAKE_LIBTOOL
794 LIBTOOL_CLEAN_TARGET
795 LIBTOOL_UNINSTALL_TARGET
796 LIBTOOL_INSTALL_TARGET
797 DEFAULT_SHARED_OBJECT_TYPE
798 DEFAULT_ARCHIVE_TYPE
799 DEFAULT_OBJECT_TYPE
800 LIBADD_DL
801 LT_DLPREOPEN
802 LIBADD_DLD_LINK
803 LIBADD_SHL_LOAD
804 LIBADD_DLOPEN
805 LT_DLLOADERS
806 CXXCPP
807 OTOOL64
808 OTOOL
809 LIPO
810 NMEDIT
811 DSYMUTIL
812 MANIFEST_TOOL
813 RANLIB
814 STRIP
815 ac_ct_AR
816 DLLTOOL
817 OBJDUMP
818 LN_S
819 NM
820 ac_ct_DUMPBIN
821 DUMPBIN
822 LD
823 FGREP
824 host_os
825 host_vendor
826 host_cpu
827 host
828 build_os
829 build_vendor
830 build_cpu
831 build
832 LIBTOOL
833 LOCAL_DEFS
834 LOCAL_LDFLAGS
835 LOCAL_CFLAGS
836 LOCAL_LIBS
837 MAKE_SHELL
838 ARFLAGS
839 AWK
840 PIDOF
841 GMAKE
842 QMAKE
843 PKGCONFIG
844 DVDRWFORMAT
845 DVDRWMEDIAINFO
846 GROWISOFS
847 PYTHON
848 MKISOFS
849 DD
850 MTX
851 OPENSSL
852 AR
853 TBL
854 CMP
855 ECHO
856 SED
857 CP
858 REMOVE
859 MV
860 INSTALL_DATA
861 INSTALL_SCRIPT
862 INSTALL_PROGRAM
863 EGREP
864 GREP
865 CPP
866 ac_ct_CXX
867 CXXFLAGS
868 CXX
869 OBJEXT
870 EXEEXT
871 ac_ct_CC
872 CPPFLAGS
873 LDFLAGS
874 CFLAGS
875 CC
876 LIBBACFIND_LT_RELEASE
877 LIBBACCATS_LT_RELEASE
878 LIBBACSQL_LT_RELEASE
879 LIBBACCFG_LT_RELEASE
880 LIBBAC_LT_RELEASE
881 BQT4_VERSION
882 DEPKGS_VERSION
883 DEPKGS_QT_VERSION
884 BDB_VERSION
885 post_host
886 BACULA
887 LSMDATE
888 DATE
889 VERSION
890 FALSEPRG
891 TRUEPRG
892 TOP_DIR
893 BUILD_DIR
894 target_alias
895 host_alias
896 build_alias
897 LIBS
898 ECHO_T
899 ECHO_N
900 ECHO_C
901 DEFS
902 mandir
903 localedir
904 libdir
905 psdir
906 pdfdir
907 dvidir
908 htmldir
909 infodir
910 docdir
911 oldincludedir
912 includedir
913 localstatedir
914 sharedstatedir
915 sysconfdir
916 datadir
917 datarootdir
918 libexecdir
919 sbindir
920 bindir
921 program_transform_name
922 prefix
923 exec_prefix
924 PACKAGE_URL
925 PACKAGE_BUGREPORT
926 PACKAGE_STRING
927 PACKAGE_VERSION
928 PACKAGE_TARNAME
929 PACKAGE_NAME
930 PATH_SEPARATOR
931 SHELL'
932 ac_subst_files='MCOMMON'
933 ac_user_opts='
934 enable_option_checking
935 enable_libtool
936 enable_shared
937 enable_static
938 with_pic
939 enable_fast_install
940 with_gnu_ld
941 with_sysroot
942 enable_libtool_lock
943 enable_includes
944 enable_nls
945 enable_rpath
946 with_libiconv_prefix
947 with_libintl_prefix
948 with_included_gettext
949 enable_bat
950 enable_smartalloc
951 enable_lockmgr
952 enable_static_tools
953 enable_static_fd
954 enable_static_sd
955 enable_static_dir
956 enable_static_cons
957 enable_client_only
958 enable_build_dird
959 enable_build_stored
960 enable_conio
961 enable_ipv6
962 enable_readline
963 with_readline
964 with_tcp_wrappers
965 with_openssl
966 with_working_dir
967 with_archivedir
968 with_basename
969 with_hostname
970 with_scriptdir
971 with_bsrdir
972 with_logdir
973 with_plugindir
974 with_dump_email
975 with_job_email
976 with_smtp_host
977 with_pid_dir
978 with_subsys_dir
979 with_baseport
980 with_dir_password
981 with_fd_password
982 with_sd_password
983 with_mon_dir_password
984 with_mon_fd_password
985 with_mon_sd_password
986 with_db_name
987 with_db_user
988 with_db_password
989 with_db_port
990 with_db_ssl_options
991 with_dir_user
992 with_dir_group
993 with_sd_user
994 with_sd_group
995 with_fd_user
996 with_fd_group
997 with_sbin_perm
998 enable_batch_insert
999 with_postgresql
1000 with_mysql
1001 with_embedded_mysql
1002 with_sqlite3
1003 enable_largefile
1004 with_x
1005 enable_afs
1006 with_afsdir
1007 enable_lzo
1008 with_lzo
1009 enable_acl
1010 enable_xattr
1011 with_systemd
1012 '
1013       ac_precious_vars='build_alias
1014 host_alias
1015 target_alias
1016 CC
1017 CFLAGS
1018 LDFLAGS
1019 LIBS
1020 CPPFLAGS
1021 CXX
1022 CXXFLAGS
1023 CCC
1024 CPP
1025 CXXCPP
1026 XMKMF'
1027
1028
1029 # Initialize some variables set by options.
1030 ac_init_help=
1031 ac_init_version=false
1032 ac_unrecognized_opts=
1033 ac_unrecognized_sep=
1034 # The variables have the same names as the options, with
1035 # dashes changed to underlines.
1036 cache_file=/dev/null
1037 exec_prefix=NONE
1038 no_create=
1039 no_recursion=
1040 prefix=NONE
1041 program_prefix=NONE
1042 program_suffix=NONE
1043 program_transform_name=s,x,x,
1044 silent=
1045 site=
1046 srcdir=
1047 verbose=
1048 x_includes=NONE
1049 x_libraries=NONE
1050
1051 # Installation directory options.
1052 # These are left unexpanded so users can "make install exec_prefix=/foo"
1053 # and all the variables that are supposed to be based on exec_prefix
1054 # by default will actually change.
1055 # Use braces instead of parens because sh, perl, etc. also accept them.
1056 # (The list follows the same order as the GNU Coding Standards.)
1057 bindir='${exec_prefix}/bin'
1058 sbindir='${exec_prefix}/sbin'
1059 libexecdir='${exec_prefix}/libexec'
1060 datarootdir='${prefix}/share'
1061 datadir='${datarootdir}'
1062 sysconfdir='${prefix}/etc'
1063 sharedstatedir='${prefix}/com'
1064 localstatedir='${prefix}/var'
1065 includedir='${prefix}/include'
1066 oldincludedir='/usr/include'
1067 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1068 infodir='${datarootdir}/info'
1069 htmldir='${docdir}'
1070 dvidir='${docdir}'
1071 pdfdir='${docdir}'
1072 psdir='${docdir}'
1073 libdir='${exec_prefix}/lib'
1074 localedir='${datarootdir}/locale'
1075 mandir='${datarootdir}/man'
1076
1077 ac_prev=
1078 ac_dashdash=
1079 for ac_option
1080 do
1081   # If the previous option needs an argument, assign it.
1082   if test -n "$ac_prev"; then
1083     eval $ac_prev=\$ac_option
1084     ac_prev=
1085     continue
1086   fi
1087
1088   case $ac_option in
1089   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1090   *=)   ac_optarg= ;;
1091   *)    ac_optarg=yes ;;
1092   esac
1093
1094   # Accept the important Cygnus configure options, so we can diagnose typos.
1095
1096   case $ac_dashdash$ac_option in
1097   --)
1098     ac_dashdash=yes ;;
1099
1100   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1101     ac_prev=bindir ;;
1102   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1103     bindir=$ac_optarg ;;
1104
1105   -build | --build | --buil | --bui | --bu)
1106     ac_prev=build_alias ;;
1107   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1108     build_alias=$ac_optarg ;;
1109
1110   -cache-file | --cache-file | --cache-fil | --cache-fi \
1111   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1112     ac_prev=cache_file ;;
1113   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1114   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1115     cache_file=$ac_optarg ;;
1116
1117   --config-cache | -C)
1118     cache_file=config.cache ;;
1119
1120   -datadir | --datadir | --datadi | --datad)
1121     ac_prev=datadir ;;
1122   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1123     datadir=$ac_optarg ;;
1124
1125   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1126   | --dataroo | --dataro | --datar)
1127     ac_prev=datarootdir ;;
1128   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1129   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1130     datarootdir=$ac_optarg ;;
1131
1132   -disable-* | --disable-*)
1133     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1134     # Reject names that are not valid shell variable names.
1135     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136       as_fn_error $? "invalid feature name: $ac_useropt"
1137     ac_useropt_orig=$ac_useropt
1138     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139     case $ac_user_opts in
1140       *"
1141 "enable_$ac_useropt"
1142 "*) ;;
1143       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1144          ac_unrecognized_sep=', ';;
1145     esac
1146     eval enable_$ac_useropt=no ;;
1147
1148   -docdir | --docdir | --docdi | --doc | --do)
1149     ac_prev=docdir ;;
1150   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1151     docdir=$ac_optarg ;;
1152
1153   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1154     ac_prev=dvidir ;;
1155   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1156     dvidir=$ac_optarg ;;
1157
1158   -enable-* | --enable-*)
1159     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1160     # Reject names that are not valid shell variable names.
1161     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162       as_fn_error $? "invalid feature name: $ac_useropt"
1163     ac_useropt_orig=$ac_useropt
1164     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165     case $ac_user_opts in
1166       *"
1167 "enable_$ac_useropt"
1168 "*) ;;
1169       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1170          ac_unrecognized_sep=', ';;
1171     esac
1172     eval enable_$ac_useropt=\$ac_optarg ;;
1173
1174   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1175   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1176   | --exec | --exe | --ex)
1177     ac_prev=exec_prefix ;;
1178   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1179   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1180   | --exec=* | --exe=* | --ex=*)
1181     exec_prefix=$ac_optarg ;;
1182
1183   -gas | --gas | --ga | --g)
1184     # Obsolete; use --with-gas.
1185     with_gas=yes ;;
1186
1187   -help | --help | --hel | --he | -h)
1188     ac_init_help=long ;;
1189   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1190     ac_init_help=recursive ;;
1191   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1192     ac_init_help=short ;;
1193
1194   -host | --host | --hos | --ho)
1195     ac_prev=host_alias ;;
1196   -host=* | --host=* | --hos=* | --ho=*)
1197     host_alias=$ac_optarg ;;
1198
1199   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1200     ac_prev=htmldir ;;
1201   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1202   | --ht=*)
1203     htmldir=$ac_optarg ;;
1204
1205   -includedir | --includedir | --includedi | --included | --include \
1206   | --includ | --inclu | --incl | --inc)
1207     ac_prev=includedir ;;
1208   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1209   | --includ=* | --inclu=* | --incl=* | --inc=*)
1210     includedir=$ac_optarg ;;
1211
1212   -infodir | --infodir | --infodi | --infod | --info | --inf)
1213     ac_prev=infodir ;;
1214   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1215     infodir=$ac_optarg ;;
1216
1217   -libdir | --libdir | --libdi | --libd)
1218     ac_prev=libdir ;;
1219   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1220     libdir=$ac_optarg ;;
1221
1222   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1223   | --libexe | --libex | --libe)
1224     ac_prev=libexecdir ;;
1225   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1226   | --libexe=* | --libex=* | --libe=*)
1227     libexecdir=$ac_optarg ;;
1228
1229   -localedir | --localedir | --localedi | --localed | --locale)
1230     ac_prev=localedir ;;
1231   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1232     localedir=$ac_optarg ;;
1233
1234   -localstatedir | --localstatedir | --localstatedi | --localstated \
1235   | --localstate | --localstat | --localsta | --localst | --locals)
1236     ac_prev=localstatedir ;;
1237   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1238   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1239     localstatedir=$ac_optarg ;;
1240
1241   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1242     ac_prev=mandir ;;
1243   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1244     mandir=$ac_optarg ;;
1245
1246   -nfp | --nfp | --nf)
1247     # Obsolete; use --without-fp.
1248     with_fp=no ;;
1249
1250   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1251   | --no-cr | --no-c | -n)
1252     no_create=yes ;;
1253
1254   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1255   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1256     no_recursion=yes ;;
1257
1258   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1259   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1260   | --oldin | --oldi | --old | --ol | --o)
1261     ac_prev=oldincludedir ;;
1262   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1263   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1264   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1265     oldincludedir=$ac_optarg ;;
1266
1267   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1268     ac_prev=prefix ;;
1269   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1270     prefix=$ac_optarg ;;
1271
1272   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1273   | --program-pre | --program-pr | --program-p)
1274     ac_prev=program_prefix ;;
1275   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1276   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1277     program_prefix=$ac_optarg ;;
1278
1279   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1280   | --program-suf | --program-su | --program-s)
1281     ac_prev=program_suffix ;;
1282   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1283   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1284     program_suffix=$ac_optarg ;;
1285
1286   -program-transform-name | --program-transform-name \
1287   | --program-transform-nam | --program-transform-na \
1288   | --program-transform-n | --program-transform- \
1289   | --program-transform | --program-transfor \
1290   | --program-transfo | --program-transf \
1291   | --program-trans | --program-tran \
1292   | --progr-tra | --program-tr | --program-t)
1293     ac_prev=program_transform_name ;;
1294   -program-transform-name=* | --program-transform-name=* \
1295   | --program-transform-nam=* | --program-transform-na=* \
1296   | --program-transform-n=* | --program-transform-=* \
1297   | --program-transform=* | --program-transfor=* \
1298   | --program-transfo=* | --program-transf=* \
1299   | --program-trans=* | --program-tran=* \
1300   | --progr-tra=* | --program-tr=* | --program-t=*)
1301     program_transform_name=$ac_optarg ;;
1302
1303   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1304     ac_prev=pdfdir ;;
1305   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1306     pdfdir=$ac_optarg ;;
1307
1308   -psdir | --psdir | --psdi | --psd | --ps)
1309     ac_prev=psdir ;;
1310   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1311     psdir=$ac_optarg ;;
1312
1313   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1314   | -silent | --silent | --silen | --sile | --sil)
1315     silent=yes ;;
1316
1317   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1318     ac_prev=sbindir ;;
1319   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1320   | --sbi=* | --sb=*)
1321     sbindir=$ac_optarg ;;
1322
1323   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1324   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1325   | --sharedst | --shareds | --shared | --share | --shar \
1326   | --sha | --sh)
1327     ac_prev=sharedstatedir ;;
1328   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1329   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1330   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1331   | --sha=* | --sh=*)
1332     sharedstatedir=$ac_optarg ;;
1333
1334   -site | --site | --sit)
1335     ac_prev=site ;;
1336   -site=* | --site=* | --sit=*)
1337     site=$ac_optarg ;;
1338
1339   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1340     ac_prev=srcdir ;;
1341   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1342     srcdir=$ac_optarg ;;
1343
1344   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1345   | --syscon | --sysco | --sysc | --sys | --sy)
1346     ac_prev=sysconfdir ;;
1347   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1348   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1349     sysconfdir=$ac_optarg ;;
1350
1351   -target | --target | --targe | --targ | --tar | --ta | --t)
1352     ac_prev=target_alias ;;
1353   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1354     target_alias=$ac_optarg ;;
1355
1356   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1357     verbose=yes ;;
1358
1359   -version | --version | --versio | --versi | --vers | -V)
1360     ac_init_version=: ;;
1361
1362   -with-* | --with-*)
1363     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1364     # Reject names that are not valid shell variable names.
1365     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366       as_fn_error $? "invalid package name: $ac_useropt"
1367     ac_useropt_orig=$ac_useropt
1368     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369     case $ac_user_opts in
1370       *"
1371 "with_$ac_useropt"
1372 "*) ;;
1373       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1374          ac_unrecognized_sep=', ';;
1375     esac
1376     eval with_$ac_useropt=\$ac_optarg ;;
1377
1378   -without-* | --without-*)
1379     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1380     # Reject names that are not valid shell variable names.
1381     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1382       as_fn_error $? "invalid package name: $ac_useropt"
1383     ac_useropt_orig=$ac_useropt
1384     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1385     case $ac_user_opts in
1386       *"
1387 "with_$ac_useropt"
1388 "*) ;;
1389       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1390          ac_unrecognized_sep=', ';;
1391     esac
1392     eval with_$ac_useropt=no ;;
1393
1394   --x)
1395     # Obsolete; use --with-x.
1396     with_x=yes ;;
1397
1398   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1399   | --x-incl | --x-inc | --x-in | --x-i)
1400     ac_prev=x_includes ;;
1401   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1402   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1403     x_includes=$ac_optarg ;;
1404
1405   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1406   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1407     ac_prev=x_libraries ;;
1408   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1409   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1410     x_libraries=$ac_optarg ;;
1411
1412   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1413 Try \`$0 --help' for more information"
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     case $ac_envvar in #(
1420       '' | [0-9]* | *[!_$as_cr_alnum]* )
1421       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1422     esac
1423     eval $ac_envvar=\$ac_optarg
1424     export $ac_envvar ;;
1425
1426   *)
1427     # FIXME: should be removed in autoconf 3.0.
1428     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1429     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1430       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1431     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1432     ;;
1433
1434   esac
1435 done
1436
1437 if test -n "$ac_prev"; then
1438   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1439   as_fn_error $? "missing argument to $ac_option"
1440 fi
1441
1442 if test -n "$ac_unrecognized_opts"; then
1443   case $enable_option_checking in
1444     no) ;;
1445     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1446     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1447   esac
1448 fi
1449
1450 # Check all directory arguments for consistency.
1451 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1452                 datadir sysconfdir sharedstatedir localstatedir includedir \
1453                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1454                 libdir localedir mandir
1455 do
1456   eval ac_val=\$$ac_var
1457   # Remove trailing slashes.
1458   case $ac_val in
1459     */ )
1460       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1461       eval $ac_var=\$ac_val;;
1462   esac
1463   # Be sure to have absolute directory names.
1464   case $ac_val in
1465     [\\/$]* | ?:[\\/]* )  continue;;
1466     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1467   esac
1468   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1469 done
1470
1471 # There might be people who depend on the old broken behavior: `$host'
1472 # used to hold the argument of --host etc.
1473 # FIXME: To remove some day.
1474 build=$build_alias
1475 host=$host_alias
1476 target=$target_alias
1477
1478 # FIXME: To remove some day.
1479 if test "x$host_alias" != x; then
1480   if test "x$build_alias" = x; then
1481     cross_compiling=maybe
1482   elif test "x$build_alias" != "x$host_alias"; then
1483     cross_compiling=yes
1484   fi
1485 fi
1486
1487 ac_tool_prefix=
1488 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1489
1490 test "$silent" = yes && exec 6>/dev/null
1491
1492
1493 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1494 ac_ls_di=`ls -di .` &&
1495 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1496   as_fn_error $? "working directory cannot be determined"
1497 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1498   as_fn_error $? "pwd does not report name of working directory"
1499
1500
1501 # Find the source files, if location was not specified.
1502 if test -z "$srcdir"; then
1503   ac_srcdir_defaulted=yes
1504   # Try the directory containing this script, then the parent directory.
1505   ac_confdir=`$as_dirname -- "$as_myself" ||
1506 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1507          X"$as_myself" : 'X\(//\)[^/]' \| \
1508          X"$as_myself" : 'X\(//\)$' \| \
1509          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1510 $as_echo X"$as_myself" |
1511     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1512             s//\1/
1513             q
1514           }
1515           /^X\(\/\/\)[^/].*/{
1516             s//\1/
1517             q
1518           }
1519           /^X\(\/\/\)$/{
1520             s//\1/
1521             q
1522           }
1523           /^X\(\/\).*/{
1524             s//\1/
1525             q
1526           }
1527           s/.*/./; q'`
1528   srcdir=$ac_confdir
1529   if test ! -r "$srcdir/$ac_unique_file"; then
1530     srcdir=..
1531   fi
1532 else
1533   ac_srcdir_defaulted=no
1534 fi
1535 if test ! -r "$srcdir/$ac_unique_file"; then
1536   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1537   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1538 fi
1539 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1540 ac_abs_confdir=`(
1541         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1542         pwd)`
1543 # When building in place, set srcdir=.
1544 if test "$ac_abs_confdir" = "$ac_pwd"; then
1545   srcdir=.
1546 fi
1547 # Remove unnecessary trailing slashes from srcdir.
1548 # Double slashes in file names in object file debugging info
1549 # mess up M-x gdb in Emacs.
1550 case $srcdir in
1551 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1552 esac
1553 for ac_var in $ac_precious_vars; do
1554   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1555   eval ac_env_${ac_var}_value=\$${ac_var}
1556   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1557   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1558 done
1559
1560 #
1561 # Report the --help message.
1562 #
1563 if test "$ac_init_help" = "long"; then
1564   # Omit some internal or obsolete options to make the list less imposing.
1565   # This message is too long to be a string in the A/UX 3.1 sh.
1566   cat <<_ACEOF
1567 \`configure' configures bacula 7.2.1 to adapt to many kinds of systems.
1568
1569 Usage: $0 [OPTION]... [VAR=VALUE]...
1570
1571 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1572 VAR=VALUE.  See below for descriptions of some of the useful variables.
1573
1574 Defaults for the options are specified in brackets.
1575
1576 Configuration:
1577   -h, --help              display this help and exit
1578       --help=short        display options specific to this package
1579       --help=recursive    display the short help of all the included packages
1580   -V, --version           display version information and exit
1581   -q, --quiet, --silent   do not print \`checking ...' messages
1582       --cache-file=FILE   cache test results in FILE [disabled]
1583   -C, --config-cache      alias for \`--cache-file=config.cache'
1584   -n, --no-create         do not create output files
1585       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1586
1587 Installation directories:
1588   --prefix=PREFIX         install architecture-independent files in PREFIX
1589                           [$ac_default_prefix]
1590   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1591                           [PREFIX]
1592
1593 By default, \`make install' will install all the files in
1594 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1595 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1596 for instance \`--prefix=\$HOME'.
1597
1598 For better control, use the options below.
1599
1600 Fine tuning of the installation directories:
1601   --bindir=DIR            user executables [EPREFIX/bin]
1602   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1603   --libexecdir=DIR        program executables [EPREFIX/libexec]
1604   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1605   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1606   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1607   --libdir=DIR            object code libraries [EPREFIX/lib]
1608   --includedir=DIR        C header files [PREFIX/include]
1609   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1610   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1611   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1612   --infodir=DIR           info documentation [DATAROOTDIR/info]
1613   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1614   --mandir=DIR            man documentation [DATAROOTDIR/man]
1615   --docdir=DIR            documentation root [DATAROOTDIR/doc/bacula]
1616   --htmldir=DIR           html documentation [DOCDIR]
1617   --dvidir=DIR            dvi documentation [DOCDIR]
1618   --pdfdir=DIR            pdf documentation [DOCDIR]
1619   --psdir=DIR             ps documentation [DOCDIR]
1620 _ACEOF
1621
1622   cat <<\_ACEOF
1623
1624 X features:
1625   --x-includes=DIR    X include files are in DIR
1626   --x-libraries=DIR   X library files are in DIR
1627
1628 System types:
1629   --build=BUILD     configure for building on BUILD [guessed]
1630   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1631 _ACEOF
1632 fi
1633
1634 if test -n "$ac_init_help"; then
1635   case $ac_init_help in
1636      short | recursive ) echo "Configuration of bacula 7.2.1:";;
1637    esac
1638   cat <<\_ACEOF
1639
1640 Optional Features:
1641   --disable-option-checking  ignore unrecognized --enable/--with options
1642   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1643   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1644   --enable-libtool        enable building using GNU libtool [default=yes]
1645   --enable-shared[=PKGS]  build shared libraries [default=yes]
1646   --enable-static[=PKGS]  build static libraries [default=no]
1647   --enable-fast-install[=PKGS]
1648                           optimize for fast installation [default=yes]
1649   --disable-libtool-lock  avoid locking (might break parallel builds)
1650   --enable-includes       enable installing of include files [default=no]
1651   --disable-nls           do not use Native Language Support
1652   --disable-rpath         do not hardcode runtime library paths
1653   --enable-bat            enable build of bat Qt4 GUI [default=no]
1654   --enable-smartalloc     enable smartalloc debugging support [default=no]
1655   --enable-lockmgr        enable lock manager support [default=no]
1656   --enable-static-tools   enable static tape tools [default=no]
1657   --enable-static-fd      enable static File daemon [default=no]
1658   --enable-static-sd      enable static Storage daemon [default=no]
1659   --enable-static-dir     enable static Director [default=no]
1660   --enable-static-cons    enable static Console [default=no]
1661   --enable-client-only    build client (File daemon) only [default=no]
1662   --enable-build-dird     enable building of dird (Director) [default=yes]
1663   --enable-build-stored   enable building of stored (Storage daemon)
1664                           [default=yes]
1665   --disable-conio         disable conio support [default=no]
1666   --enable-ipv6           enable ipv6 support [default=yes]
1667   --disable-readline      disable readline support [default=yes]
1668   --enable-batch-insert   enable the DB batch insert code [default=yes]
1669   --disable-largefile     omit support for large files
1670   --disable-afs           disable afs support [default=auto]
1671   --disable-lzo           disable lzo support [default=yes]
1672   --disable-acl           disable acl support [default=auto]
1673   --disable-xattr         disable xattr support [default=auto]
1674
1675 Optional Packages:
1676   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1677   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1678   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1679                           both]
1680   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1681   --with-sysroot=DIR Search for dependent libraries within DIR
1682                         (or the compiler's sysroot if not specified).
1683   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1684   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1685   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1686   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1687   --without-libintl-prefix     don't search for libintl in includedir and libdir
1688   --with-included-gettext use the GNU gettext library included here
1689   --with-readline[=DIR]   specify readline library directory
1690   --with-tcp-wrappers[=DIR]
1691                           enable tcpwrappers support
1692   --with-openssl[=DIR]    Include OpenSSL support. DIR is the OpenSSL base
1693   --with-working-dir=PATH specify path of Bacula working directory
1694   --with-archivedir=PATH  specify path of SD archive directory
1695   --with-basename=RESNAME specify base resource name for daemons
1696   --with-hostname=RESNAME specify host name for daemons
1697   --with-scriptdir=PATH   specify path of Bacula scripts directory
1698   --with-bsrdir=PATH      specify path of Bacula bsrs directory
1699   --with-logdir=PATH      specify path of Bacula logs directory
1700   --with-plugindir=PATH   specify path of Bacula plugins directory
1701   --with-dump-email=EMAIL dump email address
1702   --with-job-email=EMAIL  job output email address
1703   --with-smtp-host=HOST   SMTP mail host address
1704   --with-pid-dir=PATH     specify location of Bacula pid files
1705   --with-subsys-dir=PATH  specify location of Bacula subsys file
1706   --with-baseport=PORT    specify base port address for daemons
1707   --with-dir-password=PASSWORD
1708                           specify Director's password
1709   --with-fd-password=PASSWORD
1710                           specify Client's password
1711   --with-sd-password=PASSWORD
1712                           specify Storage daemon's password
1713   --with-mon-dir-password=PASSWORD
1714                           specify Director's password used by the monitor
1715   --with-mon-fd-password=PASSWORD
1716                           specify Client's password used by the monitor
1717   --with-mon-sd-password=PASSWORD
1718                           specify Storage daemon's password used by the
1719                           monitor
1720   --with-db-name=DBNAME   specify database name [default=bacula]
1721   --with-db-user=UNAME    specify database user [default=bacula]
1722   --with-db-password=PWD  specify database password [default=*none*]
1723   --with-db-port=DBPORT   specify a database port [default=null]
1724   --with-db-ssl-options=DBSSLOPTIONS
1725                           specify SSL options for database user connection
1726                           [default=null]
1727   --with-dir-user=USER    specify user for Director daemon
1728   --with-dir-group=GROUP  specify group for Director daemon
1729   --with-sd-user=USER     specify user for Storage daemon
1730   --with-sd-group=GROUP   specify group for Storage daemon
1731   --with-fd-user=USER     specify user for File daemon
1732   --with-fd-group=GROUP   specify group for File daemon
1733   --with-sbin-perm=MODE   specify permissions for sbin binaries [default=0750]
1734   --with-postgresql[=DIR] Include PostgreSQL support. DIR is the PostgreSQL
1735                           base install directory, [default=/usr/local/pgsql]
1736   --with-mysql[=DIR]      Include MySQL support. DIR is the MySQL base install
1737                           directory, default is to search through a number of
1738                           common places for the MySQL files.
1739   --with-embedded-mysql[=DIR]
1740                           Include MySQL support. DIR is the MySQL base install
1741                           directory, default is to search through a number of
1742                           common places for the MySQL files.
1743   --with-sqlite3[=DIR]    Include SQLite3 support. DIR is the SQLite3 base
1744                           install directory, default is to search through a
1745                           number of common places for the SQLite3 files.
1746   --with-x                use the X Window System
1747   --with-afsdir[=DIR]     Directory holding AFS includes/libs
1748   --with-lzo[=DIR]        specify lzo library directory
1749   --with-systemd[=UNITDIR]
1750                           Include systemd support. UNITDIR is where systemd
1751                           system .service files are located, default is to ask
1752                           systemctl.
1753
1754 Some influential environment variables:
1755   CC          C compiler command
1756   CFLAGS      C compiler flags
1757   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1758               nonstandard directory <lib dir>
1759   LIBS        libraries to pass to the linker, e.g. -l<library>
1760   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1761               you have headers in a nonstandard directory <include dir>
1762   CXX         C++ compiler command
1763   CXXFLAGS    C++ compiler flags
1764   CPP         C preprocessor
1765   CXXCPP      C++ preprocessor
1766   XMKMF       Path to xmkmf, Makefile generator for X Window System
1767
1768 Use these variables to override the choices made by `configure' or to help
1769 it to find libraries and programs with nonstandard names/locations.
1770
1771 Report bugs to the package provider.
1772 _ACEOF
1773 ac_status=$?
1774 fi
1775
1776 if test "$ac_init_help" = "recursive"; then
1777   # If there are subdirs, report their specific --help.
1778   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1779     test -d "$ac_dir" ||
1780       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1781       continue
1782     ac_builddir=.
1783
1784 case "$ac_dir" in
1785 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1786 *)
1787   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1788   # A ".." for each directory in $ac_dir_suffix.
1789   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1790   case $ac_top_builddir_sub in
1791   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1792   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1793   esac ;;
1794 esac
1795 ac_abs_top_builddir=$ac_pwd
1796 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1797 # for backward compatibility:
1798 ac_top_builddir=$ac_top_build_prefix
1799
1800 case $srcdir in
1801   .)  # We are building in place.
1802     ac_srcdir=.
1803     ac_top_srcdir=$ac_top_builddir_sub
1804     ac_abs_top_srcdir=$ac_pwd ;;
1805   [\\/]* | ?:[\\/]* )  # Absolute name.
1806     ac_srcdir=$srcdir$ac_dir_suffix;
1807     ac_top_srcdir=$srcdir
1808     ac_abs_top_srcdir=$srcdir ;;
1809   *) # Relative name.
1810     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1811     ac_top_srcdir=$ac_top_build_prefix$srcdir
1812     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1813 esac
1814 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1815
1816     cd "$ac_dir" || { ac_status=$?; continue; }
1817     # Check for guested configure.
1818     if test -f "$ac_srcdir/configure.gnu"; then
1819       echo &&
1820       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1821     elif test -f "$ac_srcdir/configure"; then
1822       echo &&
1823       $SHELL "$ac_srcdir/configure" --help=recursive
1824     else
1825       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1826     fi || ac_status=$?
1827     cd "$ac_pwd" || { ac_status=$?; break; }
1828   done
1829 fi
1830
1831 test -n "$ac_init_help" && exit $ac_status
1832 if $ac_init_version; then
1833   cat <<\_ACEOF
1834 bacula configure 7.2.1
1835 generated by GNU Autoconf 2.69
1836
1837 Copyright (C) 2012 Free Software Foundation, Inc.
1838 This configure script is free software; the Free Software Foundation
1839 gives unlimited permission to copy, distribute and modify it.
1840 _ACEOF
1841   exit
1842 fi
1843
1844 ## ------------------------ ##
1845 ## Autoconf initialization. ##
1846 ## ------------------------ ##
1847
1848 # ac_fn_c_try_compile LINENO
1849 # --------------------------
1850 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1851 ac_fn_c_try_compile ()
1852 {
1853   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854   rm -f conftest.$ac_objext
1855   if { { ac_try="$ac_compile"
1856 case "(($ac_try" in
1857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1858   *) ac_try_echo=$ac_try;;
1859 esac
1860 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1861 $as_echo "$ac_try_echo"; } >&5
1862   (eval "$ac_compile") 2>conftest.err
1863   ac_status=$?
1864   if test -s conftest.err; then
1865     grep -v '^ *+' conftest.err >conftest.er1
1866     cat conftest.er1 >&5
1867     mv -f conftest.er1 conftest.err
1868   fi
1869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1870   test $ac_status = 0; } && {
1871          test -z "$ac_c_werror_flag" ||
1872          test ! -s conftest.err
1873        } && test -s conftest.$ac_objext; then :
1874   ac_retval=0
1875 else
1876   $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1878
1879         ac_retval=1
1880 fi
1881   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882   as_fn_set_status $ac_retval
1883
1884 } # ac_fn_c_try_compile
1885
1886 # ac_fn_cxx_try_compile LINENO
1887 # ----------------------------
1888 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1889 ac_fn_cxx_try_compile ()
1890 {
1891   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1892   rm -f conftest.$ac_objext
1893   if { { ac_try="$ac_compile"
1894 case "(($ac_try" in
1895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896   *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900   (eval "$ac_compile") 2>conftest.err
1901   ac_status=$?
1902   if test -s conftest.err; then
1903     grep -v '^ *+' conftest.err >conftest.er1
1904     cat conftest.er1 >&5
1905     mv -f conftest.er1 conftest.err
1906   fi
1907   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1908   test $ac_status = 0; } && {
1909          test -z "$ac_cxx_werror_flag" ||
1910          test ! -s conftest.err
1911        } && test -s conftest.$ac_objext; then :
1912   ac_retval=0
1913 else
1914   $as_echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1916
1917         ac_retval=1
1918 fi
1919   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920   as_fn_set_status $ac_retval
1921
1922 } # ac_fn_cxx_try_compile
1923
1924 # ac_fn_c_try_cpp LINENO
1925 # ----------------------
1926 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1927 ac_fn_c_try_cpp ()
1928 {
1929   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1930   if { { ac_try="$ac_cpp conftest.$ac_ext"
1931 case "(($ac_try" in
1932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1933   *) ac_try_echo=$ac_try;;
1934 esac
1935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1938   ac_status=$?
1939   if test -s conftest.err; then
1940     grep -v '^ *+' conftest.err >conftest.er1
1941     cat conftest.er1 >&5
1942     mv -f conftest.er1 conftest.err
1943   fi
1944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945   test $ac_status = 0; } > conftest.i && {
1946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1947          test ! -s conftest.err
1948        }; then :
1949   ac_retval=0
1950 else
1951   $as_echo "$as_me: failed program was:" >&5
1952 sed 's/^/| /' conftest.$ac_ext >&5
1953
1954     ac_retval=1
1955 fi
1956   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957   as_fn_set_status $ac_retval
1958
1959 } # ac_fn_c_try_cpp
1960
1961 # ac_fn_c_try_link LINENO
1962 # -----------------------
1963 # Try to link conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_c_try_link ()
1965 {
1966   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967   rm -f conftest.$ac_objext conftest$ac_exeext
1968   if { { ac_try="$ac_link"
1969 case "(($ac_try" in
1970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1971   *) ac_try_echo=$ac_try;;
1972 esac
1973 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1974 $as_echo "$ac_try_echo"; } >&5
1975   (eval "$ac_link") 2>conftest.err
1976   ac_status=$?
1977   if test -s conftest.err; then
1978     grep -v '^ *+' conftest.err >conftest.er1
1979     cat conftest.er1 >&5
1980     mv -f conftest.er1 conftest.err
1981   fi
1982   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1983   test $ac_status = 0; } && {
1984          test -z "$ac_c_werror_flag" ||
1985          test ! -s conftest.err
1986        } && test -s conftest$ac_exeext && {
1987          test "$cross_compiling" = yes ||
1988          test -x conftest$ac_exeext
1989        }; then :
1990   ac_retval=0
1991 else
1992   $as_echo "$as_me: failed program was:" >&5
1993 sed 's/^/| /' conftest.$ac_ext >&5
1994
1995         ac_retval=1
1996 fi
1997   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1998   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1999   # interfere with the next link command; also delete a directory that is
2000   # left behind by Apple's compiler.  We do this before executing the actions.
2001   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2002   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2003   as_fn_set_status $ac_retval
2004
2005 } # ac_fn_c_try_link
2006
2007 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2008 # -------------------------------------------------------
2009 # Tests whether HEADER exists and can be compiled using the include files in
2010 # INCLUDES, setting the cache variable VAR accordingly.
2011 ac_fn_c_check_header_compile ()
2012 {
2013   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2014   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2015 $as_echo_n "checking for $2... " >&6; }
2016 if eval \${$3+:} false; then :
2017   $as_echo_n "(cached) " >&6
2018 else
2019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2020 /* end confdefs.h.  */
2021 $4
2022 #include <$2>
2023 _ACEOF
2024 if ac_fn_c_try_compile "$LINENO"; then :
2025   eval "$3=yes"
2026 else
2027   eval "$3=no"
2028 fi
2029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2030 fi
2031 eval ac_res=\$$3
2032                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2033 $as_echo "$ac_res" >&6; }
2034   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2035
2036 } # ac_fn_c_check_header_compile
2037
2038 # ac_fn_c_try_run LINENO
2039 # ----------------------
2040 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2041 # that executables *can* be run.
2042 ac_fn_c_try_run ()
2043 {
2044   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045   if { { ac_try="$ac_link"
2046 case "(($ac_try" in
2047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048   *) ac_try_echo=$ac_try;;
2049 esac
2050 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051 $as_echo "$ac_try_echo"; } >&5
2052   (eval "$ac_link") 2>&5
2053   ac_status=$?
2054   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2055   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2056   { { case "(($ac_try" in
2057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2058   *) ac_try_echo=$ac_try;;
2059 esac
2060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2061 $as_echo "$ac_try_echo"; } >&5
2062   (eval "$ac_try") 2>&5
2063   ac_status=$?
2064   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2065   test $ac_status = 0; }; }; then :
2066   ac_retval=0
2067 else
2068   $as_echo "$as_me: program exited with status $ac_status" >&5
2069        $as_echo "$as_me: failed program was:" >&5
2070 sed 's/^/| /' conftest.$ac_ext >&5
2071
2072        ac_retval=$ac_status
2073 fi
2074   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2075   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076   as_fn_set_status $ac_retval
2077
2078 } # ac_fn_c_try_run
2079
2080 # ac_fn_c_check_func LINENO FUNC VAR
2081 # ----------------------------------
2082 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2083 ac_fn_c_check_func ()
2084 {
2085   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087 $as_echo_n "checking for $2... " >&6; }
2088 if eval \${$3+:} false; then :
2089   $as_echo_n "(cached) " >&6
2090 else
2091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2092 /* end confdefs.h.  */
2093 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2094    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2095 #define $2 innocuous_$2
2096
2097 /* System header to define __stub macros and hopefully few prototypes,
2098     which can conflict with char $2 (); below.
2099     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2100     <limits.h> exists even on freestanding compilers.  */
2101
2102 #ifdef __STDC__
2103 # include <limits.h>
2104 #else
2105 # include <assert.h>
2106 #endif
2107
2108 #undef $2
2109
2110 /* Override any GCC internal prototype to avoid an error.
2111    Use char because int might match the return type of a GCC
2112    builtin and then its argument prototype would still apply.  */
2113 #ifdef __cplusplus
2114 extern "C"
2115 #endif
2116 char $2 ();
2117 /* The GNU C library defines this for functions which it implements
2118     to always fail with ENOSYS.  Some functions are actually named
2119     something starting with __ and the normal name is an alias.  */
2120 #if defined __stub_$2 || defined __stub___$2
2121 choke me
2122 #endif
2123
2124 int
2125 main ()
2126 {
2127 return $2 ();
2128   ;
2129   return 0;
2130 }
2131 _ACEOF
2132 if ac_fn_c_try_link "$LINENO"; then :
2133   eval "$3=yes"
2134 else
2135   eval "$3=no"
2136 fi
2137 rm -f core conftest.err conftest.$ac_objext \
2138     conftest$ac_exeext conftest.$ac_ext
2139 fi
2140 eval ac_res=\$$3
2141                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2144
2145 } # ac_fn_c_check_func
2146
2147 # ac_fn_cxx_try_cpp LINENO
2148 # ------------------------
2149 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2150 ac_fn_cxx_try_cpp ()
2151 {
2152   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153   if { { ac_try="$ac_cpp conftest.$ac_ext"
2154 case "(($ac_try" in
2155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156   *) ac_try_echo=$ac_try;;
2157 esac
2158 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2159 $as_echo "$ac_try_echo"; } >&5
2160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2161   ac_status=$?
2162   if test -s conftest.err; then
2163     grep -v '^ *+' conftest.err >conftest.er1
2164     cat conftest.er1 >&5
2165     mv -f conftest.er1 conftest.err
2166   fi
2167   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2168   test $ac_status = 0; } > conftest.i && {
2169          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2170          test ! -s conftest.err
2171        }; then :
2172   ac_retval=0
2173 else
2174   $as_echo "$as_me: failed program was:" >&5
2175 sed 's/^/| /' conftest.$ac_ext >&5
2176
2177     ac_retval=1
2178 fi
2179   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180   as_fn_set_status $ac_retval
2181
2182 } # ac_fn_cxx_try_cpp
2183
2184 # ac_fn_cxx_try_link LINENO
2185 # -------------------------
2186 # Try to link conftest.$ac_ext, and return whether this succeeded.
2187 ac_fn_cxx_try_link ()
2188 {
2189   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190   rm -f conftest.$ac_objext conftest$ac_exeext
2191   if { { ac_try="$ac_link"
2192 case "(($ac_try" in
2193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194   *) ac_try_echo=$ac_try;;
2195 esac
2196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197 $as_echo "$ac_try_echo"; } >&5
2198   (eval "$ac_link") 2>conftest.err
2199   ac_status=$?
2200   if test -s conftest.err; then
2201     grep -v '^ *+' conftest.err >conftest.er1
2202     cat conftest.er1 >&5
2203     mv -f conftest.er1 conftest.err
2204   fi
2205   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206   test $ac_status = 0; } && {
2207          test -z "$ac_cxx_werror_flag" ||
2208          test ! -s conftest.err
2209        } && test -s conftest$ac_exeext && {
2210          test "$cross_compiling" = yes ||
2211          test -x conftest$ac_exeext
2212        }; then :
2213   ac_retval=0
2214 else
2215   $as_echo "$as_me: failed program was:" >&5
2216 sed 's/^/| /' conftest.$ac_ext >&5
2217
2218         ac_retval=1
2219 fi
2220   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2221   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2222   # interfere with the next link command; also delete a directory that is
2223   # left behind by Apple's compiler.  We do this before executing the actions.
2224   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2225   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226   as_fn_set_status $ac_retval
2227
2228 } # ac_fn_cxx_try_link
2229
2230 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2231 # ---------------------------------------------
2232 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2233 # accordingly.
2234 ac_fn_c_check_decl ()
2235 {
2236   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2237   as_decl_name=`echo $2|sed 's/ *(.*//'`
2238   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2239   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2240 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2241 if eval \${$3+:} false; then :
2242   $as_echo_n "(cached) " >&6
2243 else
2244   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2245 /* end confdefs.h.  */
2246 $4
2247 int
2248 main ()
2249 {
2250 #ifndef $as_decl_name
2251 #ifdef __cplusplus
2252   (void) $as_decl_use;
2253 #else
2254   (void) $as_decl_name;
2255 #endif
2256 #endif
2257
2258   ;
2259   return 0;
2260 }
2261 _ACEOF
2262 if ac_fn_c_try_compile "$LINENO"; then :
2263   eval "$3=yes"
2264 else
2265   eval "$3=no"
2266 fi
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2268 fi
2269 eval ac_res=\$$3
2270                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2273
2274 } # ac_fn_c_check_decl
2275
2276 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2277 # -------------------------------------------
2278 # Tests whether TYPE exists after having included INCLUDES, setting cache
2279 # variable VAR accordingly.
2280 ac_fn_c_check_type ()
2281 {
2282   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2283   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2284 $as_echo_n "checking for $2... " >&6; }
2285 if eval \${$3+:} false; then :
2286   $as_echo_n "(cached) " >&6
2287 else
2288   eval "$3=no"
2289   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2290 /* end confdefs.h.  */
2291 $4
2292 int
2293 main ()
2294 {
2295 if (sizeof ($2))
2296          return 0;
2297   ;
2298   return 0;
2299 }
2300 _ACEOF
2301 if ac_fn_c_try_compile "$LINENO"; then :
2302   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2303 /* end confdefs.h.  */
2304 $4
2305 int
2306 main ()
2307 {
2308 if (sizeof (($2)))
2309             return 0;
2310   ;
2311   return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315
2316 else
2317   eval "$3=yes"
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 fi
2321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2322 fi
2323 eval ac_res=\$$3
2324                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2325 $as_echo "$ac_res" >&6; }
2326   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2327
2328 } # ac_fn_c_check_type
2329
2330 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2331 # -------------------------------------------------------
2332 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2333 # the include files in INCLUDES and setting the cache variable VAR
2334 # accordingly.
2335 ac_fn_c_check_header_mongrel ()
2336 {
2337   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2338   if eval \${$3+:} false; then :
2339   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2340 $as_echo_n "checking for $2... " >&6; }
2341 if eval \${$3+:} false; then :
2342   $as_echo_n "(cached) " >&6
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 else
2348   # Is the header compilable?
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2350 $as_echo_n "checking $2 usability... " >&6; }
2351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2352 /* end confdefs.h.  */
2353 $4
2354 #include <$2>
2355 _ACEOF
2356 if ac_fn_c_try_compile "$LINENO"; then :
2357   ac_header_compiler=yes
2358 else
2359   ac_header_compiler=no
2360 fi
2361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2363 $as_echo "$ac_header_compiler" >&6; }
2364
2365 # Is the header present?
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2367 $as_echo_n "checking $2 presence... " >&6; }
2368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 #include <$2>
2371 _ACEOF
2372 if ac_fn_c_try_cpp "$LINENO"; then :
2373   ac_header_preproc=yes
2374 else
2375   ac_header_preproc=no
2376 fi
2377 rm -f conftest.err conftest.i conftest.$ac_ext
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2379 $as_echo "$ac_header_preproc" >&6; }
2380
2381 # So?  What about this header?
2382 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2383   yes:no: )
2384     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2385 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2386     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2387 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2388     ;;
2389   no:yes:* )
2390     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2391 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2392     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2393 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2394     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2395 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2396     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2397 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2398     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2399 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2400     ;;
2401 esac
2402   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2403 $as_echo_n "checking for $2... " >&6; }
2404 if eval \${$3+:} false; then :
2405   $as_echo_n "(cached) " >&6
2406 else
2407   eval "$3=\$ac_header_compiler"
2408 fi
2409 eval ac_res=\$$3
2410                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2411 $as_echo "$ac_res" >&6; }
2412 fi
2413   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2414
2415 } # ac_fn_c_check_header_mongrel
2416
2417 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2418 # --------------------------------------------
2419 # Tries to find the compile-time value of EXPR in a program that includes
2420 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2421 # computed
2422 ac_fn_c_compute_int ()
2423 {
2424   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2425   if test "$cross_compiling" = yes; then
2426     # Depending upon the size, compute the lo and hi bounds.
2427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2428 /* end confdefs.h.  */
2429 $4
2430 int
2431 main ()
2432 {
2433 static int test_array [1 - 2 * !(($2) >= 0)];
2434 test_array [0] = 0;
2435 return test_array [0];
2436
2437   ;
2438   return 0;
2439 }
2440 _ACEOF
2441 if ac_fn_c_try_compile "$LINENO"; then :
2442   ac_lo=0 ac_mid=0
2443   while :; do
2444     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2445 /* end confdefs.h.  */
2446 $4
2447 int
2448 main ()
2449 {
2450 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2451 test_array [0] = 0;
2452 return test_array [0];
2453
2454   ;
2455   return 0;
2456 }
2457 _ACEOF
2458 if ac_fn_c_try_compile "$LINENO"; then :
2459   ac_hi=$ac_mid; break
2460 else
2461   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2462                         if test $ac_lo -le $ac_mid; then
2463                           ac_lo= ac_hi=
2464                           break
2465                         fi
2466                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2467 fi
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469   done
2470 else
2471   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2472 /* end confdefs.h.  */
2473 $4
2474 int
2475 main ()
2476 {
2477 static int test_array [1 - 2 * !(($2) < 0)];
2478 test_array [0] = 0;
2479 return test_array [0];
2480
2481   ;
2482   return 0;
2483 }
2484 _ACEOF
2485 if ac_fn_c_try_compile "$LINENO"; then :
2486   ac_hi=-1 ac_mid=-1
2487   while :; do
2488     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2489 /* end confdefs.h.  */
2490 $4
2491 int
2492 main ()
2493 {
2494 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2495 test_array [0] = 0;
2496 return test_array [0];
2497
2498   ;
2499   return 0;
2500 }
2501 _ACEOF
2502 if ac_fn_c_try_compile "$LINENO"; then :
2503   ac_lo=$ac_mid; break
2504 else
2505   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2506                         if test $ac_mid -le $ac_hi; then
2507                           ac_lo= ac_hi=
2508                           break
2509                         fi
2510                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2511 fi
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513   done
2514 else
2515   ac_lo= ac_hi=
2516 fi
2517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2518 fi
2519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2520 # Binary search between lo and hi bounds.
2521 while test "x$ac_lo" != "x$ac_hi"; do
2522   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2523   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2524 /* end confdefs.h.  */
2525 $4
2526 int
2527 main ()
2528 {
2529 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2530 test_array [0] = 0;
2531 return test_array [0];
2532
2533   ;
2534   return 0;
2535 }
2536 _ACEOF
2537 if ac_fn_c_try_compile "$LINENO"; then :
2538   ac_hi=$ac_mid
2539 else
2540   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2541 fi
2542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2543 done
2544 case $ac_lo in #((
2545 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2546 '') ac_retval=1 ;;
2547 esac
2548   else
2549     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550 /* end confdefs.h.  */
2551 $4
2552 static long int longval () { return $2; }
2553 static unsigned long int ulongval () { return $2; }
2554 #include <stdio.h>
2555 #include <stdlib.h>
2556 int
2557 main ()
2558 {
2559
2560   FILE *f = fopen ("conftest.val", "w");
2561   if (! f)
2562     return 1;
2563   if (($2) < 0)
2564     {
2565       long int i = longval ();
2566       if (i != ($2))
2567         return 1;
2568       fprintf (f, "%ld", i);
2569     }
2570   else
2571     {
2572       unsigned long int i = ulongval ();
2573       if (i != ($2))
2574         return 1;
2575       fprintf (f, "%lu", i);
2576     }
2577   /* Do not output a trailing newline, as this causes \r\n confusion
2578      on some platforms.  */
2579   return ferror (f) || fclose (f) != 0;
2580
2581   ;
2582   return 0;
2583 }
2584 _ACEOF
2585 if ac_fn_c_try_run "$LINENO"; then :
2586   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2587 else
2588   ac_retval=1
2589 fi
2590 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2591   conftest.$ac_objext conftest.beam conftest.$ac_ext
2592 rm -f conftest.val
2593
2594   fi
2595   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2596   as_fn_set_status $ac_retval
2597
2598 } # ac_fn_c_compute_int
2599
2600 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2601 # ----------------------------------------------------
2602 # Tries to find if the field MEMBER exists in type AGGR, after including
2603 # INCLUDES, setting cache variable VAR accordingly.
2604 ac_fn_c_check_member ()
2605 {
2606   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2607   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2608 $as_echo_n "checking for $2.$3... " >&6; }
2609 if eval \${$4+:} false; then :
2610   $as_echo_n "(cached) " >&6
2611 else
2612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613 /* end confdefs.h.  */
2614 $5
2615 int
2616 main ()
2617 {
2618 static $2 ac_aggr;
2619 if (ac_aggr.$3)
2620 return 0;
2621   ;
2622   return 0;
2623 }
2624 _ACEOF
2625 if ac_fn_c_try_compile "$LINENO"; then :
2626   eval "$4=yes"
2627 else
2628   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2629 /* end confdefs.h.  */
2630 $5
2631 int
2632 main ()
2633 {
2634 static $2 ac_aggr;
2635 if (sizeof ac_aggr.$3)
2636 return 0;
2637   ;
2638   return 0;
2639 }
2640 _ACEOF
2641 if ac_fn_c_try_compile "$LINENO"; then :
2642   eval "$4=yes"
2643 else
2644   eval "$4=no"
2645 fi
2646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 fi
2648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2649 fi
2650 eval ac_res=\$$4
2651                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2652 $as_echo "$ac_res" >&6; }
2653   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2654
2655 } # ac_fn_c_check_member
2656
2657 # ac_fn_cxx_try_run LINENO
2658 # ------------------------
2659 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2660 # that executables *can* be run.
2661 ac_fn_cxx_try_run ()
2662 {
2663   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2664   if { { ac_try="$ac_link"
2665 case "(($ac_try" in
2666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2667   *) ac_try_echo=$ac_try;;
2668 esac
2669 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2670 $as_echo "$ac_try_echo"; } >&5
2671   (eval "$ac_link") 2>&5
2672   ac_status=$?
2673   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2674   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2675   { { case "(($ac_try" in
2676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2677   *) ac_try_echo=$ac_try;;
2678 esac
2679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2680 $as_echo "$ac_try_echo"; } >&5
2681   (eval "$ac_try") 2>&5
2682   ac_status=$?
2683   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2684   test $ac_status = 0; }; }; then :
2685   ac_retval=0
2686 else
2687   $as_echo "$as_me: program exited with status $ac_status" >&5
2688        $as_echo "$as_me: failed program was:" >&5
2689 sed 's/^/| /' conftest.$ac_ext >&5
2690
2691        ac_retval=$ac_status
2692 fi
2693   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2694   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2695   as_fn_set_status $ac_retval
2696
2697 } # ac_fn_cxx_try_run
2698
2699 # ac_fn_cxx_check_func LINENO FUNC VAR
2700 # ------------------------------------
2701 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2702 ac_fn_cxx_check_func ()
2703 {
2704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2705   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2706 $as_echo_n "checking for $2... " >&6; }
2707 if eval \${$3+:} false; then :
2708   $as_echo_n "(cached) " >&6
2709 else
2710   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2711 /* end confdefs.h.  */
2712 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2713    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2714 #define $2 innocuous_$2
2715
2716 /* System header to define __stub macros and hopefully few prototypes,
2717     which can conflict with char $2 (); below.
2718     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2719     <limits.h> exists even on freestanding compilers.  */
2720
2721 #ifdef __STDC__
2722 # include <limits.h>
2723 #else
2724 # include <assert.h>
2725 #endif
2726
2727 #undef $2
2728
2729 /* Override any GCC internal prototype to avoid an error.
2730    Use char because int might match the return type of a GCC
2731    builtin and then its argument prototype would still apply.  */
2732 #ifdef __cplusplus
2733 extern "C"
2734 #endif
2735 char $2 ();
2736 /* The GNU C library defines this for functions which it implements
2737     to always fail with ENOSYS.  Some functions are actually named
2738     something starting with __ and the normal name is an alias.  */
2739 #if defined __stub_$2 || defined __stub___$2
2740 choke me
2741 #endif
2742
2743 int
2744 main ()
2745 {
2746 return $2 ();
2747   ;
2748   return 0;
2749 }
2750 _ACEOF
2751 if ac_fn_cxx_try_link "$LINENO"; then :
2752   eval "$3=yes"
2753 else
2754   eval "$3=no"
2755 fi
2756 rm -f core conftest.err conftest.$ac_objext \
2757     conftest$ac_exeext conftest.$ac_ext
2758 fi
2759 eval ac_res=\$$3
2760                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2761 $as_echo "$ac_res" >&6; }
2762   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2763
2764 } # ac_fn_cxx_check_func
2765 cat >config.log <<_ACEOF
2766 This file contains any messages produced by compilers while
2767 running configure, to aid debugging if configure makes a mistake.
2768
2769 It was created by bacula $as_me 7.2.1, which was
2770 generated by GNU Autoconf 2.69.  Invocation command line was
2771
2772   $ $0 $@
2773
2774 _ACEOF
2775 exec 5>>config.log
2776 {
2777 cat <<_ASUNAME
2778 ## --------- ##
2779 ## Platform. ##
2780 ## --------- ##
2781
2782 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2783 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2784 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2785 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2786 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2787
2788 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2789 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2790
2791 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2792 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2793 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2794 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2795 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2796 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2797 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2798
2799 _ASUNAME
2800
2801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2802 for as_dir in $PATH
2803 do
2804   IFS=$as_save_IFS
2805   test -z "$as_dir" && as_dir=.
2806     $as_echo "PATH: $as_dir"
2807   done
2808 IFS=$as_save_IFS
2809
2810 } >&5
2811
2812 cat >&5 <<_ACEOF
2813
2814
2815 ## ----------- ##
2816 ## Core tests. ##
2817 ## ----------- ##
2818
2819 _ACEOF
2820
2821
2822 # Keep a trace of the command line.
2823 # Strip out --no-create and --no-recursion so they do not pile up.
2824 # Strip out --silent because we don't want to record it for future runs.
2825 # Also quote any args containing shell meta-characters.
2826 # Make two passes to allow for proper duplicate-argument suppression.
2827 ac_configure_args=
2828 ac_configure_args0=
2829 ac_configure_args1=
2830 ac_must_keep_next=false
2831 for ac_pass in 1 2
2832 do
2833   for ac_arg
2834   do
2835     case $ac_arg in
2836     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2837     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2838     | -silent | --silent | --silen | --sile | --sil)
2839       continue ;;
2840     *\'*)
2841       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2842     esac
2843     case $ac_pass in
2844     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2845     2)
2846       as_fn_append ac_configure_args1 " '$ac_arg'"
2847       if test $ac_must_keep_next = true; then
2848         ac_must_keep_next=false # Got value, back to normal.
2849       else
2850         case $ac_arg in
2851           *=* | --config-cache | -C | -disable-* | --disable-* \
2852           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2853           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2854           | -with-* | --with-* | -without-* | --without-* | --x)
2855             case "$ac_configure_args0 " in
2856               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2857             esac
2858             ;;
2859           -* ) ac_must_keep_next=true ;;
2860         esac
2861       fi
2862       as_fn_append ac_configure_args " '$ac_arg'"
2863       ;;
2864     esac
2865   done
2866 done
2867 { ac_configure_args0=; unset ac_configure_args0;}
2868 { ac_configure_args1=; unset ac_configure_args1;}
2869
2870 # When interrupted or exit'd, cleanup temporary files, and complete
2871 # config.log.  We remove comments because anyway the quotes in there
2872 # would cause problems or look ugly.
2873 # WARNING: Use '\'' to represent an apostrophe within the trap.
2874 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2875 trap 'exit_status=$?
2876   # Save into config.log some information that might help in debugging.
2877   {
2878     echo
2879
2880     $as_echo "## ---------------- ##
2881 ## Cache variables. ##
2882 ## ---------------- ##"
2883     echo
2884     # The following way of writing the cache mishandles newlines in values,
2885 (
2886   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2887     eval ac_val=\$$ac_var
2888     case $ac_val in #(
2889     *${as_nl}*)
2890       case $ac_var in #(
2891       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2892 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2893       esac
2894       case $ac_var in #(
2895       _ | IFS | as_nl) ;; #(
2896       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2897       *) { eval $ac_var=; unset $ac_var;} ;;
2898       esac ;;
2899     esac
2900   done
2901   (set) 2>&1 |
2902     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2903     *${as_nl}ac_space=\ *)
2904       sed -n \
2905         "s/'\''/'\''\\\\'\'''\''/g;
2906           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2907       ;; #(
2908     *)
2909       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2910       ;;
2911     esac |
2912     sort
2913 )
2914     echo
2915
2916     $as_echo "## ----------------- ##
2917 ## Output variables. ##
2918 ## ----------------- ##"
2919     echo
2920     for ac_var in $ac_subst_vars
2921     do
2922       eval ac_val=\$$ac_var
2923       case $ac_val in
2924       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2925       esac
2926       $as_echo "$ac_var='\''$ac_val'\''"
2927     done | sort
2928     echo
2929
2930     if test -n "$ac_subst_files"; then
2931       $as_echo "## ------------------- ##
2932 ## File substitutions. ##
2933 ## ------------------- ##"
2934       echo
2935       for ac_var in $ac_subst_files
2936       do
2937         eval ac_val=\$$ac_var
2938         case $ac_val in
2939         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2940         esac
2941         $as_echo "$ac_var='\''$ac_val'\''"
2942       done | sort
2943       echo
2944     fi
2945
2946     if test -s confdefs.h; then
2947       $as_echo "## ----------- ##
2948 ## confdefs.h. ##
2949 ## ----------- ##"
2950       echo
2951       cat confdefs.h
2952       echo
2953     fi
2954     test "$ac_signal" != 0 &&
2955       $as_echo "$as_me: caught signal $ac_signal"
2956     $as_echo "$as_me: exit $exit_status"
2957   } >&5
2958   rm -f core *.core core.conftest.* &&
2959     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2960     exit $exit_status
2961 ' 0
2962 for ac_signal in 1 2 13 15; do
2963   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2964 done
2965 ac_signal=0
2966
2967 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2968 rm -f -r conftest* confdefs.h
2969
2970 $as_echo "/* confdefs.h */" > confdefs.h
2971
2972 # Predefined preprocessor variables.
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE_NAME "$PACKAGE_NAME"
2976 _ACEOF
2977
2978 cat >>confdefs.h <<_ACEOF
2979 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2980 _ACEOF
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2984 _ACEOF
2985
2986 cat >>confdefs.h <<_ACEOF
2987 #define PACKAGE_STRING "$PACKAGE_STRING"
2988 _ACEOF
2989
2990 cat >>confdefs.h <<_ACEOF
2991 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2992 _ACEOF
2993
2994 cat >>confdefs.h <<_ACEOF
2995 #define PACKAGE_URL "$PACKAGE_URL"
2996 _ACEOF
2997
2998
2999 # Let the site file select an alternate cache file if it wants to.
3000 # Prefer an explicitly selected file to automatically selected ones.
3001 ac_site_file1=NONE
3002 ac_site_file2=NONE
3003 if test -n "$CONFIG_SITE"; then
3004   # We do not want a PATH search for config.site.
3005   case $CONFIG_SITE in #((
3006     -*)  ac_site_file1=./$CONFIG_SITE;;
3007     */*) ac_site_file1=$CONFIG_SITE;;
3008     *)   ac_site_file1=./$CONFIG_SITE;;
3009   esac
3010 elif test "x$prefix" != xNONE; then
3011   ac_site_file1=$prefix/share/config.site
3012   ac_site_file2=$prefix/etc/config.site
3013 else
3014   ac_site_file1=$ac_default_prefix/share/config.site
3015   ac_site_file2=$ac_default_prefix/etc/config.site
3016 fi
3017 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3018 do
3019   test "x$ac_site_file" = xNONE && continue
3020   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3021     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3022 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3023     sed 's/^/| /' "$ac_site_file" >&5
3024     . "$ac_site_file" \
3025       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3027 as_fn_error $? "failed to load site script $ac_site_file
3028 See \`config.log' for more details" "$LINENO" 5; }
3029   fi
3030 done
3031
3032 if test -r "$cache_file"; then
3033   # Some versions of bash will fail to source /dev/null (special files
3034   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3035   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3036     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3037 $as_echo "$as_me: loading cache $cache_file" >&6;}
3038     case $cache_file in
3039       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3040       *)                      . "./$cache_file";;
3041     esac
3042   fi
3043 else
3044   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3045 $as_echo "$as_me: creating cache $cache_file" >&6;}
3046   >$cache_file
3047 fi
3048
3049 as_fn_append ac_header_list " stdlib.h"
3050 as_fn_append ac_header_list " unistd.h"
3051 as_fn_append ac_header_list " sys/param.h"
3052 # Check that the precious variables saved in the cache have kept the same
3053 # value.
3054 ac_cache_corrupted=false
3055 for ac_var in $ac_precious_vars; do
3056   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3057   eval ac_new_set=\$ac_env_${ac_var}_set
3058   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3059   eval ac_new_val=\$ac_env_${ac_var}_value
3060   case $ac_old_set,$ac_new_set in
3061     set,)
3062       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3063 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3064       ac_cache_corrupted=: ;;
3065     ,set)
3066       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3067 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3068       ac_cache_corrupted=: ;;
3069     ,);;
3070     *)
3071       if test "x$ac_old_val" != "x$ac_new_val"; then
3072         # differences in whitespace do not lead to failure.
3073         ac_old_val_w=`echo x $ac_old_val`
3074         ac_new_val_w=`echo x $ac_new_val`
3075         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3076           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3077 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3078           ac_cache_corrupted=:
3079         else
3080           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3081 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3082           eval $ac_var=\$ac_old_val
3083         fi
3084         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3085 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
3086         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3087 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
3088       fi;;
3089   esac
3090   # Pass precious variables to config.status.
3091   if test "$ac_new_set" = set; then
3092     case $ac_new_val in
3093     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3094     *) ac_arg=$ac_var=$ac_new_val ;;
3095     esac
3096     case " $ac_configure_args " in
3097       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3098       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3099     esac
3100   fi
3101 done
3102 if $ac_cache_corrupted; then
3103   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3104 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3105   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3106 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3107   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3108 fi
3109 ## -------------------- ##
3110 ## Main body of script. ##
3111 ## -------------------- ##
3112
3113 ac_ext=c
3114 ac_cpp='$CPP $CPPFLAGS'
3115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3118
3119
3120
3121
3122 BUILD_DIR=`pwd`
3123 cd ..
3124 TOP_DIR=`pwd`
3125 cd ${BUILD_DIR}
3126
3127
3128 ac_aux_dir=
3129 for ac_dir in ${BUILD_DIR}/autoconf "$srcdir"/${BUILD_DIR}/autoconf; do
3130   if test -f "$ac_dir/install-sh"; then
3131     ac_aux_dir=$ac_dir
3132     ac_install_sh="$ac_aux_dir/install-sh -c"
3133     break
3134   elif test -f "$ac_dir/install.sh"; then
3135     ac_aux_dir=$ac_dir
3136     ac_install_sh="$ac_aux_dir/install.sh -c"
3137     break
3138   elif test -f "$ac_dir/shtool"; then
3139     ac_aux_dir=$ac_dir
3140     ac_install_sh="$ac_aux_dir/shtool install -c"
3141     break
3142   fi
3143 done
3144 if test -z "$ac_aux_dir"; then
3145   as_fn_error $? "cannot find install-sh, install.sh, or shtool in ${BUILD_DIR}/autoconf \"$srcdir\"/${BUILD_DIR}/autoconf" "$LINENO" 5
3146 fi
3147
3148 # These three variables are undocumented and unsupported,
3149 # and are intended to be withdrawn in a future Autoconf release.
3150 # They can cause serious problems if a builder's source tree is in a directory
3151 # whose full name contains unusual characters.
3152 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3153 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3154 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3155
3156
3157 ac_config_headers="$ac_config_headers src/config.h:autoconf/config.h.in"
3158
3159
3160 for ac_prog in true
3161 do
3162   # Extract the first word of "$ac_prog", so it can be a program name with args.
3163 set dummy $ac_prog; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if ${ac_cv_path_TRUEPRG+:} false; then :
3167   $as_echo_n "(cached) " >&6
3168 else
3169   case $TRUEPRG in
3170   [\\/]* | ?:[\\/]*)
3171   ac_cv_path_TRUEPRG="$TRUEPRG" # Let the user override the test with a path.
3172   ;;
3173   *)
3174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 for as_dir in $PATH
3176 do
3177   IFS=$as_save_IFS
3178   test -z "$as_dir" && as_dir=.
3179     for ac_exec_ext in '' $ac_executable_extensions; do
3180   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181     ac_cv_path_TRUEPRG="$as_dir/$ac_word$ac_exec_ext"
3182     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183     break 2
3184   fi
3185 done
3186   done
3187 IFS=$as_save_IFS
3188
3189   ;;
3190 esac
3191 fi
3192 TRUEPRG=$ac_cv_path_TRUEPRG
3193 if test -n "$TRUEPRG"; then
3194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPRG" >&5
3195 $as_echo "$TRUEPRG" >&6; }
3196 else
3197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3198 $as_echo "no" >&6; }
3199 fi
3200
3201
3202   test -n "$TRUEPRG" && break
3203 done
3204 test -n "$TRUEPRG" || TRUEPRG=":"
3205
3206 for ac_prog in false
3207 do
3208   # Extract the first word of "$ac_prog", so it can be a program name with args.
3209 set dummy $ac_prog; ac_word=$2
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if ${ac_cv_path_FALSEPRG+:} false; then :
3213   $as_echo_n "(cached) " >&6
3214 else
3215   case $FALSEPRG in
3216   [\\/]* | ?:[\\/]*)
3217   ac_cv_path_FALSEPRG="$FALSEPRG" # Let the user override the test with a path.
3218   ;;
3219   *)
3220   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3221 for as_dir in $PATH
3222 do
3223   IFS=$as_save_IFS
3224   test -z "$as_dir" && as_dir=.
3225     for ac_exec_ext in '' $ac_executable_extensions; do
3226   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3227     ac_cv_path_FALSEPRG="$as_dir/$ac_word$ac_exec_ext"
3228     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3229     break 2
3230   fi
3231 done
3232   done
3233 IFS=$as_save_IFS
3234
3235   ;;
3236 esac
3237 fi
3238 FALSEPRG=$ac_cv_path_FALSEPRG
3239 if test -n "$FALSEPRG"; then
3240   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FALSEPRG" >&5
3241 $as_echo "$FALSEPRG" >&6; }
3242 else
3243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3244 $as_echo "no" >&6; }
3245 fi
3246
3247
3248   test -n "$FALSEPRG" && break
3249 done
3250 test -n "$FALSEPRG" || FALSEPRG=":"
3251
3252
3253
3254 post_host=
3255 if test "x$BACULA" != x; then
3256    post_host=`echo -${BACULA} | tr 'A-Z ' 'a-z-'`
3257 fi
3258 BACULA=${BACULA:-Bacula}
3259 VERSION=`sed -n -e 's/^#define VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3260 RELEASE=`sed -n -e 's/^#define RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3261 DATE=`sed -n -e 's/^#define BDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3262 LSMDATE=`sed -n -e 's/^#define LSMDATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3263 BDB_VERSION=`sed -n -e 's/^#define BDB_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3264 DEPKGS_VERSION=`sed -n -e 's/^#define DEPKGS_VERSION \(.*\)$/\1/p' ${srcdir}/src/cats/cats.h`
3265 DEPKGS_QT_VERSION=`sed -n -e 's/^#define DEPKGS_QT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3266 BQT_VERSION=`sed -n -e 's/^#define BQT_VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3267
3268 LIBBAC_LT_RELEASE=`sed -n -e 's/^#.*LIBBAC_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3269 LIBBACCFG_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCFG_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3270 LIBBACPY_LT_RELEASE=`sed -n -e 's/^#.*LIBBACPY_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3271
3272 LIBBAC_LT_RELEASE=${LIBBAC_LT_RELEASE:-$VERSION}
3273 LIBBACCFG_LT_RELEASE=${LIBBACCFG_LT_RELEASE:-$VERSION}
3274
3275
3276 LIBBACSQL_LT_RELEASE=`sed -n -e 's/^#.*LIBBACSQL_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3277 LIBBACCATS_LT_RELEASE=`sed -n -e 's/^#.*LIBBACCATS_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3278
3279 LIBBACSQL_LT_RELEASE=${LIBBACSQL_LT_RELEASE:-$VERSION}
3280 LIBBACCATS_LT_RELEASE=${LIBBACCATS_LT_RELEASE:-$VERSION}
3281
3282
3283 LIBBACFIND_LT_RELEASE=`sed -n -e 's/^#.*LIBBACFIND_LT_RELEASE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
3284
3285 LIBBACFIND_LT_RELEASE=${LIBBACFIND_LT_RELEASE:-$VERSION}
3286
3287
3288
3289 PFILES="platforms/Makefile"
3290
3291 echo "configuring for ${BACULA} $VERSION ($DATE)"
3292
3293
3294
3295 ac_ext=c
3296 ac_cpp='$CPP $CPPFLAGS'
3297 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3298 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3299 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3300 if test -n "$ac_tool_prefix"; then
3301   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if ${ac_cv_prog_CC+:} false; then :
3306   $as_echo_n "(cached) " >&6
3307 else
3308   if test -n "$CC"; then
3309   ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316     for ac_exec_ext in '' $ac_executable_extensions; do
3317   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3319     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323   done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338 fi
3339 if test -z "$ac_cv_prog_CC"; then
3340   ac_ct_CC=$CC
3341   # Extract the first word of "gcc", so it can be a program name with args.
3342 set dummy gcc; ac_word=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$ac_ct_CC"; then
3349   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3350 else
3351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3352 for as_dir in $PATH
3353 do
3354   IFS=$as_save_IFS
3355   test -z "$as_dir" && as_dir=.
3356     for ac_exec_ext in '' $ac_executable_extensions; do
3357   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3358     ac_cv_prog_ac_ct_CC="gcc"
3359     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3360     break 2
3361   fi
3362 done
3363   done
3364 IFS=$as_save_IFS
3365
3366 fi
3367 fi
3368 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3369 if test -n "$ac_ct_CC"; then
3370   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3371 $as_echo "$ac_ct_CC" >&6; }
3372 else
3373   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3375 fi
3376
3377   if test "x$ac_ct_CC" = x; then
3378     CC=""
3379   else
3380     case $cross_compiling:$ac_tool_warned in
3381 yes:)
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3383 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3384 ac_tool_warned=yes ;;
3385 esac
3386     CC=$ac_ct_CC
3387   fi
3388 else
3389   CC="$ac_cv_prog_CC"
3390 fi
3391
3392 if test -z "$CC"; then
3393           if test -n "$ac_tool_prefix"; then
3394     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3395 set dummy ${ac_tool_prefix}cc; ac_word=$2
3396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3397 $as_echo_n "checking for $ac_word... " >&6; }
3398 if ${ac_cv_prog_CC+:} false; then :
3399   $as_echo_n "(cached) " >&6
3400 else
3401   if test -n "$CC"; then
3402   ac_cv_prog_CC="$CC" # Let the user override the test.
3403 else
3404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3405 for as_dir in $PATH
3406 do
3407   IFS=$as_save_IFS
3408   test -z "$as_dir" && as_dir=.
3409     for ac_exec_ext in '' $ac_executable_extensions; do
3410   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3411     ac_cv_prog_CC="${ac_tool_prefix}cc"
3412     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3413     break 2
3414   fi
3415 done
3416   done
3417 IFS=$as_save_IFS
3418
3419 fi
3420 fi
3421 CC=$ac_cv_prog_CC
3422 if test -n "$CC"; then
3423   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3424 $as_echo "$CC" >&6; }
3425 else
3426   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3427 $as_echo "no" >&6; }
3428 fi
3429
3430
3431   fi
3432 fi
3433 if test -z "$CC"; then
3434   # Extract the first word of "cc", so it can be a program name with args.
3435 set dummy cc; ac_word=$2
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3437 $as_echo_n "checking for $ac_word... " >&6; }
3438 if ${ac_cv_prog_CC+:} false; then :
3439   $as_echo_n "(cached) " >&6
3440 else
3441   if test -n "$CC"; then
3442   ac_cv_prog_CC="$CC" # Let the user override the test.
3443 else
3444   ac_prog_rejected=no
3445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3446 for as_dir in $PATH
3447 do
3448   IFS=$as_save_IFS
3449   test -z "$as_dir" && as_dir=.
3450     for ac_exec_ext in '' $ac_executable_extensions; do
3451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3452     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3453        ac_prog_rejected=yes
3454        continue
3455      fi
3456     ac_cv_prog_CC="cc"
3457     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3458     break 2
3459   fi
3460 done
3461   done
3462 IFS=$as_save_IFS
3463
3464 if test $ac_prog_rejected = yes; then
3465   # We found a bogon in the path, so make sure we never use it.
3466   set dummy $ac_cv_prog_CC
3467   shift
3468   if test $# != 0; then
3469     # We chose a different compiler from the bogus one.
3470     # However, it has the same basename, so the bogon will be chosen
3471     # first if we set CC to just the basename; use the full file name.
3472     shift
3473     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3474   fi
3475 fi
3476 fi
3477 fi
3478 CC=$ac_cv_prog_CC
3479 if test -n "$CC"; then
3480   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3481 $as_echo "$CC" >&6; }
3482 else
3483   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3484 $as_echo "no" >&6; }
3485 fi
3486
3487
3488 fi
3489 if test -z "$CC"; then
3490   if test -n "$ac_tool_prefix"; then
3491   for ac_prog in cl.exe
3492   do
3493     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3494 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_CC+:} false; then :
3498   $as_echo_n "(cached) " >&6
3499 else
3500   if test -n "$CC"; then
3501   ac_cv_prog_CC="$CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506   IFS=$as_save_IFS
3507   test -z "$as_dir" && as_dir=.
3508     for ac_exec_ext in '' $ac_executable_extensions; do
3509   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3511     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512     break 2
3513   fi
3514 done
3515   done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 CC=$ac_cv_prog_CC
3521 if test -n "$CC"; then
3522   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3523 $as_echo "$CC" >&6; }
3524 else
3525   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530     test -n "$CC" && break
3531   done
3532 fi
3533 if test -z "$CC"; then
3534   ac_ct_CC=$CC
3535   for ac_prog in cl.exe
3536 do
3537   # Extract the first word of "$ac_prog", so it can be a program name with args.
3538 set dummy $ac_prog; ac_word=$2
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3540 $as_echo_n "checking for $ac_word... " >&6; }
3541 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3542   $as_echo_n "(cached) " >&6
3543 else
3544   if test -n "$ac_ct_CC"; then
3545   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3546 else
3547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 for as_dir in $PATH
3549 do
3550   IFS=$as_save_IFS
3551   test -z "$as_dir" && as_dir=.
3552     for ac_exec_ext in '' $ac_executable_extensions; do
3553   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3554     ac_cv_prog_ac_ct_CC="$ac_prog"
3555     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3556     break 2
3557   fi
3558 done
3559   done
3560 IFS=$as_save_IFS
3561
3562 fi
3563 fi
3564 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3565 if test -n "$ac_ct_CC"; then
3566   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3567 $as_echo "$ac_ct_CC" >&6; }
3568 else
3569   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3570 $as_echo "no" >&6; }
3571 fi
3572
3573
3574   test -n "$ac_ct_CC" && break
3575 done
3576
3577   if test "x$ac_ct_CC" = x; then
3578     CC=""
3579   else
3580     case $cross_compiling:$ac_tool_warned in
3581 yes:)
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3583 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3584 ac_tool_warned=yes ;;
3585 esac
3586     CC=$ac_ct_CC
3587   fi
3588 fi
3589
3590 fi
3591
3592
3593 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3595 as_fn_error $? "no acceptable C compiler found in \$PATH
3596 See \`config.log' for more details" "$LINENO" 5; }
3597
3598 # Provide some information about the compiler.
3599 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 set X $ac_compile
3601 ac_compiler=$2
3602 for ac_option in --version -v -V -qversion; do
3603   { { ac_try="$ac_compiler $ac_option >&5"
3604 case "(($ac_try" in
3605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606   *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3611   ac_status=$?
3612   if test -s conftest.err; then
3613     sed '10a\
3614 ... rest of stderr output deleted ...
3615          10q' conftest.err >conftest.er1
3616     cat conftest.er1 >&5
3617   fi
3618   rm -f conftest.er1 conftest.err
3619   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3620   test $ac_status = 0; }
3621 done
3622
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h.  */
3625
3626 int
3627 main ()
3628 {
3629
3630   ;
3631   return 0;
3632 }
3633 _ACEOF
3634 ac_clean_files_save=$ac_clean_files
3635 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3636 # Try to create an executable without -o first, disregard a.out.
3637 # It will help us diagnose broken compilers, and finding out an intuition
3638 # of exeext.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3640 $as_echo_n "checking whether the C compiler works... " >&6; }
3641 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3642
3643 # The possible output files:
3644 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3645
3646 ac_rmfiles=
3647 for ac_file in $ac_files
3648 do
3649   case $ac_file in
3650     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3651     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3652   esac
3653 done
3654 rm -f $ac_rmfiles
3655
3656 if { { ac_try="$ac_link_default"
3657 case "(($ac_try" in
3658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3659   *) ac_try_echo=$ac_try;;
3660 esac
3661 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3662 $as_echo "$ac_try_echo"; } >&5
3663   (eval "$ac_link_default") 2>&5
3664   ac_status=$?
3665   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3666   test $ac_status = 0; }; then :
3667   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3668 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3669 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3670 # so that the user can short-circuit this test for compilers unknown to
3671 # Autoconf.
3672 for ac_file in $ac_files ''
3673 do
3674   test -f "$ac_file" || continue
3675   case $ac_file in
3676     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3677         ;;
3678     [ab].out )
3679         # We found the default executable, but exeext='' is most
3680         # certainly right.
3681         break;;
3682     *.* )
3683         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3684         then :; else
3685            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3686         fi
3687         # We set ac_cv_exeext here because the later test for it is not
3688         # safe: cross compilers may not add the suffix if given an `-o'
3689         # argument, so we may need to know it at that point already.
3690         # Even if this section looks crufty: it has the advantage of
3691         # actually working.
3692         break;;
3693     * )
3694         break;;
3695   esac
3696 done
3697 test "$ac_cv_exeext" = no && ac_cv_exeext=
3698
3699 else
3700   ac_file=''
3701 fi
3702 if test -z "$ac_file"; then :
3703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3704 $as_echo "no" >&6; }
3705 $as_echo "$as_me: failed program was:" >&5
3706 sed 's/^/| /' conftest.$ac_ext >&5
3707
3708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3710 as_fn_error 77 "C compiler cannot create executables
3711 See \`config.log' for more details" "$LINENO" 5; }
3712 else
3713   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3714 $as_echo "yes" >&6; }
3715 fi
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3717 $as_echo_n "checking for C compiler default output file name... " >&6; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3719 $as_echo "$ac_file" >&6; }
3720 ac_exeext=$ac_cv_exeext
3721
3722 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3723 ac_clean_files=$ac_clean_files_save
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3725 $as_echo_n "checking for suffix of executables... " >&6; }
3726 if { { ac_try="$ac_link"
3727 case "(($ac_try" in
3728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3729   *) ac_try_echo=$ac_try;;
3730 esac
3731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3732 $as_echo "$ac_try_echo"; } >&5
3733   (eval "$ac_link") 2>&5
3734   ac_status=$?
3735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3736   test $ac_status = 0; }; then :
3737   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3738 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3739 # work properly (i.e., refer to `conftest.exe'), while it won't with
3740 # `rm'.
3741 for ac_file in conftest.exe conftest conftest.*; do
3742   test -f "$ac_file" || continue
3743   case $ac_file in
3744     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3745     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3746           break;;
3747     * ) break;;
3748   esac
3749 done
3750 else
3751   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3754 See \`config.log' for more details" "$LINENO" 5; }
3755 fi
3756 rm -f conftest conftest$ac_cv_exeext
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3758 $as_echo "$ac_cv_exeext" >&6; }
3759
3760 rm -f conftest.$ac_ext
3761 EXEEXT=$ac_cv_exeext
3762 ac_exeext=$EXEEXT
3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764 /* end confdefs.h.  */
3765 #include <stdio.h>
3766 int
3767 main ()
3768 {
3769 FILE *f = fopen ("conftest.out", "w");
3770  return ferror (f) || fclose (f) != 0;
3771
3772   ;
3773   return 0;
3774 }
3775 _ACEOF
3776 ac_clean_files="$ac_clean_files conftest.out"
3777 # Check that the compiler produces executables we can run.  If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3780 $as_echo_n "checking whether we are cross compiling... " >&6; }
3781 if test "$cross_compiling" != yes; then
3782   { { ac_try="$ac_link"
3783 case "(($ac_try" in
3784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785   *) ac_try_echo=$ac_try;;
3786 esac
3787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3788 $as_echo "$ac_try_echo"; } >&5
3789   (eval "$ac_link") 2>&5
3790   ac_status=$?
3791   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3792   test $ac_status = 0; }
3793   if { ac_try='./conftest$ac_cv_exeext'
3794   { { case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800   (eval "$ac_try") 2>&5
3801   ac_status=$?
3802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803   test $ac_status = 0; }; }; then
3804     cross_compiling=no
3805   else
3806     if test "$cross_compiling" = maybe; then
3807         cross_compiling=yes
3808     else
3809         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3810 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3811 as_fn_error $? "cannot run C compiled programs.
3812 If you meant to cross compile, use \`--host'.
3813 See \`config.log' for more details" "$LINENO" 5; }
3814     fi
3815   fi
3816 fi
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3818 $as_echo "$cross_compiling" >&6; }
3819
3820 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3821 ac_clean_files=$ac_clean_files_save
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3823 $as_echo_n "checking for suffix of object files... " >&6; }
3824 if ${ac_cv_objext+:} false; then :
3825   $as_echo_n "(cached) " >&6
3826 else
3827   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3828 /* end confdefs.h.  */
3829
3830 int
3831 main ()
3832 {
3833
3834   ;
3835   return 0;
3836 }
3837 _ACEOF
3838 rm -f conftest.o conftest.obj
3839 if { { ac_try="$ac_compile"
3840 case "(($ac_try" in
3841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3842   *) ac_try_echo=$ac_try;;
3843 esac
3844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3845 $as_echo "$ac_try_echo"; } >&5
3846   (eval "$ac_compile") 2>&5
3847   ac_status=$?
3848   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3849   test $ac_status = 0; }; then :
3850   for ac_file in conftest.o conftest.obj conftest.*; do
3851   test -f "$ac_file" || continue;
3852   case $ac_file in
3853     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3854     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855        break;;
3856   esac
3857 done
3858 else
3859   $as_echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3863 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3864 as_fn_error $? "cannot compute suffix of object files: cannot compile
3865 See \`config.log' for more details" "$LINENO" 5; }
3866 fi
3867 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3868 fi
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3870 $as_echo "$ac_cv_objext" >&6; }
3871 OBJEXT=$ac_cv_objext
3872 ac_objext=$OBJEXT
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3874 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3875 if ${ac_cv_c_compiler_gnu+:} false; then :
3876   $as_echo_n "(cached) " >&6
3877 else
3878   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 /* end confdefs.h.  */
3880
3881 int
3882 main ()
3883 {
3884 #ifndef __GNUC__
3885        choke me
3886 #endif
3887
3888   ;
3889   return 0;
3890 }
3891 _ACEOF
3892 if ac_fn_c_try_compile "$LINENO"; then :
3893   ac_compiler_gnu=yes
3894 else
3895   ac_compiler_gnu=no
3896 fi
3897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3898 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899
3900 fi
3901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3902 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3903 if test $ac_compiler_gnu = yes; then
3904   GCC=yes
3905 else
3906   GCC=
3907 fi
3908 ac_test_CFLAGS=${CFLAGS+set}
3909 ac_save_CFLAGS=$CFLAGS
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3911 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3912 if ${ac_cv_prog_cc_g+:} false; then :
3913   $as_echo_n "(cached) " >&6
3914 else
3915   ac_save_c_werror_flag=$ac_c_werror_flag
3916    ac_c_werror_flag=yes
3917    ac_cv_prog_cc_g=no
3918    CFLAGS="-g"
3919    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h.  */
3921
3922 int
3923 main ()
3924 {
3925
3926   ;
3927   return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931   ac_cv_prog_cc_g=yes
3932 else
3933   CFLAGS=""
3934       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3935 /* end confdefs.h.  */
3936
3937 int
3938 main ()
3939 {
3940
3941   ;
3942   return 0;
3943 }
3944 _ACEOF
3945 if ac_fn_c_try_compile "$LINENO"; then :
3946
3947 else
3948   ac_c_werror_flag=$ac_save_c_werror_flag
3949          CFLAGS="-g"
3950          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h.  */
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962   ac_cv_prog_cc_g=yes
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 fi
3968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969    ac_c_werror_flag=$ac_save_c_werror_flag
3970 fi
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3972 $as_echo "$ac_cv_prog_cc_g" >&6; }
3973 if test "$ac_test_CFLAGS" = set; then
3974   CFLAGS=$ac_save_CFLAGS
3975 elif test $ac_cv_prog_cc_g = yes; then
3976   if test "$GCC" = yes; then
3977     CFLAGS="-g -O2"
3978   else
3979     CFLAGS="-g"
3980   fi
3981 else
3982   if test "$GCC" = yes; then
3983     CFLAGS="-O2"
3984   else
3985     CFLAGS=
3986   fi
3987 fi
3988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3989 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3990 if ${ac_cv_prog_cc_c89+:} false; then :
3991   $as_echo_n "(cached) " >&6
3992 else
3993   ac_cv_prog_cc_c89=no
3994 ac_save_CC=$CC
3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3996 /* end confdefs.h.  */
3997 #include <stdarg.h>
3998 #include <stdio.h>
3999 struct stat;
4000 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4001 struct buf { int x; };
4002 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4003 static char *e (p, i)
4004      char **p;
4005      int i;
4006 {
4007   return p[i];
4008 }
4009 static char *f (char * (*g) (char **, int), char **p, ...)
4010 {
4011   char *s;
4012   va_list v;
4013   va_start (v,p);
4014   s = g (p, va_arg (v,int));
4015   va_end (v);
4016   return s;
4017 }
4018
4019 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4020    function prototypes and stuff, but not '\xHH' hex character constants.
4021    These don't provoke an error unfortunately, instead are silently treated
4022    as 'x'.  The following induces an error, until -std is added to get
4023    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4024    array size at least.  It's necessary to write '\x00'==0 to get something
4025    that's true only with -std.  */
4026 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027
4028 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4029    inside strings and character constants.  */
4030 #define FOO(x) 'x'
4031 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032
4033 int test (int i, double x);
4034 struct s1 {int (*f) (int a);};
4035 struct s2 {int (*f) (double a);};
4036 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4037 int argc;
4038 char **argv;
4039 int
4040 main ()
4041 {
4042 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4043   ;
4044   return 0;
4045 }
4046 _ACEOF
4047 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4048         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 do
4050   CC="$ac_save_CC $ac_arg"
4051   if ac_fn_c_try_compile "$LINENO"; then :
4052   ac_cv_prog_cc_c89=$ac_arg
4053 fi
4054 rm -f core conftest.err conftest.$ac_objext
4055   test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 done
4057 rm -f conftest.$ac_ext
4058 CC=$ac_save_CC
4059
4060 fi
4061 # AC_CACHE_VAL
4062 case "x$ac_cv_prog_cc_c89" in
4063   x)
4064     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4065 $as_echo "none needed" >&6; } ;;
4066   xno)
4067     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4068 $as_echo "unsupported" >&6; } ;;
4069   *)
4070     CC="$CC $ac_cv_prog_cc_c89"
4071     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4072 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 esac
4074 if test "x$ac_cv_prog_cc_c89" != xno; then :
4075
4076 fi
4077
4078 ac_ext=c
4079 ac_cpp='$CPP $CPPFLAGS'
4080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083
4084 ac_ext=cpp
4085 ac_cpp='$CXXCPP $CPPFLAGS'
4086 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4089 if test -z "$CXX"; then
4090   if test -n "$CCC"; then
4091     CXX=$CCC
4092   else
4093     if test -n "$ac_tool_prefix"; then
4094   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4095   do
4096     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4097 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CXX+:} false; then :
4101   $as_echo_n "(cached) " >&6
4102 else
4103   if test -n "$CXX"; then
4104   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4105 else
4106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4107 for as_dir in $PATH
4108 do
4109   IFS=$as_save_IFS
4110   test -z "$as_dir" && as_dir=.
4111     for ac_exec_ext in '' $ac_executable_extensions; do
4112   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4113     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4114     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115     break 2
4116   fi
4117 done
4118   done
4119 IFS=$as_save_IFS
4120
4121 fi
4122 fi
4123 CXX=$ac_cv_prog_CXX
4124 if test -n "$CXX"; then
4125   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4126 $as_echo "$CXX" >&6; }
4127 else
4128   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4130 fi
4131
4132
4133     test -n "$CXX" && break
4134   done
4135 fi
4136 if test -z "$CXX"; then
4137   ac_ct_CXX=$CXX
4138   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4139 do
4140   # Extract the first word of "$ac_prog", so it can be a program name with args.
4141 set dummy $ac_prog; ac_word=$2
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4143 $as_echo_n "checking for $ac_word... " >&6; }
4144 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4145   $as_echo_n "(cached) " >&6
4146 else
4147   if test -n "$ac_ct_CXX"; then
4148   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4149 else
4150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4151 for as_dir in $PATH
4152 do
4153   IFS=$as_save_IFS
4154   test -z "$as_dir" && as_dir=.
4155     for ac_exec_ext in '' $ac_executable_extensions; do
4156   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4157     ac_cv_prog_ac_ct_CXX="$ac_prog"
4158     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4159     break 2
4160   fi
4161 done
4162   done
4163 IFS=$as_save_IFS
4164
4165 fi
4166 fi
4167 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4168 if test -n "$ac_ct_CXX"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4170 $as_echo "$ac_ct_CXX" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177   test -n "$ac_ct_CXX" && break
4178 done
4179
4180   if test "x$ac_ct_CXX" = x; then
4181     CXX="g++"
4182   else
4183     case $cross_compiling:$ac_tool_warned in
4184 yes:)
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4187 ac_tool_warned=yes ;;
4188 esac
4189     CXX=$ac_ct_CXX
4190   fi
4191 fi
4192
4193   fi
4194 fi
4195 # Provide some information about the compiler.
4196 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4197 set X $ac_compile
4198 ac_compiler=$2
4199 for ac_option in --version -v -V -qversion; do
4200   { { ac_try="$ac_compiler $ac_option >&5"
4201 case "(($ac_try" in
4202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203   *) ac_try_echo=$ac_try;;
4204 esac
4205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4206 $as_echo "$ac_try_echo"; } >&5
4207   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4208   ac_status=$?
4209   if test -s conftest.err; then
4210     sed '10a\
4211 ... rest of stderr output deleted ...
4212          10q' conftest.err >conftest.er1
4213     cat conftest.er1 >&5
4214   fi
4215   rm -f conftest.er1 conftest.err
4216   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4217   test $ac_status = 0; }
4218 done
4219
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4221 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4222 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4223   $as_echo_n "(cached) " >&6
4224 else
4225   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h.  */
4227
4228 int
4229 main ()
4230 {
4231 #ifndef __GNUC__
4232        choke me
4233 #endif
4234
4235   ;
4236   return 0;
4237 }
4238 _ACEOF
4239 if ac_fn_cxx_try_compile "$LINENO"; then :
4240   ac_compiler_gnu=yes
4241 else
4242   ac_compiler_gnu=no
4243 fi
4244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4245 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4246
4247 fi
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4249 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4250 if test $ac_compiler_gnu = yes; then
4251   GXX=yes
4252 else
4253   GXX=
4254 fi
4255 ac_test_CXXFLAGS=${CXXFLAGS+set}
4256 ac_save_CXXFLAGS=$CXXFLAGS
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4258 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4259 if ${ac_cv_prog_cxx_g+:} false; then :
4260   $as_echo_n "(cached) " >&6
4261 else
4262   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4263    ac_cxx_werror_flag=yes
4264    ac_cv_prog_cxx_g=no
4265    CXXFLAGS="-g"
4266    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4267 /* end confdefs.h.  */
4268
4269 int
4270 main ()
4271 {
4272
4273   ;
4274   return 0;
4275 }
4276 _ACEOF
4277 if ac_fn_cxx_try_compile "$LINENO"; then :
4278   ac_cv_prog_cxx_g=yes
4279 else
4280   CXXFLAGS=""
4281       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h.  */
4283
4284 int
4285 main ()
4286 {
4287
4288   ;
4289   return 0;
4290 }
4291 _ACEOF
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4293
4294 else
4295   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4296          CXXFLAGS="-g"
4297          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h.  */
4299
4300 int
4301 main ()
4302 {
4303
4304   ;
4305   return 0;
4306 }
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4309   ac_cv_prog_cxx_g=yes
4310 fi
4311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4312 fi
4313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4314 fi
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4316    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4317 fi
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4319 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4320 if test "$ac_test_CXXFLAGS" = set; then
4321   CXXFLAGS=$ac_save_CXXFLAGS
4322 elif test $ac_cv_prog_cxx_g = yes; then
4323   if test "$GXX" = yes; then
4324     CXXFLAGS="-g -O2"
4325   else
4326     CXXFLAGS="-g"
4327   fi
4328 else
4329   if test "$GXX" = yes; then
4330     CXXFLAGS="-O2"
4331   else
4332     CXXFLAGS=
4333   fi
4334 fi
4335 ac_ext=c
4336 ac_cpp='$CPP $CPPFLAGS'
4337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4340
4341 if test "x$CC" != xcc; then
4342   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4343 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4344 else
4345   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4346 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4347 fi
4348 set dummy $CC; ac_cc=`$as_echo "$2" |
4349                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4350 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4351   $as_echo_n "(cached) " >&6
4352 else
4353   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4354 /* end confdefs.h.  */
4355
4356 int
4357 main ()
4358 {
4359
4360   ;
4361   return 0;
4362 }
4363 _ACEOF
4364 # Make sure it works both with $CC and with simple cc.
4365 # We do the test twice because some compilers refuse to overwrite an
4366 # existing .o file with -o, though they will create one.
4367 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4368 rm -f conftest2.*
4369 if { { case "(($ac_try" in
4370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4371   *) ac_try_echo=$ac_try;;
4372 esac
4373 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4374 $as_echo "$ac_try_echo"; } >&5
4375   (eval "$ac_try") 2>&5
4376   ac_status=$?
4377   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4378   test $ac_status = 0; } &&
4379    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381   *) ac_try_echo=$ac_try;;
4382 esac
4383 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4384 $as_echo "$ac_try_echo"; } >&5
4385   (eval "$ac_try") 2>&5
4386   ac_status=$?
4387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4388   test $ac_status = 0; };
4389 then
4390   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4391   if test "x$CC" != xcc; then
4392     # Test first that cc exists at all.
4393     if { ac_try='cc -c conftest.$ac_ext >&5'
4394   { { case "(($ac_try" in
4395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396   *) ac_try_echo=$ac_try;;
4397 esac
4398 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399 $as_echo "$ac_try_echo"; } >&5
4400   (eval "$ac_try") 2>&5
4401   ac_status=$?
4402   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403   test $ac_status = 0; }; }; then
4404       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4405       rm -f conftest2.*
4406       if { { case "(($ac_try" in
4407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4408   *) ac_try_echo=$ac_try;;
4409 esac
4410 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4411 $as_echo "$ac_try_echo"; } >&5
4412   (eval "$ac_try") 2>&5
4413   ac_status=$?
4414   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415   test $ac_status = 0; } &&
4416          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418   *) ac_try_echo=$ac_try;;
4419 esac
4420 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4421 $as_echo "$ac_try_echo"; } >&5
4422   (eval "$ac_try") 2>&5
4423   ac_status=$?
4424   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4425   test $ac_status = 0; };
4426       then
4427         # cc works too.
4428         :
4429       else
4430         # cc exists but doesn't like -o.
4431         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4432       fi
4433     fi
4434   fi
4435 else
4436   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4437 fi
4438 rm -f core conftest*
4439
4440 fi
4441 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4442   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4443 $as_echo "yes" >&6; }
4444 else
4445   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4446 $as_echo "no" >&6; }
4447
4448 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4449
4450 fi
4451
4452 ac_ext=c
4453 ac_cpp='$CPP $CPPFLAGS'
4454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4458 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4459 # On Suns, sometimes $CPP names a directory.
4460 if test -n "$CPP" && test -d "$CPP"; then
4461   CPP=
4462 fi
4463 if test -z "$CPP"; then
4464   if ${ac_cv_prog_CPP+:} false; then :
4465   $as_echo_n "(cached) " >&6
4466 else
4467       # Double quotes because CPP needs to be expanded
4468     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4469     do
4470       ac_preproc_ok=false
4471 for ac_c_preproc_warn_flag in '' yes
4472 do
4473   # Use a header file that comes with gcc, so configuring glibc
4474   # with a fresh cross-compiler works.
4475   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4476   # <limits.h> exists even on freestanding compilers.
4477   # On the NeXT, cc -E runs the code through the compiler's parser,
4478   # not just through cpp. "Syntax error" is here to catch this case.
4479   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h.  */
4481 #ifdef __STDC__
4482 # include <limits.h>
4483 #else
4484 # include <assert.h>
4485 #endif
4486                      Syntax error
4487 _ACEOF
4488 if ac_fn_c_try_cpp "$LINENO"; then :
4489
4490 else
4491   # Broken: fails on valid input.
4492 continue
4493 fi
4494 rm -f conftest.err conftest.i conftest.$ac_ext
4495
4496   # OK, works on sane cases.  Now check whether nonexistent headers
4497   # can be detected and how.
4498   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h.  */
4500 #include <ac_nonexistent.h>
4501 _ACEOF
4502 if ac_fn_c_try_cpp "$LINENO"; then :
4503   # Broken: success on invalid input.
4504 continue
4505 else
4506   # Passes both tests.
4507 ac_preproc_ok=:
4508 break
4509 fi
4510 rm -f conftest.err conftest.i conftest.$ac_ext
4511
4512 done
4513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4514 rm -f conftest.i conftest.err conftest.$ac_ext
4515 if $ac_preproc_ok; then :
4516   break
4517 fi
4518
4519     done
4520     ac_cv_prog_CPP=$CPP
4521
4522 fi
4523   CPP=$ac_cv_prog_CPP
4524 else
4525   ac_cv_prog_CPP=$CPP
4526 fi
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4528 $as_echo "$CPP" >&6; }
4529 ac_preproc_ok=false
4530 for ac_c_preproc_warn_flag in '' yes
4531 do
4532   # Use a header file that comes with gcc, so configuring glibc
4533   # with a fresh cross-compiler works.
4534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4535   # <limits.h> exists even on freestanding compilers.
4536   # On the NeXT, cc -E runs the code through the compiler's parser,
4537   # not just through cpp. "Syntax error" is here to catch this case.
4538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4539 /* end confdefs.h.  */
4540 #ifdef __STDC__
4541 # include <limits.h>
4542 #else
4543 # include <assert.h>
4544 #endif
4545                      Syntax error
4546 _ACEOF
4547 if ac_fn_c_try_cpp "$LINENO"; then :
4548
4549 else
4550   # Broken: fails on valid input.
4551 continue
4552 fi
4553 rm -f conftest.err conftest.i conftest.$ac_ext
4554
4555   # OK, works on sane cases.  Now check whether nonexistent headers
4556   # can be detected and how.
4557   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h.  */
4559 #include <ac_nonexistent.h>
4560 _ACEOF
4561 if ac_fn_c_try_cpp "$LINENO"; then :
4562   # Broken: success on invalid input.
4563 continue
4564 else
4565   # Passes both tests.
4566 ac_preproc_ok=:
4567 break
4568 fi
4569 rm -f conftest.err conftest.i conftest.$ac_ext
4570
4571 done
4572 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4573 rm -f conftest.i conftest.err conftest.$ac_ext
4574 if $ac_preproc_ok; then :
4575
4576 else
4577   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4580 See \`config.log' for more details" "$LINENO" 5; }
4581 fi
4582
4583 ac_ext=c
4584 ac_cpp='$CPP $CPPFLAGS'
4585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4591 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4592 if ${ac_cv_path_GREP+:} false; then :
4593   $as_echo_n "(cached) " >&6
4594 else
4595   if test -z "$GREP"; then
4596   ac_path_GREP_found=false
4597   # Loop through the user's path and test for each of PROGNAME-LIST
4598   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603     for ac_prog in grep ggrep; do
4604     for ac_exec_ext in '' $ac_executable_extensions; do
4605       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4606       as_fn_executable_p "$ac_path_GREP" || continue
4607 # Check for GNU ac_path_GREP and select it if it is found.
4608   # Check for GNU $ac_path_GREP
4609 case `"$ac_path_GREP" --version 2>&1` in
4610 *GNU*)
4611   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4612 *)
4613   ac_count=0
4614   $as_echo_n 0123456789 >"conftest.in"
4615   while :
4616   do
4617     cat "conftest.in" "conftest.in" >"conftest.tmp"
4618     mv "conftest.tmp" "conftest.in"
4619     cp "conftest.in" "conftest.nl"
4620     $as_echo 'GREP' >> "conftest.nl"
4621     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4622     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4623     as_fn_arith $ac_count + 1 && ac_count=$as_val
4624     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4625       # Best one so far, save it but keep looking for a better one
4626       ac_cv_path_GREP="$ac_path_GREP"
4627       ac_path_GREP_max=$ac_count
4628     fi
4629     # 10*(2^10) chars as input seems more than enough
4630     test $ac_count -gt 10 && break
4631   done
4632   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4633 esac
4634
4635       $ac_path_GREP_found && break 3
4636     done
4637   done
4638   done
4639 IFS=$as_save_IFS
4640   if test -z "$ac_cv_path_GREP"; then
4641     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4642   fi
4643 else
4644   ac_cv_path_GREP=$GREP
4645 fi
4646
4647 fi
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4649 $as_echo "$ac_cv_path_GREP" >&6; }
4650  GREP="$ac_cv_path_GREP"
4651
4652
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4654 $as_echo_n "checking for egrep... " >&6; }
4655 if ${ac_cv_path_EGREP+:} false; then :
4656   $as_echo_n "(cached) " >&6
4657 else
4658   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4659    then ac_cv_path_EGREP="$GREP -E"
4660    else
4661      if test -z "$EGREP"; then
4662   ac_path_EGREP_found=false
4663   # Loop through the user's path and test for each of PROGNAME-LIST
4664   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4665 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4666 do
4667   IFS=$as_save_IFS
4668   test -z "$as_dir" && as_dir=.
4669     for ac_prog in egrep; do
4670     for ac_exec_ext in '' $ac_executable_extensions; do
4671       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4672       as_fn_executable_p "$ac_path_EGREP" || continue
4673 # Check for GNU ac_path_EGREP and select it if it is found.
4674   # Check for GNU $ac_path_EGREP
4675 case `"$ac_path_EGREP" --version 2>&1` in
4676 *GNU*)
4677   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4678 *)
4679   ac_count=0
4680   $as_echo_n 0123456789 >"conftest.in"
4681   while :
4682   do
4683     cat "conftest.in" "conftest.in" >"conftest.tmp"
4684     mv "conftest.tmp" "conftest.in"
4685     cp "conftest.in" "conftest.nl"
4686     $as_echo 'EGREP' >> "conftest.nl"
4687     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4688     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4689     as_fn_arith $ac_count + 1 && ac_count=$as_val
4690     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4691       # Best one so far, save it but keep looking for a better one
4692       ac_cv_path_EGREP="$ac_path_EGREP"
4693       ac_path_EGREP_max=$ac_count
4694     fi
4695     # 10*(2^10) chars as input seems more than enough
4696     test $ac_count -gt 10 && break
4697   done
4698   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4699 esac
4700
4701       $ac_path_EGREP_found && break 3
4702     done
4703   done
4704   done
4705 IFS=$as_save_IFS
4706   if test -z "$ac_cv_path_EGREP"; then
4707     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4708   fi
4709 else
4710   ac_cv_path_EGREP=$EGREP
4711 fi
4712
4713    fi
4714 fi
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4716 $as_echo "$ac_cv_path_EGREP" >&6; }
4717  EGREP="$ac_cv_path_EGREP"
4718
4719
4720 if test $ac_cv_c_compiler_gnu = yes; then
4721     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4722 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4723 if ${ac_cv_prog_gcc_traditional+:} false; then :
4724   $as_echo_n "(cached) " >&6
4725 else
4726     ac_pattern="Autoconf.*'x'"
4727   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h.  */
4729 #include <sgtty.h>
4730 Autoconf TIOCGETP
4731 _ACEOF
4732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4733   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4734   ac_cv_prog_gcc_traditional=yes
4735 else
4736   ac_cv_prog_gcc_traditional=no
4737 fi
4738 rm -f conftest*
4739
4740
4741   if test $ac_cv_prog_gcc_traditional = no; then
4742     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4743 /* end confdefs.h.  */
4744 #include <termio.h>
4745 Autoconf TCGETA
4746 _ACEOF
4747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4748   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4749   ac_cv_prog_gcc_traditional=yes
4750 fi
4751 rm -f conftest*
4752
4753   fi
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4756 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4757   if test $ac_cv_prog_gcc_traditional = yes; then
4758     CC="$CC -traditional"
4759   fi
4760 fi
4761
4762 BASECC=`basename $CC`
4763 have_gcc=no
4764 if test "x$BASECC" = xgcc; then
4765    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4766
4767    have_gcc=yes
4768 fi
4769 # Extract the first word of "$CXX", so it can be a program name with args.
4770 set dummy $CXX; ac_word=$2
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4772 $as_echo_n "checking for $ac_word... " >&6; }
4773 if ${ac_cv_path_CXX+:} false; then :
4774   $as_echo_n "(cached) " >&6
4775 else
4776   case $CXX in
4777   [\\/]* | ?:[\\/]*)
4778   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4779   ;;
4780   *)
4781   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784   IFS=$as_save_IFS
4785   test -z "$as_dir" && as_dir=.
4786     for ac_exec_ext in '' $ac_executable_extensions; do
4787   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4788     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4789     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4790     break 2
4791   fi
4792 done
4793   done
4794 IFS=$as_save_IFS
4795
4796   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4797   ;;
4798 esac
4799 fi
4800 CXX=$ac_cv_path_CXX
4801 if test -n "$CXX"; then
4802   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4803 $as_echo "$CXX" >&6; }
4804 else
4805   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4806 $as_echo "no" >&6; }
4807 fi
4808
4809
4810 if test ! -e $CXX; then
4811    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4812 fi
4813
4814 # Find a good install program.  We prefer a C program (faster),
4815 # so one script is as good as another.  But avoid the broken or
4816 # incompatible versions:
4817 # SysV /etc/install, /usr/sbin/install
4818 # SunOS /usr/etc/install
4819 # IRIX /sbin/install
4820 # AIX /bin/install
4821 # AmigaOS /C/install, which installs bootblocks on floppy discs
4822 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4823 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4824 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4825 # OS/2's system install, which has a completely different semantic
4826 # ./install, which can be erroneously created by make from ./install.sh.
4827 # Reject install programs that cannot install multiple files.
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4829 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4830 if test -z "$INSTALL"; then
4831 if ${ac_cv_path_install+:} false; then :
4832   $as_echo_n "(cached) " >&6
4833 else
4834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4835 for as_dir in $PATH
4836 do
4837   IFS=$as_save_IFS
4838   test -z "$as_dir" && as_dir=.
4839     # Account for people who put trailing slashes in PATH elements.
4840 case $as_dir/ in #((
4841   ./ | .// | /[cC]/* | \
4842   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4843   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4844   /usr/ucb/* ) ;;
4845   *)
4846     # OSF1 and SCO ODT 3.0 have their own names for install.
4847     # Don't use installbsd from OSF since it installs stuff as root
4848     # by default.
4849     for ac_prog in ginstall scoinst install; do
4850       for ac_exec_ext in '' $ac_executable_extensions; do
4851         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4852           if test $ac_prog = install &&
4853             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4854             # AIX install.  It has an incompatible calling convention.
4855             :
4856           elif test $ac_prog = install &&
4857             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4858             # program-specific install script used by HP pwplus--don't use.
4859             :
4860           else
4861             rm -rf conftest.one conftest.two conftest.dir
4862             echo one > conftest.one
4863             echo two > conftest.two
4864             mkdir conftest.dir
4865             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4866               test -s conftest.one && test -s conftest.two &&
4867               test -s conftest.dir/conftest.one &&
4868               test -s conftest.dir/conftest.two
4869             then
4870               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4871               break 3
4872             fi
4873           fi
4874         fi
4875       done
4876     done
4877     ;;
4878 esac
4879
4880   done
4881 IFS=$as_save_IFS
4882
4883 rm -rf conftest.one conftest.two conftest.dir
4884
4885 fi
4886   if test "${ac_cv_path_install+set}" = set; then
4887     INSTALL=$ac_cv_path_install
4888   else
4889     # As a last resort, use the slow shell script.  Don't cache a
4890     # value for INSTALL within a source directory, because that will
4891     # break other packages using the cache if that directory is
4892     # removed, or if the value is a relative name.
4893     INSTALL=$ac_install_sh
4894   fi
4895 fi
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4897 $as_echo "$INSTALL" >&6; }
4898
4899 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4900 # It thinks the first close brace ends the variable substitution.
4901 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4902
4903 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4904
4905 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4906
4907 # Extract the first word of "mv", so it can be a program name with args.
4908 set dummy mv; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if ${ac_cv_path_MV+:} false; then :
4912   $as_echo_n "(cached) " >&6
4913 else
4914   case $MV in
4915   [\\/]* | ?:[\\/]*)
4916   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4917   ;;
4918   *)
4919   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920 for as_dir in $PATH
4921 do
4922   IFS=$as_save_IFS
4923   test -z "$as_dir" && as_dir=.
4924     for ac_exec_ext in '' $ac_executable_extensions; do
4925   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4927     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928     break 2
4929   fi
4930 done
4931   done
4932 IFS=$as_save_IFS
4933
4934   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4935   ;;
4936 esac
4937 fi
4938 MV=$ac_cv_path_MV
4939 if test -n "$MV"; then
4940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4941 $as_echo "$MV" >&6; }
4942 else
4943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944 $as_echo "no" >&6; }
4945 fi
4946
4947
4948 # Extract the first word of "rm", so it can be a program name with args.
4949 set dummy rm; ac_word=$2
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4951 $as_echo_n "checking for $ac_word... " >&6; }
4952 if ${ac_cv_path_REMOVE+:} false; then :
4953   $as_echo_n "(cached) " >&6
4954 else
4955   case $REMOVE in
4956   [\\/]* | ?:[\\/]*)
4957   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4958   ;;
4959   *)
4960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963   IFS=$as_save_IFS
4964   test -z "$as_dir" && as_dir=.
4965     for ac_exec_ext in '' $ac_executable_extensions; do
4966   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969     break 2
4970   fi
4971 done
4972   done
4973 IFS=$as_save_IFS
4974
4975   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4976   ;;
4977 esac
4978 fi
4979 REMOVE=$ac_cv_path_REMOVE
4980 if test -n "$REMOVE"; then
4981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4982 $as_echo "$REMOVE" >&6; }
4983 else
4984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985 $as_echo "no" >&6; }
4986 fi
4987
4988
4989 # Extract the first word of "cp", so it can be a program name with args.
4990 set dummy cp; ac_word=$2
4991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4992 $as_echo_n "checking for $ac_word... " >&6; }
4993 if ${ac_cv_path_CP+:} false; then :
4994   $as_echo_n "(cached) " >&6
4995 else
4996   case $CP in
4997   [\\/]* | ?:[\\/]*)
4998   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4999   ;;
5000   *)
5001   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004   IFS=$as_save_IFS
5005   test -z "$as_dir" && as_dir=.
5006     for ac_exec_ext in '' $ac_executable_extensions; do
5007   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5009     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010     break 2
5011   fi
5012 done
5013   done
5014 IFS=$as_save_IFS
5015
5016   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5017   ;;
5018 esac
5019 fi
5020 CP=$ac_cv_path_CP
5021 if test -n "$CP"; then
5022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5023 $as_echo "$CP" >&6; }
5024 else
5025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5026 $as_echo "no" >&6; }
5027 fi
5028
5029
5030 # Extract the first word of "sed", so it can be a program name with args.
5031 set dummy sed; ac_word=$2
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5033 $as_echo_n "checking for $ac_word... " >&6; }
5034 if ${ac_cv_path_SED+:} false; then :
5035   $as_echo_n "(cached) " >&6
5036 else
5037   case $SED in
5038   [\\/]* | ?:[\\/]*)
5039   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5040   ;;
5041   *)
5042   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045   IFS=$as_save_IFS
5046   test -z "$as_dir" && as_dir=.
5047     for ac_exec_ext in '' $ac_executable_extensions; do
5048   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5049     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5050     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5051     break 2
5052   fi
5053 done
5054   done
5055 IFS=$as_save_IFS
5056
5057   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5058   ;;
5059 esac
5060 fi
5061 SED=$ac_cv_path_SED
5062 if test -n "$SED"; then
5063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5064 $as_echo "$SED" >&6; }
5065 else
5066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5067 $as_echo "no" >&6; }
5068 fi
5069
5070
5071 # Extract the first word of "echo", so it can be a program name with args.
5072 set dummy echo; ac_word=$2
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5074 $as_echo_n "checking for $ac_word... " >&6; }
5075 if ${ac_cv_path_ECHO+:} false; then :
5076   $as_echo_n "(cached) " >&6
5077 else
5078   case $ECHO in
5079   [\\/]* | ?:[\\/]*)
5080   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5081   ;;
5082   *)
5083   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5084 for as_dir in $PATH
5085 do
5086   IFS=$as_save_IFS
5087   test -z "$as_dir" && as_dir=.
5088     for ac_exec_ext in '' $ac_executable_extensions; do
5089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5090     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5092     break 2
5093   fi
5094 done
5095   done
5096 IFS=$as_save_IFS
5097
5098   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5099   ;;
5100 esac
5101 fi
5102 ECHO=$ac_cv_path_ECHO
5103 if test -n "$ECHO"; then
5104   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5105 $as_echo "$ECHO" >&6; }
5106 else
5107   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5108 $as_echo "no" >&6; }
5109 fi
5110
5111
5112 # Extract the first word of "cmp", so it can be a program name with args.
5113 set dummy cmp; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_path_CMP+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   case $CMP in
5120   [\\/]* | ?:[\\/]*)
5121   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5122   ;;
5123   *)
5124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5140   ;;
5141 esac
5142 fi
5143 CMP=$ac_cv_path_CMP
5144 if test -n "$CMP"; then
5145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5146 $as_echo "$CMP" >&6; }
5147 else
5148   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5150 fi
5151
5152
5153 # Extract the first word of "tbl", so it can be a program name with args.
5154 set dummy tbl; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; }
5157 if ${ac_cv_path_TBL+:} false; then :
5158   $as_echo_n "(cached) " >&6
5159 else
5160   case $TBL in
5161   [\\/]* | ?:[\\/]*)
5162   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5163   ;;
5164   *)
5165   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH
5167 do
5168   IFS=$as_save_IFS
5169   test -z "$as_dir" && as_dir=.
5170     for ac_exec_ext in '' $ac_executable_extensions; do
5171   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5172     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5173     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5174     break 2
5175   fi
5176 done
5177   done
5178 IFS=$as_save_IFS
5179
5180   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5181   ;;
5182 esac
5183 fi
5184 TBL=$ac_cv_path_TBL
5185 if test -n "$TBL"; then
5186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5187 $as_echo "$TBL" >&6; }
5188 else
5189   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5191 fi
5192
5193
5194 # Extract the first word of "ar", so it can be a program name with args.
5195 set dummy ar; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_path_AR+:} false; then :
5199   $as_echo_n "(cached) " >&6
5200 else
5201   case $AR in
5202   [\\/]* | ?:[\\/]*)
5203   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5204   ;;
5205   *)
5206   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209   IFS=$as_save_IFS
5210   test -z "$as_dir" && as_dir=.
5211     for ac_exec_ext in '' $ac_executable_extensions; do
5212   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5213     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5214     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215     break 2
5216   fi
5217 done
5218   done
5219 IFS=$as_save_IFS
5220
5221   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5222   ;;
5223 esac
5224 fi
5225 AR=$ac_cv_path_AR
5226 if test -n "$AR"; then
5227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5228 $as_echo "$AR" >&6; }
5229 else
5230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 # Extract the first word of "openssl", so it can be a program name with args.
5236 set dummy openssl; ac_word=$2
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5238 $as_echo_n "checking for $ac_word... " >&6; }
5239 if ${ac_cv_path_OPENSSL+:} false; then :
5240   $as_echo_n "(cached) " >&6
5241 else
5242   case $OPENSSL in
5243   [\\/]* | ?:[\\/]*)
5244   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5245   ;;
5246   *)
5247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5248 for as_dir in $PATH
5249 do
5250   IFS=$as_save_IFS
5251   test -z "$as_dir" && as_dir=.
5252     for ac_exec_ext in '' $ac_executable_extensions; do
5253   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5254     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5255     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5256     break 2
5257   fi
5258 done
5259   done
5260 IFS=$as_save_IFS
5261
5262   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5263   ;;
5264 esac
5265 fi
5266 OPENSSL=$ac_cv_path_OPENSSL
5267 if test -n "$OPENSSL"; then
5268   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5269 $as_echo "$OPENSSL" >&6; }
5270 else
5271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5272 $as_echo "no" >&6; }
5273 fi
5274
5275
5276 # Extract the first word of "mtx", so it can be a program name with args.
5277 set dummy mtx; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_path_MTX+:} false; then :
5281   $as_echo_n "(cached) " >&6
5282 else
5283   case $MTX in
5284   [\\/]* | ?:[\\/]*)
5285   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5286   ;;
5287   *)
5288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5289 for as_dir in $PATH
5290 do
5291   IFS=$as_save_IFS
5292   test -z "$as_dir" && as_dir=.
5293     for ac_exec_ext in '' $ac_executable_extensions; do
5294   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5295     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5297     break 2
5298   fi
5299 done
5300   done
5301 IFS=$as_save_IFS
5302
5303   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5304   ;;
5305 esac
5306 fi
5307 MTX=$ac_cv_path_MTX
5308 if test -n "$MTX"; then
5309   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5310 $as_echo "$MTX" >&6; }
5311 else
5312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5313 $as_echo "no" >&6; }
5314 fi
5315
5316
5317 # Extract the first word of "dd", so it can be a program name with args.
5318 set dummy dd; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; }
5321 if ${ac_cv_path_DD+:} false; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   case $DD in
5325   [\\/]* | ?:[\\/]*)
5326   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5327   ;;
5328   *)
5329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH
5331 do
5332   IFS=$as_save_IFS
5333   test -z "$as_dir" && as_dir=.
5334     for ac_exec_ext in '' $ac_executable_extensions; do
5335   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5336     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5337     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5338     break 2
5339   fi
5340 done
5341   done
5342 IFS=$as_save_IFS
5343
5344   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5345   ;;
5346 esac
5347 fi
5348 DD=$ac_cv_path_DD
5349 if test -n "$DD"; then
5350   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5351 $as_echo "$DD" >&6; }
5352 else
5353   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5354 $as_echo "no" >&6; }
5355 fi
5356
5357
5358 # Extract the first word of "mkisofs", so it can be a program name with args.
5359 set dummy mkisofs; ac_word=$2
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5361 $as_echo_n "checking for $ac_word... " >&6; }
5362 if ${ac_cv_path_MKISOFS+:} false; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   case $MKISOFS in
5366   [\\/]* | ?:[\\/]*)
5367   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5368   ;;
5369   *)
5370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 for as_dir in $PATH
5372 do
5373   IFS=$as_save_IFS
5374   test -z "$as_dir" && as_dir=.
5375     for ac_exec_ext in '' $ac_executable_extensions; do
5376   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5377     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5378     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5379     break 2
5380   fi
5381 done
5382   done
5383 IFS=$as_save_IFS
5384
5385   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5386   ;;
5387 esac
5388 fi
5389 MKISOFS=$ac_cv_path_MKISOFS
5390 if test -n "$MKISOFS"; then
5391   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5392 $as_echo "$MKISOFS" >&6; }
5393 else
5394   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5395 $as_echo "no" >&6; }
5396 fi
5397
5398
5399 # Extract the first word of "python", so it can be a program name with args.
5400 set dummy python; ac_word=$2
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5402 $as_echo_n "checking for $ac_word... " >&6; }
5403 if ${ac_cv_path_PYTHON+:} false; then :
5404   $as_echo_n "(cached) " >&6
5405 else
5406   case $PYTHON in
5407   [\\/]* | ?:[\\/]*)
5408   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5409   ;;
5410   *)
5411   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5412 for as_dir in $PATH
5413 do
5414   IFS=$as_save_IFS
5415   test -z "$as_dir" && as_dir=.
5416     for ac_exec_ext in '' $ac_executable_extensions; do
5417   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5418     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5419     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5420     break 2
5421   fi
5422 done
5423   done
5424 IFS=$as_save_IFS
5425
5426   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5427   ;;
5428 esac
5429 fi
5430 PYTHON=$ac_cv_path_PYTHON
5431 if test -n "$PYTHON"; then
5432   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5433 $as_echo "$PYTHON" >&6; }
5434 else
5435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 $as_echo "no" >&6; }
5437 fi
5438
5439
5440 # Extract the first word of "growisofs", so it can be a program name with args.
5441 set dummy growisofs; ac_word=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_path_GROWISOFS+:} false; then :
5445   $as_echo_n "(cached) " >&6
5446 else
5447   case $GROWISOFS in
5448   [\\/]* | ?:[\\/]*)
5449   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5450   ;;
5451   *)
5452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5453 for as_dir in $PATH
5454 do
5455   IFS=$as_save_IFS
5456   test -z "$as_dir" && as_dir=.
5457     for ac_exec_ext in '' $ac_executable_extensions; do
5458   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5459     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5460     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5461     break 2
5462   fi
5463 done
5464   done
5465 IFS=$as_save_IFS
5466
5467   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5468   ;;
5469 esac
5470 fi
5471 GROWISOFS=$ac_cv_path_GROWISOFS
5472 if test -n "$GROWISOFS"; then
5473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5474 $as_echo "$GROWISOFS" >&6; }
5475 else
5476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5477 $as_echo "no" >&6; }
5478 fi
5479
5480
5481 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5482 set dummy dvd+rw-mediainfo; ac_word=$2
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5484 $as_echo_n "checking for $ac_word... " >&6; }
5485 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5486   $as_echo_n "(cached) " >&6
5487 else
5488   case $DVDRWMEDIAINFO in
5489   [\\/]* | ?:[\\/]*)
5490   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5491   ;;
5492   *)
5493   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5494 for as_dir in $PATH
5495 do
5496   IFS=$as_save_IFS
5497   test -z "$as_dir" && as_dir=.
5498     for ac_exec_ext in '' $ac_executable_extensions; do
5499   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5501     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5502     break 2
5503   fi
5504 done
5505   done
5506 IFS=$as_save_IFS
5507
5508   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5509   ;;
5510 esac
5511 fi
5512 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5513 if test -n "$DVDRWMEDIAINFO"; then
5514   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5515 $as_echo "$DVDRWMEDIAINFO" >&6; }
5516 else
5517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5519 fi
5520
5521
5522 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5523 set dummy dvd+rw-format; ac_word=$2
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5525 $as_echo_n "checking for $ac_word... " >&6; }
5526 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5527   $as_echo_n "(cached) " >&6
5528 else
5529   case $DVDRWFORMAT in
5530   [\\/]* | ?:[\\/]*)
5531   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5532   ;;
5533   *)
5534   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5536 do
5537   IFS=$as_save_IFS
5538   test -z "$as_dir" && as_dir=.
5539     for ac_exec_ext in '' $ac_executable_extensions; do
5540   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5542     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543     break 2
5544   fi
5545 done
5546   done
5547 IFS=$as_save_IFS
5548
5549   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5550   ;;
5551 esac
5552 fi
5553 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5554 if test -n "$DVDRWFORMAT"; then
5555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5556 $as_echo "$DVDRWFORMAT" >&6; }
5557 else
5558   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5560 fi
5561
5562
5563 # Extract the first word of "pkg-config", so it can be a program name with args.
5564 set dummy pkg-config; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_path_PKGCONFIG+:} false; then :
5568   $as_echo_n "(cached) " >&6
5569 else
5570   case $PKGCONFIG in
5571   [\\/]* | ?:[\\/]*)
5572   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5573   ;;
5574   *)
5575   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578   IFS=$as_save_IFS
5579   test -z "$as_dir" && as_dir=.
5580     for ac_exec_ext in '' $ac_executable_extensions; do
5581   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5582     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5583     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5584     break 2
5585   fi
5586 done
5587   done
5588 IFS=$as_save_IFS
5589
5590   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5591   ;;
5592 esac
5593 fi
5594 PKGCONFIG=$ac_cv_path_PKGCONFIG
5595 if test -n "$PKGCONFIG"; then
5596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5597 $as_echo "$PKGCONFIG" >&6; }
5598 else
5599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 # Extract the first word of "qmake", so it can be a program name with args.
5605 set dummy qmake; ac_word=$2
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 $as_echo_n "checking for $ac_word... " >&6; }
5608 if ${ac_cv_path_QMAKE+:} false; then :
5609   $as_echo_n "(cached) " >&6
5610 else
5611   case $QMAKE in
5612   [\\/]* | ?:[\\/]*)
5613   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5614   ;;
5615   *)
5616   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 for as_dir in $PATH
5618 do
5619   IFS=$as_save_IFS
5620   test -z "$as_dir" && as_dir=.
5621     for ac_exec_ext in '' $ac_executable_extensions; do
5622   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5623     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5624     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5625     break 2
5626   fi
5627 done
5628   done
5629 IFS=$as_save_IFS
5630
5631   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5632   ;;
5633 esac
5634 fi
5635 QMAKE=$ac_cv_path_QMAKE
5636 if test -n "$QMAKE"; then
5637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5638 $as_echo "$QMAKE" >&6; }
5639 else
5640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5641 $as_echo "no" >&6; }
5642 fi
5643
5644
5645 # Extract the first word of "gmake", so it can be a program name with args.
5646 set dummy gmake; ac_word=$2
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5648 $as_echo_n "checking for $ac_word... " >&6; }
5649 if ${ac_cv_path_GMAKE+:} false; then :
5650   $as_echo_n "(cached) " >&6
5651 else
5652   case $GMAKE in
5653   [\\/]* | ?:[\\/]*)
5654   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5655   ;;
5656   *)
5657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5659 do
5660   IFS=$as_save_IFS
5661   test -z "$as_dir" && as_dir=.
5662     for ac_exec_ext in '' $ac_executable_extensions; do
5663   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5664     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5665     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666     break 2
5667   fi
5668 done
5669   done
5670 IFS=$as_save_IFS
5671
5672   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5673   ;;
5674 esac
5675 fi
5676 GMAKE=$ac_cv_path_GMAKE
5677 if test -n "$GMAKE"; then
5678   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5679 $as_echo "$GMAKE" >&6; }
5680 else
5681   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5682 $as_echo "no" >&6; }
5683 fi
5684
5685
5686 # Extract the first word of "pidof", so it can be a program name with args.
5687 set dummy pidof; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689 $as_echo_n "checking for $ac_word... " >&6; }
5690 if ${ac_cv_path_PIDOF+:} false; then :
5691   $as_echo_n "(cached) " >&6
5692 else
5693   case $PIDOF in
5694   [\\/]* | ?:[\\/]*)
5695   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5696   ;;
5697   *)
5698   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5699 for as_dir in $PATH
5700 do
5701   IFS=$as_save_IFS
5702   test -z "$as_dir" && as_dir=.
5703     for ac_exec_ext in '' $ac_executable_extensions; do
5704   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5705     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5706     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5707     break 2
5708   fi
5709 done
5710   done
5711 IFS=$as_save_IFS
5712
5713   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5714   ;;
5715 esac
5716 fi
5717 PIDOF=$ac_cv_path_PIDOF
5718 if test -n "$PIDOF"; then
5719   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5720 $as_echo "$PIDOF" >&6; }
5721 else
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 $as_echo "no" >&6; }
5724 fi
5725
5726
5727 for ac_prog in gawk mawk nawk awk
5728 do
5729   # Extract the first word of "$ac_prog", so it can be a program name with args.
5730 set dummy $ac_prog; ac_word=$2
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5732 $as_echo_n "checking for $ac_word... " >&6; }
5733 if ${ac_cv_prog_AWK+:} false; then :
5734   $as_echo_n "(cached) " >&6
5735 else
5736   if test -n "$AWK"; then
5737   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5738 else
5739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5740 for as_dir in $PATH
5741 do
5742   IFS=$as_save_IFS
5743   test -z "$as_dir" && as_dir=.
5744     for ac_exec_ext in '' $ac_executable_extensions; do
5745   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5746     ac_cv_prog_AWK="$ac_prog"
5747     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5748     break 2
5749   fi
5750 done
5751   done
5752 IFS=$as_save_IFS
5753
5754 fi
5755 fi
5756 AWK=$ac_cv_prog_AWK
5757 if test -n "$AWK"; then
5758   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5759 $as_echo "$AWK" >&6; }
5760 else
5761   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5762 $as_echo "no" >&6; }
5763 fi
5764
5765
5766   test -n "$AWK" && break
5767 done
5768
5769 # Some AWK programs fail, so test it and warn the user
5770 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5771       { if ((prog == $2) || (("(" prog ")") == $2) ||
5772       (("" prog "") == $2) ||
5773       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5774 else
5775   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5776    The regex engine of $AWK is too broken to be used you
5777    might want to install GNU AWK.
5778    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5779 fi
5780 THE_AWK=$AWK
5781 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5782 set dummy $THE_AWK; ac_word=$2
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5784 $as_echo_n "checking for $ac_word... " >&6; }
5785 if ${ac_cv_path_AWK+:} false; then :
5786   $as_echo_n "(cached) " >&6
5787 else
5788   case $AWK in
5789   [\\/]* | ?:[\\/]*)
5790   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5791   ;;
5792   *)
5793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5794 for as_dir in $PATH
5795 do
5796   IFS=$as_save_IFS
5797   test -z "$as_dir" && as_dir=.
5798     for ac_exec_ext in '' $ac_executable_extensions; do
5799   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5800     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5801     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5802     break 2
5803   fi
5804 done
5805   done
5806 IFS=$as_save_IFS
5807
5808   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5809   ;;
5810 esac
5811 fi
5812 AWK=$ac_cv_path_AWK
5813 if test -n "$AWK"; then
5814   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5815 $as_echo "$AWK" >&6; }
5816 else
5817   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818 $as_echo "no" >&6; }
5819 fi
5820
5821
5822
5823
5824 test -n "$ARFLAG" || ARFLAGS="cr"
5825
5826
5827 MAKE_SHELL=/bin/sh
5828
5829
5830
5831
5832
5833
5834
5835 use_libtool=yes
5836 # Check whether --enable-libtool was given.
5837 if test "${enable_libtool+set}" = set; then :
5838   enableval=$enable_libtool;
5839        if test x$enableval = xno; then
5840           use_libtool=no
5841        fi
5842
5843
5844 fi
5845
5846 case `pwd` in
5847   *\ * | *\     *)
5848     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5849 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5850 esac
5851
5852
5853
5854 macro_version='2.4.2'
5855 macro_revision='1.3337'
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869 ltmain="$ac_aux_dir/ltmain.sh"
5870
5871 # Make sure we can run config.sub.
5872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5873   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5874
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5876 $as_echo_n "checking build system type... " >&6; }
5877 if ${ac_cv_build+:} false; then :
5878   $as_echo_n "(cached) " >&6
5879 else
5880   ac_build_alias=$build_alias
5881 test "x$ac_build_alias" = x &&
5882   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5883 test "x$ac_build_alias" = x &&
5884   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5886   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5887
5888 fi
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5890 $as_echo "$ac_cv_build" >&6; }
5891 case $ac_cv_build in
5892 *-*-*) ;;
5893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5894 esac
5895 build=$ac_cv_build
5896 ac_save_IFS=$IFS; IFS='-'
5897 set x $ac_cv_build
5898 shift
5899 build_cpu=$1
5900 build_vendor=$2
5901 shift; shift
5902 # Remember, the first character of IFS is used to create $*,
5903 # except with old shells:
5904 build_os=$*
5905 IFS=$ac_save_IFS
5906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5907
5908
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5910 $as_echo_n "checking host system type... " >&6; }
5911 if ${ac_cv_host+:} false; then :
5912   $as_echo_n "(cached) " >&6
5913 else
5914   if test "x$host_alias" = x; then
5915   ac_cv_host=$ac_cv_build
5916 else
5917   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5918     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5919 fi
5920
5921 fi
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5923 $as_echo "$ac_cv_host" >&6; }
5924 case $ac_cv_host in
5925 *-*-*) ;;
5926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5927 esac
5928 host=$ac_cv_host
5929 ac_save_IFS=$IFS; IFS='-'
5930 set x $ac_cv_host
5931 shift
5932 host_cpu=$1
5933 host_vendor=$2
5934 shift; shift
5935 # Remember, the first character of IFS is used to create $*,
5936 # except with old shells:
5937 host_os=$*
5938 IFS=$ac_save_IFS
5939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5940
5941
5942 # Backslashify metacharacters that are still active within
5943 # double-quoted strings.
5944 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5945
5946 # Same as above, but do not quote variable references.
5947 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5948
5949 # Sed substitution to delay expansion of an escaped shell variable in a
5950 # double_quote_subst'ed string.
5951 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5952
5953 # Sed substitution to delay expansion of an escaped single quote.
5954 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5955
5956 # Sed substitution to avoid accidental globbing in evaled expressions
5957 no_glob_subst='s/\*/\\\*/g'
5958
5959 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5961 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5962
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5964 $as_echo_n "checking how to print strings... " >&6; }
5965 # Test print first, because it will be a builtin if present.
5966 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5967    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5968   ECHO='print -r --'
5969 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5970   ECHO='printf %s\n'
5971 else
5972   # Use this function as a fallback that always works.
5973   func_fallback_echo ()
5974   {
5975     eval 'cat <<_LTECHO_EOF
5976 $1
5977 _LTECHO_EOF'
5978   }
5979   ECHO='func_fallback_echo'
5980 fi
5981
5982 # func_echo_all arg...
5983 # Invoke $ECHO with all args, space-separated.
5984 func_echo_all ()
5985 {
5986     $ECHO ""
5987 }
5988
5989 case "$ECHO" in
5990   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5991 $as_echo "printf" >&6; } ;;
5992   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5993 $as_echo "print -r" >&6; } ;;
5994   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5995 $as_echo "cat" >&6; } ;;
5996 esac
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6012 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6013 if ${ac_cv_path_SED+:} false; then :
6014   $as_echo_n "(cached) " >&6
6015 else
6016             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6017      for ac_i in 1 2 3 4 5 6 7; do
6018        ac_script="$ac_script$as_nl$ac_script"
6019      done
6020      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6021      { ac_script=; unset ac_script;}
6022      if test -z "$SED"; then
6023   ac_path_SED_found=false
6024   # Loop through the user's path and test for each of PROGNAME-LIST
6025   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6026 for as_dir in $PATH
6027 do
6028   IFS=$as_save_IFS
6029   test -z "$as_dir" && as_dir=.
6030     for ac_prog in sed gsed; do
6031     for ac_exec_ext in '' $ac_executable_extensions; do
6032       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6033       as_fn_executable_p "$ac_path_SED" || continue
6034 # Check for GNU ac_path_SED and select it if it is found.
6035   # Check for GNU $ac_path_SED
6036 case `"$ac_path_SED" --version 2>&1` in
6037 *GNU*)
6038   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6039 *)
6040   ac_count=0
6041   $as_echo_n 0123456789 >"conftest.in"
6042   while :
6043   do
6044     cat "conftest.in" "conftest.in" >"conftest.tmp"
6045     mv "conftest.tmp" "conftest.in"
6046     cp "conftest.in" "conftest.nl"
6047     $as_echo '' >> "conftest.nl"
6048     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6049     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6050     as_fn_arith $ac_count + 1 && ac_count=$as_val
6051     if test $ac_count -gt ${ac_path_SED_max-0}; then
6052       # Best one so far, save it but keep looking for a better one
6053       ac_cv_path_SED="$ac_path_SED"
6054       ac_path_SED_max=$ac_count
6055     fi
6056     # 10*(2^10) chars as input seems more than enough
6057     test $ac_count -gt 10 && break
6058   done
6059   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6060 esac
6061
6062       $ac_path_SED_found && break 3
6063     done
6064   done
6065   done
6066 IFS=$as_save_IFS
6067   if test -z "$ac_cv_path_SED"; then
6068     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6069   fi
6070 else
6071   ac_cv_path_SED=$SED
6072 fi
6073
6074 fi
6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6076 $as_echo "$ac_cv_path_SED" >&6; }
6077  SED="$ac_cv_path_SED"
6078   rm -f conftest.sed
6079
6080 test -z "$SED" && SED=sed
6081 Xsed="$SED -e 1s/^X//"
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6094 $as_echo_n "checking for fgrep... " >&6; }
6095 if ${ac_cv_path_FGREP+:} false; then :
6096   $as_echo_n "(cached) " >&6
6097 else
6098   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6099    then ac_cv_path_FGREP="$GREP -F"
6100    else
6101      if test -z "$FGREP"; then
6102   ac_path_FGREP_found=false
6103   # Loop through the user's path and test for each of PROGNAME-LIST
6104   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6106 do
6107   IFS=$as_save_IFS
6108   test -z "$as_dir" && as_dir=.
6109     for ac_prog in fgrep; do
6110     for ac_exec_ext in '' $ac_executable_extensions; do
6111       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6112       as_fn_executable_p "$ac_path_FGREP" || continue
6113 # Check for GNU ac_path_FGREP and select it if it is found.
6114   # Check for GNU $ac_path_FGREP
6115 case `"$ac_path_FGREP" --version 2>&1` in
6116 *GNU*)
6117   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6118 *)
6119   ac_count=0
6120   $as_echo_n 0123456789 >"conftest.in"
6121   while :
6122   do
6123     cat "conftest.in" "conftest.in" >"conftest.tmp"
6124     mv "conftest.tmp" "conftest.in"
6125     cp "conftest.in" "conftest.nl"
6126     $as_echo 'FGREP' >> "conftest.nl"
6127     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6128     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6129     as_fn_arith $ac_count + 1 && ac_count=$as_val
6130     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6131       # Best one so far, save it but keep looking for a better one
6132       ac_cv_path_FGREP="$ac_path_FGREP"
6133       ac_path_FGREP_max=$ac_count
6134     fi
6135     # 10*(2^10) chars as input seems more than enough
6136     test $ac_count -gt 10 && break
6137   done
6138   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6139 esac
6140
6141       $ac_path_FGREP_found && break 3
6142     done
6143   done
6144   done
6145 IFS=$as_save_IFS
6146   if test -z "$ac_cv_path_FGREP"; then
6147     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6148   fi
6149 else
6150   ac_cv_path_FGREP=$FGREP
6151 fi
6152
6153    fi
6154 fi
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6156 $as_echo "$ac_cv_path_FGREP" >&6; }
6157  FGREP="$ac_cv_path_FGREP"
6158
6159
6160 test -z "$GREP" && GREP=grep
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 # Check whether --with-gnu-ld was given.
6181 if test "${with_gnu_ld+set}" = set; then :
6182   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6183 else
6184   with_gnu_ld=no
6185 fi
6186
6187 ac_prog=ld
6188 if test "$GCC" = yes; then
6189   # Check if gcc -print-prog-name=ld gives a path.
6190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6191 $as_echo_n "checking for ld used by $CC... " >&6; }
6192   case $host in
6193   *-*-mingw*)
6194     # gcc leaves a trailing carriage return which upsets mingw
6195     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6196   *)
6197     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6198   esac
6199   case $ac_prog in
6200     # Accept absolute paths.
6201     [\\/]* | ?:[\\/]*)
6202       re_direlt='/[^/][^/]*/\.\./'
6203       # Canonicalize the pathname of ld
6204       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6205       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6206         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6207       done
6208       test -z "$LD" && LD="$ac_prog"
6209       ;;
6210   "")
6211     # If it fails, then pretend we aren't using GCC.
6212     ac_prog=ld
6213     ;;
6214   *)
6215     # If it is relative, then search for the first ld in PATH.
6216     with_gnu_ld=unknown
6217     ;;
6218   esac
6219 elif test "$with_gnu_ld" = yes; then
6220   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6221 $as_echo_n "checking for GNU ld... " >&6; }
6222 else
6223   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6224 $as_echo_n "checking for non-GNU ld... " >&6; }
6225 fi
6226 if ${lt_cv_path_LD+:} false; then :
6227   $as_echo_n "(cached) " >&6
6228 else
6229   if test -z "$LD"; then
6230   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6231   for ac_dir in $PATH; do
6232     IFS="$lt_save_ifs"
6233     test -z "$ac_dir" && ac_dir=.
6234     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6235       lt_cv_path_LD="$ac_dir/$ac_prog"
6236       # Check to see if the program is GNU ld.  I'd rather use --version,
6237       # but apparently some variants of GNU ld only accept -v.
6238       # Break only if it was the GNU/non-GNU ld that we prefer.
6239       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6240       *GNU* | *'with BFD'*)
6241         test "$with_gnu_ld" != no && break
6242         ;;
6243       *)
6244         test "$with_gnu_ld" != yes && break
6245         ;;
6246       esac
6247     fi
6248   done
6249   IFS="$lt_save_ifs"
6250 else
6251   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6252 fi
6253 fi
6254
6255 LD="$lt_cv_path_LD"
6256 if test -n "$LD"; then
6257   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6258 $as_echo "$LD" >&6; }
6259 else
6260   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6262 fi
6263 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6265 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6266 if ${lt_cv_prog_gnu_ld+:} false; then :
6267   $as_echo_n "(cached) " >&6
6268 else
6269   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6270 case `$LD -v 2>&1 </dev/null` in
6271 *GNU* | *'with BFD'*)
6272   lt_cv_prog_gnu_ld=yes
6273   ;;
6274 *)
6275   lt_cv_prog_gnu_ld=no
6276   ;;
6277 esac
6278 fi
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6280 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6281 with_gnu_ld=$lt_cv_prog_gnu_ld
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6292 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6293 if ${lt_cv_path_NM+:} false; then :
6294   $as_echo_n "(cached) " >&6
6295 else
6296   if test -n "$NM"; then
6297   # Let the user override the test.
6298   lt_cv_path_NM="$NM"
6299 else
6300   lt_nm_to_check="${ac_tool_prefix}nm"
6301   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6302     lt_nm_to_check="$lt_nm_to_check nm"
6303   fi
6304   for lt_tmp_nm in $lt_nm_to_check; do
6305     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6306     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6307       IFS="$lt_save_ifs"
6308       test -z "$ac_dir" && ac_dir=.
6309       tmp_nm="$ac_dir/$lt_tmp_nm"
6310       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6311         # Check to see if the nm accepts a BSD-compat flag.
6312         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6313         #   nm: unknown option "B" ignored
6314         # Tru64's nm complains that /dev/null is an invalid object file
6315         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6316         */dev/null* | *'Invalid file or object type'*)
6317           lt_cv_path_NM="$tmp_nm -B"
6318           break
6319           ;;
6320         *)
6321           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6322           */dev/null*)
6323             lt_cv_path_NM="$tmp_nm -p"
6324             break
6325             ;;
6326           *)
6327             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6328             continue # so that we can try to find one that supports BSD flags
6329             ;;
6330           esac
6331           ;;
6332         esac
6333       fi
6334     done
6335     IFS="$lt_save_ifs"
6336   done
6337   : ${lt_cv_path_NM=no}
6338 fi
6339 fi
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6341 $as_echo "$lt_cv_path_NM" >&6; }
6342 if test "$lt_cv_path_NM" != "no"; then
6343   NM="$lt_cv_path_NM"
6344 else
6345   # Didn't find any BSD compatible name lister, look for dumpbin.
6346   if test -n "$DUMPBIN"; then :
6347     # Let the user override the test.
6348   else
6349     if test -n "$ac_tool_prefix"; then
6350   for ac_prog in dumpbin "link -dump"
6351   do
6352     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6353 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6355 $as_echo_n "checking for $ac_word... " >&6; }
6356 if ${ac_cv_prog_DUMPBIN+:} false; then :
6357   $as_echo_n "(cached) " >&6
6358 else
6359   if test -n "$DUMPBIN"; then
6360   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6361 else
6362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363 for as_dir in $PATH
6364 do
6365   IFS=$as_save_IFS
6366   test -z "$as_dir" && as_dir=.
6367     for ac_exec_ext in '' $ac_executable_extensions; do
6368   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6369     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6371     break 2
6372   fi
6373 done
6374   done
6375 IFS=$as_save_IFS
6376
6377 fi
6378 fi
6379 DUMPBIN=$ac_cv_prog_DUMPBIN
6380 if test -n "$DUMPBIN"; then
6381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6382 $as_echo "$DUMPBIN" >&6; }
6383 else
6384   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6385 $as_echo "no" >&6; }
6386 fi
6387
6388
6389     test -n "$DUMPBIN" && break
6390   done
6391 fi
6392 if test -z "$DUMPBIN"; then
6393   ac_ct_DUMPBIN=$DUMPBIN
6394   for ac_prog in dumpbin "link -dump"
6395 do
6396   # Extract the first word of "$ac_prog", so it can be a program name with args.
6397 set dummy $ac_prog; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6401   $as_echo_n "(cached) " >&6
6402 else
6403   if test -n "$ac_ct_DUMPBIN"; then
6404   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409   IFS=$as_save_IFS
6410   test -z "$as_dir" && as_dir=.
6411     for ac_exec_ext in '' $ac_executable_extensions; do
6412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415     break 2
6416   fi
6417 done
6418   done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6424 if test -n "$ac_ct_DUMPBIN"; then
6425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6426 $as_echo "$ac_ct_DUMPBIN" >&6; }
6427 else
6428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433   test -n "$ac_ct_DUMPBIN" && break
6434 done
6435
6436   if test "x$ac_ct_DUMPBIN" = x; then
6437     DUMPBIN=":"
6438   else
6439     case $cross_compiling:$ac_tool_warned in
6440 yes:)
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6442 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6443 ac_tool_warned=yes ;;
6444 esac
6445     DUMPBIN=$ac_ct_DUMPBIN
6446   fi
6447 fi
6448
6449     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6450     *COFF*)
6451       DUMPBIN="$DUMPBIN -symbols"
6452       ;;
6453     *)
6454       DUMPBIN=:
6455       ;;
6456     esac
6457   fi
6458
6459   if test "$DUMPBIN" != ":"; then
6460     NM="$DUMPBIN"
6461   fi
6462 fi
6463 test -z "$NM" && NM=nm
6464
6465
6466
6467
6468
6469
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6471 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6472 if ${lt_cv_nm_interface+:} false; then :
6473   $as_echo_n "(cached) " >&6
6474 else
6475   lt_cv_nm_interface="BSD nm"
6476   echo "int some_variable = 0;" > conftest.$ac_ext
6477   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6478   (eval "$ac_compile" 2>conftest.err)
6479   cat conftest.err >&5
6480   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6481   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6482   cat conftest.err >&5
6483   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6484   cat conftest.out >&5
6485   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6486     lt_cv_nm_interface="MS dumpbin"
6487   fi
6488   rm -f conftest*
6489 fi
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6491 $as_echo "$lt_cv_nm_interface" >&6; }
6492
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6494 $as_echo_n "checking whether ln -s works... " >&6; }
6495 LN_S=$as_ln_s
6496 if test "$LN_S" = "ln -s"; then
6497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6498 $as_echo "yes" >&6; }
6499 else
6500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6501 $as_echo "no, using $LN_S" >&6; }
6502 fi
6503
6504 # find the maximum length of command line arguments
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6506 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6507 if ${lt_cv_sys_max_cmd_len+:} false; then :
6508   $as_echo_n "(cached) " >&6
6509 else
6510     i=0
6511   teststring="ABCD"
6512
6513   case $build_os in
6514   msdosdjgpp*)
6515     # On DJGPP, this test can blow up pretty badly due to problems in libc
6516     # (any single argument exceeding 2000 bytes causes a buffer overrun
6517     # during glob expansion).  Even if it were fixed, the result of this
6518     # check would be larger than it should be.
6519     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6520     ;;
6521
6522   gnu*)
6523     # Under GNU Hurd, this test is not required because there is
6524     # no limit to the length of command line arguments.
6525     # Libtool will interpret -1 as no limit whatsoever
6526     lt_cv_sys_max_cmd_len=-1;
6527     ;;
6528
6529   cygwin* | mingw* | cegcc*)
6530     # On Win9x/ME, this test blows up -- it succeeds, but takes
6531     # about 5 minutes as the teststring grows exponentially.
6532     # Worse, since 9x/ME are not pre-emptively multitasking,
6533     # you end up with a "frozen" computer, even though with patience
6534     # the test eventually succeeds (with a max line length of 256k).
6535     # Instead, let's just punt: use the minimum linelength reported by
6536     # all of the supported platforms: 8192 (on NT/2K/XP).
6537     lt_cv_sys_max_cmd_len=8192;
6538     ;;
6539
6540   mint*)
6541     # On MiNT this can take a long time and run out of memory.
6542     lt_cv_sys_max_cmd_len=8192;
6543     ;;
6544
6545   amigaos*)
6546     # On AmigaOS with pdksh, this test takes hours, literally.
6547     # So we just punt and use a minimum line length of 8192.
6548     lt_cv_sys_max_cmd_len=8192;
6549     ;;
6550
6551   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6552     # This has been around since 386BSD, at least.  Likely further.
6553     if test -x /sbin/sysctl; then
6554       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6555     elif test -x /usr/sbin/sysctl; then
6556       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6557     else
6558       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6559     fi
6560     # And add a safety zone
6561     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6562     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6563     ;;
6564
6565   interix*)
6566     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6567     lt_cv_sys_max_cmd_len=196608
6568     ;;
6569
6570   os2*)
6571     # The test takes a long time on OS/2.
6572     lt_cv_sys_max_cmd_len=8192
6573     ;;
6574
6575   osf*)
6576     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6577     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6578     # nice to cause kernel panics so lets avoid the loop below.
6579     # First set a reasonable default.
6580     lt_cv_sys_max_cmd_len=16384
6581     #
6582     if test -x /sbin/sysconfig; then
6583       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6584         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6585       esac
6586     fi
6587     ;;
6588   sco3.2v5*)
6589     lt_cv_sys_max_cmd_len=102400
6590     ;;
6591   sysv5* | sco5v6* | sysv4.2uw2*)
6592     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6593     if test -n "$kargmax"; then
6594       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6595     else
6596       lt_cv_sys_max_cmd_len=32768
6597     fi
6598     ;;
6599   *)
6600     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6601     if test -n "$lt_cv_sys_max_cmd_len" && \
6602         test undefined != "$lt_cv_sys_max_cmd_len"; then
6603       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6604       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6605     else
6606       # Make teststring a little bigger before we do anything with it.
6607       # a 1K string should be a reasonable start.
6608       for i in 1 2 3 4 5 6 7 8 ; do
6609         teststring=$teststring$teststring
6610       done
6611       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6612       # If test is not a shell built-in, we'll probably end up computing a
6613       # maximum length that is only half of the actual maximum length, but
6614       # we can't tell.
6615       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6616                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6617               test $i != 17 # 1/2 MB should be enough
6618       do
6619         i=`expr $i + 1`
6620         teststring=$teststring$teststring
6621       done
6622       # Only check the string length outside the loop.
6623       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6624       teststring=
6625       # Add a significant safety factor because C++ compilers can tack on
6626       # massive amounts of additional arguments before passing them to the
6627       # linker.  It appears as though 1/2 is a usable value.
6628       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6629     fi
6630     ;;
6631   esac
6632
6633 fi
6634
6635 if test -n $lt_cv_sys_max_cmd_len ; then
6636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6637 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6638 else
6639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6640 $as_echo "none" >&6; }
6641 fi
6642 max_cmd_len=$lt_cv_sys_max_cmd_len
6643
6644
6645
6646
6647
6648
6649 : ${CP="cp -f"}
6650 : ${MV="mv -f"}
6651 : ${RM="rm -f"}
6652
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6654 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6655 # Try some XSI features
6656 xsi_shell=no
6657 ( _lt_dummy="a/b/c"
6658   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6659       = c,a/b,b/c, \
6660     && eval 'test $(( 1 + 1 )) -eq 2 \
6661     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6662   && xsi_shell=yes
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6664 $as_echo "$xsi_shell" >&6; }
6665
6666
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6668 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6669 lt_shell_append=no
6670 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6671     >/dev/null 2>&1 \
6672   && lt_shell_append=yes
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6674 $as_echo "$lt_shell_append" >&6; }
6675
6676
6677 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6678   lt_unset=unset
6679 else
6680   lt_unset=false
6681 fi
6682
6683
6684
6685
6686
6687 # test EBCDIC or ASCII
6688 case `echo X|tr X '\101'` in
6689  A) # ASCII based system
6690     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6691   lt_SP2NL='tr \040 \012'
6692   lt_NL2SP='tr \015\012 \040\040'
6693   ;;
6694  *) # EBCDIC based system
6695   lt_SP2NL='tr \100 \n'
6696   lt_NL2SP='tr \r\n \100\100'
6697   ;;
6698 esac
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6709 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6710 if ${lt_cv_to_host_file_cmd+:} false; then :
6711   $as_echo_n "(cached) " >&6
6712 else
6713   case $host in
6714   *-*-mingw* )
6715     case $build in
6716       *-*-mingw* ) # actually msys
6717         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6718         ;;
6719       *-*-cygwin* )
6720         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6721         ;;
6722       * ) # otherwise, assume *nix
6723         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6724         ;;
6725     esac
6726     ;;
6727   *-*-cygwin* )
6728     case $build in
6729       *-*-mingw* ) # actually msys
6730         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6731         ;;
6732       *-*-cygwin* )
6733         lt_cv_to_host_file_cmd=func_convert_file_noop
6734         ;;
6735       * ) # otherwise, assume *nix
6736         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6737         ;;
6738     esac
6739     ;;
6740   * ) # unhandled hosts (and "normal" native builds)
6741     lt_cv_to_host_file_cmd=func_convert_file_noop
6742     ;;
6743 esac
6744
6745 fi
6746
6747 to_host_file_cmd=$lt_cv_to_host_file_cmd
6748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6749 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6750
6751
6752
6753
6754
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6756 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6757 if ${lt_cv_to_tool_file_cmd+:} false; then :
6758   $as_echo_n "(cached) " >&6
6759 else
6760   #assume ordinary cross tools, or native build.
6761 lt_cv_to_tool_file_cmd=func_convert_file_noop
6762 case $host in
6763   *-*-mingw* )
6764     case $build in
6765       *-*-mingw* ) # actually msys
6766         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6767         ;;
6768     esac
6769     ;;
6770 esac
6771
6772 fi
6773
6774 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6776 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6777
6778
6779
6780
6781
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6783 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6784 if ${lt_cv_ld_reload_flag+:} false; then :
6785   $as_echo_n "(cached) " >&6
6786 else
6787   lt_cv_ld_reload_flag='-r'
6788 fi
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6790 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6791 reload_flag=$lt_cv_ld_reload_flag
6792 case $reload_flag in
6793 "" | " "*) ;;
6794 *) reload_flag=" $reload_flag" ;;
6795 esac
6796 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6797 case $host_os in
6798   cygwin* | mingw* | pw32* | cegcc*)
6799     if test "$GCC" != yes; then
6800       reload_cmds=false
6801     fi
6802     ;;
6803   darwin*)
6804     if test "$GCC" = yes; then
6805       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6806     else
6807       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6808     fi
6809     ;;
6810 esac
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820 if test -n "$ac_tool_prefix"; then
6821   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_OBJDUMP+:} false; then :
6826   $as_echo_n "(cached) " >&6
6827 else
6828   if test -n "$OBJDUMP"; then
6829   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834   IFS=$as_save_IFS
6835   test -z "$as_dir" && as_dir=.
6836     for ac_exec_ext in '' $ac_executable_extensions; do
6837   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6839     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840     break 2
6841   fi
6842 done
6843   done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 OBJDUMP=$ac_cv_prog_OBJDUMP
6849 if test -n "$OBJDUMP"; then
6850   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6851 $as_echo "$OBJDUMP" >&6; }
6852 else
6853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_OBJDUMP"; then
6860   ac_ct_OBJDUMP=$OBJDUMP
6861   # Extract the first word of "objdump", so it can be a program name with args.
6862 set dummy objdump; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6866   $as_echo_n "(cached) " >&6
6867 else
6868   if test -n "$ac_ct_OBJDUMP"; then
6869   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874   IFS=$as_save_IFS
6875   test -z "$as_dir" && as_dir=.
6876     for ac_exec_ext in '' $ac_executable_extensions; do
6877   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6879     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880     break 2
6881   fi
6882 done
6883   done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6889 if test -n "$ac_ct_OBJDUMP"; then
6890   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6891 $as_echo "$ac_ct_OBJDUMP" >&6; }
6892 else
6893   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897   if test "x$ac_ct_OBJDUMP" = x; then
6898     OBJDUMP="false"
6899   else
6900     case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906     OBJDUMP=$ac_ct_OBJDUMP
6907   fi
6908 else
6909   OBJDUMP="$ac_cv_prog_OBJDUMP"
6910 fi
6911
6912 test -z "$OBJDUMP" && OBJDUMP=objdump
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6923 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6924 if ${lt_cv_deplibs_check_method+:} false; then :
6925   $as_echo_n "(cached) " >&6
6926 else
6927   lt_cv_file_magic_cmd='$MAGIC_CMD'
6928 lt_cv_file_magic_test_file=
6929 lt_cv_deplibs_check_method='unknown'
6930 # Need to set the preceding variable on all platforms that support
6931 # interlibrary dependencies.
6932 # 'none' -- dependencies not supported.
6933 # `unknown' -- same as none, but documents that we really don't know.
6934 # 'pass_all' -- all dependencies passed with no checks.
6935 # 'test_compile' -- check by making test program.
6936 # 'file_magic [[regex]]' -- check by looking for files in library path
6937 # which responds to the $file_magic_cmd with a given extended regex.
6938 # If you have `file' or equivalent on your system and you're not sure
6939 # whether `pass_all' will *always* work, you probably want this one.
6940
6941 case $host_os in
6942 aix[4-9]*)
6943   lt_cv_deplibs_check_method=pass_all
6944   ;;
6945
6946 beos*)
6947   lt_cv_deplibs_check_method=pass_all
6948   ;;
6949
6950 bsdi[45]*)
6951   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6952   lt_cv_file_magic_cmd='/usr/bin/file -L'
6953   lt_cv_file_magic_test_file=/shlib/libc.so
6954   ;;
6955
6956 cygwin*)
6957   # func_win32_libid is a shell function defined in ltmain.sh
6958   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6959   lt_cv_file_magic_cmd='func_win32_libid'
6960   ;;
6961
6962 mingw* | pw32*)
6963   # Base MSYS/MinGW do not provide the 'file' command needed by
6964   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6965   # unless we find 'file', for example because we are cross-compiling.
6966   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6967   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6968     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6969     lt_cv_file_magic_cmd='func_win32_libid'
6970   else
6971     # Keep this pattern in sync with the one in func_win32_libid.
6972     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6973     lt_cv_file_magic_cmd='$OBJDUMP -f'
6974   fi
6975   ;;
6976
6977 cegcc*)
6978   # use the weaker test based on 'objdump'. See mingw*.
6979   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6980   lt_cv_file_magic_cmd='$OBJDUMP -f'
6981   ;;
6982
6983 darwin* | rhapsody*)
6984   lt_cv_deplibs_check_method=pass_all
6985   ;;
6986
6987 freebsd* | dragonfly*)
6988   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6989     case $host_cpu in
6990     i*86 )
6991       # Not sure whether the presence of OpenBSD here was a mistake.
6992       # Let's accept both of them until this is cleared up.
6993       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6994       lt_cv_file_magic_cmd=/usr/bin/file
6995       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6996       ;;
6997     esac
6998   else
6999     lt_cv_deplibs_check_method=pass_all
7000   fi
7001   ;;
7002
7003 haiku*)
7004   lt_cv_deplibs_check_method=pass_all
7005   ;;
7006
7007 hpux10.20* | hpux11*)
7008   lt_cv_file_magic_cmd=/usr/bin/file
7009   case $host_cpu in
7010   ia64*)
7011     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7012     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7013     ;;
7014   hppa*64*)
7015     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]'
7016     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7017     ;;
7018   *)
7019     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7020     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7021     ;;
7022   esac
7023   ;;
7024
7025 interix[3-9]*)
7026   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7027   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7028   ;;
7029
7030 irix5* | irix6* | nonstopux*)
7031   case $LD in
7032   *-32|*"-32 ") libmagic=32-bit;;
7033   *-n32|*"-n32 ") libmagic=N32;;
7034   *-64|*"-64 ") libmagic=64-bit;;
7035   *) libmagic=never-match;;
7036   esac
7037   lt_cv_deplibs_check_method=pass_all
7038   ;;
7039
7040 # This must be glibc/ELF.
7041 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7042   lt_cv_deplibs_check_method=pass_all
7043   ;;
7044
7045 netbsd* | netbsdelf*-gnu)
7046   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7047     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7048   else
7049     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7050   fi
7051   ;;
7052
7053 newos6*)
7054   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7055   lt_cv_file_magic_cmd=/usr/bin/file
7056   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7057   ;;
7058
7059 *nto* | *qnx*)
7060   lt_cv_deplibs_check_method=pass_all
7061   ;;
7062
7063 openbsd*)
7064   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7065     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7066   else
7067     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7068   fi
7069   ;;
7070
7071 osf3* | osf4* | osf5*)
7072   lt_cv_deplibs_check_method=pass_all
7073   ;;
7074
7075 rdos*)
7076   lt_cv_deplibs_check_method=pass_all
7077   ;;
7078
7079 solaris*)
7080   lt_cv_deplibs_check_method=pass_all
7081   ;;
7082
7083 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7084   lt_cv_deplibs_check_method=pass_all
7085   ;;
7086
7087 sysv4 | sysv4.3*)
7088   case $host_vendor in
7089   motorola)
7090     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]'
7091     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7092     ;;
7093   ncr)
7094     lt_cv_deplibs_check_method=pass_all
7095     ;;
7096   sequent)
7097     lt_cv_file_magic_cmd='/bin/file'
7098     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7099     ;;
7100   sni)
7101     lt_cv_file_magic_cmd='/bin/file'
7102     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7103     lt_cv_file_magic_test_file=/lib/libc.so
7104     ;;
7105   siemens)
7106     lt_cv_deplibs_check_method=pass_all
7107     ;;
7108   pc)
7109     lt_cv_deplibs_check_method=pass_all
7110     ;;
7111   esac
7112   ;;
7113
7114 tpf*)
7115   lt_cv_deplibs_check_method=pass_all
7116   ;;
7117 esac
7118
7119 fi
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7121 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7122
7123 file_magic_glob=
7124 want_nocaseglob=no
7125 if test "$build" = "$host"; then
7126   case $host_os in
7127   mingw* | pw32*)
7128     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7129       want_nocaseglob=yes
7130     else
7131       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7132     fi
7133     ;;
7134   esac
7135 fi
7136
7137 file_magic_cmd=$lt_cv_file_magic_cmd
7138 deplibs_check_method=$lt_cv_deplibs_check_method
7139 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161
7162 if test -n "$ac_tool_prefix"; then
7163   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if ${ac_cv_prog_DLLTOOL+:} false; then :
7168   $as_echo_n "(cached) " >&6
7169 else
7170   if test -n "$DLLTOOL"; then
7171   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7175 do
7176   IFS=$as_save_IFS
7177   test -z "$as_dir" && as_dir=.
7178     for ac_exec_ext in '' $ac_executable_extensions; do
7179   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7180     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7181     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182     break 2
7183   fi
7184 done
7185   done
7186 IFS=$as_save_IFS
7187
7188 fi
7189 fi
7190 DLLTOOL=$ac_cv_prog_DLLTOOL
7191 if test -n "$DLLTOOL"; then
7192   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7193 $as_echo "$DLLTOOL" >&6; }
7194 else
7195   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7197 fi
7198
7199
7200 fi
7201 if test -z "$ac_cv_prog_DLLTOOL"; then
7202   ac_ct_DLLTOOL=$DLLTOOL
7203   # Extract the first word of "dlltool", so it can be a program name with args.
7204 set dummy dlltool; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7208   $as_echo_n "(cached) " >&6
7209 else
7210   if test -n "$ac_ct_DLLTOOL"; then
7211   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7215 do
7216   IFS=$as_save_IFS
7217   test -z "$as_dir" && as_dir=.
7218     for ac_exec_ext in '' $ac_executable_extensions; do
7219   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7220     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7221     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222     break 2
7223   fi
7224 done
7225   done
7226 IFS=$as_save_IFS
7227
7228 fi
7229 fi
7230 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7231 if test -n "$ac_ct_DLLTOOL"; then
7232   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7233 $as_echo "$ac_ct_DLLTOOL" >&6; }
7234 else
7235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7237 fi
7238
7239   if test "x$ac_ct_DLLTOOL" = x; then
7240     DLLTOOL="false"
7241   else
7242     case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248     DLLTOOL=$ac_ct_DLLTOOL
7249   fi
7250 else
7251   DLLTOOL="$ac_cv_prog_DLLTOOL"
7252 fi
7253
7254 test -z "$DLLTOOL" && DLLTOOL=dlltool
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7266 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7267 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7268   $as_echo_n "(cached) " >&6
7269 else
7270   lt_cv_sharedlib_from_linklib_cmd='unknown'
7271
7272 case $host_os in
7273 cygwin* | mingw* | pw32* | cegcc*)
7274   # two different shell functions defined in ltmain.sh
7275   # decide which to use based on capabilities of $DLLTOOL
7276   case `$DLLTOOL --help 2>&1` in
7277   *--identify-strict*)
7278     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7279     ;;
7280   *)
7281     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7282     ;;
7283   esac
7284   ;;
7285 *)
7286   # fallback: assume linklib IS sharedlib
7287   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7288   ;;
7289 esac
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7293 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7294 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7295 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7296
7297
7298
7299
7300
7301
7302
7303 if test -n "$ac_tool_prefix"; then
7304   for ac_prog in ar
7305   do
7306     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7309 $as_echo_n "checking for $ac_word... " >&6; }
7310 if ${ac_cv_prog_AR+:} false; then :
7311   $as_echo_n "(cached) " >&6
7312 else
7313   if test -n "$AR"; then
7314   ac_cv_prog_AR="$AR" # Let the user override the test.
7315 else
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 for as_dir in $PATH
7318 do
7319   IFS=$as_save_IFS
7320   test -z "$as_dir" && as_dir=.
7321     for ac_exec_ext in '' $ac_executable_extensions; do
7322   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7323     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7324     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7325     break 2
7326   fi
7327 done
7328   done
7329 IFS=$as_save_IFS
7330
7331 fi
7332 fi
7333 AR=$ac_cv_prog_AR
7334 if test -n "$AR"; then
7335   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7336 $as_echo "$AR" >&6; }
7337 else
7338   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7339 $as_echo "no" >&6; }
7340 fi
7341
7342
7343     test -n "$AR" && break
7344   done
7345 fi
7346 if test -z "$AR"; then
7347   ac_ct_AR=$AR
7348   for ac_prog in ar
7349 do
7350   # Extract the first word of "$ac_prog", so it can be a program name with args.
7351 set dummy $ac_prog; ac_word=$2
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7353 $as_echo_n "checking for $ac_word... " >&6; }
7354 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7355   $as_echo_n "(cached) " >&6
7356 else
7357   if test -n "$ac_ct_AR"; then
7358   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7359 else
7360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7361 for as_dir in $PATH
7362 do
7363   IFS=$as_save_IFS
7364   test -z "$as_dir" && as_dir=.
7365     for ac_exec_ext in '' $ac_executable_extensions; do
7366   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7367     ac_cv_prog_ac_ct_AR="$ac_prog"
7368     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7369     break 2
7370   fi
7371 done
7372   done
7373 IFS=$as_save_IFS
7374
7375 fi
7376 fi
7377 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7378 if test -n "$ac_ct_AR"; then
7379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7380 $as_echo "$ac_ct_AR" >&6; }
7381 else
7382   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }
7384 fi
7385
7386
7387   test -n "$ac_ct_AR" && break
7388 done
7389
7390   if test "x$ac_ct_AR" = x; then
7391     AR="false"
7392   else
7393     case $cross_compiling:$ac_tool_warned in
7394 yes:)
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7397 ac_tool_warned=yes ;;
7398 esac
7399     AR=$ac_ct_AR
7400   fi
7401 fi
7402
7403 : ${AR=ar}
7404 : ${AR_FLAGS=cru}
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7417 $as_echo_n "checking for archiver @FILE support... " >&6; }
7418 if ${lt_cv_ar_at_file+:} false; then :
7419   $as_echo_n "(cached) " >&6
7420 else
7421   lt_cv_ar_at_file=no
7422    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h.  */
7424
7425 int
7426 main ()
7427 {
7428
7429   ;
7430   return 0;
7431 }
7432 _ACEOF
7433 if ac_fn_c_try_compile "$LINENO"; then :
7434   echo conftest.$ac_objext > conftest.lst
7435       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7436       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7437   (eval $lt_ar_try) 2>&5
7438   ac_status=$?
7439   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7440   test $ac_status = 0; }
7441       if test "$ac_status" -eq 0; then
7442         # Ensure the archiver fails upon bogus file names.
7443         rm -f conftest.$ac_objext libconftest.a
7444         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7445   (eval $lt_ar_try) 2>&5
7446   ac_status=$?
7447   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7448   test $ac_status = 0; }
7449         if test "$ac_status" -ne 0; then
7450           lt_cv_ar_at_file=@
7451         fi
7452       fi
7453       rm -f conftest.* libconftest.a
7454
7455 fi
7456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7457
7458 fi
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7460 $as_echo "$lt_cv_ar_at_file" >&6; }
7461
7462 if test "x$lt_cv_ar_at_file" = xno; then
7463   archiver_list_spec=
7464 else
7465   archiver_list_spec=$lt_cv_ar_at_file
7466 fi
7467
7468
7469
7470
7471
7472
7473
7474 if test -n "$ac_tool_prefix"; then
7475   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7476 set dummy ${ac_tool_prefix}strip; ac_word=$2
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7478 $as_echo_n "checking for $ac_word... " >&6; }
7479 if ${ac_cv_prog_STRIP+:} false; then :
7480   $as_echo_n "(cached) " >&6
7481 else
7482   if test -n "$STRIP"; then
7483   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7484 else
7485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7486 for as_dir in $PATH
7487 do
7488   IFS=$as_save_IFS
7489   test -z "$as_dir" && as_dir=.
7490     for ac_exec_ext in '' $ac_executable_extensions; do
7491   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7492     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7493     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7494     break 2
7495   fi
7496 done
7497   done
7498 IFS=$as_save_IFS
7499
7500 fi
7501 fi
7502 STRIP=$ac_cv_prog_STRIP
7503 if test -n "$STRIP"; then
7504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7505 $as_echo "$STRIP" >&6; }
7506 else
7507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7508 $as_echo "no" >&6; }
7509 fi
7510
7511
7512 fi
7513 if test -z "$ac_cv_prog_STRIP"; then
7514   ac_ct_STRIP=$STRIP
7515   # Extract the first word of "strip", so it can be a program name with args.
7516 set dummy strip; ac_word=$2
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7518 $as_echo_n "checking for $ac_word... " >&6; }
7519 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7520   $as_echo_n "(cached) " >&6
7521 else
7522   if test -n "$ac_ct_STRIP"; then
7523   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7524 else
7525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530     for ac_exec_ext in '' $ac_executable_extensions; do
7531   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7532     ac_cv_prog_ac_ct_STRIP="strip"
7533     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537   done
7538 IFS=$as_save_IFS
7539
7540 fi
7541 fi
7542 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7543 if test -n "$ac_ct_STRIP"; then
7544   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7545 $as_echo "$ac_ct_STRIP" >&6; }
7546 else
7547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7548 $as_echo "no" >&6; }
7549 fi
7550
7551   if test "x$ac_ct_STRIP" = x; then
7552     STRIP=":"
7553   else
7554     case $cross_compiling:$ac_tool_warned in
7555 yes:)
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7558 ac_tool_warned=yes ;;
7559 esac
7560     STRIP=$ac_ct_STRIP
7561   fi
7562 else
7563   STRIP="$ac_cv_prog_STRIP"
7564 fi
7565
7566 test -z "$STRIP" && STRIP=:
7567
7568
7569
7570
7571
7572
7573 if test -n "$ac_tool_prefix"; then
7574   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7575 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7577 $as_echo_n "checking for $ac_word... " >&6; }
7578 if ${ac_cv_prog_RANLIB+:} false; then :
7579   $as_echo_n "(cached) " >&6
7580 else
7581   if test -n "$RANLIB"; then
7582   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7583 else
7584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7585 for as_dir in $PATH
7586 do
7587   IFS=$as_save_IFS
7588   test -z "$as_dir" && as_dir=.
7589     for ac_exec_ext in '' $ac_executable_extensions; do
7590   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7591     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7592     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7593     break 2
7594   fi
7595 done
7596   done
7597 IFS=$as_save_IFS
7598
7599 fi
7600 fi
7601 RANLIB=$ac_cv_prog_RANLIB
7602 if test -n "$RANLIB"; then
7603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7604 $as_echo "$RANLIB" >&6; }
7605 else
7606   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7607 $as_echo "no" >&6; }
7608 fi
7609
7610
7611 fi
7612 if test -z "$ac_cv_prog_RANLIB"; then
7613   ac_ct_RANLIB=$RANLIB
7614   # Extract the first word of "ranlib", so it can be a program name with args.
7615 set dummy ranlib; ac_word=$2
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7617 $as_echo_n "checking for $ac_word... " >&6; }
7618 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7619   $as_echo_n "(cached) " >&6
7620 else
7621   if test -n "$ac_ct_RANLIB"; then
7622   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7623 else
7624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7625 for as_dir in $PATH
7626 do
7627   IFS=$as_save_IFS
7628   test -z "$as_dir" && as_dir=.
7629     for ac_exec_ext in '' $ac_executable_extensions; do
7630   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7631     ac_cv_prog_ac_ct_RANLIB="ranlib"
7632     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7633     break 2
7634   fi
7635 done
7636   done
7637 IFS=$as_save_IFS
7638
7639 fi
7640 fi
7641 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7642 if test -n "$ac_ct_RANLIB"; then
7643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7644 $as_echo "$ac_ct_RANLIB" >&6; }
7645 else
7646   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7648 fi
7649
7650   if test "x$ac_ct_RANLIB" = x; then
7651     RANLIB=":"
7652   else
7653     case $cross_compiling:$ac_tool_warned in
7654 yes:)
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7657 ac_tool_warned=yes ;;
7658 esac
7659     RANLIB=$ac_ct_RANLIB
7660   fi
7661 else
7662   RANLIB="$ac_cv_prog_RANLIB"
7663 fi
7664
7665 test -z "$RANLIB" && RANLIB=:
7666
7667
7668
7669
7670
7671
7672 # Determine commands to create old-style static archives.
7673 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7674 old_postinstall_cmds='chmod 644 $oldlib'
7675 old_postuninstall_cmds=
7676
7677 if test -n "$RANLIB"; then
7678   case $host_os in
7679   openbsd*)
7680     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7681     ;;
7682   *)
7683     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7684     ;;
7685   esac
7686   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7687 fi
7688
7689 case $host_os in
7690   darwin*)
7691     lock_old_archive_extraction=yes ;;
7692   *)
7693     lock_old_archive_extraction=no ;;
7694 esac
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734 # If no C compiler was specified, use CC.
7735 LTCC=${LTCC-"$CC"}
7736
7737 # If no C compiler flags were specified, use CFLAGS.
7738 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7739
7740 # Allow CC to be a program name with arguments.
7741 compiler=$CC
7742
7743
7744 # Check for command to grab the raw symbol name followed by C symbol from nm.
7745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7746 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7747 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7748   $as_echo_n "(cached) " >&6
7749 else
7750
7751 # These are sane defaults that work on at least a few old systems.
7752 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7753
7754 # Character class describing NM global symbol codes.
7755 symcode='[BCDEGRST]'
7756
7757 # Regexp to match symbols that can be accessed directly from C.
7758 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7759
7760 # Define system-specific variables.
7761 case $host_os in
7762 aix*)
7763   symcode='[BCDT]'
7764   ;;
7765 cygwin* | mingw* | pw32* | cegcc*)
7766   symcode='[ABCDGISTW]'
7767   ;;
7768 hpux*)
7769   if test "$host_cpu" = ia64; then
7770     symcode='[ABCDEGRST]'
7771   fi
7772   ;;
7773 irix* | nonstopux*)
7774   symcode='[BCDEGRST]'
7775   ;;
7776 osf*)
7777   symcode='[BCDEGQRST]'
7778   ;;
7779 solaris*)
7780   symcode='[BDRT]'
7781   ;;
7782 sco3.2v5*)
7783   symcode='[DT]'
7784   ;;
7785 sysv4.2uw2*)
7786   symcode='[DT]'
7787   ;;
7788 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7789   symcode='[ABDT]'
7790   ;;
7791 sysv4)
7792   symcode='[DFNSTU]'
7793   ;;
7794 esac
7795
7796 # If we're using GNU nm, then use its standard symbol codes.
7797 case `$NM -V 2>&1` in
7798 *GNU* | *'with BFD'*)
7799   symcode='[ABCDGIRSTW]' ;;
7800 esac
7801
7802 # Transform an extracted symbol line into a proper C declaration.
7803 # Some systems (esp. on ia64) link data and code symbols differently,
7804 # so use this general approach.
7805 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7806
7807 # Transform an extracted symbol line into symbol name and symbol address
7808 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7809 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'"
7810
7811 # Handle CRLF in mingw tool chain
7812 opt_cr=
7813 case $build_os in
7814 mingw*)
7815   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7816   ;;
7817 esac
7818
7819 # Try without a prefix underscore, then with it.
7820 for ac_symprfx in "" "_"; do
7821
7822   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7823   symxfrm="\\1 $ac_symprfx\\2 \\2"
7824
7825   # Write the raw and C identifiers.
7826   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7827     # Fake it for dumpbin and say T for any non-static function
7828     # and D for any global variable.
7829     # Also find C++ and __fastcall symbols from MSVC++,
7830     # which start with @ or ?.
7831     lt_cv_sys_global_symbol_pipe="$AWK '"\
7832 "     {last_section=section; section=\$ 3};"\
7833 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7834 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7835 "     \$ 0!~/External *\|/{next};"\
7836 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7837 "     {if(hide[section]) next};"\
7838 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7839 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7840 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7841 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7842 "     ' prfx=^$ac_symprfx"
7843   else
7844     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7845   fi
7846   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7847
7848   # Check to see that the pipe works correctly.
7849   pipe_works=no
7850
7851   rm -f conftest*
7852   cat > conftest.$ac_ext <<_LT_EOF
7853 #ifdef __cplusplus
7854 extern "C" {
7855 #endif
7856 char nm_test_var;
7857 void nm_test_func(void);
7858 void nm_test_func(void){}
7859 #ifdef __cplusplus
7860 }
7861 #endif
7862 int main(){nm_test_var='a';nm_test_func();return(0);}
7863 _LT_EOF
7864
7865   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7866   (eval $ac_compile) 2>&5
7867   ac_status=$?
7868   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7869   test $ac_status = 0; }; then
7870     # Now try to grab the symbols.
7871     nlist=conftest.nm
7872     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7873   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7874   ac_status=$?
7875   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7876   test $ac_status = 0; } && test -s "$nlist"; then
7877       # Try sorting and uniquifying the output.
7878       if sort "$nlist" | uniq > "$nlist"T; then
7879         mv -f "$nlist"T "$nlist"
7880       else
7881         rm -f "$nlist"T
7882       fi
7883
7884       # Make sure that we snagged all the symbols we need.
7885       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7886         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7887           cat <<_LT_EOF > conftest.$ac_ext
7888 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7889 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7890 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7891    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7892 # define LT_DLSYM_CONST
7893 #elif defined(__osf__)
7894 /* This system does not cope well with relocations in const data.  */
7895 # define LT_DLSYM_CONST
7896 #else
7897 # define LT_DLSYM_CONST const
7898 #endif
7899
7900 #ifdef __cplusplus
7901 extern "C" {
7902 #endif
7903
7904 _LT_EOF
7905           # Now generate the symbol file.
7906           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7907
7908           cat <<_LT_EOF >> conftest.$ac_ext
7909
7910 /* The mapping between symbol names and symbols.  */
7911 LT_DLSYM_CONST struct {
7912   const char *name;
7913   void       *address;
7914 }
7915 lt__PROGRAM__LTX_preloaded_symbols[] =
7916 {
7917   { "@PROGRAM@", (void *) 0 },
7918 _LT_EOF
7919           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7920           cat <<\_LT_EOF >> conftest.$ac_ext
7921   {0, (void *) 0}
7922 };
7923
7924 /* This works around a problem in FreeBSD linker */
7925 #ifdef FREEBSD_WORKAROUND
7926 static const void *lt_preloaded_setup() {
7927   return lt__PROGRAM__LTX_preloaded_symbols;
7928 }
7929 #endif
7930
7931 #ifdef __cplusplus
7932 }
7933 #endif
7934 _LT_EOF
7935           # Now try linking the two files.
7936           mv conftest.$ac_objext conftstm.$ac_objext
7937           lt_globsym_save_LIBS=$LIBS
7938           lt_globsym_save_CFLAGS=$CFLAGS
7939           LIBS="conftstm.$ac_objext"
7940           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7941           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7942   (eval $ac_link) 2>&5
7943   ac_status=$?
7944   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7945   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7946             pipe_works=yes
7947           fi
7948           LIBS=$lt_globsym_save_LIBS
7949           CFLAGS=$lt_globsym_save_CFLAGS
7950         else
7951           echo "cannot find nm_test_func in $nlist" >&5
7952         fi
7953       else
7954         echo "cannot find nm_test_var in $nlist" >&5
7955       fi
7956     else
7957       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7958     fi
7959   else
7960     echo "$progname: failed program was:" >&5
7961     cat conftest.$ac_ext >&5
7962   fi
7963   rm -rf conftest* conftst*
7964
7965   # Do not use the global_symbol_pipe unless it works.
7966   if test "$pipe_works" = yes; then
7967     break
7968   else
7969     lt_cv_sys_global_symbol_pipe=
7970   fi
7971 done
7972
7973 fi
7974
7975 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7976   lt_cv_sys_global_symbol_to_cdecl=
7977 fi
7978 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7980 $as_echo "failed" >&6; }
7981 else
7982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7983 $as_echo "ok" >&6; }
7984 fi
7985
7986 # Response file support.
7987 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7988   nm_file_list_spec='@'
7989 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7990   nm_file_list_spec='@'
7991 fi
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8020 $as_echo_n "checking for sysroot... " >&6; }
8021
8022 # Check whether --with-sysroot was given.
8023 if test "${with_sysroot+set}" = set; then :
8024   withval=$with_sysroot;
8025 else
8026   with_sysroot=no
8027 fi
8028
8029
8030 lt_sysroot=
8031 case ${with_sysroot} in #(
8032  yes)
8033    if test "$GCC" = yes; then
8034      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8035    fi
8036    ;; #(
8037  /*)
8038    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8039    ;; #(
8040  no|'')
8041    ;; #(
8042  *)
8043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8044 $as_echo "${with_sysroot}" >&6; }
8045    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8046    ;;
8047 esac
8048
8049  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8050 $as_echo "${lt_sysroot:-no}" >&6; }
8051
8052
8053
8054
8055
8056 # Check whether --enable-libtool-lock was given.
8057 if test "${enable_libtool_lock+set}" = set; then :
8058   enableval=$enable_libtool_lock;
8059 fi
8060
8061 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8062
8063 # Some flags need to be propagated to the compiler or linker for good
8064 # libtool support.
8065 case $host in
8066 ia64-*-hpux*)
8067   # Find out which ABI we are using.
8068   echo 'int i;' > conftest.$ac_ext
8069   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8070   (eval $ac_compile) 2>&5
8071   ac_status=$?
8072   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8073   test $ac_status = 0; }; then
8074     case `/usr/bin/file conftest.$ac_objext` in
8075       *ELF-32*)
8076         HPUX_IA64_MODE="32"
8077         ;;
8078       *ELF-64*)
8079         HPUX_IA64_MODE="64"
8080         ;;
8081     esac
8082   fi
8083   rm -rf conftest*
8084   ;;
8085 *-*-irix6*)
8086   # Find out which ABI we are using.
8087   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8088   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8089   (eval $ac_compile) 2>&5
8090   ac_status=$?
8091   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8092   test $ac_status = 0; }; then
8093     if test "$lt_cv_prog_gnu_ld" = yes; then
8094       case `/usr/bin/file conftest.$ac_objext` in
8095         *32-bit*)
8096           LD="${LD-ld} -melf32bsmip"
8097           ;;
8098         *N32*)
8099           LD="${LD-ld} -melf32bmipn32"
8100           ;;
8101         *64-bit*)
8102           LD="${LD-ld} -melf64bmip"
8103         ;;
8104       esac
8105     else
8106       case `/usr/bin/file conftest.$ac_objext` in
8107         *32-bit*)
8108           LD="${LD-ld} -32"
8109           ;;
8110         *N32*)
8111           LD="${LD-ld} -n32"
8112           ;;
8113         *64-bit*)
8114           LD="${LD-ld} -64"
8115           ;;
8116       esac
8117     fi
8118   fi
8119   rm -rf conftest*
8120   ;;
8121
8122 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8123 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8124   # Find out which ABI we are using.
8125   echo 'int i;' > conftest.$ac_ext
8126   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8127   (eval $ac_compile) 2>&5
8128   ac_status=$?
8129   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8130   test $ac_status = 0; }; then
8131     case `/usr/bin/file conftest.o` in
8132       *32-bit*)
8133         case $host in
8134           x86_64-*kfreebsd*-gnu)
8135             LD="${LD-ld} -m elf_i386_fbsd"
8136             ;;
8137           x86_64-*linux*)
8138             case `/usr/bin/file conftest.o` in
8139               *x86-64*)
8140                 LD="${LD-ld} -m elf32_x86_64"
8141                 ;;
8142               *)
8143                 LD="${LD-ld} -m elf_i386"
8144                 ;;
8145             esac
8146             ;;
8147           powerpc64le-*)
8148             LD="${LD-ld} -m elf32lppclinux"
8149             ;;
8150           powerpc64-*)
8151             LD="${LD-ld} -m elf32ppclinux"
8152             ;;
8153           s390x-*linux*)
8154             LD="${LD-ld} -m elf_s390"
8155             ;;
8156           sparc64-*linux*)
8157             LD="${LD-ld} -m elf32_sparc"
8158             ;;
8159         esac
8160         ;;
8161       *64-bit*)
8162         case $host in
8163           x86_64-*kfreebsd*-gnu)
8164             LD="${LD-ld} -m elf_x86_64_fbsd"
8165             ;;
8166           x86_64-*linux*)
8167             LD="${LD-ld} -m elf_x86_64"
8168             ;;
8169           powerpcle-*)
8170             LD="${LD-ld} -m elf64lppc"
8171             ;;
8172           powerpc-*)
8173             LD="${LD-ld} -m elf64ppc"
8174             ;;
8175           s390*-*linux*|s390*-*tpf*)
8176             LD="${LD-ld} -m elf64_s390"
8177             ;;
8178           sparc*-*linux*)
8179             LD="${LD-ld} -m elf64_sparc"
8180             ;;
8181         esac
8182         ;;
8183     esac
8184   fi
8185   rm -rf conftest*
8186   ;;
8187
8188 *-*-sco3.2v5*)
8189   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8190   SAVE_CFLAGS="$CFLAGS"
8191   CFLAGS="$CFLAGS -belf"
8192   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8193 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8194 if ${lt_cv_cc_needs_belf+:} false; then :
8195   $as_echo_n "(cached) " >&6
8196 else
8197   ac_ext=c
8198 ac_cpp='$CPP $CPPFLAGS'
8199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8202
8203      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8204 /* end confdefs.h.  */
8205
8206 int
8207 main ()
8208 {
8209
8210   ;
8211   return 0;
8212 }
8213 _ACEOF
8214 if ac_fn_c_try_link "$LINENO"; then :
8215   lt_cv_cc_needs_belf=yes
8216 else
8217   lt_cv_cc_needs_belf=no
8218 fi
8219 rm -f core conftest.err conftest.$ac_objext \
8220     conftest$ac_exeext conftest.$ac_ext
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 fi
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8229 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8230   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8231     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8232     CFLAGS="$SAVE_CFLAGS"
8233   fi
8234   ;;
8235 *-*solaris*)
8236   # Find out which ABI we are using.
8237   echo 'int i;' > conftest.$ac_ext
8238   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8239   (eval $ac_compile) 2>&5
8240   ac_status=$?
8241   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8242   test $ac_status = 0; }; then
8243     case `/usr/bin/file conftest.o` in
8244     *64-bit*)
8245       case $lt_cv_prog_gnu_ld in
8246       yes*)
8247         case $host in
8248         i?86-*-solaris*)
8249           LD="${LD-ld} -m elf_x86_64"
8250           ;;
8251         sparc*-*-solaris*)
8252           LD="${LD-ld} -m elf64_sparc"
8253           ;;
8254         esac
8255         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8256         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8257           LD="${LD-ld}_sol2"
8258         fi
8259         ;;
8260       *)
8261         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8262           LD="${LD-ld} -64"
8263         fi
8264         ;;
8265       esac
8266       ;;
8267     esac
8268   fi
8269   rm -rf conftest*
8270   ;;
8271 esac
8272
8273 need_locks="$enable_libtool_lock"
8274
8275 if test -n "$ac_tool_prefix"; then
8276   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8277 set dummy ${ac_tool_prefix}mt; ac_word=$2
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8279 $as_echo_n "checking for $ac_word... " >&6; }
8280 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8281   $as_echo_n "(cached) " >&6
8282 else
8283   if test -n "$MANIFEST_TOOL"; then
8284   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8285 else
8286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8287 for as_dir in $PATH
8288 do
8289   IFS=$as_save_IFS
8290   test -z "$as_dir" && as_dir=.
8291     for ac_exec_ext in '' $ac_executable_extensions; do
8292   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8293     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8294     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8295     break 2
8296   fi
8297 done
8298   done
8299 IFS=$as_save_IFS
8300
8301 fi
8302 fi
8303 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8304 if test -n "$MANIFEST_TOOL"; then
8305   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8306 $as_echo "$MANIFEST_TOOL" >&6; }
8307 else
8308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8309 $as_echo "no" >&6; }
8310 fi
8311
8312
8313 fi
8314 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8315   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8316   # Extract the first word of "mt", so it can be a program name with args.
8317 set dummy mt; ac_word=$2
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8319 $as_echo_n "checking for $ac_word... " >&6; }
8320 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8321   $as_echo_n "(cached) " >&6
8322 else
8323   if test -n "$ac_ct_MANIFEST_TOOL"; then
8324   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329   IFS=$as_save_IFS
8330   test -z "$as_dir" && as_dir=.
8331     for ac_exec_ext in '' $ac_executable_extensions; do
8332   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8333     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8334     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8335     break 2
8336   fi
8337 done
8338   done
8339 IFS=$as_save_IFS
8340
8341 fi
8342 fi
8343 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8344 if test -n "$ac_ct_MANIFEST_TOOL"; then
8345   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8346 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8347 else
8348   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 $as_echo "no" >&6; }
8350 fi
8351
8352   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8353     MANIFEST_TOOL=":"
8354   else
8355     case $cross_compiling:$ac_tool_warned in
8356 yes:)
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8359 ac_tool_warned=yes ;;
8360 esac
8361     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8362   fi
8363 else
8364   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8365 fi
8366
8367 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8369 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8370 if ${lt_cv_path_mainfest_tool+:} false; then :
8371   $as_echo_n "(cached) " >&6
8372 else
8373   lt_cv_path_mainfest_tool=no
8374   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8375   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8376   cat conftest.err >&5
8377   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8378     lt_cv_path_mainfest_tool=yes
8379   fi
8380   rm -f conftest*
8381 fi
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8383 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8384 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8385   MANIFEST_TOOL=:
8386 fi
8387
8388
8389
8390
8391
8392
8393   case $host_os in
8394     rhapsody* | darwin*)
8395     if test -n "$ac_tool_prefix"; then
8396   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8397 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8399 $as_echo_n "checking for $ac_word... " >&6; }
8400 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8401   $as_echo_n "(cached) " >&6
8402 else
8403   if test -n "$DSYMUTIL"; then
8404   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8405 else
8406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8407 for as_dir in $PATH
8408 do
8409   IFS=$as_save_IFS
8410   test -z "$as_dir" && as_dir=.
8411     for ac_exec_ext in '' $ac_executable_extensions; do
8412   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8413     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8414     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8415     break 2
8416   fi
8417 done
8418   done
8419 IFS=$as_save_IFS
8420
8421 fi
8422 fi
8423 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8424 if test -n "$DSYMUTIL"; then
8425   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8426 $as_echo "$DSYMUTIL" >&6; }
8427 else
8428   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8429 $as_echo "no" >&6; }
8430 fi
8431
8432
8433 fi
8434 if test -z "$ac_cv_prog_DSYMUTIL"; then
8435   ac_ct_DSYMUTIL=$DSYMUTIL
8436   # Extract the first word of "dsymutil", so it can be a program name with args.
8437 set dummy dsymutil; ac_word=$2
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439 $as_echo_n "checking for $ac_word... " >&6; }
8440 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8441   $as_echo_n "(cached) " >&6
8442 else
8443   if test -n "$ac_ct_DSYMUTIL"; then
8444   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8445 else
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447 for as_dir in $PATH
8448 do
8449   IFS=$as_save_IFS
8450   test -z "$as_dir" && as_dir=.
8451     for ac_exec_ext in '' $ac_executable_extensions; do
8452   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8453     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8454     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455     break 2
8456   fi
8457 done
8458   done
8459 IFS=$as_save_IFS
8460
8461 fi
8462 fi
8463 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8464 if test -n "$ac_ct_DSYMUTIL"; then
8465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8466 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8467 else
8468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469 $as_echo "no" >&6; }
8470 fi
8471
8472   if test "x$ac_ct_DSYMUTIL" = x; then
8473     DSYMUTIL=":"
8474   else
8475     case $cross_compiling:$ac_tool_warned in
8476 yes:)
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8479 ac_tool_warned=yes ;;
8480 esac
8481     DSYMUTIL=$ac_ct_DSYMUTIL
8482   fi
8483 else
8484   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8485 fi
8486
8487     if test -n "$ac_tool_prefix"; then
8488   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8489 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8491 $as_echo_n "checking for $ac_word... " >&6; }
8492 if ${ac_cv_prog_NMEDIT+:} false; then :
8493   $as_echo_n "(cached) " >&6
8494 else
8495   if test -n "$NMEDIT"; then
8496   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8497 else
8498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8499 for as_dir in $PATH
8500 do
8501   IFS=$as_save_IFS
8502   test -z "$as_dir" && as_dir=.
8503     for ac_exec_ext in '' $ac_executable_extensions; do
8504   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8505     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8506     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8507     break 2
8508   fi
8509 done
8510   done
8511 IFS=$as_save_IFS
8512
8513 fi
8514 fi
8515 NMEDIT=$ac_cv_prog_NMEDIT
8516 if test -n "$NMEDIT"; then
8517   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8518 $as_echo "$NMEDIT" >&6; }
8519 else
8520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8522 fi
8523
8524
8525 fi
8526 if test -z "$ac_cv_prog_NMEDIT"; then
8527   ac_ct_NMEDIT=$NMEDIT
8528   # Extract the first word of "nmedit", so it can be a program name with args.
8529 set dummy nmedit; ac_word=$2
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8531 $as_echo_n "checking for $ac_word... " >&6; }
8532 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8533   $as_echo_n "(cached) " >&6
8534 else
8535   if test -n "$ac_ct_NMEDIT"; then
8536   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8537 else
8538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8539 for as_dir in $PATH
8540 do
8541   IFS=$as_save_IFS
8542   test -z "$as_dir" && as_dir=.
8543     for ac_exec_ext in '' $ac_executable_extensions; do
8544   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8545     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8546     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8547     break 2
8548   fi
8549 done
8550   done
8551 IFS=$as_save_IFS
8552
8553 fi
8554 fi
8555 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8556 if test -n "$ac_ct_NMEDIT"; then
8557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8558 $as_echo "$ac_ct_NMEDIT" >&6; }
8559 else
8560   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8561 $as_echo "no" >&6; }
8562 fi
8563
8564   if test "x$ac_ct_NMEDIT" = x; then
8565     NMEDIT=":"
8566   else
8567     case $cross_compiling:$ac_tool_warned in
8568 yes:)
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8570 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8571 ac_tool_warned=yes ;;
8572 esac
8573     NMEDIT=$ac_ct_NMEDIT
8574   fi
8575 else
8576   NMEDIT="$ac_cv_prog_NMEDIT"
8577 fi
8578
8579     if test -n "$ac_tool_prefix"; then
8580   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8581 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8583 $as_echo_n "checking for $ac_word... " >&6; }
8584 if ${ac_cv_prog_LIPO+:} false; then :
8585   $as_echo_n "(cached) " >&6
8586 else
8587   if test -n "$LIPO"; then
8588   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8589 else
8590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8591 for as_dir in $PATH
8592 do
8593   IFS=$as_save_IFS
8594   test -z "$as_dir" && as_dir=.
8595     for ac_exec_ext in '' $ac_executable_extensions; do
8596   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8597     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8598     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8599     break 2
8600   fi
8601 done
8602   done
8603 IFS=$as_save_IFS
8604
8605 fi
8606 fi
8607 LIPO=$ac_cv_prog_LIPO
8608 if test -n "$LIPO"; then
8609   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8610 $as_echo "$LIPO" >&6; }
8611 else
8612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8613 $as_echo "no" >&6; }
8614 fi
8615
8616
8617 fi
8618 if test -z "$ac_cv_prog_LIPO"; then
8619   ac_ct_LIPO=$LIPO
8620   # Extract the first word of "lipo", so it can be a program name with args.
8621 set dummy lipo; ac_word=$2
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8623 $as_echo_n "checking for $ac_word... " >&6; }
8624 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8625   $as_echo_n "(cached) " >&6
8626 else
8627   if test -n "$ac_ct_LIPO"; then
8628   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8629 else
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631 for as_dir in $PATH
8632 do
8633   IFS=$as_save_IFS
8634   test -z "$as_dir" && as_dir=.
8635     for ac_exec_ext in '' $ac_executable_extensions; do
8636   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8637     ac_cv_prog_ac_ct_LIPO="lipo"
8638     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639     break 2
8640   fi
8641 done
8642   done
8643 IFS=$as_save_IFS
8644
8645 fi
8646 fi
8647 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8648 if test -n "$ac_ct_LIPO"; then
8649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8650 $as_echo "$ac_ct_LIPO" >&6; }
8651 else
8652   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8653 $as_echo "no" >&6; }
8654 fi
8655
8656   if test "x$ac_ct_LIPO" = x; then
8657     LIPO=":"
8658   else
8659     case $cross_compiling:$ac_tool_warned in
8660 yes:)
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8663 ac_tool_warned=yes ;;
8664 esac
8665     LIPO=$ac_ct_LIPO
8666   fi
8667 else
8668   LIPO="$ac_cv_prog_LIPO"
8669 fi
8670
8671     if test -n "$ac_tool_prefix"; then
8672   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8673 set dummy ${ac_tool_prefix}otool; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_prog_OTOOL+:} false; then :
8677   $as_echo_n "(cached) " >&6
8678 else
8679   if test -n "$OTOOL"; then
8680   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8681 else
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8684 do
8685   IFS=$as_save_IFS
8686   test -z "$as_dir" && as_dir=.
8687     for ac_exec_ext in '' $ac_executable_extensions; do
8688   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8690     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691     break 2
8692   fi
8693 done
8694   done
8695 IFS=$as_save_IFS
8696
8697 fi
8698 fi
8699 OTOOL=$ac_cv_prog_OTOOL
8700 if test -n "$OTOOL"; then
8701   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8702 $as_echo "$OTOOL" >&6; }
8703 else
8704   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 fi
8707
8708
8709 fi
8710 if test -z "$ac_cv_prog_OTOOL"; then
8711   ac_ct_OTOOL=$OTOOL
8712   # Extract the first word of "otool", so it can be a program name with args.
8713 set dummy otool; ac_word=$2
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8715 $as_echo_n "checking for $ac_word... " >&6; }
8716 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   if test -n "$ac_ct_OTOOL"; then
8720   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8721 else
8722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8723 for as_dir in $PATH
8724 do
8725   IFS=$as_save_IFS
8726   test -z "$as_dir" && as_dir=.
8727     for ac_exec_ext in '' $ac_executable_extensions; do
8728   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8729     ac_cv_prog_ac_ct_OTOOL="otool"
8730     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731     break 2
8732   fi
8733 done
8734   done
8735 IFS=$as_save_IFS
8736
8737 fi
8738 fi
8739 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8740 if test -n "$ac_ct_OTOOL"; then
8741   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8742 $as_echo "$ac_ct_OTOOL" >&6; }
8743 else
8744   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8745 $as_echo "no" >&6; }
8746 fi
8747
8748   if test "x$ac_ct_OTOOL" = x; then
8749     OTOOL=":"
8750   else
8751     case $cross_compiling:$ac_tool_warned in
8752 yes:)
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8755 ac_tool_warned=yes ;;
8756 esac
8757     OTOOL=$ac_ct_OTOOL
8758   fi
8759 else
8760   OTOOL="$ac_cv_prog_OTOOL"
8761 fi
8762
8763     if test -n "$ac_tool_prefix"; then
8764   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8765 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_prog_OTOOL64+:} false; then :
8769   $as_echo_n "(cached) " >&6
8770 else
8771   if test -n "$OTOOL64"; then
8772   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8773 else
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8776 do
8777   IFS=$as_save_IFS
8778   test -z "$as_dir" && as_dir=.
8779     for ac_exec_ext in '' $ac_executable_extensions; do
8780   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8782     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783     break 2
8784   fi
8785 done
8786   done
8787 IFS=$as_save_IFS
8788
8789 fi
8790 fi
8791 OTOOL64=$ac_cv_prog_OTOOL64
8792 if test -n "$OTOOL64"; then
8793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8794 $as_echo "$OTOOL64" >&6; }
8795 else
8796   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8797 $as_echo "no" >&6; }
8798 fi
8799
8800
8801 fi
8802 if test -z "$ac_cv_prog_OTOOL64"; then
8803   ac_ct_OTOOL64=$OTOOL64
8804   # Extract the first word of "otool64", so it can be a program name with args.
8805 set dummy otool64; ac_word=$2
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8807 $as_echo_n "checking for $ac_word... " >&6; }
8808 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8809   $as_echo_n "(cached) " >&6
8810 else
8811   if test -n "$ac_ct_OTOOL64"; then
8812   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8813 else
8814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8815 for as_dir in $PATH
8816 do
8817   IFS=$as_save_IFS
8818   test -z "$as_dir" && as_dir=.
8819     for ac_exec_ext in '' $ac_executable_extensions; do
8820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8821     ac_cv_prog_ac_ct_OTOOL64="otool64"
8822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8823     break 2
8824   fi
8825 done
8826   done
8827 IFS=$as_save_IFS
8828
8829 fi
8830 fi
8831 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8832 if test -n "$ac_ct_OTOOL64"; then
8833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8834 $as_echo "$ac_ct_OTOOL64" >&6; }
8835 else
8836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8837 $as_echo "no" >&6; }
8838 fi
8839
8840   if test "x$ac_ct_OTOOL64" = x; then
8841     OTOOL64=":"
8842   else
8843     case $cross_compiling:$ac_tool_warned in
8844 yes:)
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8846 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8847 ac_tool_warned=yes ;;
8848 esac
8849     OTOOL64=$ac_ct_OTOOL64
8850   fi
8851 else
8852   OTOOL64="$ac_cv_prog_OTOOL64"
8853 fi
8854
8855
8856
8857
8858
8859
8860
8861
8862
8863
8864
8865
8866
8867
8868
8869
8870
8871
8872
8873
8874
8875
8876
8877
8878
8879
8880
8881     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8882 $as_echo_n "checking for -single_module linker flag... " >&6; }
8883 if ${lt_cv_apple_cc_single_mod+:} false; then :
8884   $as_echo_n "(cached) " >&6
8885 else
8886   lt_cv_apple_cc_single_mod=no
8887       if test -z "${LT_MULTI_MODULE}"; then
8888         # By default we will add the -single_module flag. You can override
8889         # by either setting the environment variable LT_MULTI_MODULE
8890         # non-empty at configure time, or by adding -multi_module to the
8891         # link flags.
8892         rm -rf libconftest.dylib*
8893         echo "int foo(void){return 1;}" > conftest.c
8894         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8895 -dynamiclib -Wl,-single_module conftest.c" >&5
8896         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8897           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8898         _lt_result=$?
8899         # If there is a non-empty error log, and "single_module"
8900         # appears in it, assume the flag caused a linker warning
8901         if test -s conftest.err && $GREP single_module conftest.err; then
8902           cat conftest.err >&5
8903         # Otherwise, if the output was created with a 0 exit code from
8904         # the compiler, it worked.
8905         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8906           lt_cv_apple_cc_single_mod=yes
8907         else
8908           cat conftest.err >&5
8909         fi
8910         rm -rf libconftest.dylib*
8911         rm -f conftest.*
8912       fi
8913 fi
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8915 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8916
8917     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8918 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8919 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8920   $as_echo_n "(cached) " >&6
8921 else
8922   lt_cv_ld_exported_symbols_list=no
8923       save_LDFLAGS=$LDFLAGS
8924       echo "_main" > conftest.sym
8925       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8926       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8927 /* end confdefs.h.  */
8928
8929 int
8930 main ()
8931 {
8932
8933   ;
8934   return 0;
8935 }
8936 _ACEOF
8937 if ac_fn_c_try_link "$LINENO"; then :
8938   lt_cv_ld_exported_symbols_list=yes
8939 else
8940   lt_cv_ld_exported_symbols_list=no
8941 fi
8942 rm -f core conftest.err conftest.$ac_objext \
8943     conftest$ac_exeext conftest.$ac_ext
8944         LDFLAGS="$save_LDFLAGS"
8945
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8948 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8949
8950     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8951 $as_echo_n "checking for -force_load linker flag... " >&6; }
8952 if ${lt_cv_ld_force_load+:} false; then :
8953   $as_echo_n "(cached) " >&6
8954 else
8955   lt_cv_ld_force_load=no
8956       cat > conftest.c << _LT_EOF
8957 int forced_loaded() { return 2;}
8958 _LT_EOF
8959       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8960       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8961       echo "$AR cru libconftest.a conftest.o" >&5
8962       $AR cru libconftest.a conftest.o 2>&5
8963       echo "$RANLIB libconftest.a" >&5
8964       $RANLIB libconftest.a 2>&5
8965       cat > conftest.c << _LT_EOF
8966 int main() { return 0;}
8967 _LT_EOF
8968       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8969       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8970       _lt_result=$?
8971       if test -s conftest.err && $GREP force_load conftest.err; then
8972         cat conftest.err >&5
8973       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8974         lt_cv_ld_force_load=yes
8975       else
8976         cat conftest.err >&5
8977       fi
8978         rm -f conftest.err libconftest.a conftest conftest.c
8979         rm -rf conftest.dSYM
8980
8981 fi
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8983 $as_echo "$lt_cv_ld_force_load" >&6; }
8984     case $host_os in
8985     rhapsody* | darwin1.[012])
8986       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8987     darwin1.*)
8988       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8989     darwin*) # darwin 5.x on
8990       # if running on 10.5 or later, the deployment target defaults
8991       # to the OS version, if on x86, and 10.4, the deployment
8992       # target defaults to 10.4. Don't you love it?
8993       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8994         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8995           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8996         10.[012]*)
8997           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8998         10.*)
8999           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
9000       esac
9001     ;;
9002   esac
9003     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9004       _lt_dar_single_mod='$single_module'
9005     fi
9006     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9007       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9008     else
9009       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9010     fi
9011     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9012       _lt_dsymutil='~$DSYMUTIL $lib || :'
9013     else
9014       _lt_dsymutil=
9015     fi
9016     ;;
9017   esac
9018
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9020 $as_echo_n "checking for ANSI C header files... " >&6; }
9021 if ${ac_cv_header_stdc+:} false; then :
9022   $as_echo_n "(cached) " >&6
9023 else
9024   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9025 /* end confdefs.h.  */
9026 #include <stdlib.h>
9027 #include <stdarg.h>
9028 #include <string.h>
9029 #include <float.h>
9030
9031 int
9032 main ()
9033 {
9034
9035   ;
9036   return 0;
9037 }
9038 _ACEOF
9039 if ac_fn_c_try_compile "$LINENO"; then :
9040   ac_cv_header_stdc=yes
9041 else
9042   ac_cv_header_stdc=no
9043 fi
9044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9045
9046 if test $ac_cv_header_stdc = yes; then
9047   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9049 /* end confdefs.h.  */
9050 #include <string.h>
9051
9052 _ACEOF
9053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9054   $EGREP "memchr" >/dev/null 2>&1; then :
9055
9056 else
9057   ac_cv_header_stdc=no
9058 fi
9059 rm -f conftest*
9060
9061 fi
9062
9063 if test $ac_cv_header_stdc = yes; then
9064   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9065   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066 /* end confdefs.h.  */
9067 #include <stdlib.h>
9068
9069 _ACEOF
9070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9071   $EGREP "free" >/dev/null 2>&1; then :
9072
9073 else
9074   ac_cv_header_stdc=no
9075 fi
9076 rm -f conftest*
9077
9078 fi
9079
9080 if test $ac_cv_header_stdc = yes; then
9081   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9082   if test "$cross_compiling" = yes; then :
9083   :
9084 else
9085   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9086 /* end confdefs.h.  */
9087 #include <ctype.h>
9088 #include <stdlib.h>
9089 #if ((' ' & 0x0FF) == 0x020)
9090 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9091 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9092 #else
9093 # define ISLOWER(c) \
9094                    (('a' <= (c) && (c) <= 'i') \
9095                      || ('j' <= (c) && (c) <= 'r') \
9096                      || ('s' <= (c) && (c) <= 'z'))
9097 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9098 #endif
9099
9100 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9101 int
9102 main ()
9103 {
9104   int i;
9105   for (i = 0; i < 256; i++)
9106     if (XOR (islower (i), ISLOWER (i))
9107         || toupper (i) != TOUPPER (i))
9108       return 2;
9109   return 0;
9110 }
9111 _ACEOF
9112 if ac_fn_c_try_run "$LINENO"; then :
9113
9114 else
9115   ac_cv_header_stdc=no
9116 fi
9117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9118   conftest.$ac_objext conftest.beam conftest.$ac_ext
9119 fi
9120
9121 fi
9122 fi
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9124 $as_echo "$ac_cv_header_stdc" >&6; }
9125 if test $ac_cv_header_stdc = yes; then
9126
9127 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9128
9129 fi
9130
9131 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9132 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9133                   inttypes.h stdint.h unistd.h
9134 do :
9135   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9136 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9137 "
9138 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9139   cat >>confdefs.h <<_ACEOF
9140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9141 _ACEOF
9142
9143 fi
9144
9145 done
9146
9147
9148 for ac_header in dlfcn.h
9149 do :
9150   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9151 "
9152 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9153   cat >>confdefs.h <<_ACEOF
9154 #define HAVE_DLFCN_H 1
9155 _ACEOF
9156
9157 fi
9158
9159 done
9160
9161
9162
9163
9164 func_stripname_cnf ()
9165 {
9166   case ${2} in
9167   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9168   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9169   esac
9170 } # func_stripname_cnf
9171
9172
9173
9174
9175
9176 # Set options
9177 # Check whether --enable-shared was given.
9178 if test "${enable_shared+set}" = set; then :
9179   enableval=$enable_shared; p=${PACKAGE-default}
9180     case $enableval in
9181     yes) enable_shared=yes ;;
9182     no) enable_shared=no ;;
9183     *)
9184       enable_shared=no
9185       # Look at the argument we got.  We use all the common list separators.
9186       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9187       for pkg in $enableval; do
9188         IFS="$lt_save_ifs"
9189         if test "X$pkg" = "X$p"; then
9190           enable_shared=yes
9191         fi
9192       done
9193       IFS="$lt_save_ifs"
9194       ;;
9195     esac
9196 else
9197   enable_shared=yes
9198 fi
9199
9200
9201
9202
9203
9204
9205
9206 # Check whether --enable-static was given.
9207 if test "${enable_static+set}" = set; then :
9208   enableval=$enable_static; p=${PACKAGE-default}
9209     case $enableval in
9210     yes) enable_static=yes ;;
9211     no) enable_static=no ;;
9212     *)
9213      enable_static=no
9214       # Look at the argument we got.  We use all the common list separators.
9215       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9216       for pkg in $enableval; do
9217         IFS="$lt_save_ifs"
9218         if test "X$pkg" = "X$p"; then
9219           enable_static=yes
9220         fi
9221       done
9222       IFS="$lt_save_ifs"
9223       ;;
9224     esac
9225 else
9226   enable_static=no
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238         enable_dlopen=no
9239
9240
9241   enable_win32_dll=no
9242
9243
9244
9245
9246
9247 # Check whether --with-pic was given.
9248 if test "${with_pic+set}" = set; then :
9249   withval=$with_pic; lt_p=${PACKAGE-default}
9250     case $withval in
9251     yes|no) pic_mode=$withval ;;
9252     *)
9253       pic_mode=default
9254       # Look at the argument we got.  We use all the common list separators.
9255       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9256       for lt_pkg in $withval; do
9257         IFS="$lt_save_ifs"
9258         if test "X$lt_pkg" = "X$lt_p"; then
9259           pic_mode=yes
9260         fi
9261       done
9262       IFS="$lt_save_ifs"
9263       ;;
9264     esac
9265 else
9266   pic_mode=default
9267 fi
9268
9269
9270 test -z "$pic_mode" && pic_mode=default
9271
9272
9273
9274
9275
9276
9277
9278   # Check whether --enable-fast-install was given.
9279 if test "${enable_fast_install+set}" = set; then :
9280   enableval=$enable_fast_install; p=${PACKAGE-default}
9281     case $enableval in
9282     yes) enable_fast_install=yes ;;
9283     no) enable_fast_install=no ;;
9284     *)
9285       enable_fast_install=no
9286       # Look at the argument we got.  We use all the common list separators.
9287       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9288       for pkg in $enableval; do
9289         IFS="$lt_save_ifs"
9290         if test "X$pkg" = "X$p"; then
9291           enable_fast_install=yes
9292         fi
9293       done
9294       IFS="$lt_save_ifs"
9295       ;;
9296     esac
9297 else
9298   enable_fast_install=yes
9299 fi
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310
9311 # This can be used to rebuild libtool when needed
9312 LIBTOOL_DEPS="$ltmain"
9313
9314 # Always use our own libtool.
9315 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9316
9317
9318
9319
9320
9321
9322
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337
9338
9339
9340
9341
9342
9343
9344
9345
9346 test -z "$LN_S" && LN_S="ln -s"
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360
9361 if test -n "${ZSH_VERSION+set}" ; then
9362    setopt NO_GLOB_SUBST
9363 fi
9364
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9366 $as_echo_n "checking for objdir... " >&6; }
9367 if ${lt_cv_objdir+:} false; then :
9368   $as_echo_n "(cached) " >&6
9369 else
9370   rm -f .libs 2>/dev/null
9371 mkdir .libs 2>/dev/null
9372 if test -d .libs; then
9373   lt_cv_objdir=.libs
9374 else
9375   # MS-DOS does not allow filenames that begin with a dot.
9376   lt_cv_objdir=_libs
9377 fi
9378 rmdir .libs 2>/dev/null
9379 fi
9380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9381 $as_echo "$lt_cv_objdir" >&6; }
9382 objdir=$lt_cv_objdir
9383
9384
9385
9386
9387
9388 cat >>confdefs.h <<_ACEOF
9389 #define LT_OBJDIR "$lt_cv_objdir/"
9390 _ACEOF
9391
9392
9393
9394
9395 case $host_os in
9396 aix3*)
9397   # AIX sometimes has problems with the GCC collect2 program.  For some
9398   # reason, if we set the COLLECT_NAMES environment variable, the problems
9399   # vanish in a puff of smoke.
9400   if test "X${COLLECT_NAMES+set}" != Xset; then
9401     COLLECT_NAMES=
9402     export COLLECT_NAMES
9403   fi
9404   ;;
9405 esac
9406
9407 # Global variables:
9408 ofile=libtool
9409 can_build_shared=yes
9410
9411 # All known linkers require a `.a' archive for static linking (except MSVC,
9412 # which needs '.lib').
9413 libext=a
9414
9415 with_gnu_ld="$lt_cv_prog_gnu_ld"
9416
9417 old_CC="$CC"
9418 old_CFLAGS="$CFLAGS"
9419
9420 # Set sane defaults for various variables
9421 test -z "$CC" && CC=cc
9422 test -z "$LTCC" && LTCC=$CC
9423 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9424 test -z "$LD" && LD=ld
9425 test -z "$ac_objext" && ac_objext=o
9426
9427 for cc_temp in $compiler""; do
9428   case $cc_temp in
9429     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9430     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9431     \-*) ;;
9432     *) break;;
9433   esac
9434 done
9435 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9436
9437
9438 # Only perform the check for file, if the check method requires it
9439 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9440 case $deplibs_check_method in
9441 file_magic*)
9442   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9443     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9444 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9445 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9446   $as_echo_n "(cached) " >&6
9447 else
9448   case $MAGIC_CMD in
9449 [\\/*] |  ?:[\\/]*)
9450   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9451   ;;
9452 *)
9453   lt_save_MAGIC_CMD="$MAGIC_CMD"
9454   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9455   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9456   for ac_dir in $ac_dummy; do
9457     IFS="$lt_save_ifs"
9458     test -z "$ac_dir" && ac_dir=.
9459     if test -f $ac_dir/${ac_tool_prefix}file; then
9460       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9461       if test -n "$file_magic_test_file"; then
9462         case $deplibs_check_method in
9463         "file_magic "*)
9464           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9465           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9466           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9467             $EGREP "$file_magic_regex" > /dev/null; then
9468             :
9469           else
9470             cat <<_LT_EOF 1>&2
9471
9472 *** Warning: the command libtool uses to detect shared libraries,
9473 *** $file_magic_cmd, produces output that libtool cannot recognize.
9474 *** The result is that libtool may fail to recognize shared libraries
9475 *** as such.  This will affect the creation of libtool libraries that
9476 *** depend on shared libraries, but programs linked with such libtool
9477 *** libraries will work regardless of this problem.  Nevertheless, you
9478 *** may want to report the problem to your system manager and/or to
9479 *** bug-libtool@gnu.org
9480
9481 _LT_EOF
9482           fi ;;
9483         esac
9484       fi
9485       break
9486     fi
9487   done
9488   IFS="$lt_save_ifs"
9489   MAGIC_CMD="$lt_save_MAGIC_CMD"
9490   ;;
9491 esac
9492 fi
9493
9494 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9495 if test -n "$MAGIC_CMD"; then
9496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9497 $as_echo "$MAGIC_CMD" >&6; }
9498 else
9499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9501 fi
9502
9503
9504
9505
9506
9507 if test -z "$lt_cv_path_MAGIC_CMD"; then
9508   if test -n "$ac_tool_prefix"; then
9509     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9510 $as_echo_n "checking for file... " >&6; }
9511 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9512   $as_echo_n "(cached) " >&6
9513 else
9514   case $MAGIC_CMD in
9515 [\\/*] |  ?:[\\/]*)
9516   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9517   ;;
9518 *)
9519   lt_save_MAGIC_CMD="$MAGIC_CMD"
9520   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9521   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9522   for ac_dir in $ac_dummy; do
9523     IFS="$lt_save_ifs"
9524     test -z "$ac_dir" && ac_dir=.
9525     if test -f $ac_dir/file; then
9526       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9527       if test -n "$file_magic_test_file"; then
9528         case $deplibs_check_method in
9529         "file_magic "*)
9530           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9531           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9532           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9533             $EGREP "$file_magic_regex" > /dev/null; then
9534             :
9535           else
9536             cat <<_LT_EOF 1>&2
9537
9538 *** Warning: the command libtool uses to detect shared libraries,
9539 *** $file_magic_cmd, produces output that libtool cannot recognize.
9540 *** The result is that libtool may fail to recognize shared libraries
9541 *** as such.  This will affect the creation of libtool libraries that
9542 *** depend on shared libraries, but programs linked with such libtool
9543 *** libraries will work regardless of this problem.  Nevertheless, you
9544 *** may want to report the problem to your system manager and/or to
9545 *** bug-libtool@gnu.org
9546
9547 _LT_EOF
9548           fi ;;
9549         esac
9550       fi
9551       break
9552     fi
9553   done
9554   IFS="$lt_save_ifs"
9555   MAGIC_CMD="$lt_save_MAGIC_CMD"
9556   ;;
9557 esac
9558 fi
9559
9560 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9561 if test -n "$MAGIC_CMD"; then
9562   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9563 $as_echo "$MAGIC_CMD" >&6; }
9564 else
9565   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9566 $as_echo "no" >&6; }
9567 fi
9568
9569
9570   else
9571     MAGIC_CMD=:
9572   fi
9573 fi
9574
9575   fi
9576   ;;
9577 esac
9578
9579 # Use C for the default configuration in the libtool script
9580
9581 lt_save_CC="$CC"
9582 ac_ext=c
9583 ac_cpp='$CPP $CPPFLAGS'
9584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9587
9588
9589 # Source file extension for C test sources.
9590 ac_ext=c
9591
9592 # Object file extension for compiled C test sources.
9593 objext=o
9594 objext=$objext
9595
9596 # Code to be used in simple compile tests
9597 lt_simple_compile_test_code="int some_variable = 0;"
9598
9599 # Code to be used in simple link tests
9600 lt_simple_link_test_code='int main(){return(0);}'
9601
9602
9603
9604
9605
9606
9607
9608 # If no C compiler was specified, use CC.
9609 LTCC=${LTCC-"$CC"}
9610
9611 # If no C compiler flags were specified, use CFLAGS.
9612 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9613
9614 # Allow CC to be a program name with arguments.
9615 compiler=$CC
9616
9617 # Save the default compiler, since it gets overwritten when the other
9618 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9619 compiler_DEFAULT=$CC
9620
9621 # save warnings/boilerplate of simple test code
9622 ac_outfile=conftest.$ac_objext
9623 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9624 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9625 _lt_compiler_boilerplate=`cat conftest.err`
9626 $RM conftest*
9627
9628 ac_outfile=conftest.$ac_objext
9629 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9630 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9631 _lt_linker_boilerplate=`cat conftest.err`
9632 $RM -r conftest*
9633
9634
9635 ## CAVEAT EMPTOR:
9636 ## There is no encapsulation within the following macros, do not change
9637 ## the running order or otherwise move them around unless you know exactly
9638 ## what you are doing...
9639 if test -n "$compiler"; then
9640
9641 lt_prog_compiler_no_builtin_flag=
9642
9643 if test "$GCC" = yes; then
9644   case $cc_basename in
9645   nvcc*)
9646     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9647   *)
9648     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9649   esac
9650
9651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9652 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9653 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9654   $as_echo_n "(cached) " >&6
9655 else
9656   lt_cv_prog_compiler_rtti_exceptions=no
9657    ac_outfile=conftest.$ac_objext
9658    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9659    lt_compiler_flag="-fno-rtti -fno-exceptions"
9660    # Insert the option either (1) after the last *FLAGS variable, or
9661    # (2) before a word containing "conftest.", or (3) at the end.
9662    # Note that $ac_compile itself does not contain backslashes and begins
9663    # with a dollar sign (not a hyphen), so the echo should work correctly.
9664    # The option is referenced via a variable to avoid confusing sed.
9665    lt_compile=`echo "$ac_compile" | $SED \
9666    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9667    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9668    -e 's:$: $lt_compiler_flag:'`
9669    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9670    (eval "$lt_compile" 2>conftest.err)
9671    ac_status=$?
9672    cat conftest.err >&5
9673    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9674    if (exit $ac_status) && test -s "$ac_outfile"; then
9675      # The compiler can only warn and ignore the option if not recognized
9676      # So say no if there are warnings other than the usual output.
9677      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9678      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9679      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9680        lt_cv_prog_compiler_rtti_exceptions=yes
9681      fi
9682    fi
9683    $RM conftest*
9684
9685 fi
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9687 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9688
9689 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9690     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9691 else
9692     :
9693 fi
9694
9695 fi
9696
9697
9698
9699
9700
9701
9702   lt_prog_compiler_wl=
9703 lt_prog_compiler_pic=
9704 lt_prog_compiler_static=
9705
9706
9707   if test "$GCC" = yes; then
9708     lt_prog_compiler_wl='-Wl,'
9709     lt_prog_compiler_static='-static'
9710
9711     case $host_os in
9712       aix*)
9713       # All AIX code is PIC.
9714       if test "$host_cpu" = ia64; then
9715         # AIX 5 now supports IA64 processor
9716         lt_prog_compiler_static='-Bstatic'
9717       fi
9718       ;;
9719
9720     amigaos*)
9721       case $host_cpu in
9722       powerpc)
9723             # see comment about AmigaOS4 .so support
9724             lt_prog_compiler_pic='-fPIC'
9725         ;;
9726       m68k)
9727             # FIXME: we need at least 68020 code to build shared libraries, but
9728             # adding the `-m68020' flag to GCC prevents building anything better,
9729             # like `-m68040'.
9730             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9731         ;;
9732       esac
9733       ;;
9734
9735     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736       # PIC is the default for these OSes.
9737       ;;
9738
9739     mingw* | cygwin* | pw32* | os2* | cegcc*)
9740       # This hack is so that the source file can tell whether it is being
9741       # built for inclusion in a dll (and should export symbols for example).
9742       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743       # (--disable-auto-import) libraries
9744       lt_prog_compiler_pic='-DDLL_EXPORT'
9745       ;;
9746
9747     darwin* | rhapsody*)
9748       # PIC is the default on this platform
9749       # Common symbols not allowed in MH_DYLIB files
9750       lt_prog_compiler_pic='-fno-common'
9751       ;;
9752
9753     haiku*)
9754       # PIC is the default for Haiku.
9755       # The "-static" flag exists, but is broken.
9756       lt_prog_compiler_static=
9757       ;;
9758
9759     hpux*)
9760       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9761       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9762       # sets the default TLS model and affects inlining.
9763       case $host_cpu in
9764       hppa*64*)
9765         # +Z the default
9766         ;;
9767       *)
9768         lt_prog_compiler_pic='-fPIC'
9769         ;;
9770       esac
9771       ;;
9772
9773     interix[3-9]*)
9774       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9775       # Instead, we relocate shared libraries at runtime.
9776       ;;
9777
9778     msdosdjgpp*)
9779       # Just because we use GCC doesn't mean we suddenly get shared libraries
9780       # on systems that don't support them.
9781       lt_prog_compiler_can_build_shared=no
9782       enable_shared=no
9783       ;;
9784
9785     *nto* | *qnx*)
9786       # QNX uses GNU C++, but need to define -shared option too, otherwise
9787       # it will coredump.
9788       lt_prog_compiler_pic='-fPIC -shared'
9789       ;;
9790
9791     sysv4*MP*)
9792       if test -d /usr/nec; then
9793         lt_prog_compiler_pic=-Kconform_pic
9794       fi
9795       ;;
9796
9797     *)
9798       lt_prog_compiler_pic='-fPIC'
9799       ;;
9800     esac
9801
9802     case $cc_basename in
9803     nvcc*) # Cuda Compiler Driver 2.2
9804       lt_prog_compiler_wl='-Xlinker '
9805       if test -n "$lt_prog_compiler_pic"; then
9806         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9807       fi
9808       ;;
9809     esac
9810   else
9811     # PORTME Check for flag to pass linker flags through the system compiler.
9812     case $host_os in
9813     aix*)
9814       lt_prog_compiler_wl='-Wl,'
9815       if test "$host_cpu" = ia64; then
9816         # AIX 5 now supports IA64 processor
9817         lt_prog_compiler_static='-Bstatic'
9818       else
9819         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9820       fi
9821       ;;
9822
9823     mingw* | cygwin* | pw32* | os2* | cegcc*)
9824       # This hack is so that the source file can tell whether it is being
9825       # built for inclusion in a dll (and should export symbols for example).
9826       lt_prog_compiler_pic='-DDLL_EXPORT'
9827       ;;
9828
9829     hpux9* | hpux10* | hpux11*)
9830       lt_prog_compiler_wl='-Wl,'
9831       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9832       # not for PA HP-UX.
9833       case $host_cpu in
9834       hppa*64*|ia64*)
9835         # +Z the default
9836         ;;
9837       *)
9838         lt_prog_compiler_pic='+Z'
9839         ;;
9840       esac
9841       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9842       lt_prog_compiler_static='${wl}-a ${wl}archive'
9843       ;;
9844
9845     irix5* | irix6* | nonstopux*)
9846       lt_prog_compiler_wl='-Wl,'
9847       # PIC (with -KPIC) is the default.
9848       lt_prog_compiler_static='-non_shared'
9849       ;;
9850
9851     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9852       case $cc_basename in
9853       # old Intel for x86_64 which still supported -KPIC.
9854       ecc*)
9855         lt_prog_compiler_wl='-Wl,'
9856         lt_prog_compiler_pic='-KPIC'
9857         lt_prog_compiler_static='-static'
9858         ;;
9859       # icc used to be incompatible with GCC.
9860       # ICC 10 doesn't accept -KPIC any more.
9861       icc* | ifort*)
9862         lt_prog_compiler_wl='-Wl,'
9863         lt_prog_compiler_pic='-fPIC'
9864         lt_prog_compiler_static='-static'
9865         ;;
9866       # Lahey Fortran 8.1.
9867       lf95*)
9868         lt_prog_compiler_wl='-Wl,'
9869         lt_prog_compiler_pic='--shared'
9870         lt_prog_compiler_static='--static'
9871         ;;
9872       nagfor*)
9873         # NAG Fortran compiler
9874         lt_prog_compiler_wl='-Wl,-Wl,,'
9875         lt_prog_compiler_pic='-PIC'
9876         lt_prog_compiler_static='-Bstatic'
9877         ;;
9878       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9879         # Portland Group compilers (*not* the Pentium gcc compiler,
9880         # which looks to be a dead project)
9881         lt_prog_compiler_wl='-Wl,'
9882         lt_prog_compiler_pic='-fpic'
9883         lt_prog_compiler_static='-Bstatic'
9884         ;;
9885       ccc*)
9886         lt_prog_compiler_wl='-Wl,'
9887         # All Alpha code is PIC.
9888         lt_prog_compiler_static='-non_shared'
9889         ;;
9890       xl* | bgxl* | bgf* | mpixl*)
9891         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9892         lt_prog_compiler_wl='-Wl,'
9893         lt_prog_compiler_pic='-qpic'
9894         lt_prog_compiler_static='-qstaticlink'
9895         ;;
9896       *)
9897         case `$CC -V 2>&1 | sed 5q` in
9898         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9899           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9900           lt_prog_compiler_pic='-KPIC'
9901           lt_prog_compiler_static='-Bstatic'
9902           lt_prog_compiler_wl=''
9903           ;;
9904         *Sun\ F* | *Sun*Fortran*)
9905           lt_prog_compiler_pic='-KPIC'
9906           lt_prog_compiler_static='-Bstatic'
9907           lt_prog_compiler_wl='-Qoption ld '
9908           ;;
9909         *Sun\ C*)
9910           # Sun C 5.9
9911           lt_prog_compiler_pic='-KPIC'
9912           lt_prog_compiler_static='-Bstatic'
9913           lt_prog_compiler_wl='-Wl,'
9914           ;;
9915         *Intel*\ [CF]*Compiler*)
9916           lt_prog_compiler_wl='-Wl,'
9917           lt_prog_compiler_pic='-fPIC'
9918           lt_prog_compiler_static='-static'
9919           ;;
9920         *Portland\ Group*)
9921           lt_prog_compiler_wl='-Wl,'
9922           lt_prog_compiler_pic='-fpic'
9923           lt_prog_compiler_static='-Bstatic'
9924           ;;
9925         esac
9926         ;;
9927       esac
9928       ;;
9929
9930     newsos6)
9931       lt_prog_compiler_pic='-KPIC'
9932       lt_prog_compiler_static='-Bstatic'
9933       ;;
9934
9935     *nto* | *qnx*)
9936       # QNX uses GNU C++, but need to define -shared option too, otherwise
9937       # it will coredump.
9938       lt_prog_compiler_pic='-fPIC -shared'
9939       ;;
9940
9941     osf3* | osf4* | osf5*)
9942       lt_prog_compiler_wl='-Wl,'
9943       # All OSF/1 code is PIC.
9944       lt_prog_compiler_static='-non_shared'
9945       ;;
9946
9947     rdos*)
9948       lt_prog_compiler_static='-non_shared'
9949       ;;
9950
9951     solaris*)
9952       lt_prog_compiler_pic='-KPIC'
9953       lt_prog_compiler_static='-Bstatic'
9954       case $cc_basename in
9955       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9956         lt_prog_compiler_wl='-Qoption ld ';;
9957       *)
9958         lt_prog_compiler_wl='-Wl,';;
9959       esac
9960       ;;
9961
9962     sunos4*)
9963       lt_prog_compiler_wl='-Qoption ld '
9964       lt_prog_compiler_pic='-PIC'
9965       lt_prog_compiler_static='-Bstatic'
9966       ;;
9967
9968     sysv4 | sysv4.2uw2* | sysv4.3*)
9969       lt_prog_compiler_wl='-Wl,'
9970       lt_prog_compiler_pic='-KPIC'
9971       lt_prog_compiler_static='-Bstatic'
9972       ;;
9973
9974     sysv4*MP*)
9975       if test -d /usr/nec ;then
9976         lt_prog_compiler_pic='-Kconform_pic'
9977         lt_prog_compiler_static='-Bstatic'
9978       fi
9979       ;;
9980
9981     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9982       lt_prog_compiler_wl='-Wl,'
9983       lt_prog_compiler_pic='-KPIC'
9984       lt_prog_compiler_static='-Bstatic'
9985       ;;
9986
9987     unicos*)
9988       lt_prog_compiler_wl='-Wl,'
9989       lt_prog_compiler_can_build_shared=no
9990       ;;
9991
9992     uts4*)
9993       lt_prog_compiler_pic='-pic'
9994       lt_prog_compiler_static='-Bstatic'
9995       ;;
9996
9997     *)
9998       lt_prog_compiler_can_build_shared=no
9999       ;;
10000     esac
10001   fi
10002
10003 case $host_os in
10004   # For platforms which do not support PIC, -DPIC is meaningless:
10005   *djgpp*)
10006     lt_prog_compiler_pic=
10007     ;;
10008   *)
10009     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10010     ;;
10011 esac
10012
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10014 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10015 if ${lt_cv_prog_compiler_pic+:} false; then :
10016   $as_echo_n "(cached) " >&6
10017 else
10018   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10019 fi
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10021 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10022 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10023
10024 #
10025 # Check to make sure the PIC flag actually works.
10026 #
10027 if test -n "$lt_prog_compiler_pic"; then
10028   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10029 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10030 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10031   $as_echo_n "(cached) " >&6
10032 else
10033   lt_cv_prog_compiler_pic_works=no
10034    ac_outfile=conftest.$ac_objext
10035    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10036    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10037    # Insert the option either (1) after the last *FLAGS variable, or
10038    # (2) before a word containing "conftest.", or (3) at the end.
10039    # Note that $ac_compile itself does not contain backslashes and begins
10040    # with a dollar sign (not a hyphen), so the echo should work correctly.
10041    # The option is referenced via a variable to avoid confusing sed.
10042    lt_compile=`echo "$ac_compile" | $SED \
10043    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10044    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10045    -e 's:$: $lt_compiler_flag:'`
10046    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10047    (eval "$lt_compile" 2>conftest.err)
10048    ac_status=$?
10049    cat conftest.err >&5
10050    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051    if (exit $ac_status) && test -s "$ac_outfile"; then
10052      # The compiler can only warn and ignore the option if not recognized
10053      # So say no if there are warnings other than the usual output.
10054      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10055      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10056      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10057        lt_cv_prog_compiler_pic_works=yes
10058      fi
10059    fi
10060    $RM conftest*
10061
10062 fi
10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10064 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10065
10066 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10067     case $lt_prog_compiler_pic in
10068      "" | " "*) ;;
10069      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10070      esac
10071 else
10072     lt_prog_compiler_pic=
10073      lt_prog_compiler_can_build_shared=no
10074 fi
10075
10076 fi
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088 #
10089 # Check to make sure the static flag actually works.
10090 #
10091 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10093 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10094 if ${lt_cv_prog_compiler_static_works+:} false; then :
10095   $as_echo_n "(cached) " >&6
10096 else
10097   lt_cv_prog_compiler_static_works=no
10098    save_LDFLAGS="$LDFLAGS"
10099    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10100    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10101    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10102      # The linker can only warn and ignore the option if not recognized
10103      # So say no if there are warnings
10104      if test -s conftest.err; then
10105        # Append any errors to the config.log.
10106        cat conftest.err 1>&5
10107        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10108        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10109        if diff conftest.exp conftest.er2 >/dev/null; then
10110          lt_cv_prog_compiler_static_works=yes
10111        fi
10112      else
10113        lt_cv_prog_compiler_static_works=yes
10114      fi
10115    fi
10116    $RM -r conftest*
10117    LDFLAGS="$save_LDFLAGS"
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10121 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10122
10123 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10124     :
10125 else
10126     lt_prog_compiler_static=
10127 fi
10128
10129
10130
10131
10132
10133
10134
10135   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10136 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10137 if ${lt_cv_prog_compiler_c_o+:} false; then :
10138   $as_echo_n "(cached) " >&6
10139 else
10140   lt_cv_prog_compiler_c_o=no
10141    $RM -r conftest 2>/dev/null
10142    mkdir conftest
10143    cd conftest
10144    mkdir out
10145    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10146
10147    lt_compiler_flag="-o out/conftest2.$ac_objext"
10148    # Insert the option either (1) after the last *FLAGS variable, or
10149    # (2) before a word containing "conftest.", or (3) at the end.
10150    # Note that $ac_compile itself does not contain backslashes and begins
10151    # with a dollar sign (not a hyphen), so the echo should work correctly.
10152    lt_compile=`echo "$ac_compile" | $SED \
10153    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10154    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10155    -e 's:$: $lt_compiler_flag:'`
10156    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10157    (eval "$lt_compile" 2>out/conftest.err)
10158    ac_status=$?
10159    cat out/conftest.err >&5
10160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10162    then
10163      # The compiler can only warn and ignore the option if not recognized
10164      # So say no if there are warnings
10165      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10166      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10167      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10168        lt_cv_prog_compiler_c_o=yes
10169      fi
10170    fi
10171    chmod u+w . 2>&5
10172    $RM conftest*
10173    # SGI C++ compiler will create directory out/ii_files/ for
10174    # template instantiation
10175    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10176    $RM out/* && rmdir out
10177    cd ..
10178    $RM -r conftest
10179    $RM conftest*
10180
10181 fi
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10183 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10184
10185
10186
10187
10188
10189
10190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10191 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10192 if ${lt_cv_prog_compiler_c_o+:} false; then :
10193   $as_echo_n "(cached) " >&6
10194 else
10195   lt_cv_prog_compiler_c_o=no
10196    $RM -r conftest 2>/dev/null
10197    mkdir conftest
10198    cd conftest
10199    mkdir out
10200    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10201
10202    lt_compiler_flag="-o out/conftest2.$ac_objext"
10203    # Insert the option either (1) after the last *FLAGS variable, or
10204    # (2) before a word containing "conftest.", or (3) at the end.
10205    # Note that $ac_compile itself does not contain backslashes and begins
10206    # with a dollar sign (not a hyphen), so the echo should work correctly.
10207    lt_compile=`echo "$ac_compile" | $SED \
10208    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10209    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10210    -e 's:$: $lt_compiler_flag:'`
10211    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10212    (eval "$lt_compile" 2>out/conftest.err)
10213    ac_status=$?
10214    cat out/conftest.err >&5
10215    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10217    then
10218      # The compiler can only warn and ignore the option if not recognized
10219      # So say no if there are warnings
10220      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10221      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10222      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10223        lt_cv_prog_compiler_c_o=yes
10224      fi
10225    fi
10226    chmod u+w . 2>&5
10227    $RM conftest*
10228    # SGI C++ compiler will create directory out/ii_files/ for
10229    # template instantiation
10230    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10231    $RM out/* && rmdir out
10232    cd ..
10233    $RM -r conftest
10234    $RM conftest*
10235
10236 fi
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10238 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10239
10240
10241
10242
10243 hard_links="nottested"
10244 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10245   # do not overwrite the value of need_locks provided by the user
10246   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10247 $as_echo_n "checking if we can lock with hard links... " >&6; }
10248   hard_links=yes
10249   $RM conftest*
10250   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10251   touch conftest.a
10252   ln conftest.a conftest.b 2>&5 || hard_links=no
10253   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10255 $as_echo "$hard_links" >&6; }
10256   if test "$hard_links" = no; then
10257     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10258 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10259     need_locks=warn
10260   fi
10261 else
10262   need_locks=no
10263 fi
10264
10265
10266
10267
10268
10269
10270   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10271 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10272
10273   runpath_var=
10274   allow_undefined_flag=
10275   always_export_symbols=no
10276   archive_cmds=
10277   archive_expsym_cmds=
10278   compiler_needs_object=no
10279   enable_shared_with_static_runtimes=no
10280   export_dynamic_flag_spec=
10281   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10282   hardcode_automatic=no
10283   hardcode_direct=no
10284   hardcode_direct_absolute=no
10285   hardcode_libdir_flag_spec=
10286   hardcode_libdir_separator=
10287   hardcode_minus_L=no
10288   hardcode_shlibpath_var=unsupported
10289   inherit_rpath=no
10290   link_all_deplibs=unknown
10291   module_cmds=
10292   module_expsym_cmds=
10293   old_archive_from_new_cmds=
10294   old_archive_from_expsyms_cmds=
10295   thread_safe_flag_spec=
10296   whole_archive_flag_spec=
10297   # include_expsyms should be a list of space-separated symbols to be *always*
10298   # included in the symbol list
10299   include_expsyms=
10300   # exclude_expsyms can be an extended regexp of symbols to exclude
10301   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10302   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10303   # as well as any symbol that contains `d'.
10304   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10305   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10306   # platforms (ab)use it in PIC code, but their linkers get confused if
10307   # the symbol is explicitly referenced.  Since portable code cannot
10308   # rely on this symbol name, it's probably fine to never include it in
10309   # preloaded symbol tables.
10310   # Exclude shared library initialization/finalization symbols.
10311   extract_expsyms_cmds=
10312
10313   case $host_os in
10314   cygwin* | mingw* | pw32* | cegcc*)
10315     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10316     # When not using gcc, we currently assume that we are using
10317     # Microsoft Visual C++.
10318     if test "$GCC" != yes; then
10319       with_gnu_ld=no
10320     fi
10321     ;;
10322   interix*)
10323     # we just hope/assume this is gcc and not c89 (= MSVC++)
10324     with_gnu_ld=yes
10325     ;;
10326   openbsd*)
10327     with_gnu_ld=no
10328     ;;
10329   linux* | k*bsd*-gnu | gnu*)
10330     link_all_deplibs=no
10331     ;;
10332   esac
10333
10334   ld_shlibs=yes
10335
10336   # On some targets, GNU ld is compatible enough with the native linker
10337   # that we're better off using the native interface for both.
10338   lt_use_gnu_ld_interface=no
10339   if test "$with_gnu_ld" = yes; then
10340     case $host_os in
10341       aix*)
10342         # The AIX port of GNU ld has always aspired to compatibility
10343         # with the native linker.  However, as the warning in the GNU ld
10344         # block says, versions before 2.19.5* couldn't really create working
10345         # shared libraries, regardless of the interface used.
10346         case `$LD -v 2>&1` in
10347           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10348           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10349           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10350           *)
10351             lt_use_gnu_ld_interface=yes
10352             ;;
10353         esac
10354         ;;
10355       *)
10356         lt_use_gnu_ld_interface=yes
10357         ;;
10358     esac
10359   fi
10360
10361   if test "$lt_use_gnu_ld_interface" = yes; then
10362     # If archive_cmds runs LD, not CC, wlarc should be empty
10363     wlarc='${wl}'
10364
10365     # Set some defaults for GNU ld with shared library support. These
10366     # are reset later if shared libraries are not supported. Putting them
10367     # here allows them to be overridden if necessary.
10368     runpath_var=LD_RUN_PATH
10369     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10370     export_dynamic_flag_spec='${wl}--export-dynamic'
10371     # ancient GNU ld didn't support --whole-archive et. al.
10372     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10373       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10374     else
10375       whole_archive_flag_spec=
10376     fi
10377     supports_anon_versioning=no
10378     case `$LD -v 2>&1` in
10379       *GNU\ gold*) supports_anon_versioning=yes ;;
10380       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10381       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10382       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10383       *\ 2.11.*) ;; # other 2.11 versions
10384       *) supports_anon_versioning=yes ;;
10385     esac
10386
10387     # See if GNU ld supports shared libraries.
10388     case $host_os in
10389     aix[3-9]*)
10390       # On AIX/PPC, the GNU linker is very broken
10391       if test "$host_cpu" != ia64; then
10392         ld_shlibs=no
10393         cat <<_LT_EOF 1>&2
10394
10395 *** Warning: the GNU linker, at least up to release 2.19, is reported
10396 *** to be unable to reliably create shared libraries on AIX.
10397 *** Therefore, libtool is disabling shared libraries support.  If you
10398 *** really care for shared libraries, you may want to install binutils
10399 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10400 *** You will then need to restart the configuration process.
10401
10402 _LT_EOF
10403       fi
10404       ;;
10405
10406     amigaos*)
10407       case $host_cpu in
10408       powerpc)
10409             # see comment about AmigaOS4 .so support
10410             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411             archive_expsym_cmds=''
10412         ;;
10413       m68k)
10414             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)'
10415             hardcode_libdir_flag_spec='-L$libdir'
10416             hardcode_minus_L=yes
10417         ;;
10418       esac
10419       ;;
10420
10421     beos*)
10422       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10423         allow_undefined_flag=unsupported
10424         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10425         # support --undefined.  This deserves some investigation.  FIXME
10426         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10427       else
10428         ld_shlibs=no
10429       fi
10430       ;;
10431
10432     cygwin* | mingw* | pw32* | cegcc*)
10433       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10434       # as there is no search path for DLLs.
10435       hardcode_libdir_flag_spec='-L$libdir'
10436       export_dynamic_flag_spec='${wl}--export-all-symbols'
10437       allow_undefined_flag=unsupported
10438       always_export_symbols=no
10439       enable_shared_with_static_runtimes=yes
10440       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'
10441       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10442
10443       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10444         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10445         # If the export-symbols file already is a .def file (1st line
10446         # is EXPORTS), use it as is; otherwise, prepend...
10447         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10448           cp $export_symbols $output_objdir/$soname.def;
10449         else
10450           echo EXPORTS > $output_objdir/$soname.def;
10451           cat $export_symbols >> $output_objdir/$soname.def;
10452         fi~
10453         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10454       else
10455         ld_shlibs=no
10456       fi
10457       ;;
10458
10459     haiku*)
10460       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10461       link_all_deplibs=yes
10462       ;;
10463
10464     interix[3-9]*)
10465       hardcode_direct=no
10466       hardcode_shlibpath_var=no
10467       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10468       export_dynamic_flag_spec='${wl}-E'
10469       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10470       # Instead, shared libraries are loaded at an image base (0x10000000 by
10471       # default) and relocated if they conflict, which is a slow very memory
10472       # consuming and fragmenting process.  To avoid this, we pick a random,
10473       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10474       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10475       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10476       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'
10477       ;;
10478
10479     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10480       tmp_diet=no
10481       if test "$host_os" = linux-dietlibc; then
10482         case $cc_basename in
10483           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10484         esac
10485       fi
10486       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10487          && test "$tmp_diet" = no
10488       then
10489         tmp_addflag=' $pic_flag'
10490         tmp_sharedflag='-shared'
10491         case $cc_basename,$host_cpu in
10492         pgcc*)                          # Portland Group C compiler
10493           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'
10494           tmp_addflag=' $pic_flag'
10495           ;;
10496         pgf77* | pgf90* | pgf95* | pgfortran*)
10497                                         # Portland Group f77 and f90 compilers
10498           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'
10499           tmp_addflag=' $pic_flag -Mnomain' ;;
10500         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10501           tmp_addflag=' -i_dynamic' ;;
10502         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10503           tmp_addflag=' -i_dynamic -nofor_main' ;;
10504         ifc* | ifort*)                  # Intel Fortran compiler
10505           tmp_addflag=' -nofor_main' ;;
10506         lf95*)                          # Lahey Fortran 8.1
10507           whole_archive_flag_spec=
10508           tmp_sharedflag='--shared' ;;
10509         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10510           tmp_sharedflag='-qmkshrobj'
10511           tmp_addflag= ;;
10512         nvcc*)  # Cuda Compiler Driver 2.2
10513           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'
10514           compiler_needs_object=yes
10515           ;;
10516         esac
10517         case `$CC -V 2>&1 | sed 5q` in
10518         *Sun\ C*)                       # Sun C 5.9
10519           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'
10520           compiler_needs_object=yes
10521           tmp_sharedflag='-G' ;;
10522         *Sun\ F*)                       # Sun Fortran 8.3
10523           tmp_sharedflag='-G' ;;
10524         esac
10525         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10526
10527         if test "x$supports_anon_versioning" = xyes; then
10528           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10529             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10530             echo "local: *; };" >> $output_objdir/$libname.ver~
10531             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10532         fi
10533
10534         case $cc_basename in
10535         xlf* | bgf* | bgxlf* | mpixlf*)
10536           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10537           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10538           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10539           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10540           if test "x$supports_anon_versioning" = xyes; then
10541             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10542               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10543               echo "local: *; };" >> $output_objdir/$libname.ver~
10544               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10545           fi
10546           ;;
10547         esac
10548       else
10549         ld_shlibs=no
10550       fi
10551       ;;
10552
10553     netbsd* | netbsdelf*-gnu)
10554       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10555         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10556         wlarc=
10557       else
10558         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10559         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10560       fi
10561       ;;
10562
10563     solaris*)
10564       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10565         ld_shlibs=no
10566         cat <<_LT_EOF 1>&2
10567
10568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10569 *** create shared libraries on Solaris systems.  Therefore, libtool
10570 *** is disabling shared libraries support.  We urge you to upgrade GNU
10571 *** binutils to release 2.9.1 or newer.  Another option is to modify
10572 *** your PATH or compiler configuration so that the native linker is
10573 *** used, and then restart.
10574
10575 _LT_EOF
10576       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10577         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10578         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10579       else
10580         ld_shlibs=no
10581       fi
10582       ;;
10583
10584     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10585       case `$LD -v 2>&1` in
10586         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10587         ld_shlibs=no
10588         cat <<_LT_EOF 1>&2
10589
10590 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10591 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10592 *** is disabling shared libraries support.  We urge you to upgrade GNU
10593 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10594 *** your PATH or compiler configuration so that the native linker is
10595 *** used, and then restart.
10596
10597 _LT_EOF
10598         ;;
10599         *)
10600           # For security reasons, it is highly recommended that you always
10601           # use absolute paths for naming shared libraries, and exclude the
10602           # DT_RUNPATH tag from executables and libraries.  But doing so
10603           # requires that you compile everything twice, which is a pain.
10604           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10605             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10606             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10607             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10608           else
10609             ld_shlibs=no
10610           fi
10611         ;;
10612       esac
10613       ;;
10614
10615     sunos4*)
10616       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10617       wlarc=
10618       hardcode_direct=yes
10619       hardcode_shlibpath_var=no
10620       ;;
10621
10622     *)
10623       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10624         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10625         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10626       else
10627         ld_shlibs=no
10628       fi
10629       ;;
10630     esac
10631
10632     if test "$ld_shlibs" = no; then
10633       runpath_var=
10634       hardcode_libdir_flag_spec=
10635       export_dynamic_flag_spec=
10636       whole_archive_flag_spec=
10637     fi
10638   else
10639     # PORTME fill in a description of your system's linker (not GNU ld)
10640     case $host_os in
10641     aix3*)
10642       allow_undefined_flag=unsupported
10643       always_export_symbols=yes
10644       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'
10645       # Note: this linker hardcodes the directories in LIBPATH if there
10646       # are no directories specified by -L.
10647       hardcode_minus_L=yes
10648       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10649         # Neither direct hardcoding nor static linking is supported with a
10650         # broken collect2.
10651         hardcode_direct=unsupported
10652       fi
10653       ;;
10654
10655     aix[4-9]*)
10656       if test "$host_cpu" = ia64; then
10657         # On IA64, the linker does run time linking by default, so we don't
10658         # have to do anything special.
10659         aix_use_runtimelinking=no
10660         exp_sym_flag='-Bexport'
10661         no_entry_flag=""
10662       else
10663         # If we're using GNU nm, then we don't want the "-C" option.
10664         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10665         # Also, AIX nm treats weak defined symbols like other global
10666         # defined symbols, whereas GNU nm marks them as "W".
10667         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10668           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'
10669         else
10670           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'
10671         fi
10672         aix_use_runtimelinking=no
10673
10674         # Test if we are trying to use run time linking or normal
10675         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10676         # need to do runtime linking.
10677         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10678           for ld_flag in $LDFLAGS; do
10679           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10680             aix_use_runtimelinking=yes
10681             break
10682           fi
10683           done
10684           ;;
10685         esac
10686
10687         exp_sym_flag='-bexport'
10688         no_entry_flag='-bnoentry'
10689       fi
10690
10691       # When large executables or shared objects are built, AIX ld can
10692       # have problems creating the table of contents.  If linking a library
10693       # or program results in "error TOC overflow" add -mminimal-toc to
10694       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10695       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10696
10697       archive_cmds=''
10698       hardcode_direct=yes
10699       hardcode_direct_absolute=yes
10700       hardcode_libdir_separator=':'
10701       link_all_deplibs=yes
10702       file_list_spec='${wl}-f,'
10703
10704       if test "$GCC" = yes; then
10705         case $host_os in aix4.[012]|aix4.[012].*)
10706         # We only want to do this on AIX 4.2 and lower, the check
10707         # below for broken collect2 doesn't work under 4.3+
10708           collect2name=`${CC} -print-prog-name=collect2`
10709           if test -f "$collect2name" &&
10710            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10711           then
10712           # We have reworked collect2
10713           :
10714           else
10715           # We have old collect2
10716           hardcode_direct=unsupported
10717           # It fails to find uninstalled libraries when the uninstalled
10718           # path is not listed in the libpath.  Setting hardcode_minus_L
10719           # to unsupported forces relinking
10720           hardcode_minus_L=yes
10721           hardcode_libdir_flag_spec='-L$libdir'
10722           hardcode_libdir_separator=
10723           fi
10724           ;;
10725         esac
10726         shared_flag='-shared'
10727         if test "$aix_use_runtimelinking" = yes; then
10728           shared_flag="$shared_flag "'${wl}-G'
10729         fi
10730         link_all_deplibs=no
10731       else
10732         # not using gcc
10733         if test "$host_cpu" = ia64; then
10734         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10735         # chokes on -Wl,-G. The following line is correct:
10736           shared_flag='-G'
10737         else
10738           if test "$aix_use_runtimelinking" = yes; then
10739             shared_flag='${wl}-G'
10740           else
10741             shared_flag='${wl}-bM:SRE'
10742           fi
10743         fi
10744       fi
10745
10746       export_dynamic_flag_spec='${wl}-bexpall'
10747       # It seems that -bexpall does not export symbols beginning with
10748       # underscore (_), so it is better to generate a list of symbols to export.
10749       always_export_symbols=yes
10750       if test "$aix_use_runtimelinking" = yes; then
10751         # Warning - without using the other runtime loading flags (-brtl),
10752         # -berok will link without error, but may produce a broken library.
10753         allow_undefined_flag='-berok'
10754         # Determine the default libpath from the value encoded in an
10755         # empty executable.
10756         if test "${lt_cv_aix_libpath+set}" = set; then
10757   aix_libpath=$lt_cv_aix_libpath
10758 else
10759   if ${lt_cv_aix_libpath_+:} false; then :
10760   $as_echo_n "(cached) " >&6
10761 else
10762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h.  */
10764
10765 int
10766 main ()
10767 {
10768
10769   ;
10770   return 0;
10771 }
10772 _ACEOF
10773 if ac_fn_c_try_link "$LINENO"; then :
10774
10775   lt_aix_libpath_sed='
10776       /Import File Strings/,/^$/ {
10777           /^0/ {
10778               s/^0  *\([^ ]*\) *$/\1/
10779               p
10780           }
10781       }'
10782   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10783   # Check for a 64-bit object if we didn't find anything.
10784   if test -z "$lt_cv_aix_libpath_"; then
10785     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10786   fi
10787 fi
10788 rm -f core conftest.err conftest.$ac_objext \
10789     conftest$ac_exeext conftest.$ac_ext
10790   if test -z "$lt_cv_aix_libpath_"; then
10791     lt_cv_aix_libpath_="/usr/lib:/lib"
10792   fi
10793
10794 fi
10795
10796   aix_libpath=$lt_cv_aix_libpath_
10797 fi
10798
10799         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10800         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"
10801       else
10802         if test "$host_cpu" = ia64; then
10803           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10804           allow_undefined_flag="-z nodefs"
10805           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"
10806         else
10807          # Determine the default libpath from the value encoded in an
10808          # empty executable.
10809          if test "${lt_cv_aix_libpath+set}" = set; then
10810   aix_libpath=$lt_cv_aix_libpath
10811 else
10812   if ${lt_cv_aix_libpath_+:} false; then :
10813   $as_echo_n "(cached) " >&6
10814 else
10815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816 /* end confdefs.h.  */
10817
10818 int
10819 main ()
10820 {
10821
10822   ;
10823   return 0;
10824 }
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827
10828   lt_aix_libpath_sed='
10829       /Import File Strings/,/^$/ {
10830           /^0/ {
10831               s/^0  *\([^ ]*\) *$/\1/
10832               p
10833           }
10834       }'
10835   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10836   # Check for a 64-bit object if we didn't find anything.
10837   if test -z "$lt_cv_aix_libpath_"; then
10838     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10839   fi
10840 fi
10841 rm -f core conftest.err conftest.$ac_objext \
10842     conftest$ac_exeext conftest.$ac_ext
10843   if test -z "$lt_cv_aix_libpath_"; then
10844     lt_cv_aix_libpath_="/usr/lib:/lib"
10845   fi
10846
10847 fi
10848
10849   aix_libpath=$lt_cv_aix_libpath_
10850 fi
10851
10852          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10853           # Warning - without using the other run time loading flags,
10854           # -berok will link without error, but may produce a broken library.
10855           no_undefined_flag=' ${wl}-bernotok'
10856           allow_undefined_flag=' ${wl}-berok'
10857           if test "$with_gnu_ld" = yes; then
10858             # We only use this code for GNU lds that support --whole-archive.
10859             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10860           else
10861             # Exported symbols can be pulled into shared objects from archives
10862             whole_archive_flag_spec='$convenience'
10863           fi
10864           archive_cmds_need_lc=yes
10865           # This is similar to how AIX traditionally builds its shared libraries.
10866           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'
10867         fi
10868       fi
10869       ;;
10870
10871     amigaos*)
10872       case $host_cpu in
10873       powerpc)
10874             # see comment about AmigaOS4 .so support
10875             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10876             archive_expsym_cmds=''
10877         ;;
10878       m68k)
10879             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)'
10880             hardcode_libdir_flag_spec='-L$libdir'
10881             hardcode_minus_L=yes
10882         ;;
10883       esac
10884       ;;
10885
10886     bsdi[45]*)
10887       export_dynamic_flag_spec=-rdynamic
10888       ;;
10889
10890     cygwin* | mingw* | pw32* | cegcc*)
10891       # When not using gcc, we currently assume that we are using
10892       # Microsoft Visual C++.
10893       # hardcode_libdir_flag_spec is actually meaningless, as there is
10894       # no search path for DLLs.
10895       case $cc_basename in
10896       cl*)
10897         # Native MSVC
10898         hardcode_libdir_flag_spec=' '
10899         allow_undefined_flag=unsupported
10900         always_export_symbols=yes
10901         file_list_spec='@'
10902         # Tell ltmain to make .lib files, not .a files.
10903         libext=lib
10904         # Tell ltmain to make .dll files, not .so files.
10905         shrext_cmds=".dll"
10906         # FIXME: Setting linknames here is a bad hack.
10907         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10908         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10909             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10910           else
10911             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10912           fi~
10913           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10914           linknames='
10915         # The linker will not automatically build a static lib if we build a DLL.
10916         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10917         enable_shared_with_static_runtimes=yes
10918         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10919         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10920         # Don't use ranlib
10921         old_postinstall_cmds='chmod 644 $oldlib'
10922         postlink_cmds='lt_outputfile="@OUTPUT@"~
10923           lt_tool_outputfile="@TOOL_OUTPUT@"~
10924           case $lt_outputfile in
10925             *.exe|*.EXE) ;;
10926             *)
10927               lt_outputfile="$lt_outputfile.exe"
10928               lt_tool_outputfile="$lt_tool_outputfile.exe"
10929               ;;
10930           esac~
10931           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10932             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10933             $RM "$lt_outputfile.manifest";
10934           fi'
10935         ;;
10936       *)
10937         # Assume MSVC wrapper
10938         hardcode_libdir_flag_spec=' '
10939         allow_undefined_flag=unsupported
10940         # Tell ltmain to make .lib files, not .a files.
10941         libext=lib
10942         # Tell ltmain to make .dll files, not .so files.
10943         shrext_cmds=".dll"
10944         # FIXME: Setting linknames here is a bad hack.
10945         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10946         # The linker will automatically build a .lib file if we build a DLL.
10947         old_archive_from_new_cmds='true'
10948         # FIXME: Should let the user specify the lib program.
10949         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10950         enable_shared_with_static_runtimes=yes
10951         ;;
10952       esac
10953       ;;
10954
10955     darwin* | rhapsody*)
10956
10957
10958   archive_cmds_need_lc=no
10959   hardcode_direct=no
10960   hardcode_automatic=yes
10961   hardcode_shlibpath_var=unsupported
10962   if test "$lt_cv_ld_force_load" = "yes"; then
10963     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\"`'
10964
10965   else
10966     whole_archive_flag_spec=''
10967   fi
10968   link_all_deplibs=yes
10969   allow_undefined_flag="$_lt_dar_allow_undefined"
10970   case $cc_basename in
10971      ifort*) _lt_dar_can_shared=yes ;;
10972      *) _lt_dar_can_shared=$GCC ;;
10973   esac
10974   if test "$_lt_dar_can_shared" = "yes"; then
10975     output_verbose_link_cmd=func_echo_all
10976     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10977     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10978     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}"
10979     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}"
10980
10981   else
10982   ld_shlibs=no
10983   fi
10984
10985       ;;
10986
10987     dgux*)
10988       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10989       hardcode_libdir_flag_spec='-L$libdir'
10990       hardcode_shlibpath_var=no
10991       ;;
10992
10993     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10994     # support.  Future versions do this automatically, but an explicit c++rt0.o
10995     # does not break anything, and helps significantly (at the cost of a little
10996     # extra space).
10997     freebsd2.2*)
10998       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10999       hardcode_libdir_flag_spec='-R$libdir'
11000       hardcode_direct=yes
11001       hardcode_shlibpath_var=no
11002       ;;
11003
11004     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11005     freebsd2.*)
11006       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11007       hardcode_direct=yes
11008       hardcode_minus_L=yes
11009       hardcode_shlibpath_var=no
11010       ;;
11011
11012     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11013     freebsd* | dragonfly*)
11014       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11015       hardcode_libdir_flag_spec='-R$libdir'
11016       hardcode_direct=yes
11017       hardcode_shlibpath_var=no
11018       ;;
11019
11020     hpux9*)
11021       if test "$GCC" = yes; then
11022         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'
11023       else
11024         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'
11025       fi
11026       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11027       hardcode_libdir_separator=:
11028       hardcode_direct=yes
11029
11030       # hardcode_minus_L: Not really in the search PATH,
11031       # but as the default location of the library.
11032       hardcode_minus_L=yes
11033       export_dynamic_flag_spec='${wl}-E'
11034       ;;
11035
11036     hpux10*)
11037       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11038         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11039       else
11040         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11041       fi
11042       if test "$with_gnu_ld" = no; then
11043         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11044         hardcode_libdir_separator=:
11045         hardcode_direct=yes
11046         hardcode_direct_absolute=yes
11047         export_dynamic_flag_spec='${wl}-E'
11048         # hardcode_minus_L: Not really in the search PATH,
11049         # but as the default location of the library.
11050         hardcode_minus_L=yes
11051       fi
11052       ;;
11053
11054     hpux11*)
11055       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11056         case $host_cpu in
11057         hppa*64*)
11058           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11059           ;;
11060         ia64*)
11061           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11062           ;;
11063         *)
11064           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11065           ;;
11066         esac
11067       else
11068         case $host_cpu in
11069         hppa*64*)
11070           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071           ;;
11072         ia64*)
11073           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11074           ;;
11075         *)
11076
11077           # Older versions of the 11.00 compiler do not understand -b yet
11078           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11079           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11080 $as_echo_n "checking if $CC understands -b... " >&6; }
11081 if ${lt_cv_prog_compiler__b+:} false; then :
11082   $as_echo_n "(cached) " >&6
11083 else
11084   lt_cv_prog_compiler__b=no
11085    save_LDFLAGS="$LDFLAGS"
11086    LDFLAGS="$LDFLAGS -b"
11087    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11088    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11089      # The linker can only warn and ignore the option if not recognized
11090      # So say no if there are warnings
11091      if test -s conftest.err; then
11092        # Append any errors to the config.log.
11093        cat conftest.err 1>&5
11094        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11095        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11096        if diff conftest.exp conftest.er2 >/dev/null; then
11097          lt_cv_prog_compiler__b=yes
11098        fi
11099      else
11100        lt_cv_prog_compiler__b=yes
11101      fi
11102    fi
11103    $RM -r conftest*
11104    LDFLAGS="$save_LDFLAGS"
11105
11106 fi
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11109
11110 if test x"$lt_cv_prog_compiler__b" = xyes; then
11111     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11112 else
11113     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11114 fi
11115
11116           ;;
11117         esac
11118       fi
11119       if test "$with_gnu_ld" = no; then
11120         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11121         hardcode_libdir_separator=:
11122
11123         case $host_cpu in
11124         hppa*64*|ia64*)
11125           hardcode_direct=no
11126           hardcode_shlibpath_var=no
11127           ;;
11128         *)
11129           hardcode_direct=yes
11130           hardcode_direct_absolute=yes
11131           export_dynamic_flag_spec='${wl}-E'
11132
11133           # hardcode_minus_L: Not really in the search PATH,
11134           # but as the default location of the library.
11135           hardcode_minus_L=yes
11136           ;;
11137         esac
11138       fi
11139       ;;
11140
11141     irix5* | irix6* | nonstopux*)
11142       if test "$GCC" = yes; then
11143         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'
11144         # Try to use the -exported_symbol ld option, if it does not
11145         # work, assume that -exports_file does not work either and
11146         # implicitly export all symbols.
11147         # This should be the same for all languages, so no per-tag cache variable.
11148         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11149 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11150 if ${lt_cv_irix_exported_symbol+:} false; then :
11151   $as_echo_n "(cached) " >&6
11152 else
11153   save_LDFLAGS="$LDFLAGS"
11154            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11155            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11156 /* end confdefs.h.  */
11157 int foo (void) { return 0; }
11158 _ACEOF
11159 if ac_fn_c_try_link "$LINENO"; then :
11160   lt_cv_irix_exported_symbol=yes
11161 else
11162   lt_cv_irix_exported_symbol=no
11163 fi
11164 rm -f core conftest.err conftest.$ac_objext \
11165     conftest$ac_exeext conftest.$ac_ext
11166            LDFLAGS="$save_LDFLAGS"
11167 fi
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11169 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11170         if test "$lt_cv_irix_exported_symbol" = yes; then
11171           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'
11172         fi
11173       else
11174         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'
11175         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'
11176       fi
11177       archive_cmds_need_lc='no'
11178       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11179       hardcode_libdir_separator=:
11180       inherit_rpath=yes
11181       link_all_deplibs=yes
11182       ;;
11183
11184     netbsd* | netbsdelf*-gnu)
11185       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11186         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11187       else
11188         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11189       fi
11190       hardcode_libdir_flag_spec='-R$libdir'
11191       hardcode_direct=yes
11192       hardcode_shlibpath_var=no
11193       ;;
11194
11195     newsos6)
11196       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11197       hardcode_direct=yes
11198       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11199       hardcode_libdir_separator=:
11200       hardcode_shlibpath_var=no
11201       ;;
11202
11203     *nto* | *qnx*)
11204       ;;
11205
11206     openbsd*)
11207       if test -f /usr/libexec/ld.so; then
11208         hardcode_direct=yes
11209         hardcode_shlibpath_var=no
11210         hardcode_direct_absolute=yes
11211         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11212           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11213           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11214           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11215           export_dynamic_flag_spec='${wl}-E'
11216         else
11217           case $host_os in
11218            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11219              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11220              hardcode_libdir_flag_spec='-R$libdir'
11221              ;;
11222            *)
11223              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11224              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11225              ;;
11226           esac
11227         fi
11228       else
11229         ld_shlibs=no
11230       fi
11231       ;;
11232
11233     os2*)
11234       hardcode_libdir_flag_spec='-L$libdir'
11235       hardcode_minus_L=yes
11236       allow_undefined_flag=unsupported
11237       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'
11238       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11239       ;;
11240
11241     osf3*)
11242       if test "$GCC" = yes; then
11243         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11244         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'
11245       else
11246         allow_undefined_flag=' -expect_unresolved \*'
11247         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'
11248       fi
11249       archive_cmds_need_lc='no'
11250       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11251       hardcode_libdir_separator=:
11252       ;;
11253
11254     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11255       if test "$GCC" = yes; then
11256         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11257         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'
11258         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11259       else
11260         allow_undefined_flag=' -expect_unresolved \*'
11261         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'
11262         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~
11263         $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'
11264
11265         # Both c and cxx compiler support -rpath directly
11266         hardcode_libdir_flag_spec='-rpath $libdir'
11267       fi
11268       archive_cmds_need_lc='no'
11269       hardcode_libdir_separator=:
11270       ;;
11271
11272     solaris*)
11273       no_undefined_flag=' -z defs'
11274       if test "$GCC" = yes; then
11275         wlarc='${wl}'
11276         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11277         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11278           $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'
11279       else
11280         case `$CC -V 2>&1` in
11281         *"Compilers 5.0"*)
11282           wlarc=''
11283           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11284           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11285           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11286           ;;
11287         *)
11288           wlarc='${wl}'
11289           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11290           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11291           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11292           ;;
11293         esac
11294       fi
11295       hardcode_libdir_flag_spec='-R$libdir'
11296       hardcode_shlibpath_var=no
11297       case $host_os in
11298       solaris2.[0-5] | solaris2.[0-5].*) ;;
11299       *)
11300         # The compiler driver will combine and reorder linker options,
11301         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11302         # but is careful enough not to reorder.
11303         # Supported since Solaris 2.6 (maybe 2.5.1?)
11304         if test "$GCC" = yes; then
11305           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11306         else
11307           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11308         fi
11309         ;;
11310       esac
11311       link_all_deplibs=yes
11312       ;;
11313
11314     sunos4*)
11315       if test "x$host_vendor" = xsequent; then
11316         # Use $CC to link under sequent, because it throws in some extra .o
11317         # files that make .init and .fini sections work.
11318         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11319       else
11320         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11321       fi
11322       hardcode_libdir_flag_spec='-L$libdir'
11323       hardcode_direct=yes
11324       hardcode_minus_L=yes
11325       hardcode_shlibpath_var=no
11326       ;;
11327
11328     sysv4)
11329       case $host_vendor in
11330         sni)
11331           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11332           hardcode_direct=yes # is this really true???
11333         ;;
11334         siemens)
11335           ## LD is ld it makes a PLAMLIB
11336           ## CC just makes a GrossModule.
11337           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11338           reload_cmds='$CC -r -o $output$reload_objs'
11339           hardcode_direct=no
11340         ;;
11341         motorola)
11342           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11343           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11344         ;;
11345       esac
11346       runpath_var='LD_RUN_PATH'
11347       hardcode_shlibpath_var=no
11348       ;;
11349
11350     sysv4.3*)
11351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352       hardcode_shlibpath_var=no
11353       export_dynamic_flag_spec='-Bexport'
11354       ;;
11355
11356     sysv4*MP*)
11357       if test -d /usr/nec; then
11358         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11359         hardcode_shlibpath_var=no
11360         runpath_var=LD_RUN_PATH
11361         hardcode_runpath_var=yes
11362         ld_shlibs=yes
11363       fi
11364       ;;
11365
11366     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11367       no_undefined_flag='${wl}-z,text'
11368       archive_cmds_need_lc=no
11369       hardcode_shlibpath_var=no
11370       runpath_var='LD_RUN_PATH'
11371
11372       if test "$GCC" = yes; then
11373         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11375       else
11376         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378       fi
11379       ;;
11380
11381     sysv5* | sco3.2v5* | sco5v6*)
11382       # Note: We can NOT use -z defs as we might desire, because we do not
11383       # link with -lc, and that would cause any symbols used from libc to
11384       # always be unresolved, which means just about no library would
11385       # ever link correctly.  If we're not using GNU ld we use -z text
11386       # though, which does catch some bad symbols but isn't as heavy-handed
11387       # as -z defs.
11388       no_undefined_flag='${wl}-z,text'
11389       allow_undefined_flag='${wl}-z,nodefs'
11390       archive_cmds_need_lc=no
11391       hardcode_shlibpath_var=no
11392       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11393       hardcode_libdir_separator=':'
11394       link_all_deplibs=yes
11395       export_dynamic_flag_spec='${wl}-Bexport'
11396       runpath_var='LD_RUN_PATH'
11397
11398       if test "$GCC" = yes; then
11399         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11401       else
11402         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11404       fi
11405       ;;
11406
11407     uts4*)
11408       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11409       hardcode_libdir_flag_spec='-L$libdir'
11410       hardcode_shlibpath_var=no
11411       ;;
11412
11413     *)
11414       ld_shlibs=no
11415       ;;
11416     esac
11417
11418     if test x$host_vendor = xsni; then
11419       case $host in
11420       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11421         export_dynamic_flag_spec='${wl}-Blargedynsym'
11422         ;;
11423       esac
11424     fi
11425   fi
11426
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11428 $as_echo "$ld_shlibs" >&6; }
11429 test "$ld_shlibs" = no && can_build_shared=no
11430
11431 with_gnu_ld=$with_gnu_ld
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447 #
11448 # Do we need to explicitly link libc?
11449 #
11450 case "x$archive_cmds_need_lc" in
11451 x|xyes)
11452   # Assume -lc should be added
11453   archive_cmds_need_lc=yes
11454
11455   if test "$enable_shared" = yes && test "$GCC" = yes; then
11456     case $archive_cmds in
11457     *'~'*)
11458       # FIXME: we may have to deal with multi-command sequences.
11459       ;;
11460     '$CC '*)
11461       # Test whether the compiler implicitly links with -lc since on some
11462       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11463       # to ld, don't add -lc before -lgcc.
11464       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11465 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11466 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11467   $as_echo_n "(cached) " >&6
11468 else
11469   $RM conftest*
11470         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11471
11472         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11473   (eval $ac_compile) 2>&5
11474   ac_status=$?
11475   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11476   test $ac_status = 0; } 2>conftest.err; then
11477           soname=conftest
11478           lib=conftest
11479           libobjs=conftest.$ac_objext
11480           deplibs=
11481           wl=$lt_prog_compiler_wl
11482           pic_flag=$lt_prog_compiler_pic
11483           compiler_flags=-v
11484           linker_flags=-v
11485           verstring=
11486           output_objdir=.
11487           libname=conftest
11488           lt_save_allow_undefined_flag=$allow_undefined_flag
11489           allow_undefined_flag=
11490           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11491   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11492   ac_status=$?
11493   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11494   test $ac_status = 0; }
11495           then
11496             lt_cv_archive_cmds_need_lc=no
11497           else
11498             lt_cv_archive_cmds_need_lc=yes
11499           fi
11500           allow_undefined_flag=$lt_save_allow_undefined_flag
11501         else
11502           cat conftest.err 1>&5
11503         fi
11504         $RM conftest*
11505
11506 fi
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11508 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11509       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11510       ;;
11511     esac
11512   fi
11513   ;;
11514 esac
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11668 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11669
11670 if test "$GCC" = yes; then
11671   case $host_os in
11672     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11673     *) lt_awk_arg="/^libraries:/" ;;
11674   esac
11675   case $host_os in
11676     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11677     *) lt_sed_strip_eq="s,=/,/,g" ;;
11678   esac
11679   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11680   case $lt_search_path_spec in
11681   *\;*)
11682     # if the path contains ";" then we assume it to be the separator
11683     # otherwise default to the standard path separator (i.e. ":") - it is
11684     # assumed that no part of a normal pathname contains ";" but that should
11685     # okay in the real world where ";" in dirpaths is itself problematic.
11686     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11687     ;;
11688   *)
11689     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11690     ;;
11691   esac
11692   # Ok, now we have the path, separated by spaces, we can step through it
11693   # and add multilib dir if necessary.
11694   lt_tmp_lt_search_path_spec=
11695   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11696   for lt_sys_path in $lt_search_path_spec; do
11697     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11698       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11699     else
11700       test -d "$lt_sys_path" && \
11701         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11702     fi
11703   done
11704   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11705 BEGIN {RS=" "; FS="/|\n";} {
11706   lt_foo="";
11707   lt_count=0;
11708   for (lt_i = NF; lt_i > 0; lt_i--) {
11709     if ($lt_i != "" && $lt_i != ".") {
11710       if ($lt_i == "..") {
11711         lt_count++;
11712       } else {
11713         if (lt_count == 0) {
11714           lt_foo="/" $lt_i lt_foo;
11715         } else {
11716           lt_count--;
11717         }
11718       }
11719     }
11720   }
11721   if (lt_foo != "") { lt_freq[lt_foo]++; }
11722   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11723 }'`
11724   # AWK program above erroneously prepends '/' to C:/dos/paths
11725   # for these hosts.
11726   case $host_os in
11727     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11728       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11729   esac
11730   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11731 else
11732   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 fi
11734 library_names_spec=
11735 libname_spec='lib$name'
11736 soname_spec=
11737 shrext_cmds=".so"
11738 postinstall_cmds=
11739 postuninstall_cmds=
11740 finish_cmds=
11741 finish_eval=
11742 shlibpath_var=
11743 shlibpath_overrides_runpath=unknown
11744 version_type=none
11745 dynamic_linker="$host_os ld.so"
11746 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11747 need_lib_prefix=unknown
11748 hardcode_into_libs=no
11749
11750 # when you set need_version to no, make sure it does not cause -set_version
11751 # flags to be left without arguments
11752 need_version=unknown
11753
11754 case $host_os in
11755 aix3*)
11756   version_type=linux # correct to gnu/linux during the next big refactor
11757   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11758   shlibpath_var=LIBPATH
11759
11760   # AIX 3 has no versioning support, so we append a major version to the name.
11761   soname_spec='${libname}${release}${shared_ext}$major'
11762   ;;
11763
11764 aix[4-9]*)
11765   version_type=linux # correct to gnu/linux during the next big refactor
11766   need_lib_prefix=no
11767   need_version=no
11768   hardcode_into_libs=yes
11769   if test "$host_cpu" = ia64; then
11770     # AIX 5 supports IA64
11771     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11772     shlibpath_var=LD_LIBRARY_PATH
11773   else
11774     # With GCC up to 2.95.x, collect2 would create an import file
11775     # for dependence libraries.  The import file would start with
11776     # the line `#! .'.  This would cause the generated library to
11777     # depend on `.', always an invalid library.  This was fixed in
11778     # development snapshots of GCC prior to 3.0.
11779     case $host_os in
11780       aix4 | aix4.[01] | aix4.[01].*)
11781       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11782            echo ' yes '
11783            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11784         :
11785       else
11786         can_build_shared=no
11787       fi
11788       ;;
11789     esac
11790     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11791     # soname into executable. Probably we can add versioning support to
11792     # collect2, so additional links can be useful in future.
11793     if test "$aix_use_runtimelinking" = yes; then
11794       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11795       # instead of lib<name>.a to let people know that these are not
11796       # typical AIX shared libraries.
11797       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11798     else
11799       # We preserve .a as extension for shared libraries through AIX4.2
11800       # and later when we are not doing run time linking.
11801       library_names_spec='${libname}${release}.a $libname.a'
11802       soname_spec='${libname}${release}${shared_ext}$major'
11803     fi
11804     shlibpath_var=LIBPATH
11805   fi
11806   ;;
11807
11808 amigaos*)
11809   case $host_cpu in
11810   powerpc)
11811     # Since July 2007 AmigaOS4 officially supports .so libraries.
11812     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11813     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11814     ;;
11815   m68k)
11816     library_names_spec='$libname.ixlibrary $libname.a'
11817     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11818     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'
11819     ;;
11820   esac
11821   ;;
11822
11823 beos*)
11824   library_names_spec='${libname}${shared_ext}'
11825   dynamic_linker="$host_os ld.so"
11826   shlibpath_var=LIBRARY_PATH
11827   ;;
11828
11829 bsdi[45]*)
11830   version_type=linux # correct to gnu/linux during the next big refactor
11831   need_version=no
11832   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833   soname_spec='${libname}${release}${shared_ext}$major'
11834   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11835   shlibpath_var=LD_LIBRARY_PATH
11836   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11837   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11838   # the default ld.so.conf also contains /usr/contrib/lib and
11839   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11840   # libtool to hard-code these into programs
11841   ;;
11842
11843 cygwin* | mingw* | pw32* | cegcc*)
11844   version_type=windows
11845   shrext_cmds=".dll"
11846   need_version=no
11847   need_lib_prefix=no
11848
11849   case $GCC,$cc_basename in
11850   yes,*)
11851     # gcc
11852     library_names_spec='$libname.dll.a'
11853     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11854     postinstall_cmds='base_file=`basename \${file}`~
11855       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11856       dldir=$destdir/`dirname \$dlpath`~
11857       test -d \$dldir || mkdir -p \$dldir~
11858       $install_prog $dir/$dlname \$dldir/$dlname~
11859       chmod a+x \$dldir/$dlname~
11860       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11861         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11862       fi'
11863     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11864       dlpath=$dir/\$dldll~
11865        $RM \$dlpath'
11866     shlibpath_overrides_runpath=yes
11867
11868     case $host_os in
11869     cygwin*)
11870       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11871       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11872
11873       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11874       ;;
11875     mingw* | cegcc*)
11876       # MinGW DLLs use traditional 'lib' prefix
11877       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11878       ;;
11879     pw32*)
11880       # pw32 DLLs use 'pw' prefix rather than 'lib'
11881       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11882       ;;
11883     esac
11884     dynamic_linker='Win32 ld.exe'
11885     ;;
11886
11887   *,cl*)
11888     # Native MSVC
11889     libname_spec='$name'
11890     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11891     library_names_spec='${libname}.dll.lib'
11892
11893     case $build_os in
11894     mingw*)
11895       sys_lib_search_path_spec=
11896       lt_save_ifs=$IFS
11897       IFS=';'
11898       for lt_path in $LIB
11899       do
11900         IFS=$lt_save_ifs
11901         # Let DOS variable expansion print the short 8.3 style file name.
11902         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11903         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11904       done
11905       IFS=$lt_save_ifs
11906       # Convert to MSYS style.
11907       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11908       ;;
11909     cygwin*)
11910       # Convert to unix form, then to dos form, then back to unix form
11911       # but this time dos style (no spaces!) so that the unix form looks
11912       # like /cygdrive/c/PROGRA~1:/cygdr...
11913       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11914       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11915       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11916       ;;
11917     *)
11918       sys_lib_search_path_spec="$LIB"
11919       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11920         # It is most probably a Windows format PATH.
11921         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11922       else
11923         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11924       fi
11925       # FIXME: find the short name or the path components, as spaces are
11926       # common. (e.g. "Program Files" -> "PROGRA~1")
11927       ;;
11928     esac
11929
11930     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11931     postinstall_cmds='base_file=`basename \${file}`~
11932       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11933       dldir=$destdir/`dirname \$dlpath`~
11934       test -d \$dldir || mkdir -p \$dldir~
11935       $install_prog $dir/$dlname \$dldir/$dlname'
11936     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11937       dlpath=$dir/\$dldll~
11938        $RM \$dlpath'
11939     shlibpath_overrides_runpath=yes
11940     dynamic_linker='Win32 link.exe'
11941     ;;
11942
11943   *)
11944     # Assume MSVC wrapper
11945     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11946     dynamic_linker='Win32 ld.exe'
11947     ;;
11948   esac
11949   # FIXME: first we should search . and the directory the executable is in
11950   shlibpath_var=PATH
11951   ;;
11952
11953 darwin* | rhapsody*)
11954   dynamic_linker="$host_os dyld"
11955   version_type=darwin
11956   need_lib_prefix=no
11957   need_version=no
11958   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11959   soname_spec='${libname}${release}${major}$shared_ext'
11960   shlibpath_overrides_runpath=yes
11961   shlibpath_var=DYLD_LIBRARY_PATH
11962   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11963
11964   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11965   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11966   ;;
11967
11968 dgux*)
11969   version_type=linux # correct to gnu/linux during the next big refactor
11970   need_lib_prefix=no
11971   need_version=no
11972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11973   soname_spec='${libname}${release}${shared_ext}$major'
11974   shlibpath_var=LD_LIBRARY_PATH
11975   ;;
11976
11977 freebsd* | dragonfly*)
11978   # DragonFly does not have aout.  When/if they implement a new
11979   # versioning mechanism, adjust this.
11980   if test -x /usr/bin/objformat; then
11981     objformat=`/usr/bin/objformat`
11982   else
11983     case $host_os in
11984     freebsd[23].*) objformat=aout ;;
11985     *) objformat=elf ;;
11986     esac
11987   fi
11988   version_type=freebsd-$objformat
11989   case $version_type in
11990     freebsd-elf*)
11991       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11992       need_version=no
11993       need_lib_prefix=no
11994       ;;
11995     freebsd-*)
11996       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11997       need_version=yes
11998       ;;
11999   esac
12000   shlibpath_var=LD_LIBRARY_PATH
12001   case $host_os in
12002   freebsd2.*)
12003     shlibpath_overrides_runpath=yes
12004     ;;
12005   freebsd3.[01]* | freebsdelf3.[01]*)
12006     shlibpath_overrides_runpath=yes
12007     hardcode_into_libs=yes
12008     ;;
12009   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12010   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12011     shlibpath_overrides_runpath=no
12012     hardcode_into_libs=yes
12013     ;;
12014   *) # from 4.6 on, and DragonFly
12015     shlibpath_overrides_runpath=yes
12016     hardcode_into_libs=yes
12017     ;;
12018   esac
12019   ;;
12020
12021 haiku*)
12022   version_type=linux # correct to gnu/linux during the next big refactor
12023   need_lib_prefix=no
12024   need_version=no
12025   dynamic_linker="$host_os runtime_loader"
12026   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12027   soname_spec='${libname}${release}${shared_ext}$major'
12028   shlibpath_var=LIBRARY_PATH
12029   shlibpath_overrides_runpath=yes
12030   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12031   hardcode_into_libs=yes
12032   ;;
12033
12034 hpux9* | hpux10* | hpux11*)
12035   # Give a soname corresponding to the major version so that dld.sl refuses to
12036   # link against other versions.
12037   version_type=sunos
12038   need_lib_prefix=no
12039   need_version=no
12040   case $host_cpu in
12041   ia64*)
12042     shrext_cmds='.so'
12043     hardcode_into_libs=yes
12044     dynamic_linker="$host_os dld.so"
12045     shlibpath_var=LD_LIBRARY_PATH
12046     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12047     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12048     soname_spec='${libname}${release}${shared_ext}$major'
12049     if test "X$HPUX_IA64_MODE" = X32; then
12050       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12051     else
12052       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12053     fi
12054     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12055     ;;
12056   hppa*64*)
12057     shrext_cmds='.sl'
12058     hardcode_into_libs=yes
12059     dynamic_linker="$host_os dld.sl"
12060     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12061     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12062     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12063     soname_spec='${libname}${release}${shared_ext}$major'
12064     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12065     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12066     ;;
12067   *)
12068     shrext_cmds='.sl'
12069     dynamic_linker="$host_os dld.sl"
12070     shlibpath_var=SHLIB_PATH
12071     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12072     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12073     soname_spec='${libname}${release}${shared_ext}$major'
12074     ;;
12075   esac
12076   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12077   postinstall_cmds='chmod 555 $lib'
12078   # or fails outright, so override atomically:
12079   install_override_mode=555
12080   ;;
12081
12082 interix[3-9]*)
12083   version_type=linux # correct to gnu/linux during the next big refactor
12084   need_lib_prefix=no
12085   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12089   shlibpath_var=LD_LIBRARY_PATH
12090   shlibpath_overrides_runpath=no
12091   hardcode_into_libs=yes
12092   ;;
12093
12094 irix5* | irix6* | nonstopux*)
12095   case $host_os in
12096     nonstopux*) version_type=nonstopux ;;
12097     *)
12098         if test "$lt_cv_prog_gnu_ld" = yes; then
12099                 version_type=linux # correct to gnu/linux during the next big refactor
12100         else
12101                 version_type=irix
12102         fi ;;
12103   esac
12104   need_lib_prefix=no
12105   need_version=no
12106   soname_spec='${libname}${release}${shared_ext}$major'
12107   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12108   case $host_os in
12109   irix5* | nonstopux*)
12110     libsuff= shlibsuff=
12111     ;;
12112   *)
12113     case $LD in # libtool.m4 will add one of these switches to LD
12114     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12115       libsuff= shlibsuff= libmagic=32-bit;;
12116     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12117       libsuff=32 shlibsuff=N32 libmagic=N32;;
12118     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12119       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12120     *) libsuff= shlibsuff= libmagic=never-match;;
12121     esac
12122     ;;
12123   esac
12124   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12125   shlibpath_overrides_runpath=no
12126   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12127   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12128   hardcode_into_libs=yes
12129   ;;
12130
12131 # No shared lib support for Linux oldld, aout, or coff.
12132 linux*oldld* | linux*aout* | linux*coff*)
12133   dynamic_linker=no
12134   ;;
12135
12136 # This must be glibc/ELF.
12137 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12138   version_type=linux # correct to gnu/linux during the next big refactor
12139   need_lib_prefix=no
12140   need_version=no
12141   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12142   soname_spec='${libname}${release}${shared_ext}$major'
12143   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12144   shlibpath_var=LD_LIBRARY_PATH
12145   shlibpath_overrides_runpath=no
12146
12147   # Some binutils ld are patched to set DT_RUNPATH
12148   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12149   $as_echo_n "(cached) " >&6
12150 else
12151   lt_cv_shlibpath_overrides_runpath=no
12152     save_LDFLAGS=$LDFLAGS
12153     save_libdir=$libdir
12154     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12155          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12156     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12157 /* end confdefs.h.  */
12158
12159 int
12160 main ()
12161 {
12162
12163   ;
12164   return 0;
12165 }
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12169   lt_cv_shlibpath_overrides_runpath=yes
12170 fi
12171 fi
12172 rm -f core conftest.err conftest.$ac_objext \
12173     conftest$ac_exeext conftest.$ac_ext
12174     LDFLAGS=$save_LDFLAGS
12175     libdir=$save_libdir
12176
12177 fi
12178
12179   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12180
12181   # This implies no fast_install, which is unacceptable.
12182   # Some rework will be needed to allow for fast_install
12183   # before this can be enabled.
12184   hardcode_into_libs=yes
12185
12186   # Append ld.so.conf contents to the search path
12187   if test -f /etc/ld.so.conf; then
12188     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' ' '`
12189     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12190   fi
12191
12192   # We used to test for /lib/ld.so.1 and disable shared libraries on
12193   # powerpc, because MkLinux only supported shared libraries with the
12194   # GNU dynamic linker.  Since this was broken with cross compilers,
12195   # most powerpc-linux boxes support dynamic linking these days and
12196   # people can always --disable-shared, the test was removed, and we
12197   # assume the GNU/Linux dynamic linker is in use.
12198   dynamic_linker='GNU/Linux ld.so'
12199   ;;
12200
12201 netbsdelf*-gnu)
12202   version_type=linux
12203   need_lib_prefix=no
12204   need_version=no
12205   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12206   soname_spec='${libname}${release}${shared_ext}$major'
12207   shlibpath_var=LD_LIBRARY_PATH
12208   shlibpath_overrides_runpath=no
12209   hardcode_into_libs=yes
12210   dynamic_linker='NetBSD ld.elf_so'
12211   ;;
12212
12213 netbsd*)
12214   version_type=sunos
12215   need_lib_prefix=no
12216   need_version=no
12217   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12218     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12219     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12220     dynamic_linker='NetBSD (a.out) ld.so'
12221   else
12222     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12223     soname_spec='${libname}${release}${shared_ext}$major'
12224     dynamic_linker='NetBSD ld.elf_so'
12225   fi
12226   shlibpath_var=LD_LIBRARY_PATH
12227   shlibpath_overrides_runpath=yes
12228   hardcode_into_libs=yes
12229   ;;
12230
12231 newsos6)
12232   version_type=linux # correct to gnu/linux during the next big refactor
12233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12234   shlibpath_var=LD_LIBRARY_PATH
12235   shlibpath_overrides_runpath=yes
12236   ;;
12237
12238 *nto* | *qnx*)
12239   version_type=qnx
12240   need_lib_prefix=no
12241   need_version=no
12242   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12243   soname_spec='${libname}${release}${shared_ext}$major'
12244   shlibpath_var=LD_LIBRARY_PATH
12245   shlibpath_overrides_runpath=no
12246   hardcode_into_libs=yes
12247   dynamic_linker='ldqnx.so'
12248   ;;
12249
12250 openbsd*)
12251   version_type=sunos
12252   sys_lib_dlsearch_path_spec="/usr/lib"
12253   need_lib_prefix=no
12254   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12255   case $host_os in
12256     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12257     *)                          need_version=no  ;;
12258   esac
12259   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12260   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12261   shlibpath_var=LD_LIBRARY_PATH
12262   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12263     case $host_os in
12264       openbsd2.[89] | openbsd2.[89].*)
12265         shlibpath_overrides_runpath=no
12266         ;;
12267       *)
12268         shlibpath_overrides_runpath=yes
12269         ;;
12270       esac
12271   else
12272     shlibpath_overrides_runpath=yes
12273   fi
12274   ;;
12275
12276 os2*)
12277   libname_spec='$name'
12278   shrext_cmds=".dll"
12279   need_lib_prefix=no
12280   library_names_spec='$libname${shared_ext} $libname.a'
12281   dynamic_linker='OS/2 ld.exe'
12282   shlibpath_var=LIBPATH
12283   ;;
12284
12285 osf3* | osf4* | osf5*)
12286   version_type=osf
12287   need_lib_prefix=no
12288   need_version=no
12289   soname_spec='${libname}${release}${shared_ext}$major'
12290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12291   shlibpath_var=LD_LIBRARY_PATH
12292   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12293   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12294   ;;
12295
12296 rdos*)
12297   dynamic_linker=no
12298   ;;
12299
12300 solaris*)
12301   version_type=linux # correct to gnu/linux during the next big refactor
12302   need_lib_prefix=no
12303   need_version=no
12304   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12305   soname_spec='${libname}${release}${shared_ext}$major'
12306   shlibpath_var=LD_LIBRARY_PATH
12307   shlibpath_overrides_runpath=yes
12308   hardcode_into_libs=yes
12309   # ldd complains unless libraries are executable
12310   postinstall_cmds='chmod +x $lib'
12311   ;;
12312
12313 sunos4*)
12314   version_type=sunos
12315   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12316   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=yes
12319   if test "$with_gnu_ld" = yes; then
12320     need_lib_prefix=no
12321   fi
12322   need_version=yes
12323   ;;
12324
12325 sysv4 | sysv4.3*)
12326   version_type=linux # correct to gnu/linux during the next big refactor
12327   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12328   soname_spec='${libname}${release}${shared_ext}$major'
12329   shlibpath_var=LD_LIBRARY_PATH
12330   case $host_vendor in
12331     sni)
12332       shlibpath_overrides_runpath=no
12333       need_lib_prefix=no
12334       runpath_var=LD_RUN_PATH
12335       ;;
12336     siemens)
12337       need_lib_prefix=no
12338       ;;
12339     motorola)
12340       need_lib_prefix=no
12341       need_version=no
12342       shlibpath_overrides_runpath=no
12343       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12344       ;;
12345   esac
12346   ;;
12347
12348 sysv4*MP*)
12349   if test -d /usr/nec ;then
12350     version_type=linux # correct to gnu/linux during the next big refactor
12351     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12352     soname_spec='$libname${shared_ext}.$major'
12353     shlibpath_var=LD_LIBRARY_PATH
12354   fi
12355   ;;
12356
12357 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12358   version_type=freebsd-elf
12359   need_lib_prefix=no
12360   need_version=no
12361   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12362   soname_spec='${libname}${release}${shared_ext}$major'
12363   shlibpath_var=LD_LIBRARY_PATH
12364   shlibpath_overrides_runpath=yes
12365   hardcode_into_libs=yes
12366   if test "$with_gnu_ld" = yes; then
12367     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12368   else
12369     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12370     case $host_os in
12371       sco3.2v5*)
12372         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12373         ;;
12374     esac
12375   fi
12376   sys_lib_dlsearch_path_spec='/usr/lib'
12377   ;;
12378
12379 tpf*)
12380   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12381   version_type=linux # correct to gnu/linux during the next big refactor
12382   need_lib_prefix=no
12383   need_version=no
12384   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12385   shlibpath_var=LD_LIBRARY_PATH
12386   shlibpath_overrides_runpath=no
12387   hardcode_into_libs=yes
12388   ;;
12389
12390 uts4*)
12391   version_type=linux # correct to gnu/linux during the next big refactor
12392   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12393   soname_spec='${libname}${release}${shared_ext}$major'
12394   shlibpath_var=LD_LIBRARY_PATH
12395   ;;
12396
12397 *)
12398   dynamic_linker=no
12399   ;;
12400 esac
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12402 $as_echo "$dynamic_linker" >&6; }
12403 test "$dynamic_linker" = no && can_build_shared=no
12404
12405 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12406 if test "$GCC" = yes; then
12407   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12408 fi
12409
12410 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12411   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12412 fi
12413 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12414   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12415 fi
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507
12508   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12509 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12510 hardcode_action=
12511 if test -n "$hardcode_libdir_flag_spec" ||
12512    test -n "$runpath_var" ||
12513    test "X$hardcode_automatic" = "Xyes" ; then
12514
12515   # We can hardcode non-existent directories.
12516   if test "$hardcode_direct" != no &&
12517      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12518      # have to relink, otherwise we might link with an installed library
12519      # when we should be linking with a yet-to-be-installed one
12520      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12521      test "$hardcode_minus_L" != no; then
12522     # Linking always hardcodes the temporary library directory.
12523     hardcode_action=relink
12524   else
12525     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12526     hardcode_action=immediate
12527   fi
12528 else
12529   # We cannot hardcode anything, or else we can only hardcode existing
12530   # directories.
12531   hardcode_action=unsupported
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12534 $as_echo "$hardcode_action" >&6; }
12535
12536 if test "$hardcode_action" = relink ||
12537    test "$inherit_rpath" = yes; then
12538   # Fast installation is not supported
12539   enable_fast_install=no
12540 elif test "$shlibpath_overrides_runpath" = yes ||
12541      test "$enable_shared" = no; then
12542   # Fast installation is not necessary
12543   enable_fast_install=needless
12544 fi
12545
12546
12547
12548
12549
12550
12551   if test "x$enable_dlopen" != xyes; then
12552   enable_dlopen=unknown
12553   enable_dlopen_self=unknown
12554   enable_dlopen_self_static=unknown
12555 else
12556   lt_cv_dlopen=no
12557   lt_cv_dlopen_libs=
12558
12559   case $host_os in
12560   beos*)
12561     lt_cv_dlopen="load_add_on"
12562     lt_cv_dlopen_libs=
12563     lt_cv_dlopen_self=yes
12564     ;;
12565
12566   mingw* | pw32* | cegcc*)
12567     lt_cv_dlopen="LoadLibrary"
12568     lt_cv_dlopen_libs=
12569     ;;
12570
12571   cygwin*)
12572     lt_cv_dlopen="dlopen"
12573     lt_cv_dlopen_libs=
12574     ;;
12575
12576   darwin*)
12577   # if libdl is installed we need to link against it
12578     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12579 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12580 if ${ac_cv_lib_dl_dlopen+:} false; then :
12581   $as_echo_n "(cached) " >&6
12582 else
12583   ac_check_lib_save_LIBS=$LIBS
12584 LIBS="-ldl  $LIBS"
12585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12586 /* end confdefs.h.  */
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589    Use char because int might match the return type of a GCC
12590    builtin and then its argument prototype would still apply.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char dlopen ();
12595 int
12596 main ()
12597 {
12598 return dlopen ();
12599   ;
12600   return 0;
12601 }
12602 _ACEOF
12603 if ac_fn_c_try_link "$LINENO"; then :
12604   ac_cv_lib_dl_dlopen=yes
12605 else
12606   ac_cv_lib_dl_dlopen=no
12607 fi
12608 rm -f core conftest.err conftest.$ac_objext \
12609     conftest$ac_exeext conftest.$ac_ext
12610 LIBS=$ac_check_lib_save_LIBS
12611 fi
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12613 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12614 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12616 else
12617
12618     lt_cv_dlopen="dyld"
12619     lt_cv_dlopen_libs=
12620     lt_cv_dlopen_self=yes
12621
12622 fi
12623
12624     ;;
12625
12626   *)
12627     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12628 if test "x$ac_cv_func_shl_load" = xyes; then :
12629   lt_cv_dlopen="shl_load"
12630 else
12631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12632 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12633 if ${ac_cv_lib_dld_shl_load+:} false; then :
12634   $as_echo_n "(cached) " >&6
12635 else
12636   ac_check_lib_save_LIBS=$LIBS
12637 LIBS="-ldld  $LIBS"
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h.  */
12640
12641 /* Override any GCC internal prototype to avoid an error.
12642    Use char because int might match the return type of a GCC
12643    builtin and then its argument prototype would still apply.  */
12644 #ifdef __cplusplus
12645 extern "C"
12646 #endif
12647 char shl_load ();
12648 int
12649 main ()
12650 {
12651 return shl_load ();
12652   ;
12653   return 0;
12654 }
12655 _ACEOF
12656 if ac_fn_c_try_link "$LINENO"; then :
12657   ac_cv_lib_dld_shl_load=yes
12658 else
12659   ac_cv_lib_dld_shl_load=no
12660 fi
12661 rm -f core conftest.err conftest.$ac_objext \
12662     conftest$ac_exeext conftest.$ac_ext
12663 LIBS=$ac_check_lib_save_LIBS
12664 fi
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12666 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12667 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12668   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12669 else
12670   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12671 if test "x$ac_cv_func_dlopen" = xyes; then :
12672   lt_cv_dlopen="dlopen"
12673 else
12674   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12675 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12676 if ${ac_cv_lib_dl_dlopen+:} false; then :
12677   $as_echo_n "(cached) " >&6
12678 else
12679   ac_check_lib_save_LIBS=$LIBS
12680 LIBS="-ldl  $LIBS"
12681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12682 /* end confdefs.h.  */
12683
12684 /* Override any GCC internal prototype to avoid an error.
12685    Use char because int might match the return type of a GCC
12686    builtin and then its argument prototype would still apply.  */
12687 #ifdef __cplusplus
12688 extern "C"
12689 #endif
12690 char dlopen ();
12691 int
12692 main ()
12693 {
12694 return dlopen ();
12695   ;
12696   return 0;
12697 }
12698 _ACEOF
12699 if ac_fn_c_try_link "$LINENO"; then :
12700   ac_cv_lib_dl_dlopen=yes
12701 else
12702   ac_cv_lib_dl_dlopen=no
12703 fi
12704 rm -f core conftest.err conftest.$ac_objext \
12705     conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12707 fi
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12709 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12710 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12711   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12712 else
12713   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12714 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12715 if ${ac_cv_lib_svld_dlopen+:} false; then :
12716   $as_echo_n "(cached) " >&6
12717 else
12718   ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-lsvld  $LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h.  */
12722
12723 /* Override any GCC internal prototype to avoid an error.
12724    Use char because int might match the return type of a GCC
12725    builtin and then its argument prototype would still apply.  */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char dlopen ();
12730 int
12731 main ()
12732 {
12733 return dlopen ();
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 if ac_fn_c_try_link "$LINENO"; then :
12739   ac_cv_lib_svld_dlopen=yes
12740 else
12741   ac_cv_lib_svld_dlopen=no
12742 fi
12743 rm -f core conftest.err conftest.$ac_objext \
12744     conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12746 fi
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12748 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12749 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12750   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12751 else
12752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12753 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12754 if ${ac_cv_lib_dld_dld_link+:} false; then :
12755   $as_echo_n "(cached) " >&6
12756 else
12757   ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-ldld  $LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h.  */
12761
12762 /* Override any GCC internal prototype to avoid an error.
12763    Use char because int might match the return type of a GCC
12764    builtin and then its argument prototype would still apply.  */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char dld_link ();
12769 int
12770 main ()
12771 {
12772 return dld_link ();
12773   ;
12774   return 0;
12775 }
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778   ac_cv_lib_dld_dld_link=yes
12779 else
12780   ac_cv_lib_dld_dld_link=no
12781 fi
12782 rm -f core conftest.err conftest.$ac_objext \
12783     conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12785 fi
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12787 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12788 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12790 fi
12791
12792
12793 fi
12794
12795
12796 fi
12797
12798
12799 fi
12800
12801
12802 fi
12803
12804
12805 fi
12806
12807     ;;
12808   esac
12809
12810   if test "x$lt_cv_dlopen" != xno; then
12811     enable_dlopen=yes
12812   else
12813     enable_dlopen=no
12814   fi
12815
12816   case $lt_cv_dlopen in
12817   dlopen)
12818     save_CPPFLAGS="$CPPFLAGS"
12819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12820
12821     save_LDFLAGS="$LDFLAGS"
12822     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12823
12824     save_LIBS="$LIBS"
12825     LIBS="$lt_cv_dlopen_libs $LIBS"
12826
12827     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12828 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12829 if ${lt_cv_dlopen_self+:} false; then :
12830   $as_echo_n "(cached) " >&6
12831 else
12832           if test "$cross_compiling" = yes; then :
12833   lt_cv_dlopen_self=cross
12834 else
12835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12836   lt_status=$lt_dlunknown
12837   cat > conftest.$ac_ext <<_LT_EOF
12838 #line $LINENO "configure"
12839 #include "confdefs.h"
12840
12841 #if HAVE_DLFCN_H
12842 #include <dlfcn.h>
12843 #endif
12844
12845 #include <stdio.h>
12846
12847 #ifdef RTLD_GLOBAL
12848 #  define LT_DLGLOBAL           RTLD_GLOBAL
12849 #else
12850 #  ifdef DL_GLOBAL
12851 #    define LT_DLGLOBAL         DL_GLOBAL
12852 #  else
12853 #    define LT_DLGLOBAL         0
12854 #  endif
12855 #endif
12856
12857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12858    find out it does not work in some platform. */
12859 #ifndef LT_DLLAZY_OR_NOW
12860 #  ifdef RTLD_LAZY
12861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12862 #  else
12863 #    ifdef DL_LAZY
12864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12865 #    else
12866 #      ifdef RTLD_NOW
12867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12868 #      else
12869 #        ifdef DL_NOW
12870 #          define LT_DLLAZY_OR_NOW      DL_NOW
12871 #        else
12872 #          define LT_DLLAZY_OR_NOW      0
12873 #        endif
12874 #      endif
12875 #    endif
12876 #  endif
12877 #endif
12878
12879 /* When -fvisbility=hidden is used, assume the code has been annotated
12880    correspondingly for the symbols needed.  */
12881 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12882 int fnord () __attribute__((visibility("default")));
12883 #endif
12884
12885 int fnord () { return 42; }
12886 int main ()
12887 {
12888   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12889   int status = $lt_dlunknown;
12890
12891   if (self)
12892     {
12893       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12894       else
12895         {
12896           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12897           else puts (dlerror ());
12898         }
12899       /* dlclose (self); */
12900     }
12901   else
12902     puts (dlerror ());
12903
12904   return status;
12905 }
12906 _LT_EOF
12907   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12908   (eval $ac_link) 2>&5
12909   ac_status=$?
12910   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12911   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12912     (./conftest; exit; ) >&5 2>/dev/null
12913     lt_status=$?
12914     case x$lt_status in
12915       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12916       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12917       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12918     esac
12919   else :
12920     # compilation failed
12921     lt_cv_dlopen_self=no
12922   fi
12923 fi
12924 rm -fr conftest*
12925
12926
12927 fi
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12929 $as_echo "$lt_cv_dlopen_self" >&6; }
12930
12931     if test "x$lt_cv_dlopen_self" = xyes; then
12932       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12933       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12934 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12935 if ${lt_cv_dlopen_self_static+:} false; then :
12936   $as_echo_n "(cached) " >&6
12937 else
12938           if test "$cross_compiling" = yes; then :
12939   lt_cv_dlopen_self_static=cross
12940 else
12941   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12942   lt_status=$lt_dlunknown
12943   cat > conftest.$ac_ext <<_LT_EOF
12944 #line $LINENO "configure"
12945 #include "confdefs.h"
12946
12947 #if HAVE_DLFCN_H
12948 #include <dlfcn.h>
12949 #endif
12950
12951 #include <stdio.h>
12952
12953 #ifdef RTLD_GLOBAL
12954 #  define LT_DLGLOBAL           RTLD_GLOBAL
12955 #else
12956 #  ifdef DL_GLOBAL
12957 #    define LT_DLGLOBAL         DL_GLOBAL
12958 #  else
12959 #    define LT_DLGLOBAL         0
12960 #  endif
12961 #endif
12962
12963 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12964    find out it does not work in some platform. */
12965 #ifndef LT_DLLAZY_OR_NOW
12966 #  ifdef RTLD_LAZY
12967 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12968 #  else
12969 #    ifdef DL_LAZY
12970 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12971 #    else
12972 #      ifdef RTLD_NOW
12973 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12974 #      else
12975 #        ifdef DL_NOW
12976 #          define LT_DLLAZY_OR_NOW      DL_NOW
12977 #        else
12978 #          define LT_DLLAZY_OR_NOW      0
12979 #        endif
12980 #      endif
12981 #    endif
12982 #  endif
12983 #endif
12984
12985 /* When -fvisbility=hidden is used, assume the code has been annotated
12986    correspondingly for the symbols needed.  */
12987 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12988 int fnord () __attribute__((visibility("default")));
12989 #endif
12990
12991 int fnord () { return 42; }
12992 int main ()
12993 {
12994   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12995   int status = $lt_dlunknown;
12996
12997   if (self)
12998     {
12999       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13000       else
13001         {
13002           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13003           else puts (dlerror ());
13004         }
13005       /* dlclose (self); */
13006     }
13007   else
13008     puts (dlerror ());
13009
13010   return status;
13011 }
13012 _LT_EOF
13013   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13014   (eval $ac_link) 2>&5
13015   ac_status=$?
13016   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13017   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13018     (./conftest; exit; ) >&5 2>/dev/null
13019     lt_status=$?
13020     case x$lt_status in
13021       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13022       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13023       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13024     esac
13025   else :
13026     # compilation failed
13027     lt_cv_dlopen_self_static=no
13028   fi
13029 fi
13030 rm -fr conftest*
13031
13032
13033 fi
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13035 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13036     fi
13037
13038     CPPFLAGS="$save_CPPFLAGS"
13039     LDFLAGS="$save_LDFLAGS"
13040     LIBS="$save_LIBS"
13041     ;;
13042   esac
13043
13044   case $lt_cv_dlopen_self in
13045   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13046   *) enable_dlopen_self=unknown ;;
13047   esac
13048
13049   case $lt_cv_dlopen_self_static in
13050   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13051   *) enable_dlopen_self_static=unknown ;;
13052   esac
13053 fi
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071 striplib=
13072 old_striplib=
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13074 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13075 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13076   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13077   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13079 $as_echo "yes" >&6; }
13080 else
13081 # FIXME - insert some real tests, host_os isn't really good enough
13082   case $host_os in
13083   darwin*)
13084     if test -n "$STRIP" ; then
13085       striplib="$STRIP -x"
13086       old_striplib="$STRIP -S"
13087       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13088 $as_echo "yes" >&6; }
13089     else
13090       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13091 $as_echo "no" >&6; }
13092     fi
13093     ;;
13094   *)
13095     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13096 $as_echo "no" >&6; }
13097     ;;
13098   esac
13099 fi
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112   # Report which library types will actually be built
13113   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13114 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13116 $as_echo "$can_build_shared" >&6; }
13117
13118   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13119 $as_echo_n "checking whether to build shared libraries... " >&6; }
13120   test "$can_build_shared" = "no" && enable_shared=no
13121
13122   # On AIX, shared libraries and static libraries use the same namespace, and
13123   # are all built from PIC.
13124   case $host_os in
13125   aix3*)
13126     test "$enable_shared" = yes && enable_static=no
13127     if test -n "$RANLIB"; then
13128       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13129       postinstall_cmds='$RANLIB $lib'
13130     fi
13131     ;;
13132
13133   aix[4-9]*)
13134     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13135       test "$enable_shared" = yes && enable_static=no
13136     fi
13137     ;;
13138   esac
13139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13140 $as_echo "$enable_shared" >&6; }
13141
13142   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13143 $as_echo_n "checking whether to build static libraries... " >&6; }
13144   # Make sure either enable_shared or enable_static is yes.
13145   test "$enable_shared" = yes || enable_static=yes
13146   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13147 $as_echo "$enable_static" >&6; }
13148
13149
13150
13151
13152 fi
13153 ac_ext=c
13154 ac_cpp='$CPP $CPPFLAGS'
13155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13158
13159 CC="$lt_save_CC"
13160
13161       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13162     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13163     (test "X$CXX" != "Xg++"))) ; then
13164   ac_ext=cpp
13165 ac_cpp='$CXXCPP $CPPFLAGS'
13166 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13167 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13168 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13170 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13171 if test -z "$CXXCPP"; then
13172   if ${ac_cv_prog_CXXCPP+:} false; then :
13173   $as_echo_n "(cached) " >&6
13174 else
13175       # Double quotes because CXXCPP needs to be expanded
13176     for CXXCPP in "$CXX -E" "/lib/cpp"
13177     do
13178       ac_preproc_ok=false
13179 for ac_cxx_preproc_warn_flag in '' yes
13180 do
13181   # Use a header file that comes with gcc, so configuring glibc
13182   # with a fresh cross-compiler works.
13183   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13184   # <limits.h> exists even on freestanding compilers.
13185   # On the NeXT, cc -E runs the code through the compiler's parser,
13186   # not just through cpp. "Syntax error" is here to catch this case.
13187   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13188 /* end confdefs.h.  */
13189 #ifdef __STDC__
13190 # include <limits.h>
13191 #else
13192 # include <assert.h>
13193 #endif
13194                      Syntax error
13195 _ACEOF
13196 if ac_fn_cxx_try_cpp "$LINENO"; then :
13197
13198 else
13199   # Broken: fails on valid input.
13200 continue
13201 fi
13202 rm -f conftest.err conftest.i conftest.$ac_ext
13203
13204   # OK, works on sane cases.  Now check whether nonexistent headers
13205   # can be detected and how.
13206   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h.  */
13208 #include <ac_nonexistent.h>
13209 _ACEOF
13210 if ac_fn_cxx_try_cpp "$LINENO"; then :
13211   # Broken: success on invalid input.
13212 continue
13213 else
13214   # Passes both tests.
13215 ac_preproc_ok=:
13216 break
13217 fi
13218 rm -f conftest.err conftest.i conftest.$ac_ext
13219
13220 done
13221 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13222 rm -f conftest.i conftest.err conftest.$ac_ext
13223 if $ac_preproc_ok; then :
13224   break
13225 fi
13226
13227     done
13228     ac_cv_prog_CXXCPP=$CXXCPP
13229
13230 fi
13231   CXXCPP=$ac_cv_prog_CXXCPP
13232 else
13233   ac_cv_prog_CXXCPP=$CXXCPP
13234 fi
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13236 $as_echo "$CXXCPP" >&6; }
13237 ac_preproc_ok=false
13238 for ac_cxx_preproc_warn_flag in '' yes
13239 do
13240   # Use a header file that comes with gcc, so configuring glibc
13241   # with a fresh cross-compiler works.
13242   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13243   # <limits.h> exists even on freestanding compilers.
13244   # On the NeXT, cc -E runs the code through the compiler's parser,
13245   # not just through cpp. "Syntax error" is here to catch this case.
13246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h.  */
13248 #ifdef __STDC__
13249 # include <limits.h>
13250 #else
13251 # include <assert.h>
13252 #endif
13253                      Syntax error
13254 _ACEOF
13255 if ac_fn_cxx_try_cpp "$LINENO"; then :
13256
13257 else
13258   # Broken: fails on valid input.
13259 continue
13260 fi
13261 rm -f conftest.err conftest.i conftest.$ac_ext
13262
13263   # OK, works on sane cases.  Now check whether nonexistent headers
13264   # can be detected and how.
13265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h.  */
13267 #include <ac_nonexistent.h>
13268 _ACEOF
13269 if ac_fn_cxx_try_cpp "$LINENO"; then :
13270   # Broken: success on invalid input.
13271 continue
13272 else
13273   # Passes both tests.
13274 ac_preproc_ok=:
13275 break
13276 fi
13277 rm -f conftest.err conftest.i conftest.$ac_ext
13278
13279 done
13280 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13281 rm -f conftest.i conftest.err conftest.$ac_ext
13282 if $ac_preproc_ok; then :
13283
13284 else
13285   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13288 See \`config.log' for more details" "$LINENO" 5; }
13289 fi
13290
13291 ac_ext=c
13292 ac_cpp='$CPP $CPPFLAGS'
13293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13296
13297 else
13298   _lt_caught_CXX_error=yes
13299 fi
13300
13301 ac_ext=cpp
13302 ac_cpp='$CXXCPP $CPPFLAGS'
13303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13306
13307 archive_cmds_need_lc_CXX=no
13308 allow_undefined_flag_CXX=
13309 always_export_symbols_CXX=no
13310 archive_expsym_cmds_CXX=
13311 compiler_needs_object_CXX=no
13312 export_dynamic_flag_spec_CXX=
13313 hardcode_direct_CXX=no
13314 hardcode_direct_absolute_CXX=no
13315 hardcode_libdir_flag_spec_CXX=
13316 hardcode_libdir_separator_CXX=
13317 hardcode_minus_L_CXX=no
13318 hardcode_shlibpath_var_CXX=unsupported
13319 hardcode_automatic_CXX=no
13320 inherit_rpath_CXX=no
13321 module_cmds_CXX=
13322 module_expsym_cmds_CXX=
13323 link_all_deplibs_CXX=unknown
13324 old_archive_cmds_CXX=$old_archive_cmds
13325 reload_flag_CXX=$reload_flag
13326 reload_cmds_CXX=$reload_cmds
13327 no_undefined_flag_CXX=
13328 whole_archive_flag_spec_CXX=
13329 enable_shared_with_static_runtimes_CXX=no
13330
13331 # Source file extension for C++ test sources.
13332 ac_ext=cpp
13333
13334 # Object file extension for compiled C++ test sources.
13335 objext=o
13336 objext_CXX=$objext
13337
13338 # No sense in running all these tests if we already determined that
13339 # the CXX compiler isn't working.  Some variables (like enable_shared)
13340 # are currently assumed to apply to all compilers on this platform,
13341 # and will be corrupted by setting them based on a non-working compiler.
13342 if test "$_lt_caught_CXX_error" != yes; then
13343   # Code to be used in simple compile tests
13344   lt_simple_compile_test_code="int some_variable = 0;"
13345
13346   # Code to be used in simple link tests
13347   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13348
13349   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13350
13351
13352
13353
13354
13355
13356 # If no C compiler was specified, use CC.
13357 LTCC=${LTCC-"$CC"}
13358
13359 # If no C compiler flags were specified, use CFLAGS.
13360 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13361
13362 # Allow CC to be a program name with arguments.
13363 compiler=$CC
13364
13365
13366   # save warnings/boilerplate of simple test code
13367   ac_outfile=conftest.$ac_objext
13368 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13369 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13370 _lt_compiler_boilerplate=`cat conftest.err`
13371 $RM conftest*
13372
13373   ac_outfile=conftest.$ac_objext
13374 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13375 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13376 _lt_linker_boilerplate=`cat conftest.err`
13377 $RM -r conftest*
13378
13379
13380   # Allow CC to be a program name with arguments.
13381   lt_save_CC=$CC
13382   lt_save_CFLAGS=$CFLAGS
13383   lt_save_LD=$LD
13384   lt_save_GCC=$GCC
13385   GCC=$GXX
13386   lt_save_with_gnu_ld=$with_gnu_ld
13387   lt_save_path_LD=$lt_cv_path_LD
13388   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13389     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13390   else
13391     $as_unset lt_cv_prog_gnu_ld
13392   fi
13393   if test -n "${lt_cv_path_LDCXX+set}"; then
13394     lt_cv_path_LD=$lt_cv_path_LDCXX
13395   else
13396     $as_unset lt_cv_path_LD
13397   fi
13398   test -z "${LDCXX+set}" || LD=$LDCXX
13399   CC=${CXX-"c++"}
13400   CFLAGS=$CXXFLAGS
13401   compiler=$CC
13402   compiler_CXX=$CC
13403   for cc_temp in $compiler""; do
13404   case $cc_temp in
13405     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13406     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13407     \-*) ;;
13408     *) break;;
13409   esac
13410 done
13411 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13412
13413
13414   if test -n "$compiler"; then
13415     # We don't want -fno-exception when compiling C++ code, so set the
13416     # no_builtin_flag separately
13417     if test "$GXX" = yes; then
13418       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13419     else
13420       lt_prog_compiler_no_builtin_flag_CXX=
13421     fi
13422
13423     if test "$GXX" = yes; then
13424       # Set up default GNU C++ configuration
13425
13426
13427
13428 # Check whether --with-gnu-ld was given.
13429 if test "${with_gnu_ld+set}" = set; then :
13430   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13431 else
13432   with_gnu_ld=no
13433 fi
13434
13435 ac_prog=ld
13436 if test "$GCC" = yes; then
13437   # Check if gcc -print-prog-name=ld gives a path.
13438   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13439 $as_echo_n "checking for ld used by $CC... " >&6; }
13440   case $host in
13441   *-*-mingw*)
13442     # gcc leaves a trailing carriage return which upsets mingw
13443     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13444   *)
13445     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13446   esac
13447   case $ac_prog in
13448     # Accept absolute paths.
13449     [\\/]* | ?:[\\/]*)
13450       re_direlt='/[^/][^/]*/\.\./'
13451       # Canonicalize the pathname of ld
13452       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13453       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13454         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13455       done
13456       test -z "$LD" && LD="$ac_prog"
13457       ;;
13458   "")
13459     # If it fails, then pretend we aren't using GCC.
13460     ac_prog=ld
13461     ;;
13462   *)
13463     # If it is relative, then search for the first ld in PATH.
13464     with_gnu_ld=unknown
13465     ;;
13466   esac
13467 elif test "$with_gnu_ld" = yes; then
13468   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13469 $as_echo_n "checking for GNU ld... " >&6; }
13470 else
13471   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13472 $as_echo_n "checking for non-GNU ld... " >&6; }
13473 fi
13474 if ${lt_cv_path_LD+:} false; then :
13475   $as_echo_n "(cached) " >&6
13476 else
13477   if test -z "$LD"; then
13478   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13479   for ac_dir in $PATH; do
13480     IFS="$lt_save_ifs"
13481     test -z "$ac_dir" && ac_dir=.
13482     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13483       lt_cv_path_LD="$ac_dir/$ac_prog"
13484       # Check to see if the program is GNU ld.  I'd rather use --version,
13485       # but apparently some variants of GNU ld only accept -v.
13486       # Break only if it was the GNU/non-GNU ld that we prefer.
13487       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13488       *GNU* | *'with BFD'*)
13489         test "$with_gnu_ld" != no && break
13490         ;;
13491       *)
13492         test "$with_gnu_ld" != yes && break
13493         ;;
13494       esac
13495     fi
13496   done
13497   IFS="$lt_save_ifs"
13498 else
13499   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13500 fi
13501 fi
13502
13503 LD="$lt_cv_path_LD"
13504 if test -n "$LD"; then
13505   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13506 $as_echo "$LD" >&6; }
13507 else
13508   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509 $as_echo "no" >&6; }
13510 fi
13511 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13513 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13514 if ${lt_cv_prog_gnu_ld+:} false; then :
13515   $as_echo_n "(cached) " >&6
13516 else
13517   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13518 case `$LD -v 2>&1 </dev/null` in
13519 *GNU* | *'with BFD'*)
13520   lt_cv_prog_gnu_ld=yes
13521   ;;
13522 *)
13523   lt_cv_prog_gnu_ld=no
13524   ;;
13525 esac
13526 fi
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13528 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13529 with_gnu_ld=$lt_cv_prog_gnu_ld
13530
13531
13532
13533
13534
13535
13536
13537       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13538       # archiving commands below assume that GNU ld is being used.
13539       if test "$with_gnu_ld" = yes; then
13540         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13541         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'
13542
13543         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13544         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13545
13546         # If archive_cmds runs LD, not CC, wlarc should be empty
13547         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13548         #     investigate it a little bit more. (MM)
13549         wlarc='${wl}'
13550
13551         # ancient GNU ld didn't support --whole-archive et. al.
13552         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13553           $GREP 'no-whole-archive' > /dev/null; then
13554           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13555         else
13556           whole_archive_flag_spec_CXX=
13557         fi
13558       else
13559         with_gnu_ld=no
13560         wlarc=
13561
13562         # A generic and very simple default shared library creation
13563         # command for GNU C++ for the case where it uses the native
13564         # linker, instead of GNU ld.  If possible, this setting should
13565         # overridden to take advantage of the native linker features on
13566         # the platform it is being used on.
13567         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13568       fi
13569
13570       # Commands to make compiler produce verbose output that lists
13571       # what "hidden" libraries, object files and flags are used when
13572       # linking a shared library.
13573       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13574
13575     else
13576       GXX=no
13577       with_gnu_ld=no
13578       wlarc=
13579     fi
13580
13581     # PORTME: fill in a description of your system's C++ link characteristics
13582     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13583 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13584     ld_shlibs_CXX=yes
13585     case $host_os in
13586       aix3*)
13587         # FIXME: insert proper C++ library support
13588         ld_shlibs_CXX=no
13589         ;;
13590       aix[4-9]*)
13591         if test "$host_cpu" = ia64; then
13592           # On IA64, the linker does run time linking by default, so we don't
13593           # have to do anything special.
13594           aix_use_runtimelinking=no
13595           exp_sym_flag='-Bexport'
13596           no_entry_flag=""
13597         else
13598           aix_use_runtimelinking=no
13599
13600           # Test if we are trying to use run time linking or normal
13601           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13602           # need to do runtime linking.
13603           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13604             for ld_flag in $LDFLAGS; do
13605               case $ld_flag in
13606               *-brtl*)
13607                 aix_use_runtimelinking=yes
13608                 break
13609                 ;;
13610               esac
13611             done
13612             ;;
13613           esac
13614
13615           exp_sym_flag='-bexport'
13616           no_entry_flag='-bnoentry'
13617         fi
13618
13619         # When large executables or shared objects are built, AIX ld can
13620         # have problems creating the table of contents.  If linking a library
13621         # or program results in "error TOC overflow" add -mminimal-toc to
13622         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13623         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13624
13625         archive_cmds_CXX=''
13626         hardcode_direct_CXX=yes
13627         hardcode_direct_absolute_CXX=yes
13628         hardcode_libdir_separator_CXX=':'
13629         link_all_deplibs_CXX=yes
13630         file_list_spec_CXX='${wl}-f,'
13631
13632         if test "$GXX" = yes; then
13633           case $host_os in aix4.[012]|aix4.[012].*)
13634           # We only want to do this on AIX 4.2 and lower, the check
13635           # below for broken collect2 doesn't work under 4.3+
13636           collect2name=`${CC} -print-prog-name=collect2`
13637           if test -f "$collect2name" &&
13638              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13639           then
13640             # We have reworked collect2
13641             :
13642           else
13643             # We have old collect2
13644             hardcode_direct_CXX=unsupported
13645             # It fails to find uninstalled libraries when the uninstalled
13646             # path is not listed in the libpath.  Setting hardcode_minus_L
13647             # to unsupported forces relinking
13648             hardcode_minus_L_CXX=yes
13649             hardcode_libdir_flag_spec_CXX='-L$libdir'
13650             hardcode_libdir_separator_CXX=
13651           fi
13652           esac
13653           shared_flag='-shared'
13654           if test "$aix_use_runtimelinking" = yes; then
13655             shared_flag="$shared_flag "'${wl}-G'
13656           fi
13657         else
13658           # not using gcc
13659           if test "$host_cpu" = ia64; then
13660           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13661           # chokes on -Wl,-G. The following line is correct:
13662           shared_flag='-G'
13663           else
13664             if test "$aix_use_runtimelinking" = yes; then
13665               shared_flag='${wl}-G'
13666             else
13667               shared_flag='${wl}-bM:SRE'
13668             fi
13669           fi
13670         fi
13671
13672         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13673         # It seems that -bexpall does not export symbols beginning with
13674         # underscore (_), so it is better to generate a list of symbols to
13675         # export.
13676         always_export_symbols_CXX=yes
13677         if test "$aix_use_runtimelinking" = yes; then
13678           # Warning - without using the other runtime loading flags (-brtl),
13679           # -berok will link without error, but may produce a broken library.
13680           allow_undefined_flag_CXX='-berok'
13681           # Determine the default libpath from the value encoded in an empty
13682           # executable.
13683           if test "${lt_cv_aix_libpath+set}" = set; then
13684   aix_libpath=$lt_cv_aix_libpath
13685 else
13686   if ${lt_cv_aix_libpath__CXX+:} false; then :
13687   $as_echo_n "(cached) " >&6
13688 else
13689   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13690 /* end confdefs.h.  */
13691
13692 int
13693 main ()
13694 {
13695
13696   ;
13697   return 0;
13698 }
13699 _ACEOF
13700 if ac_fn_cxx_try_link "$LINENO"; then :
13701
13702   lt_aix_libpath_sed='
13703       /Import File Strings/,/^$/ {
13704           /^0/ {
13705               s/^0  *\([^ ]*\) *$/\1/
13706               p
13707           }
13708       }'
13709   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13710   # Check for a 64-bit object if we didn't find anything.
13711   if test -z "$lt_cv_aix_libpath__CXX"; then
13712     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13713   fi
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext \
13716     conftest$ac_exeext conftest.$ac_ext
13717   if test -z "$lt_cv_aix_libpath__CXX"; then
13718     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13719   fi
13720
13721 fi
13722
13723   aix_libpath=$lt_cv_aix_libpath__CXX
13724 fi
13725
13726           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13727
13728           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"
13729         else
13730           if test "$host_cpu" = ia64; then
13731             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13732             allow_undefined_flag_CXX="-z nodefs"
13733             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"
13734           else
13735             # Determine the default libpath from the value encoded in an
13736             # empty executable.
13737             if test "${lt_cv_aix_libpath+set}" = set; then
13738   aix_libpath=$lt_cv_aix_libpath
13739 else
13740   if ${lt_cv_aix_libpath__CXX+:} false; then :
13741   $as_echo_n "(cached) " >&6
13742 else
13743   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13744 /* end confdefs.h.  */
13745
13746 int
13747 main ()
13748 {
13749
13750   ;
13751   return 0;
13752 }
13753 _ACEOF
13754 if ac_fn_cxx_try_link "$LINENO"; then :
13755
13756   lt_aix_libpath_sed='
13757       /Import File Strings/,/^$/ {
13758           /^0/ {
13759               s/^0  *\([^ ]*\) *$/\1/
13760               p
13761           }
13762       }'
13763   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13764   # Check for a 64-bit object if we didn't find anything.
13765   if test -z "$lt_cv_aix_libpath__CXX"; then
13766     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13767   fi
13768 fi
13769 rm -f core conftest.err conftest.$ac_objext \
13770     conftest$ac_exeext conftest.$ac_ext
13771   if test -z "$lt_cv_aix_libpath__CXX"; then
13772     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13773   fi
13774
13775 fi
13776
13777   aix_libpath=$lt_cv_aix_libpath__CXX
13778 fi
13779
13780             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13781             # Warning - without using the other run time loading flags,
13782             # -berok will link without error, but may produce a broken library.
13783             no_undefined_flag_CXX=' ${wl}-bernotok'
13784             allow_undefined_flag_CXX=' ${wl}-berok'
13785             if test "$with_gnu_ld" = yes; then
13786               # We only use this code for GNU lds that support --whole-archive.
13787               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13788             else
13789               # Exported symbols can be pulled into shared objects from archives
13790               whole_archive_flag_spec_CXX='$convenience'
13791             fi
13792             archive_cmds_need_lc_CXX=yes
13793             # This is similar to how AIX traditionally builds its shared
13794             # libraries.
13795             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'
13796           fi
13797         fi
13798         ;;
13799
13800       beos*)
13801         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13802           allow_undefined_flag_CXX=unsupported
13803           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13804           # support --undefined.  This deserves some investigation.  FIXME
13805           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13806         else
13807           ld_shlibs_CXX=no
13808         fi
13809         ;;
13810
13811       chorus*)
13812         case $cc_basename in
13813           *)
13814           # FIXME: insert proper C++ library support
13815           ld_shlibs_CXX=no
13816           ;;
13817         esac
13818         ;;
13819
13820       cygwin* | mingw* | pw32* | cegcc*)
13821         case $GXX,$cc_basename in
13822         ,cl* | no,cl*)
13823           # Native MSVC
13824           # hardcode_libdir_flag_spec is actually meaningless, as there is
13825           # no search path for DLLs.
13826           hardcode_libdir_flag_spec_CXX=' '
13827           allow_undefined_flag_CXX=unsupported
13828           always_export_symbols_CXX=yes
13829           file_list_spec_CXX='@'
13830           # Tell ltmain to make .lib files, not .a files.
13831           libext=lib
13832           # Tell ltmain to make .dll files, not .so files.
13833           shrext_cmds=".dll"
13834           # FIXME: Setting linknames here is a bad hack.
13835           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13836           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13837               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13838             else
13839               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13840             fi~
13841             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13842             linknames='
13843           # The linker will not automatically build a static lib if we build a DLL.
13844           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13845           enable_shared_with_static_runtimes_CXX=yes
13846           # Don't use ranlib
13847           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13848           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13849             lt_tool_outputfile="@TOOL_OUTPUT@"~
13850             case $lt_outputfile in
13851               *.exe|*.EXE) ;;
13852               *)
13853                 lt_outputfile="$lt_outputfile.exe"
13854                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13855                 ;;
13856             esac~
13857             func_to_tool_file "$lt_outputfile"~
13858             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13859               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13860               $RM "$lt_outputfile.manifest";
13861             fi'
13862           ;;
13863         *)
13864           # g++
13865           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13866           # as there is no search path for DLLs.
13867           hardcode_libdir_flag_spec_CXX='-L$libdir'
13868           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13869           allow_undefined_flag_CXX=unsupported
13870           always_export_symbols_CXX=no
13871           enable_shared_with_static_runtimes_CXX=yes
13872
13873           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13874             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'
13875             # If the export-symbols file already is a .def file (1st line
13876             # is EXPORTS), use it as is; otherwise, prepend...
13877             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13878               cp $export_symbols $output_objdir/$soname.def;
13879             else
13880               echo EXPORTS > $output_objdir/$soname.def;
13881               cat $export_symbols >> $output_objdir/$soname.def;
13882             fi~
13883             $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'
13884           else
13885             ld_shlibs_CXX=no
13886           fi
13887           ;;
13888         esac
13889         ;;
13890       darwin* | rhapsody*)
13891
13892
13893   archive_cmds_need_lc_CXX=no
13894   hardcode_direct_CXX=no
13895   hardcode_automatic_CXX=yes
13896   hardcode_shlibpath_var_CXX=unsupported
13897   if test "$lt_cv_ld_force_load" = "yes"; then
13898     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\"`'
13899
13900   else
13901     whole_archive_flag_spec_CXX=''
13902   fi
13903   link_all_deplibs_CXX=yes
13904   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13905   case $cc_basename in
13906      ifort*) _lt_dar_can_shared=yes ;;
13907      *) _lt_dar_can_shared=$GCC ;;
13908   esac
13909   if test "$_lt_dar_can_shared" = "yes"; then
13910     output_verbose_link_cmd=func_echo_all
13911     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}"
13912     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13913     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}"
13914     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}"
13915        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13916       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}"
13917       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}"
13918     fi
13919
13920   else
13921   ld_shlibs_CXX=no
13922   fi
13923
13924         ;;
13925
13926       dgux*)
13927         case $cc_basename in
13928           ec++*)
13929             # FIXME: insert proper C++ library support
13930             ld_shlibs_CXX=no
13931             ;;
13932           ghcx*)
13933             # Green Hills C++ Compiler
13934             # FIXME: insert proper C++ library support
13935             ld_shlibs_CXX=no
13936             ;;
13937           *)
13938             # FIXME: insert proper C++ library support
13939             ld_shlibs_CXX=no
13940             ;;
13941         esac
13942         ;;
13943
13944       freebsd2.*)
13945         # C++ shared libraries reported to be fairly broken before
13946         # switch to ELF
13947         ld_shlibs_CXX=no
13948         ;;
13949
13950       freebsd-elf*)
13951         archive_cmds_need_lc_CXX=no
13952         ;;
13953
13954       freebsd* | dragonfly*)
13955         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13956         # conventions
13957         ld_shlibs_CXX=yes
13958         ;;
13959
13960       haiku*)
13961         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13962         link_all_deplibs_CXX=yes
13963         ;;
13964
13965       hpux9*)
13966         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13967         hardcode_libdir_separator_CXX=:
13968         export_dynamic_flag_spec_CXX='${wl}-E'
13969         hardcode_direct_CXX=yes
13970         hardcode_minus_L_CXX=yes # Not in the search PATH,
13971                                              # but as the default
13972                                              # location of the library.
13973
13974         case $cc_basename in
13975           CC*)
13976             # FIXME: insert proper C++ library support
13977             ld_shlibs_CXX=no
13978             ;;
13979           aCC*)
13980             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'
13981             # Commands to make compiler produce verbose output that lists
13982             # what "hidden" libraries, object files and flags are used when
13983             # linking a shared library.
13984             #
13985             # There doesn't appear to be a way to prevent this compiler from
13986             # explicitly linking system object files so we need to strip them
13987             # from the output so that they don't get included in the library
13988             # dependencies.
13989             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"'
13990             ;;
13991           *)
13992             if test "$GXX" = yes; then
13993               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'
13994             else
13995               # FIXME: insert proper C++ library support
13996               ld_shlibs_CXX=no
13997             fi
13998             ;;
13999         esac
14000         ;;
14001
14002       hpux10*|hpux11*)
14003         if test $with_gnu_ld = no; then
14004           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14005           hardcode_libdir_separator_CXX=:
14006
14007           case $host_cpu in
14008             hppa*64*|ia64*)
14009               ;;
14010             *)
14011               export_dynamic_flag_spec_CXX='${wl}-E'
14012               ;;
14013           esac
14014         fi
14015         case $host_cpu in
14016           hppa*64*|ia64*)
14017             hardcode_direct_CXX=no
14018             hardcode_shlibpath_var_CXX=no
14019             ;;
14020           *)
14021             hardcode_direct_CXX=yes
14022             hardcode_direct_absolute_CXX=yes
14023             hardcode_minus_L_CXX=yes # Not in the search PATH,
14024                                                  # but as the default
14025                                                  # location of the library.
14026             ;;
14027         esac
14028
14029         case $cc_basename in
14030           CC*)
14031             # FIXME: insert proper C++ library support
14032             ld_shlibs_CXX=no
14033             ;;
14034           aCC*)
14035             case $host_cpu in
14036               hppa*64*)
14037                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14038                 ;;
14039               ia64*)
14040                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14041                 ;;
14042               *)
14043                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044                 ;;
14045             esac
14046             # Commands to make compiler produce verbose output that lists
14047             # what "hidden" libraries, object files and flags are used when
14048             # linking a shared library.
14049             #
14050             # There doesn't appear to be a way to prevent this compiler from
14051             # explicitly linking system object files so we need to strip them
14052             # from the output so that they don't get included in the library
14053             # dependencies.
14054             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"'
14055             ;;
14056           *)
14057             if test "$GXX" = yes; then
14058               if test $with_gnu_ld = no; then
14059                 case $host_cpu in
14060                   hppa*64*)
14061                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14062                     ;;
14063                   ia64*)
14064                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14065                     ;;
14066                   *)
14067                     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'
14068                     ;;
14069                 esac
14070               fi
14071             else
14072               # FIXME: insert proper C++ library support
14073               ld_shlibs_CXX=no
14074             fi
14075             ;;
14076         esac
14077         ;;
14078
14079       interix[3-9]*)
14080         hardcode_direct_CXX=no
14081         hardcode_shlibpath_var_CXX=no
14082         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14083         export_dynamic_flag_spec_CXX='${wl}-E'
14084         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14085         # Instead, shared libraries are loaded at an image base (0x10000000 by
14086         # default) and relocated if they conflict, which is a slow very memory
14087         # consuming and fragmenting process.  To avoid this, we pick a random,
14088         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14089         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14090         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'
14091         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'
14092         ;;
14093       irix5* | irix6*)
14094         case $cc_basename in
14095           CC*)
14096             # SGI C++
14097             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'
14098
14099             # Archives containing C++ object files must be created using
14100             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14101             # necessary to make sure instantiated templates are included
14102             # in the archive.
14103             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14104             ;;
14105           *)
14106             if test "$GXX" = yes; then
14107               if test "$with_gnu_ld" = no; then
14108                 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'
14109               else
14110                 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'
14111               fi
14112             fi
14113             link_all_deplibs_CXX=yes
14114             ;;
14115         esac
14116         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14117         hardcode_libdir_separator_CXX=:
14118         inherit_rpath_CXX=yes
14119         ;;
14120
14121       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14122         case $cc_basename in
14123           KCC*)
14124             # Kuck and Associates, Inc. (KAI) C++ Compiler
14125
14126             # KCC will only create a shared library if the output file
14127             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14128             # to its proper name (with version) after linking.
14129             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'
14130             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'
14131             # Commands to make compiler produce verbose output that lists
14132             # what "hidden" libraries, object files and flags are used when
14133             # linking a shared library.
14134             #
14135             # There doesn't appear to be a way to prevent this compiler from
14136             # explicitly linking system object files so we need to strip them
14137             # from the output so that they don't get included in the library
14138             # dependencies.
14139             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"'
14140
14141             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14142             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14143
14144             # Archives containing C++ object files must be created using
14145             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14146             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14147             ;;
14148           icpc* | ecpc* )
14149             # Intel C++
14150             with_gnu_ld=yes
14151             # version 8.0 and above of icpc choke on multiply defined symbols
14152             # if we add $predep_objects and $postdep_objects, however 7.1 and
14153             # earlier do not add the objects themselves.
14154             case `$CC -V 2>&1` in
14155               *"Version 7."*)
14156                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14157                 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'
14158                 ;;
14159               *)  # Version 8.0 or newer
14160                 tmp_idyn=
14161                 case $host_cpu in
14162                   ia64*) tmp_idyn=' -i_dynamic';;
14163                 esac
14164                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14165                 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'
14166                 ;;
14167             esac
14168             archive_cmds_need_lc_CXX=no
14169             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14170             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14171             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14172             ;;
14173           pgCC* | pgcpp*)
14174             # Portland Group C++ compiler
14175             case `$CC -V` in
14176             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14177               prelink_cmds_CXX='tpldir=Template.dir~
14178                 rm -rf $tpldir~
14179                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14180                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14181               old_archive_cmds_CXX='tpldir=Template.dir~
14182                 rm -rf $tpldir~
14183                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14184                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14185                 $RANLIB $oldlib'
14186               archive_cmds_CXX='tpldir=Template.dir~
14187                 rm -rf $tpldir~
14188                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14189                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14190               archive_expsym_cmds_CXX='tpldir=Template.dir~
14191                 rm -rf $tpldir~
14192                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14193                 $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'
14194               ;;
14195             *) # Version 6 and above use weak symbols
14196               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14197               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'
14198               ;;
14199             esac
14200
14201             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14202             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14203             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'
14204             ;;
14205           cxx*)
14206             # Compaq C++
14207             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14208             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'
14209
14210             runpath_var=LD_RUN_PATH
14211             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14212             hardcode_libdir_separator_CXX=:
14213
14214             # Commands to make compiler produce verbose output that lists
14215             # what "hidden" libraries, object files and flags are used when
14216             # linking a shared library.
14217             #
14218             # There doesn't appear to be a way to prevent this compiler from
14219             # explicitly linking system object files so we need to strip them
14220             # from the output so that they don't get included in the library
14221             # dependencies.
14222             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'
14223             ;;
14224           xl* | mpixl* | bgxl*)
14225             # IBM XL 8.0 on PPC, with GNU ld
14226             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14227             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14228             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14229             if test "x$supports_anon_versioning" = xyes; then
14230               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14231                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14232                 echo "local: *; };" >> $output_objdir/$libname.ver~
14233                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14234             fi
14235             ;;
14236           *)
14237             case `$CC -V 2>&1 | sed 5q` in
14238             *Sun\ C*)
14239               # Sun C++ 5.9
14240               no_undefined_flag_CXX=' -zdefs'
14241               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14242               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'
14243               hardcode_libdir_flag_spec_CXX='-R$libdir'
14244               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'
14245               compiler_needs_object_CXX=yes
14246
14247               # Not sure whether something based on
14248               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14249               # would be better.
14250               output_verbose_link_cmd='func_echo_all'
14251
14252               # Archives containing C++ object files must be created using
14253               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14254               # necessary to make sure instantiated templates are included
14255               # in the archive.
14256               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14257               ;;
14258             esac
14259             ;;
14260         esac
14261         ;;
14262
14263       lynxos*)
14264         # FIXME: insert proper C++ library support
14265         ld_shlibs_CXX=no
14266         ;;
14267
14268       m88k*)
14269         # FIXME: insert proper C++ library support
14270         ld_shlibs_CXX=no
14271         ;;
14272
14273       mvs*)
14274         case $cc_basename in
14275           cxx*)
14276             # FIXME: insert proper C++ library support
14277             ld_shlibs_CXX=no
14278             ;;
14279           *)
14280             # FIXME: insert proper C++ library support
14281             ld_shlibs_CXX=no
14282             ;;
14283         esac
14284         ;;
14285
14286       netbsd*)
14287         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14288           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14289           wlarc=
14290           hardcode_libdir_flag_spec_CXX='-R$libdir'
14291           hardcode_direct_CXX=yes
14292           hardcode_shlibpath_var_CXX=no
14293         fi
14294         # Workaround some broken pre-1.5 toolchains
14295         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14296         ;;
14297
14298       *nto* | *qnx*)
14299         ld_shlibs_CXX=yes
14300         ;;
14301
14302       openbsd2*)
14303         # C++ shared libraries are fairly broken
14304         ld_shlibs_CXX=no
14305         ;;
14306
14307       openbsd*)
14308         if test -f /usr/libexec/ld.so; then
14309           hardcode_direct_CXX=yes
14310           hardcode_shlibpath_var_CXX=no
14311           hardcode_direct_absolute_CXX=yes
14312           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14313           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14314           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14315             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14316             export_dynamic_flag_spec_CXX='${wl}-E'
14317             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14318           fi
14319           output_verbose_link_cmd=func_echo_all
14320         else
14321           ld_shlibs_CXX=no
14322         fi
14323         ;;
14324
14325       osf3* | osf4* | osf5*)
14326         case $cc_basename in
14327           KCC*)
14328             # Kuck and Associates, Inc. (KAI) C++ Compiler
14329
14330             # KCC will only create a shared library if the output file
14331             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14332             # to its proper name (with version) after linking.
14333             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'
14334
14335             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14336             hardcode_libdir_separator_CXX=:
14337
14338             # Archives containing C++ object files must be created using
14339             # the KAI C++ compiler.
14340             case $host in
14341               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14342               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14343             esac
14344             ;;
14345           RCC*)
14346             # Rational C++ 2.4.1
14347             # FIXME: insert proper C++ library support
14348             ld_shlibs_CXX=no
14349             ;;
14350           cxx*)
14351             case $host in
14352               osf3*)
14353                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14354                 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'
14355                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14356                 ;;
14357               *)
14358                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14359                 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'
14360                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14361                   echo "-hidden">> $lib.exp~
14362                   $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~
14363                   $RM $lib.exp'
14364                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14365                 ;;
14366             esac
14367
14368             hardcode_libdir_separator_CXX=:
14369
14370             # Commands to make compiler produce verbose output that lists
14371             # what "hidden" libraries, object files and flags are used when
14372             # linking a shared library.
14373             #
14374             # There doesn't appear to be a way to prevent this compiler from
14375             # explicitly linking system object files so we need to strip them
14376             # from the output so that they don't get included in the library
14377             # dependencies.
14378             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"'
14379             ;;
14380           *)
14381             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14382               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14383               case $host in
14384                 osf3*)
14385                   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'
14386                   ;;
14387                 *)
14388                   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'
14389                   ;;
14390               esac
14391
14392               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14393               hardcode_libdir_separator_CXX=:
14394
14395               # Commands to make compiler produce verbose output that lists
14396               # what "hidden" libraries, object files and flags are used when
14397               # linking a shared library.
14398               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14399
14400             else
14401               # FIXME: insert proper C++ library support
14402               ld_shlibs_CXX=no
14403             fi
14404             ;;
14405         esac
14406         ;;
14407
14408       psos*)
14409         # FIXME: insert proper C++ library support
14410         ld_shlibs_CXX=no
14411         ;;
14412
14413       sunos4*)
14414         case $cc_basename in
14415           CC*)
14416             # Sun C++ 4.x
14417             # FIXME: insert proper C++ library support
14418             ld_shlibs_CXX=no
14419             ;;
14420           lcc*)
14421             # Lucid
14422             # FIXME: insert proper C++ library support
14423             ld_shlibs_CXX=no
14424             ;;
14425           *)
14426             # FIXME: insert proper C++ library support
14427             ld_shlibs_CXX=no
14428             ;;
14429         esac
14430         ;;
14431
14432       solaris*)
14433         case $cc_basename in
14434           CC* | sunCC*)
14435             # Sun C++ 4.2, 5.x and Centerline C++
14436             archive_cmds_need_lc_CXX=yes
14437             no_undefined_flag_CXX=' -zdefs'
14438             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14439             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14440               $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'
14441
14442             hardcode_libdir_flag_spec_CXX='-R$libdir'
14443             hardcode_shlibpath_var_CXX=no
14444             case $host_os in
14445               solaris2.[0-5] | solaris2.[0-5].*) ;;
14446               *)
14447                 # The compiler driver will combine and reorder linker options,
14448                 # but understands `-z linker_flag'.
14449                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14450                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14451                 ;;
14452             esac
14453             link_all_deplibs_CXX=yes
14454
14455             output_verbose_link_cmd='func_echo_all'
14456
14457             # Archives containing C++ object files must be created using
14458             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14459             # necessary to make sure instantiated templates are included
14460             # in the archive.
14461             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14462             ;;
14463           gcx*)
14464             # Green Hills C++ Compiler
14465             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14466
14467             # The C++ compiler must be used to create the archive.
14468             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14469             ;;
14470           *)
14471             # GNU C++ compiler with Solaris linker
14472             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14473               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14474               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14475                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14476                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14477                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14478
14479                 # Commands to make compiler produce verbose output that lists
14480                 # what "hidden" libraries, object files and flags are used when
14481                 # linking a shared library.
14482                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14483               else
14484                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14485                 # platform.
14486                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14487                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14488                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14489
14490                 # Commands to make compiler produce verbose output that lists
14491                 # what "hidden" libraries, object files and flags are used when
14492                 # linking a shared library.
14493                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14494               fi
14495
14496               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14497               case $host_os in
14498                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14499                 *)
14500                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14501                   ;;
14502               esac
14503             fi
14504             ;;
14505         esac
14506         ;;
14507
14508     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14509       no_undefined_flag_CXX='${wl}-z,text'
14510       archive_cmds_need_lc_CXX=no
14511       hardcode_shlibpath_var_CXX=no
14512       runpath_var='LD_RUN_PATH'
14513
14514       case $cc_basename in
14515         CC*)
14516           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14518           ;;
14519         *)
14520           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522           ;;
14523       esac
14524       ;;
14525
14526       sysv5* | sco3.2v5* | sco5v6*)
14527         # Note: We can NOT use -z defs as we might desire, because we do not
14528         # link with -lc, and that would cause any symbols used from libc to
14529         # always be unresolved, which means just about no library would
14530         # ever link correctly.  If we're not using GNU ld we use -z text
14531         # though, which does catch some bad symbols but isn't as heavy-handed
14532         # as -z defs.
14533         no_undefined_flag_CXX='${wl}-z,text'
14534         allow_undefined_flag_CXX='${wl}-z,nodefs'
14535         archive_cmds_need_lc_CXX=no
14536         hardcode_shlibpath_var_CXX=no
14537         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14538         hardcode_libdir_separator_CXX=':'
14539         link_all_deplibs_CXX=yes
14540         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14541         runpath_var='LD_RUN_PATH'
14542
14543         case $cc_basename in
14544           CC*)
14545             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14547             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14548               '"$old_archive_cmds_CXX"
14549             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14550               '"$reload_cmds_CXX"
14551             ;;
14552           *)
14553             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14555             ;;
14556         esac
14557       ;;
14558
14559       tandem*)
14560         case $cc_basename in
14561           NCC*)
14562             # NonStop-UX NCC 3.20
14563             # FIXME: insert proper C++ library support
14564             ld_shlibs_CXX=no
14565             ;;
14566           *)
14567             # FIXME: insert proper C++ library support
14568             ld_shlibs_CXX=no
14569             ;;
14570         esac
14571         ;;
14572
14573       vxworks*)
14574         # FIXME: insert proper C++ library support
14575         ld_shlibs_CXX=no
14576         ;;
14577
14578       *)
14579         # FIXME: insert proper C++ library support
14580         ld_shlibs_CXX=no
14581         ;;
14582     esac
14583
14584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14585 $as_echo "$ld_shlibs_CXX" >&6; }
14586     test "$ld_shlibs_CXX" = no && can_build_shared=no
14587
14588     GCC_CXX="$GXX"
14589     LD_CXX="$LD"
14590
14591     ## CAVEAT EMPTOR:
14592     ## There is no encapsulation within the following macros, do not change
14593     ## the running order or otherwise move them around unless you know exactly
14594     ## what you are doing...
14595     # Dependencies to place before and after the object being linked:
14596 predep_objects_CXX=
14597 postdep_objects_CXX=
14598 predeps_CXX=
14599 postdeps_CXX=
14600 compiler_lib_search_path_CXX=
14601
14602 cat > conftest.$ac_ext <<_LT_EOF
14603 class Foo
14604 {
14605 public:
14606   Foo (void) { a = 0; }
14607 private:
14608   int a;
14609 };
14610 _LT_EOF
14611
14612
14613 _lt_libdeps_save_CFLAGS=$CFLAGS
14614 case "$CC $CFLAGS " in #(
14615 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14616 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14617 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14618 esac
14619
14620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14621   (eval $ac_compile) 2>&5
14622   ac_status=$?
14623   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624   test $ac_status = 0; }; then
14625   # Parse the compiler output and extract the necessary
14626   # objects, libraries and library flags.
14627
14628   # Sentinel used to keep track of whether or not we are before
14629   # the conftest object file.
14630   pre_test_object_deps_done=no
14631
14632   for p in `eval "$output_verbose_link_cmd"`; do
14633     case ${prev}${p} in
14634
14635     -L* | -R* | -l*)
14636        # Some compilers place space between "-{L,R}" and the path.
14637        # Remove the space.
14638        if test $p = "-L" ||
14639           test $p = "-R"; then
14640          prev=$p
14641          continue
14642        fi
14643
14644        # Expand the sysroot to ease extracting the directories later.
14645        if test -z "$prev"; then
14646          case $p in
14647          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14648          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14649          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14650          esac
14651        fi
14652        case $p in
14653        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14654        esac
14655        if test "$pre_test_object_deps_done" = no; then
14656          case ${prev} in
14657          -L | -R)
14658            # Internal compiler library paths should come after those
14659            # provided the user.  The postdeps already come after the
14660            # user supplied libs so there is no need to process them.
14661            if test -z "$compiler_lib_search_path_CXX"; then
14662              compiler_lib_search_path_CXX="${prev}${p}"
14663            else
14664              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14665            fi
14666            ;;
14667          # The "-l" case would never come before the object being
14668          # linked, so don't bother handling this case.
14669          esac
14670        else
14671          if test -z "$postdeps_CXX"; then
14672            postdeps_CXX="${prev}${p}"
14673          else
14674            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14675          fi
14676        fi
14677        prev=
14678        ;;
14679
14680     *.lto.$objext) ;; # Ignore GCC LTO objects
14681     *.$objext)
14682        # This assumes that the test object file only shows up
14683        # once in the compiler output.
14684        if test "$p" = "conftest.$objext"; then
14685          pre_test_object_deps_done=yes
14686          continue
14687        fi
14688
14689        if test "$pre_test_object_deps_done" = no; then
14690          if test -z "$predep_objects_CXX"; then
14691            predep_objects_CXX="$p"
14692          else
14693            predep_objects_CXX="$predep_objects_CXX $p"
14694          fi
14695        else
14696          if test -z "$postdep_objects_CXX"; then
14697            postdep_objects_CXX="$p"
14698          else
14699            postdep_objects_CXX="$postdep_objects_CXX $p"
14700          fi
14701        fi
14702        ;;
14703
14704     *) ;; # Ignore the rest.
14705
14706     esac
14707   done
14708
14709   # Clean up.
14710   rm -f a.out a.exe
14711 else
14712   echo "libtool.m4: error: problem compiling CXX test program"
14713 fi
14714
14715 $RM -f confest.$objext
14716 CFLAGS=$_lt_libdeps_save_CFLAGS
14717
14718 # PORTME: override above test on systems where it is broken
14719 case $host_os in
14720 interix[3-9]*)
14721   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14722   # hack all around it, let's just trust "g++" to DTRT.
14723   predep_objects_CXX=
14724   postdep_objects_CXX=
14725   postdeps_CXX=
14726   ;;
14727
14728 linux*)
14729   case `$CC -V 2>&1 | sed 5q` in
14730   *Sun\ C*)
14731     # Sun C++ 5.9
14732
14733     # The more standards-conforming stlport4 library is
14734     # incompatible with the Cstd library. Avoid specifying
14735     # it if it's in CXXFLAGS. Ignore libCrun as
14736     # -library=stlport4 depends on it.
14737     case " $CXX $CXXFLAGS " in
14738     *" -library=stlport4 "*)
14739       solaris_use_stlport4=yes
14740       ;;
14741     esac
14742
14743     if test "$solaris_use_stlport4" != yes; then
14744       postdeps_CXX='-library=Cstd -library=Crun'
14745     fi
14746     ;;
14747   esac
14748   ;;
14749
14750 solaris*)
14751   case $cc_basename in
14752   CC* | sunCC*)
14753     # The more standards-conforming stlport4 library is
14754     # incompatible with the Cstd library. Avoid specifying
14755     # it if it's in CXXFLAGS. Ignore libCrun as
14756     # -library=stlport4 depends on it.
14757     case " $CXX $CXXFLAGS " in
14758     *" -library=stlport4 "*)
14759       solaris_use_stlport4=yes
14760       ;;
14761     esac
14762
14763     # Adding this requires a known-good setup of shared libraries for
14764     # Sun compiler versions before 5.6, else PIC objects from an old
14765     # archive will be linked into the output, leading to subtle bugs.
14766     if test "$solaris_use_stlport4" != yes; then
14767       postdeps_CXX='-library=Cstd -library=Crun'
14768     fi
14769     ;;
14770   esac
14771   ;;
14772 esac
14773
14774
14775 case " $postdeps_CXX " in
14776 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14777 esac
14778  compiler_lib_search_dirs_CXX=
14779 if test -n "${compiler_lib_search_path_CXX}"; then
14780  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14781 fi
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813     lt_prog_compiler_wl_CXX=
14814 lt_prog_compiler_pic_CXX=
14815 lt_prog_compiler_static_CXX=
14816
14817
14818   # C++ specific cases for pic, static, wl, etc.
14819   if test "$GXX" = yes; then
14820     lt_prog_compiler_wl_CXX='-Wl,'
14821     lt_prog_compiler_static_CXX='-static'
14822
14823     case $host_os in
14824     aix*)
14825       # All AIX code is PIC.
14826       if test "$host_cpu" = ia64; then
14827         # AIX 5 now supports IA64 processor
14828         lt_prog_compiler_static_CXX='-Bstatic'
14829       fi
14830       ;;
14831
14832     amigaos*)
14833       case $host_cpu in
14834       powerpc)
14835             # see comment about AmigaOS4 .so support
14836             lt_prog_compiler_pic_CXX='-fPIC'
14837         ;;
14838       m68k)
14839             # FIXME: we need at least 68020 code to build shared libraries, but
14840             # adding the `-m68020' flag to GCC prevents building anything better,
14841             # like `-m68040'.
14842             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14843         ;;
14844       esac
14845       ;;
14846
14847     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14848       # PIC is the default for these OSes.
14849       ;;
14850     mingw* | cygwin* | os2* | pw32* | cegcc*)
14851       # This hack is so that the source file can tell whether it is being
14852       # built for inclusion in a dll (and should export symbols for example).
14853       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14854       # (--disable-auto-import) libraries
14855       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14856       ;;
14857     darwin* | rhapsody*)
14858       # PIC is the default on this platform
14859       # Common symbols not allowed in MH_DYLIB files
14860       lt_prog_compiler_pic_CXX='-fno-common'
14861       ;;
14862     *djgpp*)
14863       # DJGPP does not support shared libraries at all
14864       lt_prog_compiler_pic_CXX=
14865       ;;
14866     haiku*)
14867       # PIC is the default for Haiku.
14868       # The "-static" flag exists, but is broken.
14869       lt_prog_compiler_static_CXX=
14870       ;;
14871     interix[3-9]*)
14872       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14873       # Instead, we relocate shared libraries at runtime.
14874       ;;
14875     sysv4*MP*)
14876       if test -d /usr/nec; then
14877         lt_prog_compiler_pic_CXX=-Kconform_pic
14878       fi
14879       ;;
14880     hpux*)
14881       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14882       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14883       # sets the default TLS model and affects inlining.
14884       case $host_cpu in
14885       hppa*64*)
14886         ;;
14887       *)
14888         lt_prog_compiler_pic_CXX='-fPIC'
14889         ;;
14890       esac
14891       ;;
14892     *qnx* | *nto*)
14893       # QNX uses GNU C++, but need to define -shared option too, otherwise
14894       # it will coredump.
14895       lt_prog_compiler_pic_CXX='-fPIC -shared'
14896       ;;
14897     *)
14898       lt_prog_compiler_pic_CXX='-fPIC'
14899       ;;
14900     esac
14901   else
14902     case $host_os in
14903       aix[4-9]*)
14904         # All AIX code is PIC.
14905         if test "$host_cpu" = ia64; then
14906           # AIX 5 now supports IA64 processor
14907           lt_prog_compiler_static_CXX='-Bstatic'
14908         else
14909           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14910         fi
14911         ;;
14912       chorus*)
14913         case $cc_basename in
14914         cxch68*)
14915           # Green Hills C++ Compiler
14916           # _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"
14917           ;;
14918         esac
14919         ;;
14920       mingw* | cygwin* | os2* | pw32* | cegcc*)
14921         # This hack is so that the source file can tell whether it is being
14922         # built for inclusion in a dll (and should export symbols for example).
14923         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14924         ;;
14925       dgux*)
14926         case $cc_basename in
14927           ec++*)
14928             lt_prog_compiler_pic_CXX='-KPIC'
14929             ;;
14930           ghcx*)
14931             # Green Hills C++ Compiler
14932             lt_prog_compiler_pic_CXX='-pic'
14933             ;;
14934           *)
14935             ;;
14936         esac
14937         ;;
14938       freebsd* | dragonfly*)
14939         # FreeBSD uses GNU C++
14940         ;;
14941       hpux9* | hpux10* | hpux11*)
14942         case $cc_basename in
14943           CC*)
14944             lt_prog_compiler_wl_CXX='-Wl,'
14945             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14946             if test "$host_cpu" != ia64; then
14947               lt_prog_compiler_pic_CXX='+Z'
14948             fi
14949             ;;
14950           aCC*)
14951             lt_prog_compiler_wl_CXX='-Wl,'
14952             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14953             case $host_cpu in
14954             hppa*64*|ia64*)
14955               # +Z the default
14956               ;;
14957             *)
14958               lt_prog_compiler_pic_CXX='+Z'
14959               ;;
14960             esac
14961             ;;
14962           *)
14963             ;;
14964         esac
14965         ;;
14966       interix*)
14967         # This is c89, which is MS Visual C++ (no shared libs)
14968         # Anyone wants to do a port?
14969         ;;
14970       irix5* | irix6* | nonstopux*)
14971         case $cc_basename in
14972           CC*)
14973             lt_prog_compiler_wl_CXX='-Wl,'
14974             lt_prog_compiler_static_CXX='-non_shared'
14975             # CC pic flag -KPIC is the default.
14976             ;;
14977           *)
14978             ;;
14979         esac
14980         ;;
14981       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14982         case $cc_basename in
14983           KCC*)
14984             # KAI C++ Compiler
14985             lt_prog_compiler_wl_CXX='--backend -Wl,'
14986             lt_prog_compiler_pic_CXX='-fPIC'
14987             ;;
14988           ecpc* )
14989             # old Intel C++ for x86_64 which still supported -KPIC.
14990             lt_prog_compiler_wl_CXX='-Wl,'
14991             lt_prog_compiler_pic_CXX='-KPIC'
14992             lt_prog_compiler_static_CXX='-static'
14993             ;;
14994           icpc* )
14995             # Intel C++, used to be incompatible with GCC.
14996             # ICC 10 doesn't accept -KPIC any more.
14997             lt_prog_compiler_wl_CXX='-Wl,'
14998             lt_prog_compiler_pic_CXX='-fPIC'
14999             lt_prog_compiler_static_CXX='-static'
15000             ;;
15001           pgCC* | pgcpp*)
15002             # Portland Group C++ compiler
15003             lt_prog_compiler_wl_CXX='-Wl,'
15004             lt_prog_compiler_pic_CXX='-fpic'
15005             lt_prog_compiler_static_CXX='-Bstatic'
15006             ;;
15007           cxx*)
15008             # Compaq C++
15009             # Make sure the PIC flag is empty.  It appears that all Alpha
15010             # Linux and Compaq Tru64 Unix objects are PIC.
15011             lt_prog_compiler_pic_CXX=
15012             lt_prog_compiler_static_CXX='-non_shared'
15013             ;;
15014           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15015             # IBM XL 8.0, 9.0 on PPC and BlueGene
15016             lt_prog_compiler_wl_CXX='-Wl,'
15017             lt_prog_compiler_pic_CXX='-qpic'
15018             lt_prog_compiler_static_CXX='-qstaticlink'
15019             ;;
15020           *)
15021             case `$CC -V 2>&1 | sed 5q` in
15022             *Sun\ C*)
15023               # Sun C++ 5.9
15024               lt_prog_compiler_pic_CXX='-KPIC'
15025               lt_prog_compiler_static_CXX='-Bstatic'
15026               lt_prog_compiler_wl_CXX='-Qoption ld '
15027               ;;
15028             esac
15029             ;;
15030         esac
15031         ;;
15032       lynxos*)
15033         ;;
15034       m88k*)
15035         ;;
15036       mvs*)
15037         case $cc_basename in
15038           cxx*)
15039             lt_prog_compiler_pic_CXX='-W c,exportall'
15040             ;;
15041           *)
15042             ;;
15043         esac
15044         ;;
15045       netbsd* | netbsdelf*-gnu)
15046         ;;
15047       *qnx* | *nto*)
15048         # QNX uses GNU C++, but need to define -shared option too, otherwise
15049         # it will coredump.
15050         lt_prog_compiler_pic_CXX='-fPIC -shared'
15051         ;;
15052       osf3* | osf4* | osf5*)
15053         case $cc_basename in
15054           KCC*)
15055             lt_prog_compiler_wl_CXX='--backend -Wl,'
15056             ;;
15057           RCC*)
15058             # Rational C++ 2.4.1
15059             lt_prog_compiler_pic_CXX='-pic'
15060             ;;
15061           cxx*)
15062             # Digital/Compaq C++
15063             lt_prog_compiler_wl_CXX='-Wl,'
15064             # Make sure the PIC flag is empty.  It appears that all Alpha
15065             # Linux and Compaq Tru64 Unix objects are PIC.
15066             lt_prog_compiler_pic_CXX=
15067             lt_prog_compiler_static_CXX='-non_shared'
15068             ;;
15069           *)
15070             ;;
15071         esac
15072         ;;
15073       psos*)
15074         ;;
15075       solaris*)
15076         case $cc_basename in
15077           CC* | sunCC*)
15078             # Sun C++ 4.2, 5.x and Centerline C++
15079             lt_prog_compiler_pic_CXX='-KPIC'
15080             lt_prog_compiler_static_CXX='-Bstatic'
15081             lt_prog_compiler_wl_CXX='-Qoption ld '
15082             ;;
15083           gcx*)
15084             # Green Hills C++ Compiler
15085             lt_prog_compiler_pic_CXX='-PIC'
15086             ;;
15087           *)
15088             ;;
15089         esac
15090         ;;
15091       sunos4*)
15092         case $cc_basename in
15093           CC*)
15094             # Sun C++ 4.x
15095             lt_prog_compiler_pic_CXX='-pic'
15096             lt_prog_compiler_static_CXX='-Bstatic'
15097             ;;
15098           lcc*)
15099             # Lucid
15100             lt_prog_compiler_pic_CXX='-pic'
15101             ;;
15102           *)
15103             ;;
15104         esac
15105         ;;
15106       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15107         case $cc_basename in
15108           CC*)
15109             lt_prog_compiler_wl_CXX='-Wl,'
15110             lt_prog_compiler_pic_CXX='-KPIC'
15111             lt_prog_compiler_static_CXX='-Bstatic'
15112             ;;
15113         esac
15114         ;;
15115       tandem*)
15116         case $cc_basename in
15117           NCC*)
15118             # NonStop-UX NCC 3.20
15119             lt_prog_compiler_pic_CXX='-KPIC'
15120             ;;
15121           *)
15122             ;;
15123         esac
15124         ;;
15125       vxworks*)
15126         ;;
15127       *)
15128         lt_prog_compiler_can_build_shared_CXX=no
15129         ;;
15130     esac
15131   fi
15132
15133 case $host_os in
15134   # For platforms which do not support PIC, -DPIC is meaningless:
15135   *djgpp*)
15136     lt_prog_compiler_pic_CXX=
15137     ;;
15138   *)
15139     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15140     ;;
15141 esac
15142
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15145 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15146   $as_echo_n "(cached) " >&6
15147 else
15148   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15149 fi
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15151 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15152 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15153
15154 #
15155 # Check to make sure the PIC flag actually works.
15156 #
15157 if test -n "$lt_prog_compiler_pic_CXX"; then
15158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15159 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15160 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15161   $as_echo_n "(cached) " >&6
15162 else
15163   lt_cv_prog_compiler_pic_works_CXX=no
15164    ac_outfile=conftest.$ac_objext
15165    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15166    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15167    # Insert the option either (1) after the last *FLAGS variable, or
15168    # (2) before a word containing "conftest.", or (3) at the end.
15169    # Note that $ac_compile itself does not contain backslashes and begins
15170    # with a dollar sign (not a hyphen), so the echo should work correctly.
15171    # The option is referenced via a variable to avoid confusing sed.
15172    lt_compile=`echo "$ac_compile" | $SED \
15173    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15174    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15175    -e 's:$: $lt_compiler_flag:'`
15176    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15177    (eval "$lt_compile" 2>conftest.err)
15178    ac_status=$?
15179    cat conftest.err >&5
15180    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15181    if (exit $ac_status) && test -s "$ac_outfile"; then
15182      # The compiler can only warn and ignore the option if not recognized
15183      # So say no if there are warnings other than the usual output.
15184      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15185      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15186      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15187        lt_cv_prog_compiler_pic_works_CXX=yes
15188      fi
15189    fi
15190    $RM conftest*
15191
15192 fi
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15194 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15195
15196 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15197     case $lt_prog_compiler_pic_CXX in
15198      "" | " "*) ;;
15199      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15200      esac
15201 else
15202     lt_prog_compiler_pic_CXX=
15203      lt_prog_compiler_can_build_shared_CXX=no
15204 fi
15205
15206 fi
15207
15208
15209
15210
15211
15212 #
15213 # Check to make sure the static flag actually works.
15214 #
15215 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15217 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15218 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15219   $as_echo_n "(cached) " >&6
15220 else
15221   lt_cv_prog_compiler_static_works_CXX=no
15222    save_LDFLAGS="$LDFLAGS"
15223    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15224    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15225    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15226      # The linker can only warn and ignore the option if not recognized
15227      # So say no if there are warnings
15228      if test -s conftest.err; then
15229        # Append any errors to the config.log.
15230        cat conftest.err 1>&5
15231        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15232        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15233        if diff conftest.exp conftest.er2 >/dev/null; then
15234          lt_cv_prog_compiler_static_works_CXX=yes
15235        fi
15236      else
15237        lt_cv_prog_compiler_static_works_CXX=yes
15238      fi
15239    fi
15240    $RM -r conftest*
15241    LDFLAGS="$save_LDFLAGS"
15242
15243 fi
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15245 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15246
15247 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15248     :
15249 else
15250     lt_prog_compiler_static_CXX=
15251 fi
15252
15253
15254
15255
15256     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15257 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15258 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15259   $as_echo_n "(cached) " >&6
15260 else
15261   lt_cv_prog_compiler_c_o_CXX=no
15262    $RM -r conftest 2>/dev/null
15263    mkdir conftest
15264    cd conftest
15265    mkdir out
15266    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15267
15268    lt_compiler_flag="-o out/conftest2.$ac_objext"
15269    # Insert the option either (1) after the last *FLAGS variable, or
15270    # (2) before a word containing "conftest.", or (3) at the end.
15271    # Note that $ac_compile itself does not contain backslashes and begins
15272    # with a dollar sign (not a hyphen), so the echo should work correctly.
15273    lt_compile=`echo "$ac_compile" | $SED \
15274    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15275    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15276    -e 's:$: $lt_compiler_flag:'`
15277    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15278    (eval "$lt_compile" 2>out/conftest.err)
15279    ac_status=$?
15280    cat out/conftest.err >&5
15281    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15282    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15283    then
15284      # The compiler can only warn and ignore the option if not recognized
15285      # So say no if there are warnings
15286      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15287      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15288      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15289        lt_cv_prog_compiler_c_o_CXX=yes
15290      fi
15291    fi
15292    chmod u+w . 2>&5
15293    $RM conftest*
15294    # SGI C++ compiler will create directory out/ii_files/ for
15295    # template instantiation
15296    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15297    $RM out/* && rmdir out
15298    cd ..
15299    $RM -r conftest
15300    $RM conftest*
15301
15302 fi
15303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15304 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15305
15306
15307
15308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15310 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15311   $as_echo_n "(cached) " >&6
15312 else
15313   lt_cv_prog_compiler_c_o_CXX=no
15314    $RM -r conftest 2>/dev/null
15315    mkdir conftest
15316    cd conftest
15317    mkdir out
15318    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15319
15320    lt_compiler_flag="-o out/conftest2.$ac_objext"
15321    # Insert the option either (1) after the last *FLAGS variable, or
15322    # (2) before a word containing "conftest.", or (3) at the end.
15323    # Note that $ac_compile itself does not contain backslashes and begins
15324    # with a dollar sign (not a hyphen), so the echo should work correctly.
15325    lt_compile=`echo "$ac_compile" | $SED \
15326    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15327    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15328    -e 's:$: $lt_compiler_flag:'`
15329    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15330    (eval "$lt_compile" 2>out/conftest.err)
15331    ac_status=$?
15332    cat out/conftest.err >&5
15333    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15334    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15335    then
15336      # The compiler can only warn and ignore the option if not recognized
15337      # So say no if there are warnings
15338      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15339      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15340      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15341        lt_cv_prog_compiler_c_o_CXX=yes
15342      fi
15343    fi
15344    chmod u+w . 2>&5
15345    $RM conftest*
15346    # SGI C++ compiler will create directory out/ii_files/ for
15347    # template instantiation
15348    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15349    $RM out/* && rmdir out
15350    cd ..
15351    $RM -r conftest
15352    $RM conftest*
15353
15354 fi
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15356 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15357
15358
15359
15360
15361 hard_links="nottested"
15362 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15363   # do not overwrite the value of need_locks provided by the user
15364   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15365 $as_echo_n "checking if we can lock with hard links... " >&6; }
15366   hard_links=yes
15367   $RM conftest*
15368   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15369   touch conftest.a
15370   ln conftest.a conftest.b 2>&5 || hard_links=no
15371   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15372   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15373 $as_echo "$hard_links" >&6; }
15374   if test "$hard_links" = no; then
15375     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15377     need_locks=warn
15378   fi
15379 else
15380   need_locks=no
15381 fi
15382
15383
15384
15385     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15386 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15387
15388   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15389   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15390   case $host_os in
15391   aix[4-9]*)
15392     # If we're using GNU nm, then we don't want the "-C" option.
15393     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15394     # Also, AIX nm treats weak defined symbols like other global defined
15395     # symbols, whereas GNU nm marks them as "W".
15396     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15397       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'
15398     else
15399       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'
15400     fi
15401     ;;
15402   pw32*)
15403     export_symbols_cmds_CXX="$ltdll_cmds"
15404     ;;
15405   cygwin* | mingw* | cegcc*)
15406     case $cc_basename in
15407     cl*)
15408       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15409       ;;
15410     *)
15411       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'
15412       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15413       ;;
15414     esac
15415     ;;
15416   linux* | k*bsd*-gnu | gnu*)
15417     link_all_deplibs_CXX=no
15418     ;;
15419   *)
15420     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15421     ;;
15422   esac
15423
15424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15425 $as_echo "$ld_shlibs_CXX" >&6; }
15426 test "$ld_shlibs_CXX" = no && can_build_shared=no
15427
15428 with_gnu_ld_CXX=$with_gnu_ld
15429
15430
15431
15432
15433
15434
15435 #
15436 # Do we need to explicitly link libc?
15437 #
15438 case "x$archive_cmds_need_lc_CXX" in
15439 x|xyes)
15440   # Assume -lc should be added
15441   archive_cmds_need_lc_CXX=yes
15442
15443   if test "$enable_shared" = yes && test "$GCC" = yes; then
15444     case $archive_cmds_CXX in
15445     *'~'*)
15446       # FIXME: we may have to deal with multi-command sequences.
15447       ;;
15448     '$CC '*)
15449       # Test whether the compiler implicitly links with -lc since on some
15450       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15451       # to ld, don't add -lc before -lgcc.
15452       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15453 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15454 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15455   $as_echo_n "(cached) " >&6
15456 else
15457   $RM conftest*
15458         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15459
15460         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15461   (eval $ac_compile) 2>&5
15462   ac_status=$?
15463   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15464   test $ac_status = 0; } 2>conftest.err; then
15465           soname=conftest
15466           lib=conftest
15467           libobjs=conftest.$ac_objext
15468           deplibs=
15469           wl=$lt_prog_compiler_wl_CXX
15470           pic_flag=$lt_prog_compiler_pic_CXX
15471           compiler_flags=-v
15472           linker_flags=-v
15473           verstring=
15474           output_objdir=.
15475           libname=conftest
15476           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15477           allow_undefined_flag_CXX=
15478           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15479   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15480   ac_status=$?
15481   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15482   test $ac_status = 0; }
15483           then
15484             lt_cv_archive_cmds_need_lc_CXX=no
15485           else
15486             lt_cv_archive_cmds_need_lc_CXX=yes
15487           fi
15488           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15489         else
15490           cat conftest.err 1>&5
15491         fi
15492         $RM conftest*
15493
15494 fi
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15496 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15497       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15498       ;;
15499     esac
15500   fi
15501   ;;
15502 esac
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15566 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15567
15568 library_names_spec=
15569 libname_spec='lib$name'
15570 soname_spec=
15571 shrext_cmds=".so"
15572 postinstall_cmds=
15573 postuninstall_cmds=
15574 finish_cmds=
15575 finish_eval=
15576 shlibpath_var=
15577 shlibpath_overrides_runpath=unknown
15578 version_type=none
15579 dynamic_linker="$host_os ld.so"
15580 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15581 need_lib_prefix=unknown
15582 hardcode_into_libs=no
15583
15584 # when you set need_version to no, make sure it does not cause -set_version
15585 # flags to be left without arguments
15586 need_version=unknown
15587
15588 case $host_os in
15589 aix3*)
15590   version_type=linux # correct to gnu/linux during the next big refactor
15591   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15592   shlibpath_var=LIBPATH
15593
15594   # AIX 3 has no versioning support, so we append a major version to the name.
15595   soname_spec='${libname}${release}${shared_ext}$major'
15596   ;;
15597
15598 aix[4-9]*)
15599   version_type=linux # correct to gnu/linux during the next big refactor
15600   need_lib_prefix=no
15601   need_version=no
15602   hardcode_into_libs=yes
15603   if test "$host_cpu" = ia64; then
15604     # AIX 5 supports IA64
15605     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15606     shlibpath_var=LD_LIBRARY_PATH
15607   else
15608     # With GCC up to 2.95.x, collect2 would create an import file
15609     # for dependence libraries.  The import file would start with
15610     # the line `#! .'.  This would cause the generated library to
15611     # depend on `.', always an invalid library.  This was fixed in
15612     # development snapshots of GCC prior to 3.0.
15613     case $host_os in
15614       aix4 | aix4.[01] | aix4.[01].*)
15615       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15616            echo ' yes '
15617            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15618         :
15619       else
15620         can_build_shared=no
15621       fi
15622       ;;
15623     esac
15624     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15625     # soname into executable. Probably we can add versioning support to
15626     # collect2, so additional links can be useful in future.
15627     if test "$aix_use_runtimelinking" = yes; then
15628       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15629       # instead of lib<name>.a to let people know that these are not
15630       # typical AIX shared libraries.
15631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15632     else
15633       # We preserve .a as extension for shared libraries through AIX4.2
15634       # and later when we are not doing run time linking.
15635       library_names_spec='${libname}${release}.a $libname.a'
15636       soname_spec='${libname}${release}${shared_ext}$major'
15637     fi
15638     shlibpath_var=LIBPATH
15639   fi
15640   ;;
15641
15642 amigaos*)
15643   case $host_cpu in
15644   powerpc)
15645     # Since July 2007 AmigaOS4 officially supports .so libraries.
15646     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15647     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648     ;;
15649   m68k)
15650     library_names_spec='$libname.ixlibrary $libname.a'
15651     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15652     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'
15653     ;;
15654   esac
15655   ;;
15656
15657 beos*)
15658   library_names_spec='${libname}${shared_ext}'
15659   dynamic_linker="$host_os ld.so"
15660   shlibpath_var=LIBRARY_PATH
15661   ;;
15662
15663 bsdi[45]*)
15664   version_type=linux # correct to gnu/linux during the next big refactor
15665   need_version=no
15666   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15667   soname_spec='${libname}${release}${shared_ext}$major'
15668   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15669   shlibpath_var=LD_LIBRARY_PATH
15670   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15671   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15672   # the default ld.so.conf also contains /usr/contrib/lib and
15673   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15674   # libtool to hard-code these into programs
15675   ;;
15676
15677 cygwin* | mingw* | pw32* | cegcc*)
15678   version_type=windows
15679   shrext_cmds=".dll"
15680   need_version=no
15681   need_lib_prefix=no
15682
15683   case $GCC,$cc_basename in
15684   yes,*)
15685     # gcc
15686     library_names_spec='$libname.dll.a'
15687     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15688     postinstall_cmds='base_file=`basename \${file}`~
15689       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15690       dldir=$destdir/`dirname \$dlpath`~
15691       test -d \$dldir || mkdir -p \$dldir~
15692       $install_prog $dir/$dlname \$dldir/$dlname~
15693       chmod a+x \$dldir/$dlname~
15694       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15695         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15696       fi'
15697     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15698       dlpath=$dir/\$dldll~
15699        $RM \$dlpath'
15700     shlibpath_overrides_runpath=yes
15701
15702     case $host_os in
15703     cygwin*)
15704       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15705       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15706
15707       ;;
15708     mingw* | cegcc*)
15709       # MinGW DLLs use traditional 'lib' prefix
15710       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15711       ;;
15712     pw32*)
15713       # pw32 DLLs use 'pw' prefix rather than 'lib'
15714       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15715       ;;
15716     esac
15717     dynamic_linker='Win32 ld.exe'
15718     ;;
15719
15720   *,cl*)
15721     # Native MSVC
15722     libname_spec='$name'
15723     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15724     library_names_spec='${libname}.dll.lib'
15725
15726     case $build_os in
15727     mingw*)
15728       sys_lib_search_path_spec=
15729       lt_save_ifs=$IFS
15730       IFS=';'
15731       for lt_path in $LIB
15732       do
15733         IFS=$lt_save_ifs
15734         # Let DOS variable expansion print the short 8.3 style file name.
15735         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15736         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15737       done
15738       IFS=$lt_save_ifs
15739       # Convert to MSYS style.
15740       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15741       ;;
15742     cygwin*)
15743       # Convert to unix form, then to dos form, then back to unix form
15744       # but this time dos style (no spaces!) so that the unix form looks
15745       # like /cygdrive/c/PROGRA~1:/cygdr...
15746       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15747       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15748       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15749       ;;
15750     *)
15751       sys_lib_search_path_spec="$LIB"
15752       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15753         # It is most probably a Windows format PATH.
15754         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15755       else
15756         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15757       fi
15758       # FIXME: find the short name or the path components, as spaces are
15759       # common. (e.g. "Program Files" -> "PROGRA~1")
15760       ;;
15761     esac
15762
15763     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15764     postinstall_cmds='base_file=`basename \${file}`~
15765       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15766       dldir=$destdir/`dirname \$dlpath`~
15767       test -d \$dldir || mkdir -p \$dldir~
15768       $install_prog $dir/$dlname \$dldir/$dlname'
15769     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15770       dlpath=$dir/\$dldll~
15771        $RM \$dlpath'
15772     shlibpath_overrides_runpath=yes
15773     dynamic_linker='Win32 link.exe'
15774     ;;
15775
15776   *)
15777     # Assume MSVC wrapper
15778     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15779     dynamic_linker='Win32 ld.exe'
15780     ;;
15781   esac
15782   # FIXME: first we should search . and the directory the executable is in
15783   shlibpath_var=PATH
15784   ;;
15785
15786 darwin* | rhapsody*)
15787   dynamic_linker="$host_os dyld"
15788   version_type=darwin
15789   need_lib_prefix=no
15790   need_version=no
15791   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15792   soname_spec='${libname}${release}${major}$shared_ext'
15793   shlibpath_overrides_runpath=yes
15794   shlibpath_var=DYLD_LIBRARY_PATH
15795   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15796
15797   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15798   ;;
15799
15800 dgux*)
15801   version_type=linux # correct to gnu/linux during the next big refactor
15802   need_lib_prefix=no
15803   need_version=no
15804   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15805   soname_spec='${libname}${release}${shared_ext}$major'
15806   shlibpath_var=LD_LIBRARY_PATH
15807   ;;
15808
15809 freebsd* | dragonfly*)
15810   # DragonFly does not have aout.  When/if they implement a new
15811   # versioning mechanism, adjust this.
15812   if test -x /usr/bin/objformat; then
15813     objformat=`/usr/bin/objformat`
15814   else
15815     case $host_os in
15816     freebsd[23].*) objformat=aout ;;
15817     *) objformat=elf ;;
15818     esac
15819   fi
15820   version_type=freebsd-$objformat
15821   case $version_type in
15822     freebsd-elf*)
15823       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15824       need_version=no
15825       need_lib_prefix=no
15826       ;;
15827     freebsd-*)
15828       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15829       need_version=yes
15830       ;;
15831   esac
15832   shlibpath_var=LD_LIBRARY_PATH
15833   case $host_os in
15834   freebsd2.*)
15835     shlibpath_overrides_runpath=yes
15836     ;;
15837   freebsd3.[01]* | freebsdelf3.[01]*)
15838     shlibpath_overrides_runpath=yes
15839     hardcode_into_libs=yes
15840     ;;
15841   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15842   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15843     shlibpath_overrides_runpath=no
15844     hardcode_into_libs=yes
15845     ;;
15846   *) # from 4.6 on, and DragonFly
15847     shlibpath_overrides_runpath=yes
15848     hardcode_into_libs=yes
15849     ;;
15850   esac
15851   ;;
15852
15853 haiku*)
15854   version_type=linux # correct to gnu/linux during the next big refactor
15855   need_lib_prefix=no
15856   need_version=no
15857   dynamic_linker="$host_os runtime_loader"
15858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15859   soname_spec='${libname}${release}${shared_ext}$major'
15860   shlibpath_var=LIBRARY_PATH
15861   shlibpath_overrides_runpath=yes
15862   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15863   hardcode_into_libs=yes
15864   ;;
15865
15866 hpux9* | hpux10* | hpux11*)
15867   # Give a soname corresponding to the major version so that dld.sl refuses to
15868   # link against other versions.
15869   version_type=sunos
15870   need_lib_prefix=no
15871   need_version=no
15872   case $host_cpu in
15873   ia64*)
15874     shrext_cmds='.so'
15875     hardcode_into_libs=yes
15876     dynamic_linker="$host_os dld.so"
15877     shlibpath_var=LD_LIBRARY_PATH
15878     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15879     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15880     soname_spec='${libname}${release}${shared_ext}$major'
15881     if test "X$HPUX_IA64_MODE" = X32; then
15882       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15883     else
15884       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15885     fi
15886     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15887     ;;
15888   hppa*64*)
15889     shrext_cmds='.sl'
15890     hardcode_into_libs=yes
15891     dynamic_linker="$host_os dld.sl"
15892     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15893     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15894     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15895     soname_spec='${libname}${release}${shared_ext}$major'
15896     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15897     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15898     ;;
15899   *)
15900     shrext_cmds='.sl'
15901     dynamic_linker="$host_os dld.sl"
15902     shlibpath_var=SHLIB_PATH
15903     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15904     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905     soname_spec='${libname}${release}${shared_ext}$major'
15906     ;;
15907   esac
15908   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15909   postinstall_cmds='chmod 555 $lib'
15910   # or fails outright, so override atomically:
15911   install_override_mode=555
15912   ;;
15913
15914 interix[3-9]*)
15915   version_type=linux # correct to gnu/linux during the next big refactor
15916   need_lib_prefix=no
15917   need_version=no
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   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15921   shlibpath_var=LD_LIBRARY_PATH
15922   shlibpath_overrides_runpath=no
15923   hardcode_into_libs=yes
15924   ;;
15925
15926 irix5* | irix6* | nonstopux*)
15927   case $host_os in
15928     nonstopux*) version_type=nonstopux ;;
15929     *)
15930         if test "$lt_cv_prog_gnu_ld" = yes; then
15931                 version_type=linux # correct to gnu/linux during the next big refactor
15932         else
15933                 version_type=irix
15934         fi ;;
15935   esac
15936   need_lib_prefix=no
15937   need_version=no
15938   soname_spec='${libname}${release}${shared_ext}$major'
15939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15940   case $host_os in
15941   irix5* | nonstopux*)
15942     libsuff= shlibsuff=
15943     ;;
15944   *)
15945     case $LD in # libtool.m4 will add one of these switches to LD
15946     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15947       libsuff= shlibsuff= libmagic=32-bit;;
15948     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15949       libsuff=32 shlibsuff=N32 libmagic=N32;;
15950     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15951       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15952     *) libsuff= shlibsuff= libmagic=never-match;;
15953     esac
15954     ;;
15955   esac
15956   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15957   shlibpath_overrides_runpath=no
15958   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15959   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15960   hardcode_into_libs=yes
15961   ;;
15962
15963 # No shared lib support for Linux oldld, aout, or coff.
15964 linux*oldld* | linux*aout* | linux*coff*)
15965   dynamic_linker=no
15966   ;;
15967
15968 # This must be glibc/ELF.
15969 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15970   version_type=linux # correct to gnu/linux during the next big refactor
15971   need_lib_prefix=no
15972   need_version=no
15973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974   soname_spec='${libname}${release}${shared_ext}$major'
15975   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15976   shlibpath_var=LD_LIBRARY_PATH
15977   shlibpath_overrides_runpath=no
15978
15979   # Some binutils ld are patched to set DT_RUNPATH
15980   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15981   $as_echo_n "(cached) " >&6
15982 else
15983   lt_cv_shlibpath_overrides_runpath=no
15984     save_LDFLAGS=$LDFLAGS
15985     save_libdir=$libdir
15986     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15987          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15988     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15989 /* end confdefs.h.  */
15990
15991 int
15992 main ()
15993 {
15994
15995   ;
15996   return 0;
15997 }
15998 _ACEOF
15999 if ac_fn_cxx_try_link "$LINENO"; then :
16000   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16001   lt_cv_shlibpath_overrides_runpath=yes
16002 fi
16003 fi
16004 rm -f core conftest.err conftest.$ac_objext \
16005     conftest$ac_exeext conftest.$ac_ext
16006     LDFLAGS=$save_LDFLAGS
16007     libdir=$save_libdir
16008
16009 fi
16010
16011   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16012
16013   # This implies no fast_install, which is unacceptable.
16014   # Some rework will be needed to allow for fast_install
16015   # before this can be enabled.
16016   hardcode_into_libs=yes
16017
16018   # Append ld.so.conf contents to the search path
16019   if test -f /etc/ld.so.conf; then
16020     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' ' '`
16021     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16022   fi
16023
16024   # We used to test for /lib/ld.so.1 and disable shared libraries on
16025   # powerpc, because MkLinux only supported shared libraries with the
16026   # GNU dynamic linker.  Since this was broken with cross compilers,
16027   # most powerpc-linux boxes support dynamic linking these days and
16028   # people can always --disable-shared, the test was removed, and we
16029   # assume the GNU/Linux dynamic linker is in use.
16030   dynamic_linker='GNU/Linux ld.so'
16031   ;;
16032
16033 netbsdelf*-gnu)
16034   version_type=linux
16035   need_lib_prefix=no
16036   need_version=no
16037   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16038   soname_spec='${libname}${release}${shared_ext}$major'
16039   shlibpath_var=LD_LIBRARY_PATH
16040   shlibpath_overrides_runpath=no
16041   hardcode_into_libs=yes
16042   dynamic_linker='NetBSD ld.elf_so'
16043   ;;
16044
16045 netbsd*)
16046   version_type=sunos
16047   need_lib_prefix=no
16048   need_version=no
16049   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16050     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16051     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16052     dynamic_linker='NetBSD (a.out) ld.so'
16053   else
16054     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16055     soname_spec='${libname}${release}${shared_ext}$major'
16056     dynamic_linker='NetBSD ld.elf_so'
16057   fi
16058   shlibpath_var=LD_LIBRARY_PATH
16059   shlibpath_overrides_runpath=yes
16060   hardcode_into_libs=yes
16061   ;;
16062
16063 newsos6)
16064   version_type=linux # correct to gnu/linux during the next big refactor
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16066   shlibpath_var=LD_LIBRARY_PATH
16067   shlibpath_overrides_runpath=yes
16068   ;;
16069
16070 *nto* | *qnx*)
16071   version_type=qnx
16072   need_lib_prefix=no
16073   need_version=no
16074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16075   soname_spec='${libname}${release}${shared_ext}$major'
16076   shlibpath_var=LD_LIBRARY_PATH
16077   shlibpath_overrides_runpath=no
16078   hardcode_into_libs=yes
16079   dynamic_linker='ldqnx.so'
16080   ;;
16081
16082 openbsd*)
16083   version_type=sunos
16084   sys_lib_dlsearch_path_spec="/usr/lib"
16085   need_lib_prefix=no
16086   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16087   case $host_os in
16088     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16089     *)                          need_version=no  ;;
16090   esac
16091   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16093   shlibpath_var=LD_LIBRARY_PATH
16094   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16095     case $host_os in
16096       openbsd2.[89] | openbsd2.[89].*)
16097         shlibpath_overrides_runpath=no
16098         ;;
16099       *)
16100         shlibpath_overrides_runpath=yes
16101         ;;
16102       esac
16103   else
16104     shlibpath_overrides_runpath=yes
16105   fi
16106   ;;
16107
16108 os2*)
16109   libname_spec='$name'
16110   shrext_cmds=".dll"
16111   need_lib_prefix=no
16112   library_names_spec='$libname${shared_ext} $libname.a'
16113   dynamic_linker='OS/2 ld.exe'
16114   shlibpath_var=LIBPATH
16115   ;;
16116
16117 osf3* | osf4* | osf5*)
16118   version_type=osf
16119   need_lib_prefix=no
16120   need_version=no
16121   soname_spec='${libname}${release}${shared_ext}$major'
16122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16123   shlibpath_var=LD_LIBRARY_PATH
16124   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16125   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16126   ;;
16127
16128 rdos*)
16129   dynamic_linker=no
16130   ;;
16131
16132 solaris*)
16133   version_type=linux # correct to gnu/linux during the next big refactor
16134   need_lib_prefix=no
16135   need_version=no
16136   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16137   soname_spec='${libname}${release}${shared_ext}$major'
16138   shlibpath_var=LD_LIBRARY_PATH
16139   shlibpath_overrides_runpath=yes
16140   hardcode_into_libs=yes
16141   # ldd complains unless libraries are executable
16142   postinstall_cmds='chmod +x $lib'
16143   ;;
16144
16145 sunos4*)
16146   version_type=sunos
16147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16148   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16149   shlibpath_var=LD_LIBRARY_PATH
16150   shlibpath_overrides_runpath=yes
16151   if test "$with_gnu_ld" = yes; then
16152     need_lib_prefix=no
16153   fi
16154   need_version=yes
16155   ;;
16156
16157 sysv4 | sysv4.3*)
16158   version_type=linux # correct to gnu/linux during the next big refactor
16159   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160   soname_spec='${libname}${release}${shared_ext}$major'
16161   shlibpath_var=LD_LIBRARY_PATH
16162   case $host_vendor in
16163     sni)
16164       shlibpath_overrides_runpath=no
16165       need_lib_prefix=no
16166       runpath_var=LD_RUN_PATH
16167       ;;
16168     siemens)
16169       need_lib_prefix=no
16170       ;;
16171     motorola)
16172       need_lib_prefix=no
16173       need_version=no
16174       shlibpath_overrides_runpath=no
16175       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16176       ;;
16177   esac
16178   ;;
16179
16180 sysv4*MP*)
16181   if test -d /usr/nec ;then
16182     version_type=linux # correct to gnu/linux during the next big refactor
16183     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16184     soname_spec='$libname${shared_ext}.$major'
16185     shlibpath_var=LD_LIBRARY_PATH
16186   fi
16187   ;;
16188
16189 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16190   version_type=freebsd-elf
16191   need_lib_prefix=no
16192   need_version=no
16193   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16194   soname_spec='${libname}${release}${shared_ext}$major'
16195   shlibpath_var=LD_LIBRARY_PATH
16196   shlibpath_overrides_runpath=yes
16197   hardcode_into_libs=yes
16198   if test "$with_gnu_ld" = yes; then
16199     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16200   else
16201     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16202     case $host_os in
16203       sco3.2v5*)
16204         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16205         ;;
16206     esac
16207   fi
16208   sys_lib_dlsearch_path_spec='/usr/lib'
16209   ;;
16210
16211 tpf*)
16212   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16213   version_type=linux # correct to gnu/linux during the next big refactor
16214   need_lib_prefix=no
16215   need_version=no
16216   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16217   shlibpath_var=LD_LIBRARY_PATH
16218   shlibpath_overrides_runpath=no
16219   hardcode_into_libs=yes
16220   ;;
16221
16222 uts4*)
16223   version_type=linux # correct to gnu/linux during the next big refactor
16224   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16225   soname_spec='${libname}${release}${shared_ext}$major'
16226   shlibpath_var=LD_LIBRARY_PATH
16227   ;;
16228
16229 *)
16230   dynamic_linker=no
16231   ;;
16232 esac
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16234 $as_echo "$dynamic_linker" >&6; }
16235 test "$dynamic_linker" = no && can_build_shared=no
16236
16237 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16238 if test "$GCC" = yes; then
16239   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16240 fi
16241
16242 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16243   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16244 fi
16245 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16246   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16247 fi
16248
16249
16250
16251
16252
16253
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284
16285
16286     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16287 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16288 hardcode_action_CXX=
16289 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16290    test -n "$runpath_var_CXX" ||
16291    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16292
16293   # We can hardcode non-existent directories.
16294   if test "$hardcode_direct_CXX" != no &&
16295      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16296      # have to relink, otherwise we might link with an installed library
16297      # when we should be linking with a yet-to-be-installed one
16298      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16299      test "$hardcode_minus_L_CXX" != no; then
16300     # Linking always hardcodes the temporary library directory.
16301     hardcode_action_CXX=relink
16302   else
16303     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16304     hardcode_action_CXX=immediate
16305   fi
16306 else
16307   # We cannot hardcode anything, or else we can only hardcode existing
16308   # directories.
16309   hardcode_action_CXX=unsupported
16310 fi
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16312 $as_echo "$hardcode_action_CXX" >&6; }
16313
16314 if test "$hardcode_action_CXX" = relink ||
16315    test "$inherit_rpath_CXX" = yes; then
16316   # Fast installation is not supported
16317   enable_fast_install=no
16318 elif test "$shlibpath_overrides_runpath" = yes ||
16319      test "$enable_shared" = no; then
16320   # Fast installation is not necessary
16321   enable_fast_install=needless
16322 fi
16323
16324
16325
16326
16327
16328
16329
16330   fi # test -n "$compiler"
16331
16332   CC=$lt_save_CC
16333   CFLAGS=$lt_save_CFLAGS
16334   LDCXX=$LD
16335   LD=$lt_save_LD
16336   GCC=$lt_save_GCC
16337   with_gnu_ld=$lt_save_with_gnu_ld
16338   lt_cv_path_LDCXX=$lt_cv_path_LD
16339   lt_cv_path_LD=$lt_save_path_LD
16340   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16341   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16342 fi # test "$_lt_caught_CXX_error" != yes
16343
16344 ac_ext=c
16345 ac_cpp='$CPP $CPPFLAGS'
16346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364         ac_config_commands="$ac_config_commands libtool"
16365
16366
16367
16368
16369 # Only expand once:
16370
16371
16372
16373 LT_DLLOADERS=
16374
16375
16376 ac_ext=c
16377 ac_cpp='$CPP $CPPFLAGS'
16378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16381
16382
16383 LIBADD_DLOPEN=
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16385 $as_echo_n "checking for library containing dlopen... " >&6; }
16386 if ${ac_cv_search_dlopen+:} false; then :
16387   $as_echo_n "(cached) " >&6
16388 else
16389   ac_func_search_save_LIBS=$LIBS
16390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16391 /* end confdefs.h.  */
16392
16393 /* Override any GCC internal prototype to avoid an error.
16394    Use char because int might match the return type of a GCC
16395    builtin and then its argument prototype would still apply.  */
16396 #ifdef __cplusplus
16397 extern "C"
16398 #endif
16399 char dlopen ();
16400 int
16401 main ()
16402 {
16403 return dlopen ();
16404   ;
16405   return 0;
16406 }
16407 _ACEOF
16408 for ac_lib in '' dl; do
16409   if test -z "$ac_lib"; then
16410     ac_res="none required"
16411   else
16412     ac_res=-l$ac_lib
16413     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16414   fi
16415   if ac_fn_c_try_link "$LINENO"; then :
16416   ac_cv_search_dlopen=$ac_res
16417 fi
16418 rm -f core conftest.err conftest.$ac_objext \
16419     conftest$ac_exeext
16420   if ${ac_cv_search_dlopen+:} false; then :
16421   break
16422 fi
16423 done
16424 if ${ac_cv_search_dlopen+:} false; then :
16425
16426 else
16427   ac_cv_search_dlopen=no
16428 fi
16429 rm conftest.$ac_ext
16430 LIBS=$ac_func_search_save_LIBS
16431 fi
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16433 $as_echo "$ac_cv_search_dlopen" >&6; }
16434 ac_res=$ac_cv_search_dlopen
16435 if test "$ac_res" != no; then :
16436   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16437
16438 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16439
16440         if test "$ac_cv_search_dlopen" != "none required" ; then
16441           LIBADD_DLOPEN="-ldl"
16442         fi
16443         libltdl_cv_lib_dl_dlopen="yes"
16444         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16445 else
16446   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16447 /* end confdefs.h.  */
16448 #if HAVE_DLFCN_H
16449 #  include <dlfcn.h>
16450 #endif
16451
16452 int
16453 main ()
16454 {
16455 dlopen(0, 0);
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 if ac_fn_c_try_link "$LINENO"; then :
16461
16462 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16463
16464             libltdl_cv_func_dlopen="yes"
16465             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16466 else
16467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16468 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16469 if ${ac_cv_lib_svld_dlopen+:} false; then :
16470   $as_echo_n "(cached) " >&6
16471 else
16472   ac_check_lib_save_LIBS=$LIBS
16473 LIBS="-lsvld  $LIBS"
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h.  */
16476
16477 /* Override any GCC internal prototype to avoid an error.
16478    Use char because int might match the return type of a GCC
16479    builtin and then its argument prototype would still apply.  */
16480 #ifdef __cplusplus
16481 extern "C"
16482 #endif
16483 char dlopen ();
16484 int
16485 main ()
16486 {
16487 return dlopen ();
16488   ;
16489   return 0;
16490 }
16491 _ACEOF
16492 if ac_fn_c_try_link "$LINENO"; then :
16493   ac_cv_lib_svld_dlopen=yes
16494 else
16495   ac_cv_lib_svld_dlopen=no
16496 fi
16497 rm -f core conftest.err conftest.$ac_objext \
16498     conftest$ac_exeext conftest.$ac_ext
16499 LIBS=$ac_check_lib_save_LIBS
16500 fi
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16502 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16503 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16504
16505 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16506
16507                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16508                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16509 fi
16510
16511 fi
16512 rm -f core conftest.err conftest.$ac_objext \
16513     conftest$ac_exeext conftest.$ac_ext
16514 fi
16515
16516 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16517 then
16518   lt_save_LIBS="$LIBS"
16519   LIBS="$LIBS $LIBADD_DLOPEN"
16520   for ac_func in dlerror
16521 do :
16522   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16523 if test "x$ac_cv_func_dlerror" = xyes; then :
16524   cat >>confdefs.h <<_ACEOF
16525 #define HAVE_DLERROR 1
16526 _ACEOF
16527
16528 fi
16529 done
16530
16531   LIBS="$lt_save_LIBS"
16532 fi
16533
16534
16535 LIBADD_SHL_LOAD=
16536 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16537 if test "x$ac_cv_func_shl_load" = xyes; then :
16538
16539 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16540
16541         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16542 else
16543   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16544 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16545 if ${ac_cv_lib_dld_shl_load+:} false; then :
16546   $as_echo_n "(cached) " >&6
16547 else
16548   ac_check_lib_save_LIBS=$LIBS
16549 LIBS="-ldld  $LIBS"
16550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16551 /* end confdefs.h.  */
16552
16553 /* Override any GCC internal prototype to avoid an error.
16554    Use char because int might match the return type of a GCC
16555    builtin and then its argument prototype would still apply.  */
16556 #ifdef __cplusplus
16557 extern "C"
16558 #endif
16559 char shl_load ();
16560 int
16561 main ()
16562 {
16563 return shl_load ();
16564   ;
16565   return 0;
16566 }
16567 _ACEOF
16568 if ac_fn_c_try_link "$LINENO"; then :
16569   ac_cv_lib_dld_shl_load=yes
16570 else
16571   ac_cv_lib_dld_shl_load=no
16572 fi
16573 rm -f core conftest.err conftest.$ac_objext \
16574     conftest$ac_exeext conftest.$ac_ext
16575 LIBS=$ac_check_lib_save_LIBS
16576 fi
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16578 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16579 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16580
16581 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16582
16583             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16584             LIBADD_SHL_LOAD="-ldld"
16585 fi
16586
16587 fi
16588
16589
16590
16591 case $host_os in
16592 darwin[1567].*)
16593 # We only want this for pre-Mac OS X 10.4.
16594   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16595 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16596
16597 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16598
16599         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16600 fi
16601
16602   ;;
16603 beos*)
16604   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16605   ;;
16606 cygwin* | mingw* | os2* | pw32*)
16607   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16608 "
16609 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16610   ac_have_decl=1
16611 else
16612   ac_have_decl=0
16613 fi
16614
16615 cat >>confdefs.h <<_ACEOF
16616 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16617 _ACEOF
16618
16619   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16620   ;;
16621 esac
16622
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16624 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16625 if ${ac_cv_lib_dld_dld_link+:} false; then :
16626   $as_echo_n "(cached) " >&6
16627 else
16628   ac_check_lib_save_LIBS=$LIBS
16629 LIBS="-ldld  $LIBS"
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h.  */
16632
16633 /* Override any GCC internal prototype to avoid an error.
16634    Use char because int might match the return type of a GCC
16635    builtin and then its argument prototype would still apply.  */
16636 #ifdef __cplusplus
16637 extern "C"
16638 #endif
16639 char dld_link ();
16640 int
16641 main ()
16642 {
16643 return dld_link ();
16644   ;
16645   return 0;
16646 }
16647 _ACEOF
16648 if ac_fn_c_try_link "$LINENO"; then :
16649   ac_cv_lib_dld_dld_link=yes
16650 else
16651   ac_cv_lib_dld_dld_link=no
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext \
16654     conftest$ac_exeext conftest.$ac_ext
16655 LIBS=$ac_check_lib_save_LIBS
16656 fi
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16658 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16659 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16660
16661 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16662
16663                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16664 fi
16665
16666
16667
16668
16669 LT_DLPREOPEN=
16670 if test -n "$LT_DLLOADERS"
16671 then
16672   for lt_loader in $LT_DLLOADERS; do
16673     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16674   done
16675
16676 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16677
16678 fi
16679
16680
16681 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16682
16683
16684 ac_ext=c
16685 ac_cpp='$CPP $CPPFLAGS'
16686 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16687 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16688 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16689
16690
16691
16692
16693 if test x$use_libtool != xno; then
16694    DEFAULT_OBJECT_TYPE=".lo"
16695    DEFAULT_ARCHIVE_TYPE=".la"
16696    DEFAULT_SHARED_OBJECT_TYPE=".la"
16697    LIBTOOL="\$(LIBTOOL)"
16698    LIBTOOL_INSTALL_TARGET="libtool-install"
16699    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16700    LIBTOOL_CLEAN_TARGET="libtool-clean"
16701    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16702    FD_PLUGIN_DIR="src/plugins/fd"
16703    have_plugins=yes
16704 else
16705    DEFAULT_OBJECT_TYPE=".o"
16706    DEFAULT_ARCHIVE_TYPE=".a"
16707    DEFAULT_SHARED_OBJECT_TYPE=".so"
16708    LIBTOOL="# \$(LIBTOOL)"
16709    LIBTOOL_INSTALL_TARGET=""
16710    LIBTOOL_UNINSTALL_TARGET=""
16711    LIBTOOL_CLEAN_TARGET=""
16712    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16713    FD_PLUGIN_DIR=""
16714    have_plugins=no
16715 fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727 # Check whether --enable-includes was given.
16728 if test "${enable_includes+set}" = set; then :
16729   enableval=$enable_includes;
16730        if test x$enableval = xyes; then
16731           install_includes=yes
16732        fi
16733
16734
16735 fi
16736
16737
16738
16739 if test x$use_libtool != xno -a x$install_includes = xyes; then
16740    INCLUDE_INSTALL_TARGET="install-includes"
16741    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16742 else
16743    INCLUDE_INSTALL_TARGET=""
16744    INCLUDE_UNINSTALL_TARGET=""
16745 fi
16746
16747
16748
16749
16750
16751 case $host_os in
16752   *cygwin* ) CYGWIN=yes;;
16753          * ) CYGWIN=no;;
16754 esac
16755
16756 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16757 then
16758
16759
16760 if $TRUEPRG; then
16761   HAVE_SUN_OS_TRUE=
16762   HAVE_SUN_OS_FALSE='#'
16763 else
16764   HAVE_SUN_OS_TRUE='#'
16765   HAVE_SUN_OS_FALSE=
16766 fi
16767         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16768
16769 else
16770
16771
16772 if $FALSEPRG; then
16773   HAVE_SUN_OS_TRUE=
16774   HAVE_SUN_OS_FALSE='#'
16775 else
16776   HAVE_SUN_OS_TRUE='#'
16777   HAVE_SUN_OS_FALSE=
16778 fi
16779 fi
16780
16781 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16782 then
16783
16784
16785 if $TRUEPRG; then
16786   HAVE_HURD_OS_TRUE=
16787   HAVE_HURD_OS_FALSE='#'
16788 else
16789   HAVE_HURD_OS_TRUE='#'
16790   HAVE_HURD_OS_FALSE=
16791 fi
16792         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16793
16794 else
16795
16796
16797 if $FALSEPRG; then
16798   HAVE_HURD_OS_TRUE=
16799   HAVE_HURD_OS_FALSE='#'
16800 else
16801   HAVE_HURD_OS_TRUE='#'
16802   HAVE_HURD_OS_FALSE=
16803 fi
16804 fi
16805
16806 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16807 then
16808
16809
16810 if $TRUEPRG; then
16811   HAVE_OSF1_OS_TRUE=
16812   HAVE_OSF1_OS_FALSE='#'
16813 else
16814   HAVE_OSF1_OS_TRUE='#'
16815   HAVE_OSF1_OS_FALSE=
16816 fi
16817         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16818
16819 else
16820
16821
16822 if $FALSEPRG; then
16823   HAVE_OSF1_OS_TRUE=
16824   HAVE_OSF1_OS_FALSE='#'
16825 else
16826   HAVE_OSF1_OS_TRUE='#'
16827   HAVE_OSF1_OS_FALSE=
16828 fi
16829 fi
16830
16831 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16832 then
16833
16834
16835 if $TRUEPRG; then
16836   HAVE_AIX_OS_TRUE=
16837   HAVE_AIX_OS_FALSE='#'
16838 else
16839   HAVE_AIX_OS_TRUE='#'
16840   HAVE_AIX_OS_FALSE=
16841 fi
16842         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16843
16844 else
16845
16846
16847 if $FALSEPRG; then
16848   HAVE_AIX_OS_TRUE=
16849   HAVE_AIX_OS_FALSE='#'
16850 else
16851   HAVE_AIX_OS_TRUE='#'
16852   HAVE_AIX_OS_FALSE=
16853 fi
16854 fi
16855
16856 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16857 then
16858
16859
16860 if $TRUEPRG; then
16861   HAVE_HPUX_OS_TRUE=
16862   HAVE_HPUX_OS_FALSE='#'
16863 else
16864   HAVE_HPUX_OS_TRUE='#'
16865   HAVE_HPUX_OS_FALSE=
16866 fi
16867         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16868
16869 else
16870
16871
16872 if $FALSEPRG; then
16873   HAVE_HPUX_OS_TRUE=
16874   HAVE_HPUX_OS_FALSE='#'
16875 else
16876   HAVE_HPUX_OS_TRUE='#'
16877   HAVE_HPUX_OS_FALSE=
16878 fi
16879 fi
16880
16881 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16882 then
16883
16884
16885 if $TRUEPRG; then
16886   HAVE_LINUX_OS_TRUE=
16887   HAVE_LINUX_OS_FALSE='#'
16888 else
16889   HAVE_LINUX_OS_TRUE='#'
16890   HAVE_LINUX_OS_FALSE=
16891 fi
16892         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16893
16894 else
16895
16896
16897 if $FALSEPRG; then
16898   HAVE_LINUX_OS_TRUE=
16899   HAVE_LINUX_OS_FALSE='#'
16900 else
16901   HAVE_LINUX_OS_TRUE='#'
16902   HAVE_LINUX_OS_FALSE=
16903 fi
16904 fi
16905
16906 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16907 then
16908
16909
16910 if $TRUEPRG; then
16911   HAVE_FREEBSD_OS_TRUE=
16912   HAVE_FREEBSD_OS_FALSE='#'
16913 else
16914   HAVE_FREEBSD_OS_TRUE='#'
16915   HAVE_FREEBSD_OS_FALSE=
16916 fi
16917         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16918
16919 else
16920
16921
16922 if $FALSEPRG; then
16923   HAVE_FREEBSD_OS_TRUE=
16924   HAVE_FREEBSD_OS_FALSE='#'
16925 else
16926   HAVE_FREEBSD_OS_TRUE='#'
16927   HAVE_FREEBSD_OS_FALSE=
16928 fi
16929 fi
16930
16931 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16932 then
16933
16934
16935 if $TRUEPRG; then
16936   HAVE_NETBSD_OS_TRUE=
16937   HAVE_NETBSD_OS_FALSE='#'
16938 else
16939   HAVE_NETBSD_OS_TRUE='#'
16940   HAVE_NETBSD_OS_FALSE=
16941 fi
16942         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16943
16944 else
16945
16946
16947 if $FALSEPRG; then
16948   HAVE_NETBSD_OS_TRUE=
16949   HAVE_NETBSD_OS_FALSE='#'
16950 else
16951   HAVE_NETBSD_OS_TRUE='#'
16952   HAVE_NETBSD_OS_FALSE=
16953 fi
16954 fi
16955
16956 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16957 then
16958
16959
16960 if $TRUEPRG; then
16961   HAVE_OPENBSD_OS_TRUE=
16962   HAVE_OPENBSD_OS_FALSE='#'
16963 else
16964   HAVE_OPENBSD_OS_TRUE='#'
16965   HAVE_OPENBSD_OS_FALSE=
16966 fi
16967         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16968
16969 else
16970
16971
16972 if $FALSEPRG; then
16973   HAVE_OPENBSD_OS_TRUE=
16974   HAVE_OPENBSD_OS_FALSE='#'
16975 else
16976   HAVE_OPENBSD_OS_TRUE='#'
16977   HAVE_OPENBSD_OS_FALSE=
16978 fi
16979 fi
16980
16981 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16982 then
16983
16984
16985 if $TRUEPRG; then
16986   HAVE_BSDI_OS_TRUE=
16987   HAVE_BSDI_OS_FALSE='#'
16988 else
16989   HAVE_BSDI_OS_TRUE='#'
16990   HAVE_BSDI_OS_FALSE=
16991 fi
16992         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16993
16994 else
16995
16996
16997 if $FALSEPRG; then
16998   HAVE_BSDI_OS_TRUE=
16999   HAVE_BSDI_OS_FALSE='#'
17000 else
17001   HAVE_BSDI_OS_TRUE='#'
17002   HAVE_BSDI_OS_FALSE=
17003 fi
17004 fi
17005
17006 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17007 then
17008
17009
17010 if $TRUEPRG; then
17011   HAVE_SGI_OS_TRUE=
17012   HAVE_SGI_OS_FALSE='#'
17013 else
17014   HAVE_SGI_OS_TRUE='#'
17015   HAVE_SGI_OS_FALSE=
17016 fi
17017         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17018
17019 else
17020
17021
17022 if $FALSEPRG; then
17023   HAVE_SGI_OS_TRUE=
17024   HAVE_SGI_OS_FALSE='#'
17025 else
17026   HAVE_SGI_OS_TRUE='#'
17027   HAVE_SGI_OS_FALSE=
17028 fi
17029 fi
17030
17031 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17032 then
17033
17034
17035 if $TRUEPRG; then
17036   HAVE_IRIX_OS_TRUE=
17037   HAVE_IRIX_OS_FALSE='#'
17038 else
17039   HAVE_IRIX_OS_TRUE='#'
17040   HAVE_IRIX_OS_FALSE=
17041 fi
17042         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17043
17044 else
17045
17046
17047 if $FALSEPRG; then
17048   HAVE_IRIX_OS_TRUE=
17049   HAVE_IRIX_OS_FALSE='#'
17050 else
17051   HAVE_IRIX_OS_TRUE='#'
17052   HAVE_IRIX_OS_FALSE=
17053 fi
17054 fi
17055
17056 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17057 then
17058
17059
17060 if $TRUEPRG; then
17061   HAVE_DARWIN_OS_TRUE=
17062   HAVE_DARWIN_OS_FALSE='#'
17063 else
17064   HAVE_DARWIN_OS_TRUE='#'
17065   HAVE_DARWIN_OS_FALSE=
17066 fi
17067     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17068
17069 else
17070
17071
17072 if $FALSEPRG; then
17073   HAVE_DARWIN_OS_TRUE=
17074   HAVE_DARWIN_OS_FALSE='#'
17075 else
17076   HAVE_DARWIN_OS_TRUE='#'
17077   HAVE_DARWIN_OS_FALSE=
17078 fi
17079 fi
17080
17081
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17083 $as_echo_n "checking for Operating System Distribution... " >&6; }
17084 if test "x$DISTNAME" != "x"
17085 then
17086         echo "distname set to $DISTNAME"
17087 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17088 then
17089         DISTNAME=alpha
17090 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17091 then
17092         DISTNAME=aix
17093 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17094 then
17095         DISTNAME=hpux
17096 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17097 then
17098         DISTNAME=solaris
17099 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17100 then
17101         DISTNAME=hurd
17102 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17103 then
17104         DISTNAME=freebsd
17105 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17106 then
17107         DISTNAME=netbsd
17108 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17109 then
17110         DISTNAME=openbsd
17111 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17112 then
17113         DISTNAME=irix
17114 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17115 then
17116         DISTNAME=bsdi
17117 elif test -f /etc/SuSE-release
17118 then
17119         DISTNAME=suse
17120 elif test -d /etc/SuSEconfig
17121 then
17122         DISTNAME=suse5
17123 elif test -f /etc/mandrake-release
17124 then
17125         DISTNAME=mandrake
17126 elif test -f /etc/whitebox-release
17127 then
17128        DISTNAME=redhat
17129 elif test -f /etc/redhat-release
17130 then
17131         DISTNAME=redhat
17132 elif test -f /etc/gentoo-release
17133 then
17134         DISTNAME=gentoo
17135 elif test -f /etc/debian_version
17136 then
17137         DISTNAME=debian
17138 elif test -f /etc/slackware-version
17139 then
17140         DISTNAME=slackware
17141 elif test x$host_vendor = xapple
17142 then
17143     DISTNAME=osx
17144 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17145 then
17146     DISTNAME=darwin
17147 elif test -f /etc/engarde-version
17148 then
17149         DISTNAME=engarde
17150 elif test -f /etc/arch-release
17151 then
17152         DISTNAME=archlinux
17153 elif test "$CYGWIN" = yes
17154 then
17155         DISTNAME=cygwin
17156         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17157
17158 else
17159         DISTNAME=unknown
17160 fi
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17162 $as_echo "done" >&6; }
17163
17164
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17166 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17167 set x ${MAKE-make}
17168 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17169 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17170   $as_echo_n "(cached) " >&6
17171 else
17172   cat >conftest.make <<\_ACEOF
17173 SHELL = /bin/sh
17174 all:
17175         @echo '@@@%%%=$(MAKE)=@@@%%%'
17176 _ACEOF
17177 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17178 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17179   *@@@%%%=?*=@@@%%%*)
17180     eval ac_cv_prog_make_${ac_make}_set=yes;;
17181   *)
17182     eval ac_cv_prog_make_${ac_make}_set=no;;
17183 esac
17184 rm -f conftest.make
17185 fi
17186 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17188 $as_echo "yes" >&6; }
17189   SET_MAKE=
17190 else
17191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17192 $as_echo "no" >&6; }
17193   SET_MAKE="MAKE=${MAKE-make}"
17194 fi
17195
17196
17197
17198         MKINSTALLDIRS=
17199   if test -n "$ac_aux_dir"; then
17200     case "$ac_aux_dir" in
17201       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17202       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17203     esac
17204   fi
17205   if test -z "$MKINSTALLDIRS"; then
17206     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17207   fi
17208
17209
17210
17211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17212 $as_echo_n "checking whether NLS is requested... " >&6; }
17213     # Check whether --enable-nls was given.
17214 if test "${enable_nls+set}" = set; then :
17215   enableval=$enable_nls; USE_NLS=$enableval
17216 else
17217   USE_NLS=yes
17218 fi
17219
17220   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17221 $as_echo "$USE_NLS" >&6; }
17222
17223
17224
17225
17226
17227
17228 # Prepare PATH_SEPARATOR.
17229 # The user is always right.
17230 if test "${PATH_SEPARATOR+set}" != set; then
17231   echo "#! /bin/sh" >conf$$.sh
17232   echo  "exit 0"   >>conf$$.sh
17233   chmod +x conf$$.sh
17234   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17235     PATH_SEPARATOR=';'
17236   else
17237     PATH_SEPARATOR=:
17238   fi
17239   rm -f conf$$.sh
17240 fi
17241
17242 # Find out how to test for executable files. Don't use a zero-byte file,
17243 # as systems may use methods other than mode bits to determine executability.
17244 cat >conf$$.file <<_ASEOF
17245 #! /bin/sh
17246 exit 0
17247 _ASEOF
17248 chmod +x conf$$.file
17249 if test -x conf$$.file >/dev/null 2>&1; then
17250   ac_executable_p="test -x"
17251 else
17252   ac_executable_p="test -f"
17253 fi
17254 rm -f conf$$.file
17255
17256 # Extract the first word of "msgfmt", so it can be a program name with args.
17257 set dummy msgfmt; ac_word=$2
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17259 $as_echo_n "checking for $ac_word... " >&6; }
17260 if ${ac_cv_path_MSGFMT+:} false; then :
17261   $as_echo_n "(cached) " >&6
17262 else
17263   case "$MSGFMT" in
17264   [\\/]* | ?:[\\/]*)
17265     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17266     ;;
17267   *)
17268     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17269     for ac_dir in $PATH; do
17270       IFS="$ac_save_IFS"
17271       test -z "$ac_dir" && ac_dir=.
17272       for ac_exec_ext in '' $ac_executable_extensions; do
17273         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17274           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17275           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17276      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17277             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17278             break 2
17279           fi
17280         fi
17281       done
17282     done
17283     IFS="$ac_save_IFS"
17284   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17285     ;;
17286 esac
17287 fi
17288 MSGFMT="$ac_cv_path_MSGFMT"
17289 if test "$MSGFMT" != ":"; then
17290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17291 $as_echo "$MSGFMT" >&6; }
17292 else
17293   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17294 $as_echo "no" >&6; }
17295 fi
17296
17297   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17298 set dummy gmsgfmt; ac_word=$2
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17300 $as_echo_n "checking for $ac_word... " >&6; }
17301 if ${ac_cv_path_GMSGFMT+:} false; then :
17302   $as_echo_n "(cached) " >&6
17303 else
17304   case $GMSGFMT in
17305   [\\/]* | ?:[\\/]*)
17306   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17307   ;;
17308   *)
17309   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17310 for as_dir in $PATH
17311 do
17312   IFS=$as_save_IFS
17313   test -z "$as_dir" && as_dir=.
17314     for ac_exec_ext in '' $ac_executable_extensions; do
17315   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17316     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17317     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17318     break 2
17319   fi
17320 done
17321   done
17322 IFS=$as_save_IFS
17323
17324   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17325   ;;
17326 esac
17327 fi
17328 GMSGFMT=$ac_cv_path_GMSGFMT
17329 if test -n "$GMSGFMT"; then
17330   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17331 $as_echo "$GMSGFMT" >&6; }
17332 else
17333   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17334 $as_echo "no" >&6; }
17335 fi
17336
17337
17338
17339
17340 # Prepare PATH_SEPARATOR.
17341 # The user is always right.
17342 if test "${PATH_SEPARATOR+set}" != set; then
17343   echo "#! /bin/sh" >conf$$.sh
17344   echo  "exit 0"   >>conf$$.sh
17345   chmod +x conf$$.sh
17346   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17347     PATH_SEPARATOR=';'
17348   else
17349     PATH_SEPARATOR=:
17350   fi
17351   rm -f conf$$.sh
17352 fi
17353
17354 # Find out how to test for executable files. Don't use a zero-byte file,
17355 # as systems may use methods other than mode bits to determine executability.
17356 cat >conf$$.file <<_ASEOF
17357 #! /bin/sh
17358 exit 0
17359 _ASEOF
17360 chmod +x conf$$.file
17361 if test -x conf$$.file >/dev/null 2>&1; then
17362   ac_executable_p="test -x"
17363 else
17364   ac_executable_p="test -f"
17365 fi
17366 rm -f conf$$.file
17367
17368 # Extract the first word of "xgettext", so it can be a program name with args.
17369 set dummy xgettext; ac_word=$2
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17371 $as_echo_n "checking for $ac_word... " >&6; }
17372 if ${ac_cv_path_XGETTEXT+:} false; then :
17373   $as_echo_n "(cached) " >&6
17374 else
17375   case "$XGETTEXT" in
17376   [\\/]* | ?:[\\/]*)
17377     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17378     ;;
17379   *)
17380     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17381     for ac_dir in $PATH; do
17382       IFS="$ac_save_IFS"
17383       test -z "$ac_dir" && ac_dir=.
17384       for ac_exec_ext in '' $ac_executable_extensions; do
17385         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17386           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17387           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17388      (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
17389             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17390             break 2
17391           fi
17392         fi
17393       done
17394     done
17395     IFS="$ac_save_IFS"
17396   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17397     ;;
17398 esac
17399 fi
17400 XGETTEXT="$ac_cv_path_XGETTEXT"
17401 if test "$XGETTEXT" != ":"; then
17402   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17403 $as_echo "$XGETTEXT" >&6; }
17404 else
17405   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406 $as_echo "no" >&6; }
17407 fi
17408
17409     rm -f messages.po
17410
17411
17412 # Prepare PATH_SEPARATOR.
17413 # The user is always right.
17414 if test "${PATH_SEPARATOR+set}" != set; then
17415   echo "#! /bin/sh" >conf$$.sh
17416   echo  "exit 0"   >>conf$$.sh
17417   chmod +x conf$$.sh
17418   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17419     PATH_SEPARATOR=';'
17420   else
17421     PATH_SEPARATOR=:
17422   fi
17423   rm -f conf$$.sh
17424 fi
17425
17426 # Find out how to test for executable files. Don't use a zero-byte file,
17427 # as systems may use methods other than mode bits to determine executability.
17428 cat >conf$$.file <<_ASEOF
17429 #! /bin/sh
17430 exit 0
17431 _ASEOF
17432 chmod +x conf$$.file
17433 if test -x conf$$.file >/dev/null 2>&1; then
17434   ac_executable_p="test -x"
17435 else
17436   ac_executable_p="test -f"
17437 fi
17438 rm -f conf$$.file
17439
17440 # Extract the first word of "msgmerge", so it can be a program name with args.
17441 set dummy msgmerge; ac_word=$2
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17443 $as_echo_n "checking for $ac_word... " >&6; }
17444 if ${ac_cv_path_MSGMERGE+:} false; then :
17445   $as_echo_n "(cached) " >&6
17446 else
17447   case "$MSGMERGE" in
17448   [\\/]* | ?:[\\/]*)
17449     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17450     ;;
17451   *)
17452     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17453     for ac_dir in $PATH; do
17454       IFS="$ac_save_IFS"
17455       test -z "$ac_dir" && ac_dir=.
17456       for ac_exec_ext in '' $ac_executable_extensions; do
17457         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17458           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17459           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17460             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17461             break 2
17462           fi
17463         fi
17464       done
17465     done
17466     IFS="$ac_save_IFS"
17467   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17468     ;;
17469 esac
17470 fi
17471 MSGMERGE="$ac_cv_path_MSGMERGE"
17472 if test "$MSGMERGE" != ":"; then
17473   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17474 $as_echo "$MSGMERGE" >&6; }
17475 else
17476   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17477 $as_echo "no" >&6; }
17478 fi
17479
17480
17481       if test "$GMSGFMT" != ":"; then
17482             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17483        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17484       : ;
17485     else
17486       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17487       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17488 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17489       GMSGFMT=":"
17490     fi
17491   fi
17492
17493       if test "$XGETTEXT" != ":"; then
17494             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17495        (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
17496       : ;
17497     else
17498       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17499 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17500       XGETTEXT=":"
17501     fi
17502         rm -f messages.po
17503   fi
17504
17505   ac_config_commands="$ac_config_commands default-1"
17506
17507
17508
17509       if test "X$prefix" = "XNONE"; then
17510     acl_final_prefix="$ac_default_prefix"
17511   else
17512     acl_final_prefix="$prefix"
17513   fi
17514   if test "X$exec_prefix" = "XNONE"; then
17515     acl_final_exec_prefix='${prefix}'
17516   else
17517     acl_final_exec_prefix="$exec_prefix"
17518   fi
17519   acl_save_prefix="$prefix"
17520   prefix="$acl_final_prefix"
17521   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17522   prefix="$acl_save_prefix"
17523
17524
17525 # Check whether --with-gnu-ld was given.
17526 if test "${with_gnu_ld+set}" = set; then :
17527   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17528 else
17529   with_gnu_ld=no
17530 fi
17531
17532 # Prepare PATH_SEPARATOR.
17533 # The user is always right.
17534 if test "${PATH_SEPARATOR+set}" != set; then
17535   echo "#! /bin/sh" >conf$$.sh
17536   echo  "exit 0"   >>conf$$.sh
17537   chmod +x conf$$.sh
17538   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17539     PATH_SEPARATOR=';'
17540   else
17541     PATH_SEPARATOR=:
17542   fi
17543   rm -f conf$$.sh
17544 fi
17545 ac_prog=ld
17546 if test "$GCC" = yes; then
17547   # Check if gcc -print-prog-name=ld gives a path.
17548   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17549 $as_echo_n "checking for ld used by GCC... " >&6; }
17550   case $host in
17551   *-*-mingw*)
17552     # gcc leaves a trailing carriage return which upsets mingw
17553     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17554   *)
17555     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17556   esac
17557   case $ac_prog in
17558     # Accept absolute paths.
17559     [\\/]* | [A-Za-z]:[\\/]*)
17560       re_direlt='/[^/][^/]*/\.\./'
17561       # Canonicalize the path of ld
17562       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17563       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17564         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17565       done
17566       test -z "$LD" && LD="$ac_prog"
17567       ;;
17568   "")
17569     # If it fails, then pretend we aren't using GCC.
17570     ac_prog=ld
17571     ;;
17572   *)
17573     # If it is relative, then search for the first ld in PATH.
17574     with_gnu_ld=unknown
17575     ;;
17576   esac
17577 elif test "$with_gnu_ld" = yes; then
17578   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17579 $as_echo_n "checking for GNU ld... " >&6; }
17580 else
17581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17582 $as_echo_n "checking for non-GNU ld... " >&6; }
17583 fi
17584 if ${acl_cv_path_LD+:} false; then :
17585   $as_echo_n "(cached) " >&6
17586 else
17587   if test -z "$LD"; then
17588   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17589   for ac_dir in $PATH; do
17590     test -z "$ac_dir" && ac_dir=.
17591     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17592       acl_cv_path_LD="$ac_dir/$ac_prog"
17593       # Check to see if the program is GNU ld.  I'd rather use --version,
17594       # but apparently some GNU ld's only accept -v.
17595       # Break only if it was the GNU/non-GNU ld that we prefer.
17596       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17597       *GNU* | *'with BFD'*)
17598         test "$with_gnu_ld" != no && break ;;
17599       *)
17600         test "$with_gnu_ld" != yes && break ;;
17601       esac
17602     fi
17603   done
17604   IFS="$ac_save_ifs"
17605 else
17606   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17607 fi
17608 fi
17609
17610 LD="$acl_cv_path_LD"
17611 if test -n "$LD"; then
17612   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17613 $as_echo "$LD" >&6; }
17614 else
17615   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17616 $as_echo "no" >&6; }
17617 fi
17618 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17620 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17621 if ${acl_cv_prog_gnu_ld+:} false; then :
17622   $as_echo_n "(cached) " >&6
17623 else
17624   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17625 case `$LD -v 2>&1 </dev/null` in
17626 *GNU* | *'with BFD'*)
17627   acl_cv_prog_gnu_ld=yes ;;
17628 *)
17629   acl_cv_prog_gnu_ld=no ;;
17630 esac
17631 fi
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17633 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17634 with_gnu_ld=$acl_cv_prog_gnu_ld
17635
17636
17637
17638
17639                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17640 $as_echo_n "checking for shared library run path origin... " >&6; }
17641 if ${acl_cv_rpath+:} false; then :
17642   $as_echo_n "(cached) " >&6
17643 else
17644
17645     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17646     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17647     . ./conftest.sh
17648     rm -f ./conftest.sh
17649     acl_cv_rpath=done
17650
17651 fi
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17653 $as_echo "$acl_cv_rpath" >&6; }
17654   wl="$acl_cv_wl"
17655   libext="$acl_cv_libext"
17656   shlibext="$acl_cv_shlibext"
17657   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17658   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17659   hardcode_direct="$acl_cv_hardcode_direct"
17660   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17661     # Check whether --enable-rpath was given.
17662 if test "${enable_rpath+set}" = set; then :
17663   enableval=$enable_rpath; :
17664 else
17665   enable_rpath=yes
17666 fi
17667
17668
17669
17670
17671
17672
17673
17674
17675     use_additional=yes
17676
17677   acl_save_prefix="$prefix"
17678   prefix="$acl_final_prefix"
17679   acl_save_exec_prefix="$exec_prefix"
17680   exec_prefix="$acl_final_exec_prefix"
17681
17682     eval additional_includedir=\"$includedir\"
17683     eval additional_libdir=\"$libdir\"
17684
17685   exec_prefix="$acl_save_exec_prefix"
17686   prefix="$acl_save_prefix"
17687
17688
17689 # Check whether --with-libiconv-prefix was given.
17690 if test "${with_libiconv_prefix+set}" = set; then :
17691   withval=$with_libiconv_prefix;
17692     if test "X$withval" = "Xno"; then
17693       use_additional=no
17694     else
17695       if test "X$withval" = "X"; then
17696
17697   acl_save_prefix="$prefix"
17698   prefix="$acl_final_prefix"
17699   acl_save_exec_prefix="$exec_prefix"
17700   exec_prefix="$acl_final_exec_prefix"
17701
17702           eval additional_includedir=\"$includedir\"
17703           eval additional_libdir=\"$libdir\"
17704
17705   exec_prefix="$acl_save_exec_prefix"
17706   prefix="$acl_save_prefix"
17707
17708       else
17709         additional_includedir="$withval/include"
17710         additional_libdir="$withval/lib"
17711       fi
17712     fi
17713
17714 fi
17715
17716       LIBICONV=
17717   LTLIBICONV=
17718   INCICONV=
17719   rpathdirs=
17720   ltrpathdirs=
17721   names_already_handled=
17722   names_next_round='iconv '
17723   while test -n "$names_next_round"; do
17724     names_this_round="$names_next_round"
17725     names_next_round=
17726     for name in $names_this_round; do
17727       already_handled=
17728       for n in $names_already_handled; do
17729         if test "$n" = "$name"; then
17730           already_handled=yes
17731           break
17732         fi
17733       done
17734       if test -z "$already_handled"; then
17735         names_already_handled="$names_already_handled $name"
17736                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17737         eval value=\"\$HAVE_LIB$uppername\"
17738         if test -n "$value"; then
17739           if test "$value" = yes; then
17740             eval value=\"\$LIB$uppername\"
17741             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17742             eval value=\"\$LTLIB$uppername\"
17743             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17744           else
17745                                     :
17746           fi
17747         else
17748                               found_dir=
17749           found_la=
17750           found_so=
17751           found_a=
17752           if test $use_additional = yes; then
17753             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17754               found_dir="$additional_libdir"
17755               found_so="$additional_libdir/lib$name.$shlibext"
17756               if test -f "$additional_libdir/lib$name.la"; then
17757                 found_la="$additional_libdir/lib$name.la"
17758               fi
17759             else
17760               if test -f "$additional_libdir/lib$name.$libext"; then
17761                 found_dir="$additional_libdir"
17762                 found_a="$additional_libdir/lib$name.$libext"
17763                 if test -f "$additional_libdir/lib$name.la"; then
17764                   found_la="$additional_libdir/lib$name.la"
17765                 fi
17766               fi
17767             fi
17768           fi
17769           if test "X$found_dir" = "X"; then
17770             for x in $LDFLAGS $LTLIBICONV; do
17771
17772   acl_save_prefix="$prefix"
17773   prefix="$acl_final_prefix"
17774   acl_save_exec_prefix="$exec_prefix"
17775   exec_prefix="$acl_final_exec_prefix"
17776   eval x=\"$x\"
17777   exec_prefix="$acl_save_exec_prefix"
17778   prefix="$acl_save_prefix"
17779
17780               case "$x" in
17781                 -L*)
17782                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17783                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17784                     found_dir="$dir"
17785                     found_so="$dir/lib$name.$shlibext"
17786                     if test -f "$dir/lib$name.la"; then
17787                       found_la="$dir/lib$name.la"
17788                     fi
17789                   else
17790                     if test -f "$dir/lib$name.$libext"; then
17791                       found_dir="$dir"
17792                       found_a="$dir/lib$name.$libext"
17793                       if test -f "$dir/lib$name.la"; then
17794                         found_la="$dir/lib$name.la"
17795                       fi
17796                     fi
17797                   fi
17798                   ;;
17799               esac
17800               if test "X$found_dir" != "X"; then
17801                 break
17802               fi
17803             done
17804           fi
17805           if test "X$found_dir" != "X"; then
17806                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17807             if test "X$found_so" != "X"; then
17808                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17809                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17810               else
17811                                                                                 haveit=
17812                 for x in $ltrpathdirs; do
17813                   if test "X$x" = "X$found_dir"; then
17814                     haveit=yes
17815                     break
17816                   fi
17817                 done
17818                 if test -z "$haveit"; then
17819                   ltrpathdirs="$ltrpathdirs $found_dir"
17820                 fi
17821                                 if test "$hardcode_direct" = yes; then
17822                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17823                 else
17824                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17825                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17826                                                             haveit=
17827                     for x in $rpathdirs; do
17828                       if test "X$x" = "X$found_dir"; then
17829                         haveit=yes
17830                         break
17831                       fi
17832                     done
17833                     if test -z "$haveit"; then
17834                       rpathdirs="$rpathdirs $found_dir"
17835                     fi
17836                   else
17837                                                                                 haveit=
17838                     for x in $LDFLAGS $LIBICONV; do
17839
17840   acl_save_prefix="$prefix"
17841   prefix="$acl_final_prefix"
17842   acl_save_exec_prefix="$exec_prefix"
17843   exec_prefix="$acl_final_exec_prefix"
17844   eval x=\"$x\"
17845   exec_prefix="$acl_save_exec_prefix"
17846   prefix="$acl_save_prefix"
17847
17848                       if test "X$x" = "X-L$found_dir"; then
17849                         haveit=yes
17850                         break
17851                       fi
17852                     done
17853                     if test -z "$haveit"; then
17854                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17855                     fi
17856                     if test "$hardcode_minus_L" != no; then
17857                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17858                     else
17859                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17860                     fi
17861                   fi
17862                 fi
17863               fi
17864             else
17865               if test "X$found_a" != "X"; then
17866                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17867               else
17868                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17869               fi
17870             fi
17871                         additional_includedir=
17872             case "$found_dir" in
17873               */lib | */lib/)
17874                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17875                 additional_includedir="$basedir/include"
17876                 ;;
17877             esac
17878             if test "X$additional_includedir" != "X"; then
17879                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17880                 haveit=
17881                 if test "X$additional_includedir" = "X/usr/local/include"; then
17882                   if test -n "$GCC"; then
17883                     case $host_os in
17884                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17885                     esac
17886                   fi
17887                 fi
17888                 if test -z "$haveit"; then
17889                   for x in $CPPFLAGS $INCICONV; do
17890
17891   acl_save_prefix="$prefix"
17892   prefix="$acl_final_prefix"
17893   acl_save_exec_prefix="$exec_prefix"
17894   exec_prefix="$acl_final_exec_prefix"
17895   eval x=\"$x\"
17896   exec_prefix="$acl_save_exec_prefix"
17897   prefix="$acl_save_prefix"
17898
17899                     if test "X$x" = "X-I$additional_includedir"; then
17900                       haveit=yes
17901                       break
17902                     fi
17903                   done
17904                   if test -z "$haveit"; then
17905                     if test -d "$additional_includedir"; then
17906                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17907                     fi
17908                   fi
17909                 fi
17910               fi
17911             fi
17912                         if test -n "$found_la"; then
17913                                                         save_libdir="$libdir"
17914               case "$found_la" in
17915                 */* | *\\*) . "$found_la" ;;
17916                 *) . "./$found_la" ;;
17917               esac
17918               libdir="$save_libdir"
17919                             for dep in $dependency_libs; do
17920                 case "$dep" in
17921                   -L*)
17922                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17923                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17924                       haveit=
17925                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17926                         if test -n "$GCC"; then
17927                           case $host_os in
17928                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17929                           esac
17930                         fi
17931                       fi
17932                       if test -z "$haveit"; then
17933                         haveit=
17934                         for x in $LDFLAGS $LIBICONV; do
17935
17936   acl_save_prefix="$prefix"
17937   prefix="$acl_final_prefix"
17938   acl_save_exec_prefix="$exec_prefix"
17939   exec_prefix="$acl_final_exec_prefix"
17940   eval x=\"$x\"
17941   exec_prefix="$acl_save_exec_prefix"
17942   prefix="$acl_save_prefix"
17943
17944                           if test "X$x" = "X-L$additional_libdir"; then
17945                             haveit=yes
17946                             break
17947                           fi
17948                         done
17949                         if test -z "$haveit"; then
17950                           if test -d "$additional_libdir"; then
17951                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17952                           fi
17953                         fi
17954                         haveit=
17955                         for x in $LDFLAGS $LTLIBICONV; do
17956
17957   acl_save_prefix="$prefix"
17958   prefix="$acl_final_prefix"
17959   acl_save_exec_prefix="$exec_prefix"
17960   exec_prefix="$acl_final_exec_prefix"
17961   eval x=\"$x\"
17962   exec_prefix="$acl_save_exec_prefix"
17963   prefix="$acl_save_prefix"
17964
17965                           if test "X$x" = "X-L$additional_libdir"; then
17966                             haveit=yes
17967                             break
17968                           fi
17969                         done
17970                         if test -z "$haveit"; then
17971                           if test -d "$additional_libdir"; then
17972                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17973                           fi
17974                         fi
17975                       fi
17976                     fi
17977                     ;;
17978                   -R*)
17979                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17980                     if test "$enable_rpath" != no; then
17981                                                                   haveit=
17982                       for x in $rpathdirs; do
17983                         if test "X$x" = "X$dir"; then
17984                           haveit=yes
17985                           break
17986                         fi
17987                       done
17988                       if test -z "$haveit"; then
17989                         rpathdirs="$rpathdirs $dir"
17990                       fi
17991                                                                   haveit=
17992                       for x in $ltrpathdirs; do
17993                         if test "X$x" = "X$dir"; then
17994                           haveit=yes
17995                           break
17996                         fi
17997                       done
17998                       if test -z "$haveit"; then
17999                         ltrpathdirs="$ltrpathdirs $dir"
18000                       fi
18001                     fi
18002                     ;;
18003                   -l*)
18004                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18005                     ;;
18006                   *.la)
18007                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18008                     ;;
18009                   *)
18010                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18011                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18012                     ;;
18013                 esac
18014               done
18015             fi
18016           else
18017                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18018             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18019           fi
18020         fi
18021       fi
18022     done
18023   done
18024   if test "X$rpathdirs" != "X"; then
18025     if test -n "$hardcode_libdir_separator"; then
18026                         alldirs=
18027       for found_dir in $rpathdirs; do
18028         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18029       done
18030             acl_save_libdir="$libdir"
18031       libdir="$alldirs"
18032       eval flag=\"$hardcode_libdir_flag_spec\"
18033       libdir="$acl_save_libdir"
18034       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18035     else
18036             for found_dir in $rpathdirs; do
18037         acl_save_libdir="$libdir"
18038         libdir="$found_dir"
18039         eval flag=\"$hardcode_libdir_flag_spec\"
18040         libdir="$acl_save_libdir"
18041         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18042       done
18043     fi
18044   fi
18045   if test "X$ltrpathdirs" != "X"; then
18046             for found_dir in $ltrpathdirs; do
18047       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18048     done
18049   fi
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067
18068     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18069 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18070 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18071   $as_echo_n "(cached) " >&6
18072 else
18073   gt_save_CPPFLAGS="$CPPFLAGS"
18074      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18075      gt_save_LIBS="$LIBS"
18076      LIBS="$LIBS -framework CoreFoundation"
18077      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h.  */
18079 #include <CFPreferences.h>
18080 int
18081 main ()
18082 {
18083 CFPreferencesCopyAppValue(NULL, NULL)
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 if ac_fn_c_try_link "$LINENO"; then :
18089   gt_cv_func_CFPreferencesCopyAppValue=yes
18090 else
18091   gt_cv_func_CFPreferencesCopyAppValue=no
18092 fi
18093 rm -f core conftest.err conftest.$ac_objext \
18094     conftest$ac_exeext conftest.$ac_ext
18095      CPPFLAGS="$gt_save_CPPFLAGS"
18096      LIBS="$gt_save_LIBS"
18097 fi
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18099 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18100   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18101
18102 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18103
18104   fi
18105     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18106 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18107 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18108   $as_echo_n "(cached) " >&6
18109 else
18110   gt_save_CPPFLAGS="$CPPFLAGS"
18111      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18112      gt_save_LIBS="$LIBS"
18113      LIBS="$LIBS -framework CoreFoundation"
18114      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18115 /* end confdefs.h.  */
18116 #include <CFLocale.h>
18117 int
18118 main ()
18119 {
18120 CFLocaleCopyCurrent();
18121   ;
18122   return 0;
18123 }
18124 _ACEOF
18125 if ac_fn_c_try_link "$LINENO"; then :
18126   gt_cv_func_CFLocaleCopyCurrent=yes
18127 else
18128   gt_cv_func_CFLocaleCopyCurrent=no
18129 fi
18130 rm -f core conftest.err conftest.$ac_objext \
18131     conftest$ac_exeext conftest.$ac_ext
18132      CPPFLAGS="$gt_save_CPPFLAGS"
18133      LIBS="$gt_save_LIBS"
18134 fi
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18136 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18137   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18138
18139 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18140
18141   fi
18142   INTL_MACOSX_LIBS=
18143   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18144     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18145   fi
18146
18147
18148
18149
18150   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18151 $as_echo_n "checking whether NLS is requested... " >&6; }
18152     # Check whether --enable-nls was given.
18153 if test "${enable_nls+set}" = set; then :
18154   enableval=$enable_nls; USE_NLS=$enableval
18155 else
18156   USE_NLS=yes
18157 fi
18158
18159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18160 $as_echo "$USE_NLS" >&6; }
18161
18162
18163
18164
18165   LIBINTL=
18166   LTLIBINTL=
18167   POSUB=
18168
18169     if test "$USE_NLS" = "yes"; then
18170     gt_use_preinstalled_gnugettext=no
18171
18172
18173
18174
18175
18176
18177         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18178 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18179 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18180   $as_echo_n "(cached) " >&6
18181 else
18182   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18183 /* end confdefs.h.  */
18184 #include <libintl.h>
18185 extern int _nl_msg_cat_cntr;
18186 extern int *_nl_domain_bindings;
18187 int
18188 main ()
18189 {
18190 bindtextdomain ("", "");
18191 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18192   ;
18193   return 0;
18194 }
18195 _ACEOF
18196 if ac_fn_c_try_link "$LINENO"; then :
18197   gt_cv_func_gnugettext1_libc=yes
18198 else
18199   gt_cv_func_gnugettext1_libc=no
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext \
18202     conftest$ac_exeext conftest.$ac_ext
18203 fi
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18205 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18206
18207         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18208
18209
18210
18211
18212
18213           am_save_CPPFLAGS="$CPPFLAGS"
18214
18215   for element in $INCICONV; do
18216     haveit=
18217     for x in $CPPFLAGS; do
18218
18219   acl_save_prefix="$prefix"
18220   prefix="$acl_final_prefix"
18221   acl_save_exec_prefix="$exec_prefix"
18222   exec_prefix="$acl_final_exec_prefix"
18223   eval x=\"$x\"
18224   exec_prefix="$acl_save_exec_prefix"
18225   prefix="$acl_save_prefix"
18226
18227       if test "X$x" = "X$element"; then
18228         haveit=yes
18229         break
18230       fi
18231     done
18232     if test -z "$haveit"; then
18233       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18234     fi
18235   done
18236
18237
18238   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18239 $as_echo_n "checking for iconv... " >&6; }
18240 if ${am_cv_func_iconv+:} false; then :
18241   $as_echo_n "(cached) " >&6
18242 else
18243
18244     am_cv_func_iconv="no, consider installing GNU libiconv"
18245     am_cv_lib_iconv=no
18246     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18247 /* end confdefs.h.  */
18248 #include <stdlib.h>
18249 #include <iconv.h>
18250 int
18251 main ()
18252 {
18253 iconv_t cd = iconv_open("","");
18254        iconv(cd,NULL,NULL,NULL,NULL);
18255        iconv_close(cd);
18256   ;
18257   return 0;
18258 }
18259 _ACEOF
18260 if ac_fn_c_try_link "$LINENO"; then :
18261   am_cv_func_iconv=yes
18262 fi
18263 rm -f core conftest.err conftest.$ac_objext \
18264     conftest$ac_exeext conftest.$ac_ext
18265     if test "$am_cv_func_iconv" != yes; then
18266       am_save_LIBS="$LIBS"
18267       LIBS="$LIBS $LIBICONV"
18268       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18269 /* end confdefs.h.  */
18270 #include <stdlib.h>
18271 #include <iconv.h>
18272 int
18273 main ()
18274 {
18275 iconv_t cd = iconv_open("","");
18276          iconv(cd,NULL,NULL,NULL,NULL);
18277          iconv_close(cd);
18278   ;
18279   return 0;
18280 }
18281 _ACEOF
18282 if ac_fn_c_try_link "$LINENO"; then :
18283   am_cv_lib_iconv=yes
18284         am_cv_func_iconv=yes
18285 fi
18286 rm -f core conftest.err conftest.$ac_objext \
18287     conftest$ac_exeext conftest.$ac_ext
18288       LIBS="$am_save_LIBS"
18289     fi
18290
18291 fi
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18293 $as_echo "$am_cv_func_iconv" >&6; }
18294   if test "$am_cv_func_iconv" = yes; then
18295
18296 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18297
18298   fi
18299   if test "$am_cv_lib_iconv" = yes; then
18300     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18301 $as_echo_n "checking how to link with libiconv... " >&6; }
18302     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18303 $as_echo "$LIBICONV" >&6; }
18304   else
18305             CPPFLAGS="$am_save_CPPFLAGS"
18306     LIBICONV=
18307     LTLIBICONV=
18308   fi
18309
18310
18311
18312
18313
18314
18315     use_additional=yes
18316
18317   acl_save_prefix="$prefix"
18318   prefix="$acl_final_prefix"
18319   acl_save_exec_prefix="$exec_prefix"
18320   exec_prefix="$acl_final_exec_prefix"
18321
18322     eval additional_includedir=\"$includedir\"
18323     eval additional_libdir=\"$libdir\"
18324
18325   exec_prefix="$acl_save_exec_prefix"
18326   prefix="$acl_save_prefix"
18327
18328
18329 # Check whether --with-libintl-prefix was given.
18330 if test "${with_libintl_prefix+set}" = set; then :
18331   withval=$with_libintl_prefix;
18332     if test "X$withval" = "Xno"; then
18333       use_additional=no
18334     else
18335       if test "X$withval" = "X"; then
18336
18337   acl_save_prefix="$prefix"
18338   prefix="$acl_final_prefix"
18339   acl_save_exec_prefix="$exec_prefix"
18340   exec_prefix="$acl_final_exec_prefix"
18341
18342           eval additional_includedir=\"$includedir\"
18343           eval additional_libdir=\"$libdir\"
18344
18345   exec_prefix="$acl_save_exec_prefix"
18346   prefix="$acl_save_prefix"
18347
18348       else
18349         additional_includedir="$withval/include"
18350         additional_libdir="$withval/lib"
18351       fi
18352     fi
18353
18354 fi
18355
18356       LIBINTL=
18357   LTLIBINTL=
18358   INCINTL=
18359   rpathdirs=
18360   ltrpathdirs=
18361   names_already_handled=
18362   names_next_round='intl '
18363   while test -n "$names_next_round"; do
18364     names_this_round="$names_next_round"
18365     names_next_round=
18366     for name in $names_this_round; do
18367       already_handled=
18368       for n in $names_already_handled; do
18369         if test "$n" = "$name"; then
18370           already_handled=yes
18371           break
18372         fi
18373       done
18374       if test -z "$already_handled"; then
18375         names_already_handled="$names_already_handled $name"
18376                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18377         eval value=\"\$HAVE_LIB$uppername\"
18378         if test -n "$value"; then
18379           if test "$value" = yes; then
18380             eval value=\"\$LIB$uppername\"
18381             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18382             eval value=\"\$LTLIB$uppername\"
18383             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18384           else
18385                                     :
18386           fi
18387         else
18388                               found_dir=
18389           found_la=
18390           found_so=
18391           found_a=
18392           if test $use_additional = yes; then
18393             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18394               found_dir="$additional_libdir"
18395               found_so="$additional_libdir/lib$name.$shlibext"
18396               if test -f "$additional_libdir/lib$name.la"; then
18397                 found_la="$additional_libdir/lib$name.la"
18398               fi
18399             else
18400               if test -f "$additional_libdir/lib$name.$libext"; then
18401                 found_dir="$additional_libdir"
18402                 found_a="$additional_libdir/lib$name.$libext"
18403                 if test -f "$additional_libdir/lib$name.la"; then
18404                   found_la="$additional_libdir/lib$name.la"
18405                 fi
18406               fi
18407             fi
18408           fi
18409           if test "X$found_dir" = "X"; then
18410             for x in $LDFLAGS $LTLIBINTL; do
18411
18412   acl_save_prefix="$prefix"
18413   prefix="$acl_final_prefix"
18414   acl_save_exec_prefix="$exec_prefix"
18415   exec_prefix="$acl_final_exec_prefix"
18416   eval x=\"$x\"
18417   exec_prefix="$acl_save_exec_prefix"
18418   prefix="$acl_save_prefix"
18419
18420               case "$x" in
18421                 -L*)
18422                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18423                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18424                     found_dir="$dir"
18425                     found_so="$dir/lib$name.$shlibext"
18426                     if test -f "$dir/lib$name.la"; then
18427                       found_la="$dir/lib$name.la"
18428                     fi
18429                   else
18430                     if test -f "$dir/lib$name.$libext"; then
18431                       found_dir="$dir"
18432                       found_a="$dir/lib$name.$libext"
18433                       if test -f "$dir/lib$name.la"; then
18434                         found_la="$dir/lib$name.la"
18435                       fi
18436                     fi
18437                   fi
18438                   ;;
18439               esac
18440               if test "X$found_dir" != "X"; then
18441                 break
18442               fi
18443             done
18444           fi
18445           if test "X$found_dir" != "X"; then
18446                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18447             if test "X$found_so" != "X"; then
18448                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18449                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18450               else
18451                                                                                 haveit=
18452                 for x in $ltrpathdirs; do
18453                   if test "X$x" = "X$found_dir"; then
18454                     haveit=yes
18455                     break
18456                   fi
18457                 done
18458                 if test -z "$haveit"; then
18459                   ltrpathdirs="$ltrpathdirs $found_dir"
18460                 fi
18461                                 if test "$hardcode_direct" = yes; then
18462                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18463                 else
18464                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18465                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18466                                                             haveit=
18467                     for x in $rpathdirs; do
18468                       if test "X$x" = "X$found_dir"; then
18469                         haveit=yes
18470                         break
18471                       fi
18472                     done
18473                     if test -z "$haveit"; then
18474                       rpathdirs="$rpathdirs $found_dir"
18475                     fi
18476                   else
18477                                                                                 haveit=
18478                     for x in $LDFLAGS $LIBINTL; do
18479
18480   acl_save_prefix="$prefix"
18481   prefix="$acl_final_prefix"
18482   acl_save_exec_prefix="$exec_prefix"
18483   exec_prefix="$acl_final_exec_prefix"
18484   eval x=\"$x\"
18485   exec_prefix="$acl_save_exec_prefix"
18486   prefix="$acl_save_prefix"
18487
18488                       if test "X$x" = "X-L$found_dir"; then
18489                         haveit=yes
18490                         break
18491                       fi
18492                     done
18493                     if test -z "$haveit"; then
18494                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18495                     fi
18496                     if test "$hardcode_minus_L" != no; then
18497                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18498                     else
18499                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18500                     fi
18501                   fi
18502                 fi
18503               fi
18504             else
18505               if test "X$found_a" != "X"; then
18506                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18507               else
18508                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18509               fi
18510             fi
18511                         additional_includedir=
18512             case "$found_dir" in
18513               */lib | */lib/)
18514                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18515                 additional_includedir="$basedir/include"
18516                 ;;
18517             esac
18518             if test "X$additional_includedir" != "X"; then
18519                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18520                 haveit=
18521                 if test "X$additional_includedir" = "X/usr/local/include"; then
18522                   if test -n "$GCC"; then
18523                     case $host_os in
18524                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18525                     esac
18526                   fi
18527                 fi
18528                 if test -z "$haveit"; then
18529                   for x in $CPPFLAGS $INCINTL; do
18530
18531   acl_save_prefix="$prefix"
18532   prefix="$acl_final_prefix"
18533   acl_save_exec_prefix="$exec_prefix"
18534   exec_prefix="$acl_final_exec_prefix"
18535   eval x=\"$x\"
18536   exec_prefix="$acl_save_exec_prefix"
18537   prefix="$acl_save_prefix"
18538
18539                     if test "X$x" = "X-I$additional_includedir"; then
18540                       haveit=yes
18541                       break
18542                     fi
18543                   done
18544                   if test -z "$haveit"; then
18545                     if test -d "$additional_includedir"; then
18546                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18547                     fi
18548                   fi
18549                 fi
18550               fi
18551             fi
18552                         if test -n "$found_la"; then
18553                                                         save_libdir="$libdir"
18554               case "$found_la" in
18555                 */* | *\\*) . "$found_la" ;;
18556                 *) . "./$found_la" ;;
18557               esac
18558               libdir="$save_libdir"
18559                             for dep in $dependency_libs; do
18560                 case "$dep" in
18561                   -L*)
18562                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18563                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18564                       haveit=
18565                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18566                         if test -n "$GCC"; then
18567                           case $host_os in
18568                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18569                           esac
18570                         fi
18571                       fi
18572                       if test -z "$haveit"; then
18573                         haveit=
18574                         for x in $LDFLAGS $LIBINTL; do
18575
18576   acl_save_prefix="$prefix"
18577   prefix="$acl_final_prefix"
18578   acl_save_exec_prefix="$exec_prefix"
18579   exec_prefix="$acl_final_exec_prefix"
18580   eval x=\"$x\"
18581   exec_prefix="$acl_save_exec_prefix"
18582   prefix="$acl_save_prefix"
18583
18584                           if test "X$x" = "X-L$additional_libdir"; then
18585                             haveit=yes
18586                             break
18587                           fi
18588                         done
18589                         if test -z "$haveit"; then
18590                           if test -d "$additional_libdir"; then
18591                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18592                           fi
18593                         fi
18594                         haveit=
18595                         for x in $LDFLAGS $LTLIBINTL; do
18596
18597   acl_save_prefix="$prefix"
18598   prefix="$acl_final_prefix"
18599   acl_save_exec_prefix="$exec_prefix"
18600   exec_prefix="$acl_final_exec_prefix"
18601   eval x=\"$x\"
18602   exec_prefix="$acl_save_exec_prefix"
18603   prefix="$acl_save_prefix"
18604
18605                           if test "X$x" = "X-L$additional_libdir"; then
18606                             haveit=yes
18607                             break
18608                           fi
18609                         done
18610                         if test -z "$haveit"; then
18611                           if test -d "$additional_libdir"; then
18612                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18613                           fi
18614                         fi
18615                       fi
18616                     fi
18617                     ;;
18618                   -R*)
18619                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18620                     if test "$enable_rpath" != no; then
18621                                                                   haveit=
18622                       for x in $rpathdirs; do
18623                         if test "X$x" = "X$dir"; then
18624                           haveit=yes
18625                           break
18626                         fi
18627                       done
18628                       if test -z "$haveit"; then
18629                         rpathdirs="$rpathdirs $dir"
18630                       fi
18631                                                                   haveit=
18632                       for x in $ltrpathdirs; do
18633                         if test "X$x" = "X$dir"; then
18634                           haveit=yes
18635                           break
18636                         fi
18637                       done
18638                       if test -z "$haveit"; then
18639                         ltrpathdirs="$ltrpathdirs $dir"
18640                       fi
18641                     fi
18642                     ;;
18643                   -l*)
18644                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18645                     ;;
18646                   *.la)
18647                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18648                     ;;
18649                   *)
18650                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18651                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18652                     ;;
18653                 esac
18654               done
18655             fi
18656           else
18657                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18658             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18659           fi
18660         fi
18661       fi
18662     done
18663   done
18664   if test "X$rpathdirs" != "X"; then
18665     if test -n "$hardcode_libdir_separator"; then
18666                         alldirs=
18667       for found_dir in $rpathdirs; do
18668         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18669       done
18670             acl_save_libdir="$libdir"
18671       libdir="$alldirs"
18672       eval flag=\"$hardcode_libdir_flag_spec\"
18673       libdir="$acl_save_libdir"
18674       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18675     else
18676             for found_dir in $rpathdirs; do
18677         acl_save_libdir="$libdir"
18678         libdir="$found_dir"
18679         eval flag=\"$hardcode_libdir_flag_spec\"
18680         libdir="$acl_save_libdir"
18681         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18682       done
18683     fi
18684   fi
18685   if test "X$ltrpathdirs" != "X"; then
18686             for found_dir in $ltrpathdirs; do
18687       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18688     done
18689   fi
18690
18691           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18692 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18693 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18694   $as_echo_n "(cached) " >&6
18695 else
18696   gt_save_CPPFLAGS="$CPPFLAGS"
18697             CPPFLAGS="$CPPFLAGS $INCINTL"
18698             gt_save_LIBS="$LIBS"
18699             LIBS="$LIBS $LIBINTL"
18700                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18701 /* end confdefs.h.  */
18702 #include <libintl.h>
18703 extern int _nl_msg_cat_cntr;
18704 extern
18705 #ifdef __cplusplus
18706 "C"
18707 #endif
18708 const char *_nl_expand_alias (const char *);
18709 int
18710 main ()
18711 {
18712 bindtextdomain ("", "");
18713 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 if ac_fn_c_try_link "$LINENO"; then :
18719   gt_cv_func_gnugettext1_libintl=yes
18720 else
18721   gt_cv_func_gnugettext1_libintl=no
18722 fi
18723 rm -f core conftest.err conftest.$ac_objext \
18724     conftest$ac_exeext conftest.$ac_ext
18725                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18726               LIBS="$LIBS $LIBICONV"
18727               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h.  */
18729 #include <libintl.h>
18730 extern int _nl_msg_cat_cntr;
18731 extern
18732 #ifdef __cplusplus
18733 "C"
18734 #endif
18735 const char *_nl_expand_alias (const char *);
18736 int
18737 main ()
18738 {
18739 bindtextdomain ("", "");
18740 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18741   ;
18742   return 0;
18743 }
18744 _ACEOF
18745 if ac_fn_c_try_link "$LINENO"; then :
18746   LIBINTL="$LIBINTL $LIBICONV"
18747                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18748                 gt_cv_func_gnugettext1_libintl=yes
18749
18750 fi
18751 rm -f core conftest.err conftest.$ac_objext \
18752     conftest$ac_exeext conftest.$ac_ext
18753             fi
18754             CPPFLAGS="$gt_save_CPPFLAGS"
18755             LIBS="$gt_save_LIBS"
18756 fi
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18758 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18759         fi
18760
18761                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18762            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18763                 && test "$PACKAGE" != gettext-runtime \
18764                 && test "$PACKAGE" != gettext-tools; }; then
18765           gt_use_preinstalled_gnugettext=yes
18766         else
18767                     LIBINTL=
18768           LTLIBINTL=
18769           INCINTL=
18770         fi
18771
18772
18773
18774     if test -n "$INTL_MACOSX_LIBS"; then
18775       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18776          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18777                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18778         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18779       fi
18780     fi
18781
18782     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18783        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18784
18785 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18786
18787     else
18788       USE_NLS=no
18789     fi
18790   fi
18791
18792   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18793 $as_echo_n "checking whether to use NLS... " >&6; }
18794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18795 $as_echo "$USE_NLS" >&6; }
18796   if test "$USE_NLS" = "yes"; then
18797     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18798 $as_echo_n "checking where the gettext function comes from... " >&6; }
18799     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18800       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18801         gt_source="external libintl"
18802       else
18803         gt_source="libc"
18804       fi
18805     else
18806       gt_source="included intl directory"
18807     fi
18808     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18809 $as_echo "$gt_source" >&6; }
18810   fi
18811
18812   if test "$USE_NLS" = "yes"; then
18813
18814     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18815       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18816         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18817 $as_echo_n "checking how to link with libintl... " >&6; }
18818         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18819 $as_echo "$LIBINTL" >&6; }
18820
18821   for element in $INCINTL; do
18822     haveit=
18823     for x in $CPPFLAGS; do
18824
18825   acl_save_prefix="$prefix"
18826   prefix="$acl_final_prefix"
18827   acl_save_exec_prefix="$exec_prefix"
18828   exec_prefix="$acl_final_exec_prefix"
18829   eval x=\"$x\"
18830   exec_prefix="$acl_save_exec_prefix"
18831   prefix="$acl_save_prefix"
18832
18833       if test "X$x" = "X$element"; then
18834         haveit=yes
18835         break
18836       fi
18837     done
18838     if test -z "$haveit"; then
18839       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18840     fi
18841   done
18842
18843       fi
18844
18845
18846 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18847
18848
18849 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18850
18851     fi
18852
18853         POSUB=po
18854   fi
18855
18856
18857
18858     INTLLIBS="$LIBINTL"
18859
18860
18861
18862
18863
18864
18865
18866 os_name=`uname -s 2>/dev/null`
18867 if test x${prefix} = xNONE ; then
18868    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18869       sysconfdir=/etc/bacula
18870    fi
18871
18872    if test `eval echo ${libdir}` = NONE/lib ; then
18873       case ${os_name} in
18874       Linux)
18875          os_processor=`uname -p 2>/dev/null`
18876          case ${os_processor} in
18877          x86_64)
18878             libdir=/usr/lib64
18879             ;;
18880          *)
18881             libdir=/usr/lib
18882             ;;
18883          esac
18884          ;;
18885       *)
18886          libdir=/usr/lib
18887          ;;
18888       esac
18889    fi
18890
18891    if test `eval echo ${includedir}` = NONE/include ; then
18892       includedir=/usr/include
18893    fi
18894
18895    if test `eval echo ${datarootdir}` = NONE/share ; then
18896       datarootdir=/usr/share
18897    fi
18898    prefix=
18899 fi
18900
18901 if test x${exec_prefix} = xNONE ; then
18902    exec_prefix=${prefix}
18903 fi
18904
18905 sysconfdir=`eval echo ${sysconfdir}`
18906 datarootdir=`eval echo ${datarootdir}`
18907 docdir=`eval echo ${docdir}`
18908 htmldir=`eval echo ${htmldir}`
18909 libdir=`eval echo ${libdir}`
18910 includedir=`eval echo ${includedir}`
18911 localedir=`eval echo ${datarootdir}/locale`
18912 cat >>confdefs.h <<_ACEOF
18913 #define SYSCONFDIR "$sysconfdir"
18914 _ACEOF
18915
18916 cat >>confdefs.h <<_ACEOF
18917 #define LOCALEDIR "$localedir"
18918 _ACEOF
18919
18920
18921 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18922    sbindir=${exec_prefix}/sbin
18923 fi
18924 sbindir=`eval echo ${sbindir}`
18925
18926 if test x$mandir = x'${prefix}/man' ; then
18927    mandir=/usr/share/man
18928 fi
18929
18930 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18931    htmldir=`eval echo ${docdir}html`
18932 fi
18933
18934 if test x$docdir = x'/usr/share/doc/' ; then
18935    docdir=`eval echo ${docdir}bacula`
18936 fi
18937
18938
18939 for ac_prog in msgfmt
18940 do
18941   # Extract the first word of "$ac_prog", so it can be a program name with args.
18942 set dummy $ac_prog; ac_word=$2
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18944 $as_echo_n "checking for $ac_word... " >&6; }
18945 if ${ac_cv_path_MSGFMT+:} false; then :
18946   $as_echo_n "(cached) " >&6
18947 else
18948   case $MSGFMT in
18949   [\\/]* | ?:[\\/]*)
18950   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18951   ;;
18952   *)
18953   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18954 for as_dir in $PATH
18955 do
18956   IFS=$as_save_IFS
18957   test -z "$as_dir" && as_dir=.
18958     for ac_exec_ext in '' $ac_executable_extensions; do
18959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18960     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18962     break 2
18963   fi
18964 done
18965   done
18966 IFS=$as_save_IFS
18967
18968   ;;
18969 esac
18970 fi
18971 MSGFMT=$ac_cv_path_MSGFMT
18972 if test -n "$MSGFMT"; then
18973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18974 $as_echo "$MSGFMT" >&6; }
18975 else
18976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18977 $as_echo "no" >&6; }
18978 fi
18979
18980
18981   test -n "$MSGFMT" && break
18982 done
18983 test -n "$MSGFMT" || MSGFMT="no"
18984
18985 if test "$MSGFMT" = "no"
18986 then
18987    echo 'msgfmt program not found, disabling NLS !'
18988    USE_NLS=no
18989    USE_INCLUDED_LIBINTL=no
18990 #else
18991
18992     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18993 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18994 if ${ac_cv_gnu_library_2+:} false; then :
18995   $as_echo_n "(cached) " >&6
18996 else
18997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18998 /* end confdefs.h.  */
18999
19000 #include <features.h>
19001 #ifdef __GNU_LIBRARY__
19002  #if (__GLIBC__ >= 2)
19003   Lucky GNU user
19004  #endif
19005 #endif
19006
19007 _ACEOF
19008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19009   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19010   ac_cv_gnu_library_2=yes
19011 else
19012   ac_cv_gnu_library_2=no
19013 fi
19014 rm -f conftest*
19015
19016
19017
19018 fi
19019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19020 $as_echo "$ac_cv_gnu_library_2" >&6; }
19021
19022     GLIBC2="$ac_cv_gnu_library_2"
19023
19024
19025 if test -n "$ac_tool_prefix"; then
19026   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19027 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19029 $as_echo_n "checking for $ac_word... " >&6; }
19030 if ${ac_cv_prog_RANLIB+:} false; then :
19031   $as_echo_n "(cached) " >&6
19032 else
19033   if test -n "$RANLIB"; then
19034   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19035 else
19036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19037 for as_dir in $PATH
19038 do
19039   IFS=$as_save_IFS
19040   test -z "$as_dir" && as_dir=.
19041     for ac_exec_ext in '' $ac_executable_extensions; do
19042   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19043     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19044     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19045     break 2
19046   fi
19047 done
19048   done
19049 IFS=$as_save_IFS
19050
19051 fi
19052 fi
19053 RANLIB=$ac_cv_prog_RANLIB
19054 if test -n "$RANLIB"; then
19055   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19056 $as_echo "$RANLIB" >&6; }
19057 else
19058   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19060 fi
19061
19062
19063 fi
19064 if test -z "$ac_cv_prog_RANLIB"; then
19065   ac_ct_RANLIB=$RANLIB
19066   # Extract the first word of "ranlib", so it can be a program name with args.
19067 set dummy ranlib; ac_word=$2
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19069 $as_echo_n "checking for $ac_word... " >&6; }
19070 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19071   $as_echo_n "(cached) " >&6
19072 else
19073   if test -n "$ac_ct_RANLIB"; then
19074   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19075 else
19076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19077 for as_dir in $PATH
19078 do
19079   IFS=$as_save_IFS
19080   test -z "$as_dir" && as_dir=.
19081     for ac_exec_ext in '' $ac_executable_extensions; do
19082   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19083     ac_cv_prog_ac_ct_RANLIB="ranlib"
19084     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19085     break 2
19086   fi
19087 done
19088   done
19089 IFS=$as_save_IFS
19090
19091 fi
19092 fi
19093 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19094 if test -n "$ac_ct_RANLIB"; then
19095   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19096 $as_echo "$ac_ct_RANLIB" >&6; }
19097 else
19098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19099 $as_echo "no" >&6; }
19100 fi
19101
19102   if test "x$ac_ct_RANLIB" = x; then
19103     RANLIB=":"
19104   else
19105     case $cross_compiling:$ac_tool_warned in
19106 yes:)
19107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19109 ac_tool_warned=yes ;;
19110 esac
19111     RANLIB=$ac_ct_RANLIB
19112   fi
19113 else
19114   RANLIB="$ac_cv_prog_RANLIB"
19115 fi
19116
19117
19118         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19119 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19120 if ${ac_cv_lib_cposix_strerror+:} false; then :
19121   $as_echo_n "(cached) " >&6
19122 else
19123   ac_check_lib_save_LIBS=$LIBS
19124 LIBS="-lcposix  $LIBS"
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h.  */
19127
19128 /* Override any GCC internal prototype to avoid an error.
19129    Use char because int might match the return type of a GCC
19130    builtin and then its argument prototype would still apply.  */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 char strerror ();
19135 int
19136 main ()
19137 {
19138 return strerror ();
19139   ;
19140   return 0;
19141 }
19142 _ACEOF
19143 if ac_fn_c_try_link "$LINENO"; then :
19144   ac_cv_lib_cposix_strerror=yes
19145 else
19146   ac_cv_lib_cposix_strerror=no
19147 fi
19148 rm -f core conftest.err conftest.$ac_objext \
19149     conftest$ac_exeext conftest.$ac_ext
19150 LIBS=$ac_check_lib_save_LIBS
19151 fi
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19153 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19154 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19155   LIBS="$LIBS -lcposix"
19156 fi
19157
19158
19159
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19161 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19162 if ${ac_cv_c_const+:} false; then :
19163   $as_echo_n "(cached) " >&6
19164 else
19165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h.  */
19167
19168 int
19169 main ()
19170 {
19171
19172 #ifndef __cplusplus
19173   /* Ultrix mips cc rejects this sort of thing.  */
19174   typedef int charset[2];
19175   const charset cs = { 0, 0 };
19176   /* SunOS 4.1.1 cc rejects this.  */
19177   char const *const *pcpcc;
19178   char **ppc;
19179   /* NEC SVR4.0.2 mips cc rejects this.  */
19180   struct point {int x, y;};
19181   static struct point const zero = {0,0};
19182   /* AIX XL C 1.02.0.0 rejects this.
19183      It does not let you subtract one const X* pointer from another in
19184      an arm of an if-expression whose if-part is not a constant
19185      expression */
19186   const char *g = "string";
19187   pcpcc = &g + (g ? g-g : 0);
19188   /* HPUX 7.0 cc rejects these. */
19189   ++pcpcc;
19190   ppc = (char**) pcpcc;
19191   pcpcc = (char const *const *) ppc;
19192   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19193     char tx;
19194     char *t = &tx;
19195     char const *s = 0 ? (char *) 0 : (char const *) 0;
19196
19197     *t++ = 0;
19198     if (s) return 0;
19199   }
19200   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19201     int x[] = {25, 17};
19202     const int *foo = &x[0];
19203     ++foo;
19204   }
19205   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19206     typedef const int *iptr;
19207     iptr p = 0;
19208     ++p;
19209   }
19210   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19211        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19212     struct s { int j; const int *ap[3]; } bx;
19213     struct s *b = &bx; b->j = 5;
19214   }
19215   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19216     const int foo = 10;
19217     if (!foo) return 0;
19218   }
19219   return !cs[0] && !zero.x;
19220 #endif
19221
19222   ;
19223   return 0;
19224 }
19225 _ACEOF
19226 if ac_fn_c_try_compile "$LINENO"; then :
19227   ac_cv_c_const=yes
19228 else
19229   ac_cv_c_const=no
19230 fi
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 fi
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19234 $as_echo "$ac_cv_c_const" >&6; }
19235 if test $ac_cv_c_const = no; then
19236
19237 $as_echo "#define const /**/" >>confdefs.h
19238
19239 fi
19240
19241
19242   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19243 $as_echo_n "checking for signed... " >&6; }
19244 if ${bh_cv_c_signed+:} false; then :
19245   $as_echo_n "(cached) " >&6
19246 else
19247   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h.  */
19249
19250 int
19251 main ()
19252 {
19253 signed char x;
19254   ;
19255   return 0;
19256 }
19257 _ACEOF
19258 if ac_fn_c_try_compile "$LINENO"; then :
19259   bh_cv_c_signed=yes
19260 else
19261   bh_cv_c_signed=no
19262 fi
19263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19264 fi
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19266 $as_echo "$bh_cv_c_signed" >&6; }
19267   if test $bh_cv_c_signed = no; then
19268
19269 $as_echo "#define signed /**/" >>confdefs.h
19270
19271   fi
19272
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19274 $as_echo_n "checking for inline... " >&6; }
19275 if ${ac_cv_c_inline+:} false; then :
19276   $as_echo_n "(cached) " >&6
19277 else
19278   ac_cv_c_inline=no
19279 for ac_kw in inline __inline__ __inline; do
19280   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h.  */
19282 #ifndef __cplusplus
19283 typedef int foo_t;
19284 static $ac_kw foo_t static_foo () {return 0; }
19285 $ac_kw foo_t foo () {return 0; }
19286 #endif
19287
19288 _ACEOF
19289 if ac_fn_c_try_compile "$LINENO"; then :
19290   ac_cv_c_inline=$ac_kw
19291 fi
19292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19293   test "$ac_cv_c_inline" != no && break
19294 done
19295
19296 fi
19297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19298 $as_echo "$ac_cv_c_inline" >&6; }
19299
19300 case $ac_cv_c_inline in
19301   inline | yes) ;;
19302   *)
19303     case $ac_cv_c_inline in
19304       no) ac_val=;;
19305       *) ac_val=$ac_cv_c_inline;;
19306     esac
19307     cat >>confdefs.h <<_ACEOF
19308 #ifndef __cplusplus
19309 #define inline $ac_val
19310 #endif
19311 _ACEOF
19312     ;;
19313 esac
19314
19315 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19316 if test "x$ac_cv_type_off_t" = xyes; then :
19317
19318 else
19319
19320 cat >>confdefs.h <<_ACEOF
19321 #define off_t long int
19322 _ACEOF
19323
19324 fi
19325
19326 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19327 if test "x$ac_cv_type_size_t" = xyes; then :
19328
19329 else
19330
19331 cat >>confdefs.h <<_ACEOF
19332 #define size_t unsigned int
19333 _ACEOF
19334
19335 fi
19336
19337
19338   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19339 $as_echo_n "checking for long long... " >&6; }
19340 if ${ac_cv_type_long_long+:} false; then :
19341   $as_echo_n "(cached) " >&6
19342 else
19343   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19344 /* end confdefs.h.  */
19345 long long ll = 1LL; int i = 63;
19346 int
19347 main ()
19348 {
19349 long long llmax = (long long) -1;
19350      return ll << i | ll >> i | llmax / ll | llmax % ll;
19351   ;
19352   return 0;
19353 }
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"; then :
19356   ac_cv_type_long_long=yes
19357 else
19358   ac_cv_type_long_long=no
19359 fi
19360 rm -f core conftest.err conftest.$ac_objext \
19361     conftest$ac_exeext conftest.$ac_ext
19362 fi
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19364 $as_echo "$ac_cv_type_long_long" >&6; }
19365   if test $ac_cv_type_long_long = yes; then
19366
19367 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19368
19369   fi
19370
19371
19372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19373 $as_echo_n "checking for long double... " >&6; }
19374 if ${gt_cv_c_long_double+:} false; then :
19375   $as_echo_n "(cached) " >&6
19376 else
19377   if test "$GCC" = yes; then
19378        gt_cv_c_long_double=yes
19379      else
19380        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19381 /* end confdefs.h.  */
19382
19383          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19384          long double foo = 0.0;
19385          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19386          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19387
19388 int
19389 main ()
19390 {
19391
19392   ;
19393   return 0;
19394 }
19395 _ACEOF
19396 if ac_fn_c_try_compile "$LINENO"; then :
19397   gt_cv_c_long_double=yes
19398 else
19399   gt_cv_c_long_double=no
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402      fi
19403 fi
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19405 $as_echo "$gt_cv_c_long_double" >&6; }
19406   if test $gt_cv_c_long_double = yes; then
19407
19408 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19409
19410   fi
19411
19412
19413   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19414 $as_echo_n "checking for wchar_t... " >&6; }
19415 if ${gt_cv_c_wchar_t+:} false; then :
19416   $as_echo_n "(cached) " >&6
19417 else
19418   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h.  */
19420 #include <stddef.h>
19421        wchar_t foo = (wchar_t)'\0';
19422 int
19423 main ()
19424 {
19425
19426   ;
19427   return 0;
19428 }
19429 _ACEOF
19430 if ac_fn_c_try_compile "$LINENO"; then :
19431   gt_cv_c_wchar_t=yes
19432 else
19433   gt_cv_c_wchar_t=no
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19436 fi
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19438 $as_echo "$gt_cv_c_wchar_t" >&6; }
19439   if test $gt_cv_c_wchar_t = yes; then
19440
19441 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19442
19443   fi
19444
19445
19446   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19447 $as_echo_n "checking for wint_t... " >&6; }
19448 if ${gt_cv_c_wint_t+:} false; then :
19449   $as_echo_n "(cached) " >&6
19450 else
19451   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19452 /* end confdefs.h.  */
19453 #include <wchar.h>
19454        wint_t foo = (wchar_t)'\0';
19455 int
19456 main ()
19457 {
19458
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 if ac_fn_c_try_compile "$LINENO"; then :
19464   gt_cv_c_wint_t=yes
19465 else
19466   gt_cv_c_wint_t=no
19467 fi
19468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19469 fi
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19471 $as_echo "$gt_cv_c_wint_t" >&6; }
19472   if test $gt_cv_c_wint_t = yes; then
19473
19474 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19475
19476   fi
19477
19478
19479   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19480 $as_echo_n "checking for inttypes.h... " >&6; }
19481 if ${gl_cv_header_inttypes_h+:} false; then :
19482   $as_echo_n "(cached) " >&6
19483 else
19484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h.  */
19486 #include <sys/types.h>
19487 #include <inttypes.h>
19488 int
19489 main ()
19490 {
19491 uintmax_t i = (uintmax_t) -1;
19492   ;
19493   return 0;
19494 }
19495 _ACEOF
19496 if ac_fn_c_try_compile "$LINENO"; then :
19497   gl_cv_header_inttypes_h=yes
19498 else
19499   gl_cv_header_inttypes_h=no
19500 fi
19501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19502 fi
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19504 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19505   if test $gl_cv_header_inttypes_h = yes; then
19506
19507 cat >>confdefs.h <<_ACEOF
19508 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19509 _ACEOF
19510
19511   fi
19512
19513
19514   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19515 $as_echo_n "checking for stdint.h... " >&6; }
19516 if ${gl_cv_header_stdint_h+:} false; then :
19517   $as_echo_n "(cached) " >&6
19518 else
19519   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19520 /* end confdefs.h.  */
19521 #include <sys/types.h>
19522 #include <stdint.h>
19523 int
19524 main ()
19525 {
19526 uintmax_t i = (uintmax_t) -1;
19527   ;
19528   return 0;
19529 }
19530 _ACEOF
19531 if ac_fn_c_try_compile "$LINENO"; then :
19532   gl_cv_header_stdint_h=yes
19533 else
19534   gl_cv_header_stdint_h=no
19535 fi
19536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19537 fi
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19539 $as_echo "$gl_cv_header_stdint_h" >&6; }
19540   if test $gl_cv_header_stdint_h = yes; then
19541
19542 cat >>confdefs.h <<_ACEOF
19543 #define HAVE_STDINT_H_WITH_UINTMAX 1
19544 _ACEOF
19545
19546   fi
19547
19548
19549
19550
19551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19552 $as_echo_n "checking for intmax_t... " >&6; }
19553 if ${gt_cv_c_intmax_t+:} false; then :
19554   $as_echo_n "(cached) " >&6
19555 else
19556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h.  */
19558
19559 #include <stddef.h>
19560 #include <stdlib.h>
19561 #if HAVE_STDINT_H_WITH_UINTMAX
19562 #include <stdint.h>
19563 #endif
19564 #if HAVE_INTTYPES_H_WITH_UINTMAX
19565 #include <inttypes.h>
19566 #endif
19567
19568 int
19569 main ()
19570 {
19571 intmax_t x = -1;
19572   ;
19573   return 0;
19574 }
19575 _ACEOF
19576 if ac_fn_c_try_compile "$LINENO"; then :
19577   gt_cv_c_intmax_t=yes
19578 else
19579   gt_cv_c_intmax_t=no
19580 fi
19581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19582 fi
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19584 $as_echo "$gt_cv_c_intmax_t" >&6; }
19585   if test $gt_cv_c_intmax_t = yes; then
19586
19587 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19588
19589   fi
19590
19591
19592
19593   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19594 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19595 if ${gt_cv_func_printf_posix+:} false; then :
19596   $as_echo_n "(cached) " >&6
19597 else
19598
19599       if test "$cross_compiling" = yes; then :
19600
19601         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19602 /* end confdefs.h.  */
19603
19604 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19605   notposix
19606 #endif
19607
19608 _ACEOF
19609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19610   $EGREP "notposix" >/dev/null 2>&1; then :
19611   gt_cv_func_printf_posix="guessing no"
19612 else
19613   gt_cv_func_printf_posix="guessing yes"
19614 fi
19615 rm -f conftest*
19616
19617
19618 else
19619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19620 /* end confdefs.h.  */
19621
19622 #include <stdio.h>
19623 #include <string.h>
19624 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19625    dollar expansion (possibly an autoconf bug).  */
19626 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19627 static char buf[100];
19628 int main ()
19629 {
19630   sprintf (buf, format, 33, 55);
19631   return (strcmp (buf, "55 33") != 0);
19632 }
19633 _ACEOF
19634 if ac_fn_c_try_run "$LINENO"; then :
19635   gt_cv_func_printf_posix=yes
19636 else
19637   gt_cv_func_printf_posix=no
19638 fi
19639 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19640   conftest.$ac_objext conftest.beam conftest.$ac_ext
19641 fi
19642
19643
19644 fi
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19646 $as_echo "$gt_cv_func_printf_posix" >&6; }
19647   case $gt_cv_func_printf_posix in
19648     *yes)
19649
19650 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19651
19652       ;;
19653   esac
19654
19655 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19656 # for constant arguments.  Useless!
19657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19658 $as_echo_n "checking for working alloca.h... " >&6; }
19659 if ${ac_cv_working_alloca_h+:} false; then :
19660   $as_echo_n "(cached) " >&6
19661 else
19662   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19663 /* end confdefs.h.  */
19664 #include <alloca.h>
19665 int
19666 main ()
19667 {
19668 char *p = (char *) alloca (2 * sizeof (int));
19669                           if (p) return 0;
19670   ;
19671   return 0;
19672 }
19673 _ACEOF
19674 if ac_fn_c_try_link "$LINENO"; then :
19675   ac_cv_working_alloca_h=yes
19676 else
19677   ac_cv_working_alloca_h=no
19678 fi
19679 rm -f core conftest.err conftest.$ac_objext \
19680     conftest$ac_exeext conftest.$ac_ext
19681 fi
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19683 $as_echo "$ac_cv_working_alloca_h" >&6; }
19684 if test $ac_cv_working_alloca_h = yes; then
19685
19686 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19687
19688 fi
19689
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19691 $as_echo_n "checking for alloca... " >&6; }
19692 if ${ac_cv_func_alloca_works+:} false; then :
19693   $as_echo_n "(cached) " >&6
19694 else
19695   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h.  */
19697 #ifdef __GNUC__
19698 # define alloca __builtin_alloca
19699 #else
19700 # ifdef _MSC_VER
19701 #  include <malloc.h>
19702 #  define alloca _alloca
19703 # else
19704 #  ifdef HAVE_ALLOCA_H
19705 #   include <alloca.h>
19706 #  else
19707 #   ifdef _AIX
19708  #pragma alloca
19709 #   else
19710 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19711 void *alloca (size_t);
19712 #    endif
19713 #   endif
19714 #  endif
19715 # endif
19716 #endif
19717
19718 int
19719 main ()
19720 {
19721 char *p = (char *) alloca (1);
19722                                     if (p) return 0;
19723   ;
19724   return 0;
19725 }
19726 _ACEOF
19727 if ac_fn_c_try_link "$LINENO"; then :
19728   ac_cv_func_alloca_works=yes
19729 else
19730   ac_cv_func_alloca_works=no
19731 fi
19732 rm -f core conftest.err conftest.$ac_objext \
19733     conftest$ac_exeext conftest.$ac_ext
19734 fi
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19736 $as_echo "$ac_cv_func_alloca_works" >&6; }
19737
19738 if test $ac_cv_func_alloca_works = yes; then
19739
19740 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19741
19742 else
19743   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19744 # that cause trouble.  Some versions do not even contain alloca or
19745 # contain a buggy version.  If you still want to use their alloca,
19746 # use ar to extract alloca.o from them instead of compiling alloca.c.
19747
19748 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19749
19750 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19751
19752
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19754 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19755 if ${ac_cv_os_cray+:} false; then :
19756   $as_echo_n "(cached) " >&6
19757 else
19758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19759 /* end confdefs.h.  */
19760 #if defined CRAY && ! defined CRAY2
19761 webecray
19762 #else
19763 wenotbecray
19764 #endif
19765
19766 _ACEOF
19767 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19768   $EGREP "webecray" >/dev/null 2>&1; then :
19769   ac_cv_os_cray=yes
19770 else
19771   ac_cv_os_cray=no
19772 fi
19773 rm -f conftest*
19774
19775 fi
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19777 $as_echo "$ac_cv_os_cray" >&6; }
19778 if test $ac_cv_os_cray = yes; then
19779   for ac_func in _getb67 GETB67 getb67; do
19780     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19781 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19782 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19783
19784 cat >>confdefs.h <<_ACEOF
19785 #define CRAY_STACKSEG_END $ac_func
19786 _ACEOF
19787
19788     break
19789 fi
19790
19791   done
19792 fi
19793
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19795 $as_echo_n "checking stack direction for C alloca... " >&6; }
19796 if ${ac_cv_c_stack_direction+:} false; then :
19797   $as_echo_n "(cached) " >&6
19798 else
19799   if test "$cross_compiling" = yes; then :
19800   ac_cv_c_stack_direction=0
19801 else
19802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19803 /* end confdefs.h.  */
19804 $ac_includes_default
19805 int
19806 find_stack_direction (int *addr, int depth)
19807 {
19808   int dir, dummy = 0;
19809   if (! addr)
19810     addr = &dummy;
19811   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19812   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19813   return dir + dummy;
19814 }
19815
19816 int
19817 main (int argc, char **argv)
19818 {
19819   return find_stack_direction (0, argc + !argv + 20) < 0;
19820 }
19821 _ACEOF
19822 if ac_fn_c_try_run "$LINENO"; then :
19823   ac_cv_c_stack_direction=1
19824 else
19825   ac_cv_c_stack_direction=-1
19826 fi
19827 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19828   conftest.$ac_objext conftest.beam conftest.$ac_ext
19829 fi
19830
19831 fi
19832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19833 $as_echo "$ac_cv_c_stack_direction" >&6; }
19834 cat >>confdefs.h <<_ACEOF
19835 #define STACK_DIRECTION $ac_cv_c_stack_direction
19836 _ACEOF
19837
19838
19839 fi
19840
19841
19842
19843
19844   for ac_header in $ac_header_list
19845 do :
19846   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19847 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19848 "
19849 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19850   cat >>confdefs.h <<_ACEOF
19851 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19852 _ACEOF
19853
19854 fi
19855
19856 done
19857
19858
19859
19860
19861
19862
19863
19864
19865 for ac_func in getpagesize
19866 do :
19867   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19868 if test "x$ac_cv_func_getpagesize" = xyes; then :
19869   cat >>confdefs.h <<_ACEOF
19870 #define HAVE_GETPAGESIZE 1
19871 _ACEOF
19872
19873 fi
19874 done
19875
19876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19877 $as_echo_n "checking for working mmap... " >&6; }
19878 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19879   $as_echo_n "(cached) " >&6
19880 else
19881   if test "$cross_compiling" = yes; then :
19882   ac_cv_func_mmap_fixed_mapped=no
19883 else
19884   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19885 /* end confdefs.h.  */
19886 $ac_includes_default
19887 /* malloc might have been renamed as rpl_malloc. */
19888 #undef malloc
19889
19890 /* Thanks to Mike Haertel and Jim Avera for this test.
19891    Here is a matrix of mmap possibilities:
19892         mmap private not fixed
19893         mmap private fixed at somewhere currently unmapped
19894         mmap private fixed at somewhere already mapped
19895         mmap shared not fixed
19896         mmap shared fixed at somewhere currently unmapped
19897         mmap shared fixed at somewhere already mapped
19898    For private mappings, we should verify that changes cannot be read()
19899    back from the file, nor mmap's back from the file at a different
19900    address.  (There have been systems where private was not correctly
19901    implemented like the infamous i386 svr4.0, and systems where the
19902    VM page cache was not coherent with the file system buffer cache
19903    like early versions of FreeBSD and possibly contemporary NetBSD.)
19904    For shared mappings, we should conversely verify that changes get
19905    propagated back to all the places they're supposed to be.
19906
19907    Grep wants private fixed already mapped.
19908    The main things grep needs to know about mmap are:
19909    * does it exist and is it safe to write into the mmap'd area
19910    * how to use it (BSD variants)  */
19911
19912 #include <fcntl.h>
19913 #include <sys/mman.h>
19914
19915 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19916 char *malloc ();
19917 #endif
19918
19919 /* This mess was copied from the GNU getpagesize.h.  */
19920 #ifndef HAVE_GETPAGESIZE
19921 # ifdef _SC_PAGESIZE
19922 #  define getpagesize() sysconf(_SC_PAGESIZE)
19923 # else /* no _SC_PAGESIZE */
19924 #  ifdef HAVE_SYS_PARAM_H
19925 #   include <sys/param.h>
19926 #   ifdef EXEC_PAGESIZE
19927 #    define getpagesize() EXEC_PAGESIZE
19928 #   else /* no EXEC_PAGESIZE */
19929 #    ifdef NBPG
19930 #     define getpagesize() NBPG * CLSIZE
19931 #     ifndef CLSIZE
19932 #      define CLSIZE 1
19933 #     endif /* no CLSIZE */
19934 #    else /* no NBPG */
19935 #     ifdef NBPC
19936 #      define getpagesize() NBPC
19937 #     else /* no NBPC */
19938 #      ifdef PAGESIZE
19939 #       define getpagesize() PAGESIZE
19940 #      endif /* PAGESIZE */
19941 #     endif /* no NBPC */
19942 #    endif /* no NBPG */
19943 #   endif /* no EXEC_PAGESIZE */
19944 #  else /* no HAVE_SYS_PARAM_H */
19945 #   define getpagesize() 8192   /* punt totally */
19946 #  endif /* no HAVE_SYS_PARAM_H */
19947 # endif /* no _SC_PAGESIZE */
19948
19949 #endif /* no HAVE_GETPAGESIZE */
19950
19951 int
19952 main ()
19953 {
19954   char *data, *data2, *data3;
19955   const char *cdata2;
19956   int i, pagesize;
19957   int fd, fd2;
19958
19959   pagesize = getpagesize ();
19960
19961   /* First, make a file with some known garbage in it. */
19962   data = (char *) malloc (pagesize);
19963   if (!data)
19964     return 1;
19965   for (i = 0; i < pagesize; ++i)
19966     *(data + i) = rand ();
19967   umask (0);
19968   fd = creat ("conftest.mmap", 0600);
19969   if (fd < 0)
19970     return 2;
19971   if (write (fd, data, pagesize) != pagesize)
19972     return 3;
19973   close (fd);
19974
19975   /* Next, check that the tail of a page is zero-filled.  File must have
19976      non-zero length, otherwise we risk SIGBUS for entire page.  */
19977   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19978   if (fd2 < 0)
19979     return 4;
19980   cdata2 = "";
19981   if (write (fd2, cdata2, 1) != 1)
19982     return 5;
19983   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19984   if (data2 == MAP_FAILED)
19985     return 6;
19986   for (i = 0; i < pagesize; ++i)
19987     if (*(data2 + i))
19988       return 7;
19989   close (fd2);
19990   if (munmap (data2, pagesize))
19991     return 8;
19992
19993   /* Next, try to mmap the file at a fixed address which already has
19994      something else allocated at it.  If we can, also make sure that
19995      we see the same garbage.  */
19996   fd = open ("conftest.mmap", O_RDWR);
19997   if (fd < 0)
19998     return 9;
19999   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20000                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20001     return 10;
20002   for (i = 0; i < pagesize; ++i)
20003     if (*(data + i) != *(data2 + i))
20004       return 11;
20005
20006   /* Finally, make sure that changes to the mapped area do not
20007      percolate back to the file as seen by read().  (This is a bug on
20008      some variants of i386 svr4.0.)  */
20009   for (i = 0; i < pagesize; ++i)
20010     *(data2 + i) = *(data2 + i) + 1;
20011   data3 = (char *) malloc (pagesize);
20012   if (!data3)
20013     return 12;
20014   if (read (fd, data3, pagesize) != pagesize)
20015     return 13;
20016   for (i = 0; i < pagesize; ++i)
20017     if (*(data + i) != *(data3 + i))
20018       return 14;
20019   close (fd);
20020   return 0;
20021 }
20022 _ACEOF
20023 if ac_fn_c_try_run "$LINENO"; then :
20024   ac_cv_func_mmap_fixed_mapped=yes
20025 else
20026   ac_cv_func_mmap_fixed_mapped=no
20027 fi
20028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20029   conftest.$ac_objext conftest.beam conftest.$ac_ext
20030 fi
20031
20032 fi
20033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20034 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20035 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20036
20037 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20038
20039 fi
20040 rm -f conftest.mmap conftest.txt
20041
20042
20043     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20044 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20045 if ${ac_cv_gnu_library_2_1+:} false; then :
20046   $as_echo_n "(cached) " >&6
20047 else
20048   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20049 /* end confdefs.h.  */
20050
20051 #include <features.h>
20052 #ifdef __GNU_LIBRARY__
20053  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20054   Lucky GNU user
20055  #endif
20056 #endif
20057
20058 _ACEOF
20059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20060   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20061   ac_cv_gnu_library_2_1=yes
20062 else
20063   ac_cv_gnu_library_2_1=no
20064 fi
20065 rm -f conftest*
20066
20067
20068
20069 fi
20070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20071 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20072
20073     GLIBC21="$ac_cv_gnu_library_2_1"
20074
20075
20076
20077
20078   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20079 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20080 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20081   $as_echo_n "(cached) " >&6
20082 else
20083
20084       if test "$cross_compiling" = yes; then :
20085
20086           # Guess based on the CPU.
20087           case "$host_cpu" in
20088             alpha* | i3456786 | m68k | s390*)
20089               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20090             *)
20091               gt_cv_int_divbyzero_sigfpe="guessing no";;
20092           esac
20093
20094 else
20095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20096 /* end confdefs.h.  */
20097
20098 #include <stdlib.h>
20099 #include <signal.h>
20100
20101 static void
20102 #ifdef __cplusplus
20103 sigfpe_handler (int sig)
20104 #else
20105 sigfpe_handler (sig) int sig;
20106 #endif
20107 {
20108   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20109   exit (sig != SIGFPE);
20110 }
20111
20112 int x = 1;
20113 int y = 0;
20114 int z;
20115 int nan;
20116
20117 int main ()
20118 {
20119   signal (SIGFPE, sigfpe_handler);
20120 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20121 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20122   signal (SIGTRAP, sigfpe_handler);
20123 #endif
20124 /* Linux/SPARC yields signal SIGILL.  */
20125 #if defined (__sparc__) && defined (__linux__)
20126   signal (SIGILL, sigfpe_handler);
20127 #endif
20128
20129   z = x / y;
20130   nan = y / y;
20131   exit (1);
20132 }
20133
20134 _ACEOF
20135 if ac_fn_c_try_run "$LINENO"; then :
20136   gt_cv_int_divbyzero_sigfpe=yes
20137 else
20138   gt_cv_int_divbyzero_sigfpe=no
20139 fi
20140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20141   conftest.$ac_objext conftest.beam conftest.$ac_ext
20142 fi
20143
20144
20145 fi
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20147 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20148   case "$gt_cv_int_divbyzero_sigfpe" in
20149     *yes) value=1;;
20150     *) value=0;;
20151   esac
20152
20153 cat >>confdefs.h <<_ACEOF
20154 #define INTDIV0_RAISES_SIGFPE $value
20155 _ACEOF
20156
20157
20158
20159   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20160 $as_echo_n "checking for unsigned long long... " >&6; }
20161 if ${ac_cv_type_unsigned_long_long+:} false; then :
20162   $as_echo_n "(cached) " >&6
20163 else
20164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20165 /* end confdefs.h.  */
20166 unsigned long long ull = 1ULL; int i = 63;
20167 int
20168 main ()
20169 {
20170 unsigned long long ullmax = (unsigned long long) -1;
20171      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20172   ;
20173   return 0;
20174 }
20175 _ACEOF
20176 if ac_fn_c_try_link "$LINENO"; then :
20177   ac_cv_type_unsigned_long_long=yes
20178 else
20179   ac_cv_type_unsigned_long_long=no
20180 fi
20181 rm -f core conftest.err conftest.$ac_objext \
20182     conftest$ac_exeext conftest.$ac_ext
20183 fi
20184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20185 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20186   if test $ac_cv_type_unsigned_long_long = yes; then
20187
20188 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20189
20190   fi
20191
20192
20193
20194
20195   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20196
20197     test $ac_cv_type_unsigned_long_long = yes \
20198       && ac_type='unsigned long long' \
20199       || ac_type='unsigned long'
20200
20201 cat >>confdefs.h <<_ACEOF
20202 #define uintmax_t $ac_type
20203 _ACEOF
20204
20205   else
20206
20207 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20208
20209   fi
20210
20211
20212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20213 $as_echo_n "checking for inttypes.h... " >&6; }
20214 if ${gt_cv_header_inttypes_h+:} false; then :
20215   $as_echo_n "(cached) " >&6
20216 else
20217
20218     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20219 /* end confdefs.h.  */
20220 #include <sys/types.h>
20221 #include <inttypes.h>
20222 int
20223 main ()
20224 {
20225
20226   ;
20227   return 0;
20228 }
20229 _ACEOF
20230 if ac_fn_c_try_compile "$LINENO"; then :
20231   gt_cv_header_inttypes_h=yes
20232 else
20233   gt_cv_header_inttypes_h=no
20234 fi
20235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236
20237 fi
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20239 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20240   if test $gt_cv_header_inttypes_h = yes; then
20241
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_INTTYPES_H 1
20244 _ACEOF
20245
20246   fi
20247
20248
20249
20250   if test $gt_cv_header_inttypes_h = yes; then
20251     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20252 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20253 if ${gt_cv_inttypes_pri_broken+:} false; then :
20254   $as_echo_n "(cached) " >&6
20255 else
20256
20257         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20258 /* end confdefs.h.  */
20259 #include <inttypes.h>
20260 #ifdef PRId32
20261 char *p = PRId32;
20262 #endif
20263
20264 int
20265 main ()
20266 {
20267
20268   ;
20269   return 0;
20270 }
20271 _ACEOF
20272 if ac_fn_c_try_compile "$LINENO"; then :
20273   gt_cv_inttypes_pri_broken=no
20274 else
20275   gt_cv_inttypes_pri_broken=yes
20276 fi
20277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20278
20279 fi
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20281 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20282   fi
20283   if test "$gt_cv_inttypes_pri_broken" = yes; then
20284
20285 cat >>confdefs.h <<_ACEOF
20286 #define PRI_MACROS_BROKEN 1
20287 _ACEOF
20288
20289   fi
20290
20291
20292   for ac_header in stdint.h
20293 do :
20294   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20295 if test "x$ac_cv_header_stdint_h" = xyes; then :
20296   cat >>confdefs.h <<_ACEOF
20297 #define HAVE_STDINT_H 1
20298 _ACEOF
20299
20300 fi
20301
20302 done
20303
20304     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20305 $as_echo_n "checking for SIZE_MAX... " >&6; }
20306   result=
20307   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20308 /* end confdefs.h.  */
20309
20310 #include <limits.h>
20311 #if HAVE_STDINT_H
20312 #include <stdint.h>
20313 #endif
20314 #ifdef SIZE_MAX
20315 Found it
20316 #endif
20317
20318 _ACEOF
20319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20320   $EGREP "Found it" >/dev/null 2>&1; then :
20321   result=yes
20322 fi
20323 rm -f conftest*
20324
20325   if test -z "$result"; then
20326                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20327
20328 else
20329   result=?
20330 fi
20331
20332
20333     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20334
20335 else
20336   result=?
20337 fi
20338
20339
20340     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20341
20342 else
20343   result=?
20344 fi
20345
20346
20347     if test "$fits_in_uint" = 1; then
20348                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h.  */
20350 #include <stddef.h>
20351         extern size_t foo;
20352         extern unsigned long foo;
20353
20354 int
20355 main ()
20356 {
20357
20358   ;
20359   return 0;
20360 }
20361 _ACEOF
20362 if ac_fn_c_try_compile "$LINENO"; then :
20363   fits_in_uint=0
20364 fi
20365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20366     fi
20367     if test -z "$result"; then
20368       if test "$fits_in_uint" = 1; then
20369         result="$res_hi$res_lo"U
20370       else
20371         result="$res_hi$res_lo"UL
20372       fi
20373     else
20374             result='~(size_t)0'
20375     fi
20376   fi
20377   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20378 $as_echo "$result" >&6; }
20379   if test "$result" != yes; then
20380
20381 cat >>confdefs.h <<_ACEOF
20382 #define SIZE_MAX $result
20383 _ACEOF
20384
20385   fi
20386
20387
20388
20389
20390   for ac_header in stdint.h
20391 do :
20392   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20393 if test "x$ac_cv_header_stdint_h" = xyes; then :
20394   cat >>confdefs.h <<_ACEOF
20395 #define HAVE_STDINT_H 1
20396 _ACEOF
20397
20398 fi
20399
20400 done
20401
20402
20403
20404
20405
20406
20407
20408
20409   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20410 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20411
20412 else
20413
20414 $as_echo "#define ptrdiff_t long" >>confdefs.h
20415
20416
20417 fi
20418
20419   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20420 stdlib.h string.h unistd.h sys/param.h
20421 do :
20422   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20423 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20424 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20425   cat >>confdefs.h <<_ACEOF
20426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20427 _ACEOF
20428
20429 fi
20430
20431 done
20432
20433   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20434 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20435 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20436 __fsetlocking
20437 do :
20438   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20439 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20440 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20441   cat >>confdefs.h <<_ACEOF
20442 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20443 _ACEOF
20444
20445 fi
20446 done
20447
20448
20449
20450   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20451 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20452 if ${ac_cv_have_decl__snprintf+:} false; then :
20453   $as_echo_n "(cached) " >&6
20454 else
20455   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h.  */
20457 #include <stdio.h>
20458 int
20459 main ()
20460 {
20461
20462 #ifndef _snprintf
20463   char *p = (char *) _snprintf;
20464 #endif
20465
20466   ;
20467   return 0;
20468 }
20469 _ACEOF
20470 if ac_fn_c_try_compile "$LINENO"; then :
20471   ac_cv_have_decl__snprintf=yes
20472 else
20473   ac_cv_have_decl__snprintf=no
20474 fi
20475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20476 fi
20477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20478 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20479   if test $ac_cv_have_decl__snprintf = yes; then
20480     gt_value=1
20481   else
20482     gt_value=0
20483   fi
20484
20485 cat >>confdefs.h <<_ACEOF
20486 #define HAVE_DECL__SNPRINTF $gt_value
20487 _ACEOF
20488
20489
20490
20491   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20492 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20493 if ${ac_cv_have_decl__snwprintf+:} false; then :
20494   $as_echo_n "(cached) " >&6
20495 else
20496   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h.  */
20498 #include <stdio.h>
20499 int
20500 main ()
20501 {
20502
20503 #ifndef _snwprintf
20504   char *p = (char *) _snwprintf;
20505 #endif
20506
20507   ;
20508   return 0;
20509 }
20510 _ACEOF
20511 if ac_fn_c_try_compile "$LINENO"; then :
20512   ac_cv_have_decl__snwprintf=yes
20513 else
20514   ac_cv_have_decl__snwprintf=no
20515 fi
20516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20517 fi
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20519 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20520   if test $ac_cv_have_decl__snwprintf = yes; then
20521     gt_value=1
20522   else
20523     gt_value=0
20524   fi
20525
20526 cat >>confdefs.h <<_ACEOF
20527 #define HAVE_DECL__SNWPRINTF $gt_value
20528 _ACEOF
20529
20530
20531
20532
20533   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20534 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20535 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20536   $as_echo_n "(cached) " >&6
20537 else
20538   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20539 /* end confdefs.h.  */
20540 #include <stdio.h>
20541 int
20542 main ()
20543 {
20544
20545 #ifndef feof_unlocked
20546   char *p = (char *) feof_unlocked;
20547 #endif
20548
20549   ;
20550   return 0;
20551 }
20552 _ACEOF
20553 if ac_fn_c_try_compile "$LINENO"; then :
20554   ac_cv_have_decl_feof_unlocked=yes
20555 else
20556   ac_cv_have_decl_feof_unlocked=no
20557 fi
20558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20559 fi
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20561 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20562   if test $ac_cv_have_decl_feof_unlocked = yes; then
20563     gt_value=1
20564   else
20565     gt_value=0
20566   fi
20567
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20570 _ACEOF
20571
20572
20573
20574   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20575 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20576 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20577   $as_echo_n "(cached) " >&6
20578 else
20579   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20580 /* end confdefs.h.  */
20581 #include <stdio.h>
20582 int
20583 main ()
20584 {
20585
20586 #ifndef fgets_unlocked
20587   char *p = (char *) fgets_unlocked;
20588 #endif
20589
20590   ;
20591   return 0;
20592 }
20593 _ACEOF
20594 if ac_fn_c_try_compile "$LINENO"; then :
20595   ac_cv_have_decl_fgets_unlocked=yes
20596 else
20597   ac_cv_have_decl_fgets_unlocked=no
20598 fi
20599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20600 fi
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20602 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20603   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20604     gt_value=1
20605   else
20606     gt_value=0
20607   fi
20608
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20611 _ACEOF
20612
20613
20614
20615   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20616 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20617 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20618   $as_echo_n "(cached) " >&6
20619 else
20620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20621 /* end confdefs.h.  */
20622 #include <stdio.h>
20623 int
20624 main ()
20625 {
20626
20627 #ifndef getc_unlocked
20628   char *p = (char *) getc_unlocked;
20629 #endif
20630
20631   ;
20632   return 0;
20633 }
20634 _ACEOF
20635 if ac_fn_c_try_compile "$LINENO"; then :
20636   ac_cv_have_decl_getc_unlocked=yes
20637 else
20638   ac_cv_have_decl_getc_unlocked=no
20639 fi
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20641 fi
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20643 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20644   if test $ac_cv_have_decl_getc_unlocked = yes; then
20645     gt_value=1
20646   else
20647     gt_value=0
20648   fi
20649
20650 cat >>confdefs.h <<_ACEOF
20651 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20652 _ACEOF
20653
20654
20655
20656   case $gt_cv_func_printf_posix in
20657     *yes) HAVE_POSIX_PRINTF=1 ;;
20658     *) HAVE_POSIX_PRINTF=0 ;;
20659   esac
20660
20661   if test "$ac_cv_func_asprintf" = yes; then
20662     HAVE_ASPRINTF=1
20663   else
20664     HAVE_ASPRINTF=0
20665   fi
20666
20667   if test "$ac_cv_func_snprintf" = yes; then
20668     HAVE_SNPRINTF=1
20669   else
20670     HAVE_SNPRINTF=0
20671   fi
20672
20673   if test "$ac_cv_func_wprintf" = yes; then
20674     HAVE_WPRINTF=1
20675   else
20676     HAVE_WPRINTF=0
20677   fi
20678
20679
20680
20681
20682
20683
20684
20685           am_save_CPPFLAGS="$CPPFLAGS"
20686
20687   for element in $INCICONV; do
20688     haveit=
20689     for x in $CPPFLAGS; do
20690
20691   acl_save_prefix="$prefix"
20692   prefix="$acl_final_prefix"
20693   acl_save_exec_prefix="$exec_prefix"
20694   exec_prefix="$acl_final_exec_prefix"
20695   eval x=\"$x\"
20696   exec_prefix="$acl_save_exec_prefix"
20697   prefix="$acl_save_prefix"
20698
20699       if test "X$x" = "X$element"; then
20700         haveit=yes
20701         break
20702       fi
20703     done
20704     if test -z "$haveit"; then
20705       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20706     fi
20707   done
20708
20709
20710   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20711 $as_echo_n "checking for iconv... " >&6; }
20712 if ${am_cv_func_iconv+:} false; then :
20713   $as_echo_n "(cached) " >&6
20714 else
20715
20716     am_cv_func_iconv="no, consider installing GNU libiconv"
20717     am_cv_lib_iconv=no
20718     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20719 /* end confdefs.h.  */
20720 #include <stdlib.h>
20721 #include <iconv.h>
20722 int
20723 main ()
20724 {
20725 iconv_t cd = iconv_open("","");
20726        iconv(cd,NULL,NULL,NULL,NULL);
20727        iconv_close(cd);
20728   ;
20729   return 0;
20730 }
20731 _ACEOF
20732 if ac_fn_c_try_link "$LINENO"; then :
20733   am_cv_func_iconv=yes
20734 fi
20735 rm -f core conftest.err conftest.$ac_objext \
20736     conftest$ac_exeext conftest.$ac_ext
20737     if test "$am_cv_func_iconv" != yes; then
20738       am_save_LIBS="$LIBS"
20739       LIBS="$LIBS $LIBICONV"
20740       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20741 /* end confdefs.h.  */
20742 #include <stdlib.h>
20743 #include <iconv.h>
20744 int
20745 main ()
20746 {
20747 iconv_t cd = iconv_open("","");
20748          iconv(cd,NULL,NULL,NULL,NULL);
20749          iconv_close(cd);
20750   ;
20751   return 0;
20752 }
20753 _ACEOF
20754 if ac_fn_c_try_link "$LINENO"; then :
20755   am_cv_lib_iconv=yes
20756         am_cv_func_iconv=yes
20757 fi
20758 rm -f core conftest.err conftest.$ac_objext \
20759     conftest$ac_exeext conftest.$ac_ext
20760       LIBS="$am_save_LIBS"
20761     fi
20762
20763 fi
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20765 $as_echo "$am_cv_func_iconv" >&6; }
20766   if test "$am_cv_func_iconv" = yes; then
20767
20768 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20769
20770   fi
20771   if test "$am_cv_lib_iconv" = yes; then
20772     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20773 $as_echo_n "checking how to link with libiconv... " >&6; }
20774     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20775 $as_echo "$LIBICONV" >&6; }
20776   else
20777             CPPFLAGS="$am_save_CPPFLAGS"
20778     LIBICONV=
20779     LTLIBICONV=
20780   fi
20781
20782
20783
20784   if test "$am_cv_func_iconv" = yes; then
20785     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20786 $as_echo_n "checking for iconv declaration... " >&6; }
20787     if ${am_cv_proto_iconv+:} false; then :
20788   $as_echo_n "(cached) " >&6
20789 else
20790
20791       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h.  */
20793
20794 #include <stdlib.h>
20795 #include <iconv.h>
20796 extern
20797 #ifdef __cplusplus
20798 "C"
20799 #endif
20800 #if defined(__STDC__) || defined(__cplusplus)
20801 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20802 #else
20803 size_t iconv();
20804 #endif
20805
20806 int
20807 main ()
20808 {
20809
20810   ;
20811   return 0;
20812 }
20813 _ACEOF
20814 if ac_fn_c_try_compile "$LINENO"; then :
20815   am_cv_proto_iconv_arg1=""
20816 else
20817   am_cv_proto_iconv_arg1="const"
20818 fi
20819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20820       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);"
20821 fi
20822
20823     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20824     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20825          }$am_cv_proto_iconv" >&5
20826 $as_echo "${ac_t:-
20827          }$am_cv_proto_iconv" >&6; }
20828
20829 cat >>confdefs.h <<_ACEOF
20830 #define ICONV_CONST $am_cv_proto_iconv_arg1
20831 _ACEOF
20832
20833   fi
20834
20835
20836   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20837 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20838 if ${am_cv_langinfo_codeset+:} false; then :
20839   $as_echo_n "(cached) " >&6
20840 else
20841   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20842 /* end confdefs.h.  */
20843 #include <langinfo.h>
20844 int
20845 main ()
20846 {
20847 char* cs = nl_langinfo(CODESET);
20848   ;
20849   return 0;
20850 }
20851 _ACEOF
20852 if ac_fn_c_try_link "$LINENO"; then :
20853   am_cv_langinfo_codeset=yes
20854 else
20855   am_cv_langinfo_codeset=no
20856 fi
20857 rm -f core conftest.err conftest.$ac_objext \
20858     conftest$ac_exeext conftest.$ac_ext
20859
20860 fi
20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20862 $as_echo "$am_cv_langinfo_codeset" >&6; }
20863   if test $am_cv_langinfo_codeset = yes; then
20864
20865 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20866
20867   fi
20868
20869   if test $ac_cv_header_locale_h = yes; then
20870
20871   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20872 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20873 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20874   $as_echo_n "(cached) " >&6
20875 else
20876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h.  */
20878 #include <locale.h>
20879 int
20880 main ()
20881 {
20882 return LC_MESSAGES
20883   ;
20884   return 0;
20885 }
20886 _ACEOF
20887 if ac_fn_c_try_link "$LINENO"; then :
20888   gt_cv_val_LC_MESSAGES=yes
20889 else
20890   gt_cv_val_LC_MESSAGES=no
20891 fi
20892 rm -f core conftest.err conftest.$ac_objext \
20893     conftest$ac_exeext conftest.$ac_ext
20894 fi
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20896 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20897   if test $gt_cv_val_LC_MESSAGES = yes; then
20898
20899 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20900
20901   fi
20902
20903   fi
20904
20905   if test -n "$INTL_MACOSX_LIBS"; then
20906     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20907   fi
20908
20909                       for ac_prog in bison
20910 do
20911   # Extract the first word of "$ac_prog", so it can be a program name with args.
20912 set dummy $ac_prog; ac_word=$2
20913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20914 $as_echo_n "checking for $ac_word... " >&6; }
20915 if ${ac_cv_prog_INTLBISON+:} false; then :
20916   $as_echo_n "(cached) " >&6
20917 else
20918   if test -n "$INTLBISON"; then
20919   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20920 else
20921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20922 for as_dir in $PATH
20923 do
20924   IFS=$as_save_IFS
20925   test -z "$as_dir" && as_dir=.
20926     for ac_exec_ext in '' $ac_executable_extensions; do
20927   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20928     ac_cv_prog_INTLBISON="$ac_prog"
20929     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20930     break 2
20931   fi
20932 done
20933   done
20934 IFS=$as_save_IFS
20935
20936 fi
20937 fi
20938 INTLBISON=$ac_cv_prog_INTLBISON
20939 if test -n "$INTLBISON"; then
20940   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20941 $as_echo "$INTLBISON" >&6; }
20942 else
20943   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20944 $as_echo "no" >&6; }
20945 fi
20946
20947
20948   test -n "$INTLBISON" && break
20949 done
20950
20951   if test -z "$INTLBISON"; then
20952     ac_verc_fail=yes
20953   else
20954         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20955 $as_echo_n "checking version of bison... " >&6; }
20956     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20957     case $ac_prog_version in
20958       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20959       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20960          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20961       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20962     esac
20963     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20964 $as_echo "$ac_prog_version" >&6; }
20965   fi
20966   if test $ac_verc_fail = yes; then
20967     INTLBISON=:
20968   fi
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20986 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20987 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20988   $as_echo_n "(cached) " >&6
20989 else
20990   gt_save_CPPFLAGS="$CPPFLAGS"
20991      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20992      gt_save_LIBS="$LIBS"
20993      LIBS="$LIBS -framework CoreFoundation"
20994      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20995 /* end confdefs.h.  */
20996 #include <CFPreferences.h>
20997 int
20998 main ()
20999 {
21000 CFPreferencesCopyAppValue(NULL, NULL)
21001   ;
21002   return 0;
21003 }
21004 _ACEOF
21005 if ac_fn_c_try_link "$LINENO"; then :
21006   gt_cv_func_CFPreferencesCopyAppValue=yes
21007 else
21008   gt_cv_func_CFPreferencesCopyAppValue=no
21009 fi
21010 rm -f core conftest.err conftest.$ac_objext \
21011     conftest$ac_exeext conftest.$ac_ext
21012      CPPFLAGS="$gt_save_CPPFLAGS"
21013      LIBS="$gt_save_LIBS"
21014 fi
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21016 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21017   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21018
21019 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21020
21021   fi
21022     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21023 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21024 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21025   $as_echo_n "(cached) " >&6
21026 else
21027   gt_save_CPPFLAGS="$CPPFLAGS"
21028      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21029      gt_save_LIBS="$LIBS"
21030      LIBS="$LIBS -framework CoreFoundation"
21031      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h.  */
21033 #include <CFLocale.h>
21034 int
21035 main ()
21036 {
21037 CFLocaleCopyCurrent();
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 if ac_fn_c_try_link "$LINENO"; then :
21043   gt_cv_func_CFLocaleCopyCurrent=yes
21044 else
21045   gt_cv_func_CFLocaleCopyCurrent=no
21046 fi
21047 rm -f core conftest.err conftest.$ac_objext \
21048     conftest$ac_exeext conftest.$ac_ext
21049      CPPFLAGS="$gt_save_CPPFLAGS"
21050      LIBS="$gt_save_LIBS"
21051 fi
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21053 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21054   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21055
21056 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21057
21058   fi
21059   INTL_MACOSX_LIBS=
21060   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21061     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21062   fi
21063
21064
21065
21066
21067   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21068 $as_echo_n "checking whether NLS is requested... " >&6; }
21069     # Check whether --enable-nls was given.
21070 if test "${enable_nls+set}" = set; then :
21071   enableval=$enable_nls; USE_NLS=$enableval
21072 else
21073   USE_NLS=yes
21074 fi
21075
21076   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21077 $as_echo "$USE_NLS" >&6; }
21078
21079
21080
21081
21082     BUILD_INCLUDED_LIBINTL=no
21083     USE_INCLUDED_LIBINTL=no
21084
21085   LIBINTL=
21086   LTLIBINTL=
21087   POSUB=
21088
21089     if test "$USE_NLS" = "yes"; then
21090     gt_use_preinstalled_gnugettext=no
21091
21092       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21093 $as_echo_n "checking whether included gettext is requested... " >&6; }
21094
21095 # Check whether --with-included-gettext was given.
21096 if test "${with_included_gettext+set}" = set; then :
21097   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21098 else
21099   nls_cv_force_use_gnu_gettext=no
21100 fi
21101
21102       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21103 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21104
21105       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21106       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21107
21108
21109
21110
21111
21112
21113         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21114 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21115 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21116   $as_echo_n "(cached) " >&6
21117 else
21118   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21119 /* end confdefs.h.  */
21120 #include <libintl.h>
21121 extern int _nl_msg_cat_cntr;
21122 extern int *_nl_domain_bindings;
21123 int
21124 main ()
21125 {
21126 bindtextdomain ("", "");
21127 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21128   ;
21129   return 0;
21130 }
21131 _ACEOF
21132 if ac_fn_c_try_link "$LINENO"; then :
21133   gt_cv_func_gnugettext1_libc=yes
21134 else
21135   gt_cv_func_gnugettext1_libc=no
21136 fi
21137 rm -f core conftest.err conftest.$ac_objext \
21138     conftest$ac_exeext conftest.$ac_ext
21139 fi
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21141 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21142
21143         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21144
21145
21146
21147     use_additional=yes
21148
21149   acl_save_prefix="$prefix"
21150   prefix="$acl_final_prefix"
21151   acl_save_exec_prefix="$exec_prefix"
21152   exec_prefix="$acl_final_exec_prefix"
21153
21154     eval additional_includedir=\"$includedir\"
21155     eval additional_libdir=\"$libdir\"
21156
21157   exec_prefix="$acl_save_exec_prefix"
21158   prefix="$acl_save_prefix"
21159
21160
21161 # Check whether --with-libintl-prefix was given.
21162 if test "${with_libintl_prefix+set}" = set; then :
21163   withval=$with_libintl_prefix;
21164     if test "X$withval" = "Xno"; then
21165       use_additional=no
21166     else
21167       if test "X$withval" = "X"; then
21168
21169   acl_save_prefix="$prefix"
21170   prefix="$acl_final_prefix"
21171   acl_save_exec_prefix="$exec_prefix"
21172   exec_prefix="$acl_final_exec_prefix"
21173
21174           eval additional_includedir=\"$includedir\"
21175           eval additional_libdir=\"$libdir\"
21176
21177   exec_prefix="$acl_save_exec_prefix"
21178   prefix="$acl_save_prefix"
21179
21180       else
21181         additional_includedir="$withval/include"
21182         additional_libdir="$withval/lib"
21183       fi
21184     fi
21185
21186 fi
21187
21188       LIBINTL=
21189   LTLIBINTL=
21190   INCINTL=
21191   rpathdirs=
21192   ltrpathdirs=
21193   names_already_handled=
21194   names_next_round='intl '
21195   while test -n "$names_next_round"; do
21196     names_this_round="$names_next_round"
21197     names_next_round=
21198     for name in $names_this_round; do
21199       already_handled=
21200       for n in $names_already_handled; do
21201         if test "$n" = "$name"; then
21202           already_handled=yes
21203           break
21204         fi
21205       done
21206       if test -z "$already_handled"; then
21207         names_already_handled="$names_already_handled $name"
21208                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21209         eval value=\"\$HAVE_LIB$uppername\"
21210         if test -n "$value"; then
21211           if test "$value" = yes; then
21212             eval value=\"\$LIB$uppername\"
21213             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21214             eval value=\"\$LTLIB$uppername\"
21215             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21216           else
21217                                     :
21218           fi
21219         else
21220                               found_dir=
21221           found_la=
21222           found_so=
21223           found_a=
21224           if test $use_additional = yes; then
21225             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21226               found_dir="$additional_libdir"
21227               found_so="$additional_libdir/lib$name.$shlibext"
21228               if test -f "$additional_libdir/lib$name.la"; then
21229                 found_la="$additional_libdir/lib$name.la"
21230               fi
21231             else
21232               if test -f "$additional_libdir/lib$name.$libext"; then
21233                 found_dir="$additional_libdir"
21234                 found_a="$additional_libdir/lib$name.$libext"
21235                 if test -f "$additional_libdir/lib$name.la"; then
21236                   found_la="$additional_libdir/lib$name.la"
21237                 fi
21238               fi
21239             fi
21240           fi
21241           if test "X$found_dir" = "X"; then
21242             for x in $LDFLAGS $LTLIBINTL; do
21243
21244   acl_save_prefix="$prefix"
21245   prefix="$acl_final_prefix"
21246   acl_save_exec_prefix="$exec_prefix"
21247   exec_prefix="$acl_final_exec_prefix"
21248   eval x=\"$x\"
21249   exec_prefix="$acl_save_exec_prefix"
21250   prefix="$acl_save_prefix"
21251
21252               case "$x" in
21253                 -L*)
21254                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21255                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21256                     found_dir="$dir"
21257                     found_so="$dir/lib$name.$shlibext"
21258                     if test -f "$dir/lib$name.la"; then
21259                       found_la="$dir/lib$name.la"
21260                     fi
21261                   else
21262                     if test -f "$dir/lib$name.$libext"; then
21263                       found_dir="$dir"
21264                       found_a="$dir/lib$name.$libext"
21265                       if test -f "$dir/lib$name.la"; then
21266                         found_la="$dir/lib$name.la"
21267                       fi
21268                     fi
21269                   fi
21270                   ;;
21271               esac
21272               if test "X$found_dir" != "X"; then
21273                 break
21274               fi
21275             done
21276           fi
21277           if test "X$found_dir" != "X"; then
21278                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21279             if test "X$found_so" != "X"; then
21280                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21281                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21282               else
21283                                                                                 haveit=
21284                 for x in $ltrpathdirs; do
21285                   if test "X$x" = "X$found_dir"; then
21286                     haveit=yes
21287                     break
21288                   fi
21289                 done
21290                 if test -z "$haveit"; then
21291                   ltrpathdirs="$ltrpathdirs $found_dir"
21292                 fi
21293                                 if test "$hardcode_direct" = yes; then
21294                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21295                 else
21296                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21297                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21298                                                             haveit=
21299                     for x in $rpathdirs; do
21300                       if test "X$x" = "X$found_dir"; then
21301                         haveit=yes
21302                         break
21303                       fi
21304                     done
21305                     if test -z "$haveit"; then
21306                       rpathdirs="$rpathdirs $found_dir"
21307                     fi
21308                   else
21309                                                                                 haveit=
21310                     for x in $LDFLAGS $LIBINTL; do
21311
21312   acl_save_prefix="$prefix"
21313   prefix="$acl_final_prefix"
21314   acl_save_exec_prefix="$exec_prefix"
21315   exec_prefix="$acl_final_exec_prefix"
21316   eval x=\"$x\"
21317   exec_prefix="$acl_save_exec_prefix"
21318   prefix="$acl_save_prefix"
21319
21320                       if test "X$x" = "X-L$found_dir"; then
21321                         haveit=yes
21322                         break
21323                       fi
21324                     done
21325                     if test -z "$haveit"; then
21326                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21327                     fi
21328                     if test "$hardcode_minus_L" != no; then
21329                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21330                     else
21331                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21332                     fi
21333                   fi
21334                 fi
21335               fi
21336             else
21337               if test "X$found_a" != "X"; then
21338                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21339               else
21340                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21341               fi
21342             fi
21343                         additional_includedir=
21344             case "$found_dir" in
21345               */lib | */lib/)
21346                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21347                 additional_includedir="$basedir/include"
21348                 ;;
21349             esac
21350             if test "X$additional_includedir" != "X"; then
21351                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21352                 haveit=
21353                 if test "X$additional_includedir" = "X/usr/local/include"; then
21354                   if test -n "$GCC"; then
21355                     case $host_os in
21356                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21357                     esac
21358                   fi
21359                 fi
21360                 if test -z "$haveit"; then
21361                   for x in $CPPFLAGS $INCINTL; do
21362
21363   acl_save_prefix="$prefix"
21364   prefix="$acl_final_prefix"
21365   acl_save_exec_prefix="$exec_prefix"
21366   exec_prefix="$acl_final_exec_prefix"
21367   eval x=\"$x\"
21368   exec_prefix="$acl_save_exec_prefix"
21369   prefix="$acl_save_prefix"
21370
21371                     if test "X$x" = "X-I$additional_includedir"; then
21372                       haveit=yes
21373                       break
21374                     fi
21375                   done
21376                   if test -z "$haveit"; then
21377                     if test -d "$additional_includedir"; then
21378                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21379                     fi
21380                   fi
21381                 fi
21382               fi
21383             fi
21384                         if test -n "$found_la"; then
21385                                                         save_libdir="$libdir"
21386               case "$found_la" in
21387                 */* | *\\*) . "$found_la" ;;
21388                 *) . "./$found_la" ;;
21389               esac
21390               libdir="$save_libdir"
21391                             for dep in $dependency_libs; do
21392                 case "$dep" in
21393                   -L*)
21394                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21395                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21396                       haveit=
21397                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21398                         if test -n "$GCC"; then
21399                           case $host_os in
21400                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21401                           esac
21402                         fi
21403                       fi
21404                       if test -z "$haveit"; then
21405                         haveit=
21406                         for x in $LDFLAGS $LIBINTL; do
21407
21408   acl_save_prefix="$prefix"
21409   prefix="$acl_final_prefix"
21410   acl_save_exec_prefix="$exec_prefix"
21411   exec_prefix="$acl_final_exec_prefix"
21412   eval x=\"$x\"
21413   exec_prefix="$acl_save_exec_prefix"
21414   prefix="$acl_save_prefix"
21415
21416                           if test "X$x" = "X-L$additional_libdir"; then
21417                             haveit=yes
21418                             break
21419                           fi
21420                         done
21421                         if test -z "$haveit"; then
21422                           if test -d "$additional_libdir"; then
21423                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21424                           fi
21425                         fi
21426                         haveit=
21427                         for x in $LDFLAGS $LTLIBINTL; do
21428
21429   acl_save_prefix="$prefix"
21430   prefix="$acl_final_prefix"
21431   acl_save_exec_prefix="$exec_prefix"
21432   exec_prefix="$acl_final_exec_prefix"
21433   eval x=\"$x\"
21434   exec_prefix="$acl_save_exec_prefix"
21435   prefix="$acl_save_prefix"
21436
21437                           if test "X$x" = "X-L$additional_libdir"; then
21438                             haveit=yes
21439                             break
21440                           fi
21441                         done
21442                         if test -z "$haveit"; then
21443                           if test -d "$additional_libdir"; then
21444                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21445                           fi
21446                         fi
21447                       fi
21448                     fi
21449                     ;;
21450                   -R*)
21451                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21452                     if test "$enable_rpath" != no; then
21453                                                                   haveit=
21454                       for x in $rpathdirs; do
21455                         if test "X$x" = "X$dir"; then
21456                           haveit=yes
21457                           break
21458                         fi
21459                       done
21460                       if test -z "$haveit"; then
21461                         rpathdirs="$rpathdirs $dir"
21462                       fi
21463                                                                   haveit=
21464                       for x in $ltrpathdirs; do
21465                         if test "X$x" = "X$dir"; then
21466                           haveit=yes
21467                           break
21468                         fi
21469                       done
21470                       if test -z "$haveit"; then
21471                         ltrpathdirs="$ltrpathdirs $dir"
21472                       fi
21473                     fi
21474                     ;;
21475                   -l*)
21476                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21477                     ;;
21478                   *.la)
21479                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21480                     ;;
21481                   *)
21482                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21483                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21484                     ;;
21485                 esac
21486               done
21487             fi
21488           else
21489                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21490             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21491           fi
21492         fi
21493       fi
21494     done
21495   done
21496   if test "X$rpathdirs" != "X"; then
21497     if test -n "$hardcode_libdir_separator"; then
21498                         alldirs=
21499       for found_dir in $rpathdirs; do
21500         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21501       done
21502             acl_save_libdir="$libdir"
21503       libdir="$alldirs"
21504       eval flag=\"$hardcode_libdir_flag_spec\"
21505       libdir="$acl_save_libdir"
21506       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21507     else
21508             for found_dir in $rpathdirs; do
21509         acl_save_libdir="$libdir"
21510         libdir="$found_dir"
21511         eval flag=\"$hardcode_libdir_flag_spec\"
21512         libdir="$acl_save_libdir"
21513         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21514       done
21515     fi
21516   fi
21517   if test "X$ltrpathdirs" != "X"; then
21518             for found_dir in $ltrpathdirs; do
21519       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21520     done
21521   fi
21522
21523           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21524 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21525 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21526   $as_echo_n "(cached) " >&6
21527 else
21528   gt_save_CPPFLAGS="$CPPFLAGS"
21529             CPPFLAGS="$CPPFLAGS $INCINTL"
21530             gt_save_LIBS="$LIBS"
21531             LIBS="$LIBS $LIBINTL"
21532                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21533 /* end confdefs.h.  */
21534 #include <libintl.h>
21535 extern int _nl_msg_cat_cntr;
21536 extern
21537 #ifdef __cplusplus
21538 "C"
21539 #endif
21540 const char *_nl_expand_alias (const char *);
21541 int
21542 main ()
21543 {
21544 bindtextdomain ("", "");
21545 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21546   ;
21547   return 0;
21548 }
21549 _ACEOF
21550 if ac_fn_c_try_link "$LINENO"; then :
21551   gt_cv_func_gnugettext1_libintl=yes
21552 else
21553   gt_cv_func_gnugettext1_libintl=no
21554 fi
21555 rm -f core conftest.err conftest.$ac_objext \
21556     conftest$ac_exeext conftest.$ac_ext
21557                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21558               LIBS="$LIBS $LIBICONV"
21559               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h.  */
21561 #include <libintl.h>
21562 extern int _nl_msg_cat_cntr;
21563 extern
21564 #ifdef __cplusplus
21565 "C"
21566 #endif
21567 const char *_nl_expand_alias (const char *);
21568 int
21569 main ()
21570 {
21571 bindtextdomain ("", "");
21572 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21573   ;
21574   return 0;
21575 }
21576 _ACEOF
21577 if ac_fn_c_try_link "$LINENO"; then :
21578   LIBINTL="$LIBINTL $LIBICONV"
21579                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21580                 gt_cv_func_gnugettext1_libintl=yes
21581
21582 fi
21583 rm -f core conftest.err conftest.$ac_objext \
21584     conftest$ac_exeext conftest.$ac_ext
21585             fi
21586             CPPFLAGS="$gt_save_CPPFLAGS"
21587             LIBS="$gt_save_LIBS"
21588 fi
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21590 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21591         fi
21592
21593                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21594            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21595                 && test "$PACKAGE" != gettext-runtime \
21596                 && test "$PACKAGE" != gettext-tools; }; then
21597           gt_use_preinstalled_gnugettext=yes
21598         else
21599                     LIBINTL=
21600           LTLIBINTL=
21601           INCINTL=
21602         fi
21603
21604
21605         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21606                               nls_cv_use_gnu_gettext=yes
21607         fi
21608       fi
21609
21610       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21611                 BUILD_INCLUDED_LIBINTL=yes
21612         USE_INCLUDED_LIBINTL=yes
21613         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21614         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21615         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21616       fi
21617
21618       CATOBJEXT=
21619       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21620          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21621                 CATOBJEXT=.gmo
21622       fi
21623
21624
21625     if test -n "$INTL_MACOSX_LIBS"; then
21626       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21627          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21628                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21629         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21630       fi
21631     fi
21632
21633     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21634        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21635
21636 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21637
21638     else
21639       USE_NLS=no
21640     fi
21641   fi
21642
21643   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21644 $as_echo_n "checking whether to use NLS... " >&6; }
21645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21646 $as_echo "$USE_NLS" >&6; }
21647   if test "$USE_NLS" = "yes"; then
21648     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21649 $as_echo_n "checking where the gettext function comes from... " >&6; }
21650     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21651       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21652         gt_source="external libintl"
21653       else
21654         gt_source="libc"
21655       fi
21656     else
21657       gt_source="included intl directory"
21658     fi
21659     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21660 $as_echo "$gt_source" >&6; }
21661   fi
21662
21663   if test "$USE_NLS" = "yes"; then
21664
21665     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21666       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21667         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21668 $as_echo_n "checking how to link with libintl... " >&6; }
21669         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21670 $as_echo "$LIBINTL" >&6; }
21671
21672   for element in $INCINTL; do
21673     haveit=
21674     for x in $CPPFLAGS; do
21675
21676   acl_save_prefix="$prefix"
21677   prefix="$acl_final_prefix"
21678   acl_save_exec_prefix="$exec_prefix"
21679   exec_prefix="$acl_final_exec_prefix"
21680   eval x=\"$x\"
21681   exec_prefix="$acl_save_exec_prefix"
21682   prefix="$acl_save_prefix"
21683
21684       if test "X$x" = "X$element"; then
21685         haveit=yes
21686         break
21687       fi
21688     done
21689     if test -z "$haveit"; then
21690       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21691     fi
21692   done
21693
21694       fi
21695
21696
21697 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21698
21699
21700 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21701
21702     fi
21703
21704         POSUB=po
21705   fi
21706
21707
21708             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21709       BUILD_INCLUDED_LIBINTL=yes
21710     fi
21711
21712
21713
21714
21715
21716         nls_cv_header_intl=
21717     nls_cv_header_libgt=
21718
21719         DATADIRNAME=share
21720
21721
21722         INSTOBJEXT=.mo
21723
21724
21725         GENCAT=gencat
21726
21727
21728         INTLOBJS=
21729     if test "$USE_INCLUDED_LIBINTL" = yes; then
21730       INTLOBJS="\$(GETTOBJS)"
21731     fi
21732
21733
21734         INTL_LIBTOOL_SUFFIX_PREFIX=
21735
21736
21737
21738     INTLLIBS="$LIBINTL"
21739
21740
21741
21742
21743
21744
21745 fi
21746
21747 support_smartalloc=yes
21748 support_readline=yes
21749 support_lzo=yes
21750 support_conio=yes
21751 support_bat=no
21752 support_tls=no
21753 support_crypto=no
21754 support_static_tools=no
21755 support_static_fd=no
21756 support_static_sd=no
21757 support_static_dir=no
21758 support_static_cons=no
21759 build_client_only=no
21760 build_dird=yes
21761 build_stored=yes
21762 db_backends=""
21763 batch_insert_db_backends=""
21764 support_lockmgr=no
21765
21766
21767 # Check whether --enable-bat was given.
21768 if test "${enable_bat+set}" = set; then :
21769   enableval=$enable_bat;
21770        if test x$enableval = xyes; then
21771
21772 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21773
21774           support_bat=yes
21775        fi
21776
21777
21778 fi
21779
21780
21781 BAT_DIR=
21782 if test x$support_bat = xyes; then
21783    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21784    pkg=$?
21785    if test $pkg = 0; then
21786       BAT_DIR=src/qt-console
21787    else
21788       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21789    fi
21790 fi
21791
21792 got_qwt=no
21793 QWT_INC=
21794 QWT_LDFLAGS=
21795 QWT_LIB=
21796 QWT=
21797 no_qwt=no
21798
21799
21800
21801
21802
21803
21804
21805
21806 # Check whether --enable-smartalloc was given.
21807 if test "${enable_smartalloc+set}" = set; then :
21808   enableval=$enable_smartalloc;
21809        if test x$enableval = xno; then
21810           support_smartalloc=no
21811        fi
21812
21813
21814 fi
21815
21816
21817 if test x$support_smartalloc = xyes; then
21818
21819 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21820
21821 fi
21822
21823 # Check whether --enable-lockmgr was given.
21824 if test "${enable_lockmgr+set}" = set; then :
21825   enableval=$enable_lockmgr;
21826        if test x$enableval = xyes; then
21827           support_lockmgr=yes
21828        fi
21829
21830
21831 fi
21832
21833
21834 if test x$support_lockmgr = xyes; then
21835
21836 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21837
21838 fi
21839
21840
21841 # Check whether --enable-static-tools was given.
21842 if test "${enable_static_tools+set}" = set; then :
21843   enableval=$enable_static_tools;
21844        if test x$enableval = xyes; then
21845           if test x$use_libtool = xyes; then
21846              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21847   please rerun configure with --disable-libtool" "$LINENO" 5
21848           fi
21849           support_static_tools=yes
21850        fi
21851
21852
21853 fi
21854
21855
21856 TTOOL_LDFLAGS=
21857 if test x$support_static_tools = xyes; then
21858    TTOOL_LDFLAGS="-static"
21859 fi
21860
21861
21862 # Check whether --enable-static-fd was given.
21863 if test "${enable_static_fd+set}" = set; then :
21864   enableval=$enable_static_fd;
21865        if test x$enableval = xyes; then
21866           if test x$use_libtool = xyes; then
21867              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21868   please rerun configure with --disable-libtool" "$LINENO" 5
21869           fi
21870           support_static_fd=yes
21871        fi
21872
21873
21874 fi
21875
21876
21877 STATIC_FD=
21878 if test x$support_static_fd = xyes; then
21879    STATIC_FD="static-bacula-fd"
21880 fi
21881
21882
21883 # Check whether --enable-static-sd was given.
21884 if test "${enable_static_sd+set}" = set; then :
21885   enableval=$enable_static_sd;
21886        if test x$enableval = xyes; then
21887           if test x$use_libtool = xyes; then
21888              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21889   please rerun configure with --disable-libtool" "$LINENO" 5
21890           fi
21891           support_static_sd=yes
21892        fi
21893
21894
21895 fi
21896
21897
21898 STATIC_SD=
21899 if test x$support_static_sd = xyes; then
21900    STATIC_SD="static-bacula-sd"
21901 fi
21902
21903
21904 # Check whether --enable-static-dir was given.
21905 if test "${enable_static_dir+set}" = set; then :
21906   enableval=$enable_static_dir;
21907        if test x$enableval = xyes; then
21908           if test x$use_libtool = xyes; then
21909              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21910   please rerun configure with --disable-libtool" "$LINENO" 5
21911           fi
21912           support_static_dir=yes
21913        fi
21914
21915
21916 fi
21917
21918
21919 STATIC_DIR=
21920 if test x$support_static_dir = xyes; then
21921    STATIC_DIR="static-bacula-dir"
21922 fi
21923
21924
21925 # Check whether --enable-static-cons was given.
21926 if test "${enable_static_cons+set}" = set; then :
21927   enableval=$enable_static_cons;
21928        if test x$enableval = xyes; then
21929           if test x$use_libtool = xyes; then
21930              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21931   please rerun configure with --disable-libtool" "$LINENO" 5
21932           fi
21933           support_static_cons=yes
21934        fi
21935
21936
21937 fi
21938
21939
21940 STATIC_CONS=
21941 if test x$support_static_cons = xyes; then
21942    STATIC_CONS="static-bconsole"
21943 fi
21944
21945
21946 # Check whether --enable-client-only was given.
21947 if test "${enable_client_only+set}" = set; then :
21948   enableval=$enable_client_only;
21949        if test x$enableval = xyes; then
21950           build_client_only=yes
21951           db_backends="None"
21952           DB_BACKENDS="none"
21953        fi
21954
21955
21956 fi
21957
21958 if test x$build_client_only = xno; then
21959    ALL_DIRS="subdirs"
21960 else
21961    ALL_DIRS=""
21962 fi
21963
21964
21965 # Check whether --enable-build-dird was given.
21966 if test "${enable_build_dird+set}" = set; then :
21967   enableval=$enable_build_dird;
21968        if test x$enableval = xno; then
21969           build_dird=no
21970        fi
21971
21972
21973 fi
21974
21975
21976 DIRD_DIR="src/dird"
21977 DIR_TOOLS="DIRTOOLS"
21978
21979
21980
21981
21982 # Check whether --enable-build-stored was given.
21983 if test "${enable_build_stored+set}" = set; then :
21984   enableval=$enable_build_stored;
21985       if test x$enableval = xno; then
21986          build_stored=no
21987       fi
21988
21989
21990 fi
21991
21992 if test x$build_stored = xyes; then
21993    STORED_DIR="src/stored"
21994 else
21995    STORED_DIR=""
21996 fi
21997
21998
21999 # Check whether --enable-conio was given.
22000 if test "${enable_conio+set}" = set; then :
22001   enableval=$enable_conio;
22002        if test x$enableval = xno; then
22003           support_conio=no
22004        fi
22005
22006
22007 fi
22008
22009
22010
22011 support_ipv6=yes
22012 # Check whether --enable-ipv6 was given.
22013 if test "${enable_ipv6+set}" = set; then :
22014   enableval=$enable_ipv6;
22015        if test x$enableval = xno; then
22016           support_ipv6=no
22017        fi
22018
22019
22020 fi
22021
22022
22023 if test x$support_ipv6 = xyes; then
22024     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22025 /* end confdefs.h.  */
22026  #include <sys/types.h>
22027 #include <sys/socket.h>
22028 #include <netinet/in.h>
22029 int
22030 main ()
22031 {
22032 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22033   ;
22034   return 0;
22035 }
22036 _ACEOF
22037 if ac_fn_c_try_link "$LINENO"; then :
22038   support_in6addr_any=yes
22039 else
22040   support_in6addr_any=no
22041 fi
22042 rm -f core conftest.err conftest.$ac_objext \
22043     conftest$ac_exeext conftest.$ac_ext
22044
22045    if test x$support_in6addr_any = xno ; then
22046        in6addr_any="const struct in6_addr in6addr_any"
22047    else
22048        in6addr_any="1"
22049    fi
22050
22051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22052 /* end confdefs.h.  */
22053  #include <sys/types.h>
22054 #include <sys/socket.h>
22055 #include <netinet/in.h>
22056 int
22057 main ()
22058 {
22059 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22060   ;
22061   return 0;
22062 }
22063 _ACEOF
22064 if ac_fn_c_try_link "$LINENO"; then :
22065   support_ipv6=yes
22066 else
22067   support_ipv6=no
22068 fi
22069 rm -f core conftest.err conftest.$ac_objext \
22070     conftest$ac_exeext conftest.$ac_ext
22071 fi
22072
22073 if test x$support_ipv6 = xyes; then
22074
22075 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22076
22077
22078    if test x$support_in6addr_any = xno ; then
22079
22080 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22081
22082    fi
22083 fi
22084
22085 TERM_LIB=""
22086 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22087 if test "x$ac_cv_header_curses_h" = xyes; then :
22088
22089     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22090 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22091 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22092   $as_echo_n "(cached) " >&6
22093 else
22094   ac_check_lib_save_LIBS=$LIBS
22095 LIBS="-ltinfo  $LIBS"
22096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22097 /* end confdefs.h.  */
22098
22099 /* Override any GCC internal prototype to avoid an error.
22100    Use char because int might match the return type of a GCC
22101    builtin and then its argument prototype would still apply.  */
22102 #ifdef __cplusplus
22103 extern "C"
22104 #endif
22105 char tgetent ();
22106 int
22107 main ()
22108 {
22109 return tgetent ();
22110   ;
22111   return 0;
22112 }
22113 _ACEOF
22114 if ac_fn_c_try_link "$LINENO"; then :
22115   ac_cv_lib_tinfo_tgetent=yes
22116 else
22117   ac_cv_lib_tinfo_tgetent=no
22118 fi
22119 rm -f core conftest.err conftest.$ac_objext \
22120     conftest$ac_exeext conftest.$ac_ext
22121 LIBS=$ac_check_lib_save_LIBS
22122 fi
22123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22124 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22125 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22126    TERM_LIB="-ltinfo"
22127 else
22128
22129       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22130 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22131 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22132   $as_echo_n "(cached) " >&6
22133 else
22134   ac_check_lib_save_LIBS=$LIBS
22135 LIBS="-lncurses  $LIBS"
22136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22137 /* end confdefs.h.  */
22138
22139 /* Override any GCC internal prototype to avoid an error.
22140    Use char because int might match the return type of a GCC
22141    builtin and then its argument prototype would still apply.  */
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 char tgetent ();
22146 int
22147 main ()
22148 {
22149 return tgetent ();
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 if ac_fn_c_try_link "$LINENO"; then :
22155   ac_cv_lib_ncurses_tgetent=yes
22156 else
22157   ac_cv_lib_ncurses_tgetent=no
22158 fi
22159 rm -f core conftest.err conftest.$ac_objext \
22160     conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22162 fi
22163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22164 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22165 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22166    TERM_LIB="-lncurses"
22167 else
22168
22169         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22170 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22171 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22172   $as_echo_n "(cached) " >&6
22173 else
22174   ac_check_lib_save_LIBS=$LIBS
22175 LIBS="-ltermcap  $LIBS"
22176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22177 /* end confdefs.h.  */
22178
22179 /* Override any GCC internal prototype to avoid an error.
22180    Use char because int might match the return type of a GCC
22181    builtin and then its argument prototype would still apply.  */
22182 #ifdef __cplusplus
22183 extern "C"
22184 #endif
22185 char tgetent ();
22186 int
22187 main ()
22188 {
22189 return tgetent ();
22190   ;
22191   return 0;
22192 }
22193 _ACEOF
22194 if ac_fn_c_try_link "$LINENO"; then :
22195   ac_cv_lib_termcap_tgetent=yes
22196 else
22197   ac_cv_lib_termcap_tgetent=no
22198 fi
22199 rm -f core conftest.err conftest.$ac_objext \
22200     conftest$ac_exeext conftest.$ac_ext
22201 LIBS=$ac_check_lib_save_LIBS
22202 fi
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22204 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22205 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22206    TERM_LIB="-ltermcap"
22207 fi
22208
22209
22210 fi
22211
22212
22213 fi
22214
22215
22216 else
22217     for ac_header in curses.h
22218 do :
22219   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22220 if test "x$ac_cv_header_curses_h" = xyes; then :
22221   cat >>confdefs.h <<_ACEOF
22222 #define HAVE_CURSES_H 1
22223 _ACEOF
22224
22225 fi
22226
22227 done
22228
22229      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22230 if test "x$ac_cv_header_term_h" = xyes; then :
22231    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22232 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22233 if ${ac_cv_lib_curses_tgetent+:} false; then :
22234   $as_echo_n "(cached) " >&6
22235 else
22236   ac_check_lib_save_LIBS=$LIBS
22237 LIBS="-lcurses  $LIBS"
22238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22239 /* end confdefs.h.  */
22240
22241 /* Override any GCC internal prototype to avoid an error.
22242    Use char because int might match the return type of a GCC
22243    builtin and then its argument prototype would still apply.  */
22244 #ifdef __cplusplus
22245 extern "C"
22246 #endif
22247 char tgetent ();
22248 int
22249 main ()
22250 {
22251 return tgetent ();
22252   ;
22253   return 0;
22254 }
22255 _ACEOF
22256 if ac_fn_c_try_link "$LINENO"; then :
22257   ac_cv_lib_curses_tgetent=yes
22258 else
22259   ac_cv_lib_curses_tgetent=no
22260 fi
22261 rm -f core conftest.err conftest.$ac_objext \
22262     conftest$ac_exeext conftest.$ac_ext
22263 LIBS=$ac_check_lib_save_LIBS
22264 fi
22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22266 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22267 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22268    TERM_LIB="-lcurses"
22269 fi
22270
22271
22272 fi
22273
22274
22275
22276 fi
22277
22278
22279
22280
22281 got_conio="no"
22282 if test x$support_conio = xyes; then
22283    if test x$TERM_LIB != x; then
22284       CONS_LIBS=$TERM_LIB
22285       CONS_OBJ="conio.o"
22286       CONS_SRC="conio.c"
22287       got_conio="yes"
22288       support_readline=no
22289
22290 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22291
22292    else
22293       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22294    fi
22295 fi
22296
22297
22298 # Check whether --enable-readline was given.
22299 if test "${enable_readline+set}" = set; then :
22300   enableval=$enable_readline;
22301        if test x$enableval = xno; then
22302           support_readline=no
22303        fi
22304
22305
22306 fi
22307
22308
22309 got_readline="no"
22310 READLINE_SRC=
22311 if test x$support_readline = xyes; then
22312
22313 # Check whether --with-readline was given.
22314 if test "${with_readline+set}" = set; then :
22315   withval=$with_readline;
22316           case "$with_readline" in
22317           no)
22318              :
22319              ;;
22320           yes|*)
22321              if test -f ${with_readline}/readline.h; then
22322                 CONS_INC="-I${with_readline}"
22323                 CONS_LDFLAGS="-L$with_readline"
22324              elif test -f ${with_readline}/include/readline/readline.h; then
22325                 CONS_INC="-I${with_readline}/include/readline"
22326                 CONS_LDFLAGS="-L${with_readline}/lib"
22327                 with_readline="${with_readline}/include/readline"
22328              else
22329                 with_readline="/usr/include/readline"
22330              fi
22331
22332              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22333 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22334 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22335
22336
22337 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22338
22339                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22340                     got_readline="yes"
22341
22342 else
22343
22344                     echo " "
22345                     echo "readline.h not found. readline turned off ..."
22346                     echo " "
22347
22348
22349 fi
22350
22351
22352              ;;
22353           esac
22354
22355 else
22356
22357                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22358 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22359
22360
22361 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22362
22363                 got_readline="yes"
22364                 CONS_INC="-I/usr/include/readline"
22365                 CONS_LIBS="-lreadline ${TERM_LIB}"
22366
22367 else
22368
22369                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22370 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22372
22373
22374 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22375
22376                         got_readline="yes"
22377                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22378                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22379                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22380                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22381
22382 else
22383
22384                         echo " "
22385                         echo "readline.h not found. readline turned off ..."
22386                         echo " "
22387
22388
22389 fi
22390
22391
22392
22393
22394 fi
22395
22396
22397
22398
22399 fi
22400
22401 fi
22402
22403
22404
22405
22406
22407
22408
22409
22410 MAKE_SHELL=/bin/sh
22411
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22413 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22414 if ${ac_cv_header_stat_broken+:} false; then :
22415   $as_echo_n "(cached) " >&6
22416 else
22417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22418 /* end confdefs.h.  */
22419 #include <sys/types.h>
22420 #include <sys/stat.h>
22421
22422 #if defined S_ISBLK && defined S_IFDIR
22423 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22424 #endif
22425
22426 #if defined S_ISBLK && defined S_IFCHR
22427 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22428 #endif
22429
22430 #if defined S_ISLNK && defined S_IFREG
22431 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22432 #endif
22433
22434 #if defined S_ISSOCK && defined S_IFREG
22435 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22436 #endif
22437
22438 _ACEOF
22439 if ac_fn_c_try_compile "$LINENO"; then :
22440   ac_cv_header_stat_broken=no
22441 else
22442   ac_cv_header_stat_broken=yes
22443 fi
22444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22445 fi
22446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22447 $as_echo "$ac_cv_header_stat_broken" >&6; }
22448 if test $ac_cv_header_stat_broken = yes; then
22449
22450 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22451
22452 fi
22453
22454 ac_header_dirent=no
22455 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22456   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22458 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22459 if eval \${$as_ac_Header+:} false; then :
22460   $as_echo_n "(cached) " >&6
22461 else
22462   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22463 /* end confdefs.h.  */
22464 #include <sys/types.h>
22465 #include <$ac_hdr>
22466
22467 int
22468 main ()
22469 {
22470 if ((DIR *) 0)
22471 return 0;
22472   ;
22473   return 0;
22474 }
22475 _ACEOF
22476 if ac_fn_c_try_compile "$LINENO"; then :
22477   eval "$as_ac_Header=yes"
22478 else
22479   eval "$as_ac_Header=no"
22480 fi
22481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22482 fi
22483 eval ac_res=\$$as_ac_Header
22484                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22485 $as_echo "$ac_res" >&6; }
22486 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22487   cat >>confdefs.h <<_ACEOF
22488 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22489 _ACEOF
22490
22491 ac_header_dirent=$ac_hdr; break
22492 fi
22493
22494 done
22495 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22496 if test $ac_header_dirent = dirent.h; then
22497   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22498 $as_echo_n "checking for library containing opendir... " >&6; }
22499 if ${ac_cv_search_opendir+:} false; then :
22500   $as_echo_n "(cached) " >&6
22501 else
22502   ac_func_search_save_LIBS=$LIBS
22503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22504 /* end confdefs.h.  */
22505
22506 /* Override any GCC internal prototype to avoid an error.
22507    Use char because int might match the return type of a GCC
22508    builtin and then its argument prototype would still apply.  */
22509 #ifdef __cplusplus
22510 extern "C"
22511 #endif
22512 char opendir ();
22513 int
22514 main ()
22515 {
22516 return opendir ();
22517   ;
22518   return 0;
22519 }
22520 _ACEOF
22521 for ac_lib in '' dir; do
22522   if test -z "$ac_lib"; then
22523     ac_res="none required"
22524   else
22525     ac_res=-l$ac_lib
22526     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22527   fi
22528   if ac_fn_c_try_link "$LINENO"; then :
22529   ac_cv_search_opendir=$ac_res
22530 fi
22531 rm -f core conftest.err conftest.$ac_objext \
22532     conftest$ac_exeext
22533   if ${ac_cv_search_opendir+:} false; then :
22534   break
22535 fi
22536 done
22537 if ${ac_cv_search_opendir+:} false; then :
22538
22539 else
22540   ac_cv_search_opendir=no
22541 fi
22542 rm conftest.$ac_ext
22543 LIBS=$ac_func_search_save_LIBS
22544 fi
22545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22546 $as_echo "$ac_cv_search_opendir" >&6; }
22547 ac_res=$ac_cv_search_opendir
22548 if test "$ac_res" != no; then :
22549   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22550
22551 fi
22552
22553 else
22554   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22555 $as_echo_n "checking for library containing opendir... " >&6; }
22556 if ${ac_cv_search_opendir+:} false; then :
22557   $as_echo_n "(cached) " >&6
22558 else
22559   ac_func_search_save_LIBS=$LIBS
22560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22561 /* end confdefs.h.  */
22562
22563 /* Override any GCC internal prototype to avoid an error.
22564    Use char because int might match the return type of a GCC
22565    builtin and then its argument prototype would still apply.  */
22566 #ifdef __cplusplus
22567 extern "C"
22568 #endif
22569 char opendir ();
22570 int
22571 main ()
22572 {
22573 return opendir ();
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 for ac_lib in '' x; do
22579   if test -z "$ac_lib"; then
22580     ac_res="none required"
22581   else
22582     ac_res=-l$ac_lib
22583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22584   fi
22585   if ac_fn_c_try_link "$LINENO"; then :
22586   ac_cv_search_opendir=$ac_res
22587 fi
22588 rm -f core conftest.err conftest.$ac_objext \
22589     conftest$ac_exeext
22590   if ${ac_cv_search_opendir+:} false; then :
22591   break
22592 fi
22593 done
22594 if ${ac_cv_search_opendir+:} false; then :
22595
22596 else
22597   ac_cv_search_opendir=no
22598 fi
22599 rm conftest.$ac_ext
22600 LIBS=$ac_func_search_save_LIBS
22601 fi
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22603 $as_echo "$ac_cv_search_opendir" >&6; }
22604 ac_res=$ac_cv_search_opendir
22605 if test "$ac_res" != no; then :
22606   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22607
22608 fi
22609
22610 fi
22611
22612 for ac_func in strcasecmp select setenv putenv tcgetattr
22613 do :
22614   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22615 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22616 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22617   cat >>confdefs.h <<_ACEOF
22618 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22619 _ACEOF
22620
22621 fi
22622 done
22623
22624 for ac_func in lstat lchown lchmod futimes fchmod fchown
22625 do :
22626   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22627 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22628 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22629   cat >>confdefs.h <<_ACEOF
22630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22631 _ACEOF
22632
22633 fi
22634 done
22635
22636 for ac_func in nanosleep nl_langinfo
22637 do :
22638   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22639 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22640 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22641   cat >>confdefs.h <<_ACEOF
22642 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22643 _ACEOF
22644
22645 fi
22646 done
22647
22648 for ac_func in be64toh htobe64
22649 do :
22650   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22651 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22652 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22653   cat >>confdefs.h <<_ACEOF
22654 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22655 _ACEOF
22656
22657 fi
22658 done
22659
22660 for ac_header in varargs.h
22661 do :
22662   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22663 if test "x$ac_cv_header_varargs_h" = xyes; then :
22664   cat >>confdefs.h <<_ACEOF
22665 #define HAVE_VARARGS_H 1
22666 _ACEOF
22667
22668 fi
22669
22670 done
22671
22672
22673
22674 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22675 if test "x$ac_cv_func_socket" = xyes; then :
22676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22677 $as_echo "using libc's socket" >&6; }
22678 else
22679   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22680 $as_echo_n "checking for socket in -lxnet... " >&6; }
22681 if ${ac_cv_lib_xnet_socket+:} false; then :
22682   $as_echo_n "(cached) " >&6
22683 else
22684   ac_check_lib_save_LIBS=$LIBS
22685 LIBS="-lxnet  $LIBS"
22686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22687 /* end confdefs.h.  */
22688
22689 /* Override any GCC internal prototype to avoid an error.
22690    Use char because int might match the return type of a GCC
22691    builtin and then its argument prototype would still apply.  */
22692 #ifdef __cplusplus
22693 extern "C"
22694 #endif
22695 char socket ();
22696 int
22697 main ()
22698 {
22699 return socket ();
22700   ;
22701   return 0;
22702 }
22703 _ACEOF
22704 if ac_fn_c_try_link "$LINENO"; then :
22705   ac_cv_lib_xnet_socket=yes
22706 else
22707   ac_cv_lib_xnet_socket=no
22708 fi
22709 rm -f core conftest.err conftest.$ac_objext \
22710     conftest$ac_exeext conftest.$ac_ext
22711 LIBS=$ac_check_lib_save_LIBS
22712 fi
22713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22714 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22715 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22716   cat >>confdefs.h <<_ACEOF
22717 #define HAVE_LIBXNET 1
22718 _ACEOF
22719
22720   LIBS="-lxnet $LIBS"
22721
22722 fi
22723
22724     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22725 $as_echo_n "checking for socket in -lsocket... " >&6; }
22726 if ${ac_cv_lib_socket_socket+:} false; then :
22727   $as_echo_n "(cached) " >&6
22728 else
22729   ac_check_lib_save_LIBS=$LIBS
22730 LIBS="-lsocket  $LIBS"
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h.  */
22733
22734 /* Override any GCC internal prototype to avoid an error.
22735    Use char because int might match the return type of a GCC
22736    builtin and then its argument prototype would still apply.  */
22737 #ifdef __cplusplus
22738 extern "C"
22739 #endif
22740 char socket ();
22741 int
22742 main ()
22743 {
22744 return socket ();
22745   ;
22746   return 0;
22747 }
22748 _ACEOF
22749 if ac_fn_c_try_link "$LINENO"; then :
22750   ac_cv_lib_socket_socket=yes
22751 else
22752   ac_cv_lib_socket_socket=no
22753 fi
22754 rm -f core conftest.err conftest.$ac_objext \
22755     conftest$ac_exeext conftest.$ac_ext
22756 LIBS=$ac_check_lib_save_LIBS
22757 fi
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22759 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22760 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22761   cat >>confdefs.h <<_ACEOF
22762 #define HAVE_LIBSOCKET 1
22763 _ACEOF
22764
22765   LIBS="-lsocket $LIBS"
22766
22767 fi
22768
22769     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22770 $as_echo_n "checking for socket in -linet... " >&6; }
22771 if ${ac_cv_lib_inet_socket+:} false; then :
22772   $as_echo_n "(cached) " >&6
22773 else
22774   ac_check_lib_save_LIBS=$LIBS
22775 LIBS="-linet  $LIBS"
22776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22777 /* end confdefs.h.  */
22778
22779 /* Override any GCC internal prototype to avoid an error.
22780    Use char because int might match the return type of a GCC
22781    builtin and then its argument prototype would still apply.  */
22782 #ifdef __cplusplus
22783 extern "C"
22784 #endif
22785 char socket ();
22786 int
22787 main ()
22788 {
22789 return socket ();
22790   ;
22791   return 0;
22792 }
22793 _ACEOF
22794 if ac_fn_c_try_link "$LINENO"; then :
22795   ac_cv_lib_inet_socket=yes
22796 else
22797   ac_cv_lib_inet_socket=no
22798 fi
22799 rm -f core conftest.err conftest.$ac_objext \
22800     conftest$ac_exeext conftest.$ac_ext
22801 LIBS=$ac_check_lib_save_LIBS
22802 fi
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22804 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22805 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22806   cat >>confdefs.h <<_ACEOF
22807 #define HAVE_LIBINET 1
22808 _ACEOF
22809
22810   LIBS="-linet $LIBS"
22811
22812 fi
22813
22814 fi
22815
22816
22817 TCPW_MSG="no"
22818 WRAPLIBS=""
22819
22820 # Check whether --with-tcp-wrappers was given.
22821 if test "${with_tcp_wrappers+set}" = set; then :
22822   withval=$with_tcp_wrappers;
22823        if test "x$withval" != "xno" ; then
22824           saved_LIBS="$LIBS"
22825           LIBS="$saved_LIBS -lwrap"
22826           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22827 $as_echo_n "checking for library containing nanosleep... " >&6; }
22828 if ${ac_cv_search_nanosleep+:} false; then :
22829   $as_echo_n "(cached) " >&6
22830 else
22831   ac_func_search_save_LIBS=$LIBS
22832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22833 /* end confdefs.h.  */
22834
22835 /* Override any GCC internal prototype to avoid an error.
22836    Use char because int might match the return type of a GCC
22837    builtin and then its argument prototype would still apply.  */
22838 #ifdef __cplusplus
22839 extern "C"
22840 #endif
22841 char nanosleep ();
22842 int
22843 main ()
22844 {
22845 return nanosleep ();
22846   ;
22847   return 0;
22848 }
22849 _ACEOF
22850 for ac_lib in '' rt; do
22851   if test -z "$ac_lib"; then
22852     ac_res="none required"
22853   else
22854     ac_res=-l$ac_lib
22855     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22856   fi
22857   if ac_fn_c_try_link "$LINENO"; then :
22858   ac_cv_search_nanosleep=$ac_res
22859 fi
22860 rm -f core conftest.err conftest.$ac_objext \
22861     conftest$ac_exeext
22862   if ${ac_cv_search_nanosleep+:} false; then :
22863   break
22864 fi
22865 done
22866 if ${ac_cv_search_nanosleep+:} false; then :
22867
22868 else
22869   ac_cv_search_nanosleep=no
22870 fi
22871 rm conftest.$ac_ext
22872 LIBS=$ac_func_search_save_LIBS
22873 fi
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22875 $as_echo "$ac_cv_search_nanosleep" >&6; }
22876 ac_res=$ac_cv_search_nanosleep
22877 if test "$ac_res" != no; then :
22878   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22879
22880 fi
22881
22882           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22883 $as_echo_n "checking for libwrap... " >&6; }
22884           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22885 /* end confdefs.h.  */
22886
22887                #include <sys/types.h>
22888                #include <tcpd.h>
22889                int deny_severity = 0;
22890                int allow_severity = 0;
22891                struct request_info *req;
22892
22893 int
22894 main ()
22895 {
22896
22897                 hosts_access(req);
22898
22899   ;
22900   return 0;
22901 }
22902 _ACEOF
22903 if ac_fn_c_try_link "$LINENO"; then :
22904
22905                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22906 $as_echo "yes" >&6; }
22907
22908 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22909
22910                  TCPW_MSG="yes"
22911                  LIBS="$saved_LIBS"
22912                  WRAPLIBS="-lwrap"
22913
22914 else
22915
22916                  LIBS="$saved_LIBS -lwrap -lnsl"
22917                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22918                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22919 /* end confdefs.h.  */
22920
22921                        #include <sys/types.h>
22922                        #include <tcpd.h>
22923                        int deny_severity = 0;
22924                        int allow_severity = 0;
22925                        struct request_info *req;
22926
22927 int
22928 main ()
22929 {
22930
22931                        hosts_access(req);
22932
22933   ;
22934   return 0;
22935 }
22936 _ACEOF
22937 if ac_fn_c_try_link "$LINENO"; then :
22938
22939                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22940 $as_echo "yes" >&6; }
22941
22942 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22943
22944                       TCPW_MSG="yes"
22945                       LIBS="$saved_LIBS"
22946                       WRAPLIBS="-lwrap"
22947
22948 else
22949
22950                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22951
22952
22953 fi
22954 rm -f core conftest.err conftest.$ac_objext \
22955     conftest$ac_exeext conftest.$ac_ext
22956
22957
22958 fi
22959 rm -f core conftest.err conftest.$ac_objext \
22960     conftest$ac_exeext conftest.$ac_ext
22961        fi
22962
22963
22964 fi
22965
22966
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22968 $as_echo_n "checking for OpenSSL... " >&6; }
22969
22970 # Check whether --with-openssl was given.
22971 if test "${with_openssl+set}" = set; then :
22972   withval=$with_openssl;
22973         with_openssl_directory=${withval}
22974
22975
22976 fi
22977
22978
22979 if test "x$with_openssl_directory" != "xno"; then
22980    OPENSSL_LIBS="-lssl -lcrypto"
22981    OPENSSL_INC=""
22982
22983    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22984       #
22985       # Make sure the $with_openssl_directory also makes sense
22986       #
22987       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22988          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22989          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22990       fi
22991    fi
22992
22993    saved_LIBS="${LIBS}"
22994    saved_CFLAGS="${CFLAGS}"
22995    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22996    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22997
22998    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22999 /* end confdefs.h.  */
23000
23001           #include <openssl/ssl.h>
23002
23003 int
23004 main ()
23005 {
23006
23007            CRYPTO_set_id_callback(NULL);
23008
23009   ;
23010   return 0;
23011 }
23012 _ACEOF
23013 if ac_fn_c_try_link "$LINENO"; then :
23014
23015           support_tls="yes"
23016           support_crypto="yes"
23017
23018 else
23019
23020           support_tls="no"
23021           support_crypto="no"
23022
23023
23024 fi
23025 rm -f core conftest.err conftest.$ac_objext \
23026     conftest$ac_exeext conftest.$ac_ext
23027
23028    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23029 /* end confdefs.h.  */
23030
23031           #include <openssl/evp.h>
23032
23033 int
23034 main ()
23035 {
23036
23037           EVP_sha512();
23038
23039   ;
23040   return 0;
23041 }
23042 _ACEOF
23043 if ac_fn_c_try_link "$LINENO"; then :
23044
23045           ac_cv_openssl_sha2="yes"
23046
23047 else
23048
23049           ac_cv_openssl_sha2="no"
23050
23051
23052 fi
23053 rm -f core conftest.err conftest.$ac_objext \
23054     conftest$ac_exeext conftest.$ac_ext
23055
23056                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23057 /* end confdefs.h.  */
23058
23059           #include <openssl/evp.h>
23060
23061 int
23062 main ()
23063 {
23064
23065           EVP_aes_192_cbc();
23066
23067   ;
23068   return 0;
23069 }
23070 _ACEOF
23071 if ac_fn_c_try_link "$LINENO"; then :
23072
23073           ac_cv_openssl_export="no"
23074
23075 else
23076
23077           ac_cv_openssl_export="yes"
23078
23079
23080 fi
23081 rm -f core conftest.err conftest.$ac_objext \
23082     conftest$ac_exeext conftest.$ac_ext
23083
23084    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23085 $as_echo "$support_tls" >&6; }
23086    if test "$support_tls" = "yes"; then
23087
23088 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23089
23090
23091 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23092
23093
23094 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23095
23096    fi
23097
23098    if test "$ac_cv_openssl_sha2" = "yes"; then
23099
23100 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23101
23102    fi
23103
23104    if test "$ac_cv_openssl_export" = "yes"; then
23105
23106 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23107
23108    fi
23109
23110    if test "$support_crypto" = "yes"; then
23111       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23112 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23113 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23114   $as_echo_n "(cached) " >&6
23115 else
23116   ac_check_lib_save_LIBS=$LIBS
23117 LIBS="-lcrypto  $LIBS"
23118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23119 /* end confdefs.h.  */
23120
23121 /* Override any GCC internal prototype to avoid an error.
23122    Use char because int might match the return type of a GCC
23123    builtin and then its argument prototype would still apply.  */
23124 #ifdef __cplusplus
23125 extern "C"
23126 #endif
23127 char EVP_PKEY_encrypt_old ();
23128 int
23129 main ()
23130 {
23131 return EVP_PKEY_encrypt_old ();
23132   ;
23133   return 0;
23134 }
23135 _ACEOF
23136 if ac_fn_c_try_link "$LINENO"; then :
23137   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23138 else
23139   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23140 fi
23141 rm -f core conftest.err conftest.$ac_objext \
23142     conftest$ac_exeext conftest.$ac_ext
23143 LIBS=$ac_check_lib_save_LIBS
23144 fi
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23146 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23147 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23148
23149 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23150
23151 fi
23152
23153    fi
23154
23155    LIBS="${saved_LIBS}"
23156    CFLAGS="${saved_CFLAGS}"
23157 else
23158    support_tls="no"
23159    support_crypto="no"
23160    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23161 $as_echo "$support_tls" >&6; }
23162 fi
23163
23164 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23165    OPENSSL_LIBS=""
23166    OPENSSL_INC=""
23167 fi
23168
23169
23170
23171
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23173 $as_echo_n "checking for library containing dlopen... " >&6; }
23174 if ${ac_cv_search_dlopen+:} false; then :
23175   $as_echo_n "(cached) " >&6
23176 else
23177   ac_func_search_save_LIBS=$LIBS
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h.  */
23180
23181 /* Override any GCC internal prototype to avoid an error.
23182    Use char because int might match the return type of a GCC
23183    builtin and then its argument prototype would still apply.  */
23184 #ifdef __cplusplus
23185 extern "C"
23186 #endif
23187 char dlopen ();
23188 int
23189 main ()
23190 {
23191 return dlopen ();
23192   ;
23193   return 0;
23194 }
23195 _ACEOF
23196 for ac_lib in '' dl; do
23197   if test -z "$ac_lib"; then
23198     ac_res="none required"
23199   else
23200     ac_res=-l$ac_lib
23201     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23202   fi
23203   if ac_fn_c_try_link "$LINENO"; then :
23204   ac_cv_search_dlopen=$ac_res
23205 fi
23206 rm -f core conftest.err conftest.$ac_objext \
23207     conftest$ac_exeext
23208   if ${ac_cv_search_dlopen+:} false; then :
23209   break
23210 fi
23211 done
23212 if ${ac_cv_search_dlopen+:} false; then :
23213
23214 else
23215   ac_cv_search_dlopen=no
23216 fi
23217 rm conftest.$ac_ext
23218 LIBS=$ac_func_search_save_LIBS
23219 fi
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23221 $as_echo "$ac_cv_search_dlopen" >&6; }
23222 ac_res=$ac_cv_search_dlopen
23223 if test "$ac_res" != no; then :
23224   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23225
23226 fi
23227
23228
23229 working_dir=`eval echo /opt/bacula/working`
23230
23231 # Check whether --with-working-dir was given.
23232 if test "${with_working_dir+set}" = set; then :
23233   withval=$with_working_dir;
23234        if test "x$withval" != "xno" ; then
23235          working_dir=$withval
23236        fi
23237
23238
23239 fi
23240
23241
23242
23243
23244 archivedir=/tmp
23245
23246 # Check whether --with-archivedir was given.
23247 if test "${with_archivedir+set}" = set; then :
23248   withval=$with_archivedir;
23249        if test "x$withval" != "xno" ; then
23250           archivedir=$withval
23251        fi
23252
23253
23254 fi
23255
23256
23257
23258
23259 basename=`hostname`
23260
23261 # Check whether --with-basename was given.
23262 if test "${with_basename+set}" = set; then :
23263   withval=$with_basename;
23264        if test "x$withval" != "xno" ; then
23265           basename=$withval
23266        fi
23267
23268
23269 fi
23270
23271
23272
23273
23274 hostname=`uname -n | cut -d '.' -f 1`
23275 if test x${hostname} = x ; then
23276   hostname="localhost"
23277 fi
23278 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23279 if test ! $? = 0; then
23280   hostname="localhost"
23281 fi
23282
23283 # Check whether --with-hostname was given.
23284 if test "${with_hostname+set}" = set; then :
23285   withval=$with_hostname;
23286        if test "x$withval" != "xno" ; then
23287          hostname=$withval
23288        fi
23289
23290
23291 fi
23292
23293
23294
23295
23296
23297 scriptdir=`eval echo ${sysconfdir}`
23298
23299 # Check whether --with-scriptdir was given.
23300 if test "${with_scriptdir+set}" = set; then :
23301   withval=$with_scriptdir;
23302        if test "x$withval" != "xno" ; then
23303           scriptdir=$withval
23304        fi
23305
23306
23307 fi
23308
23309
23310
23311
23312
23313 bsrdir=`eval echo /opt/bacula/bsr`
23314
23315 # Check whether --with-bsrdir was given.
23316 if test "${with_bsrdir+set}" = set; then :
23317   withval=$with_bsrdir;
23318        if test "x$withval" != "xno" ; then
23319           bsrdir=$withval
23320        fi
23321
23322
23323 fi
23324
23325
23326
23327
23328 logdir=`eval echo /opt/bacula/log`
23329
23330 # Check whether --with-logdir was given.
23331 if test "${with_logdir+set}" = set; then :
23332   withval=$with_logdir;
23333        if test "x$withval" != "xno" ; then
23334           logdir=$withval
23335        fi
23336
23337
23338 fi
23339
23340
23341
23342
23343
23344 # ------------------------------------------
23345 # Where to place plugindir (plugin files)
23346 # ------------------------------------------
23347 plugindir=`eval echo ${libdir}`
23348
23349 # Check whether --with-plugindir was given.
23350 if test "${with_plugindir+set}" = set; then :
23351   withval=$with_plugindir;
23352        if test "x$withval" != "xno" ; then
23353           plugindir=$withval
23354        fi
23355
23356
23357 fi
23358
23359
23360
23361
23362
23363 dump_email=root@localhost
23364
23365 # Check whether --with-dump-email was given.
23366 if test "${with_dump_email+set}" = set; then :
23367   withval=$with_dump_email;
23368        if test "x$withval" != "xno" ; then
23369           dump_email=$withval
23370        fi
23371
23372
23373 fi
23374
23375
23376
23377
23378 job_email=root@localhost
23379
23380 # Check whether --with-job-email was given.
23381 if test "${with_job_email+set}" = set; then :
23382   withval=$with_job_email;
23383        if test "x$withval" != "xno" ; then
23384           job_email=$withval
23385        fi
23386
23387
23388 fi
23389
23390
23391
23392
23393 smtp_host=localhost
23394
23395 # Check whether --with-smtp_host was given.
23396 if test "${with_smtp_host+set}" = set; then :
23397   withval=$with_smtp_host;
23398        if test "x$withval" != "xno" ; then
23399           smtp_host=$withval
23400        fi
23401
23402
23403 fi
23404
23405
23406
23407
23408 piddir=/var/run
23409
23410 # Check whether --with-pid-dir was given.
23411 if test "${with_pid_dir+set}" = set; then :
23412   withval=$with_pid_dir;
23413        if test "x$withval" != "xno" ; then
23414           piddir=$withval
23415        fi
23416
23417
23418 fi
23419
23420
23421 cat >>confdefs.h <<_ACEOF
23422 #define _PATH_BACULA_PIDDIR "$piddir"
23423 _ACEOF
23424
23425
23426
23427 subsysdir=/var/run/subsys
23428 if test -d /var/run/subsys; then
23429    subsysdir=/var/run/subsys
23430 elif test -d /var/lock/subsys; then
23431    subsysdir=/var/lock/subsys
23432 else
23433    subsysdir=/var/run/subsys
23434 fi
23435
23436 # Check whether --with-subsys-dir was given.
23437 if test "${with_subsys_dir+set}" = set; then :
23438   withval=$with_subsys_dir;
23439        if test "x$withval" != "xno" ; then
23440           subsysdir=$withval
23441        fi
23442
23443
23444 fi
23445
23446
23447
23448
23449 baseport=9101
23450
23451 # Check whether --with-baseport was given.
23452 if test "${with_baseport+set}" = set; then :
23453   withval=$with_baseport;
23454        if test "x$withval" != "xno" ; then
23455           baseport=$withval
23456        fi
23457
23458
23459 fi
23460
23461
23462
23463 dir_port=`expr $baseport`
23464 fd_port=`expr $baseport + 1`
23465 sd_port=`expr $fd_port + 1`
23466
23467
23468
23469
23470
23471 dir_password=
23472
23473 # Check whether --with-dir-password was given.
23474 if test "${with_dir_password+set}" = set; then :
23475   withval=$with_dir_password;
23476        if test "x$withval" != "xno" ; then
23477           dir_password=$withval
23478        fi
23479
23480
23481 fi
23482
23483
23484 if test "x$dir_password" = "x" ; then
23485    if test "x$OPENSSL" = "xnone" ; then
23486       key=`autoconf/randpass 33`
23487    else
23488       key=`openssl rand -base64 33`
23489    fi
23490    dir_password=$key
23491 fi
23492
23493 fd_password=
23494
23495 # Check whether --with-fd-password was given.
23496 if test "${with_fd_password+set}" = set; then :
23497   withval=$with_fd_password;
23498        if test "x$withval" != "xno" ; then
23499           fd_password=$withval
23500        fi
23501
23502
23503 fi
23504
23505
23506 if test "x$fd_password" = "x" ; then
23507    if test "x$OPENSSL" = "xnone" ; then
23508       key=`autoconf/randpass 37`
23509    else
23510       key=`openssl rand -base64 33`
23511    fi
23512    fd_password=$key
23513 fi
23514
23515 sd_password=
23516
23517 # Check whether --with-sd-password was given.
23518 if test "${with_sd_password+set}" = set; then :
23519   withval=$with_sd_password;
23520        if test "x$withval" != "xno" ; then
23521           sd_password=$withval
23522        fi
23523
23524
23525 fi
23526
23527
23528 if test "x$sd_password" = "x" ; then
23529    if test "x$OPENSSL" = "xnone" ; then
23530       key=`autoconf/randpass 41`
23531    else
23532       key=`openssl rand -base64 33`
23533    fi
23534    sd_password=$key
23535 fi
23536
23537 mon_dir_password=
23538
23539 # Check whether --with-mon-dir-password was given.
23540 if test "${with_mon_dir_password+set}" = set; then :
23541   withval=$with_mon_dir_password;
23542        if test "x$withval" != "xno" ; then
23543           mon_dir_password=$withval
23544        fi
23545
23546
23547 fi
23548
23549
23550 if test "x$mon_dir_password" = "x" ; then
23551    if test "x$OPENSSL" = "xnone" ; then
23552       key=`autoconf/randpass 33`
23553    else
23554       key=`openssl rand -base64 33`
23555    fi
23556    mon_dir_password=$key
23557 fi
23558
23559 mon_fd_password=
23560
23561 # Check whether --with-mon-fd-password was given.
23562 if test "${with_mon_fd_password+set}" = set; then :
23563   withval=$with_mon_fd_password;
23564        if test "x$withval" != "xno" ; then
23565           mon_fd_password=$withval
23566        fi
23567
23568
23569 fi
23570
23571
23572 if test "x$mon_fd_password" = "x" ; then
23573    if test "x$OPENSSL" = "xnone" ; then
23574       key=`autoconf/randpass 37`
23575    else
23576       key=`openssl rand -base64 33`
23577    fi
23578    mon_fd_password=$key
23579 fi
23580
23581 mon_sd_password=
23582
23583 # Check whether --with-mon-sd-password was given.
23584 if test "${with_mon_sd_password+set}" = set; then :
23585   withval=$with_mon_sd_password;
23586        if test "x$withval" != "xno" ; then
23587           mon_sd_password=$withval
23588        fi
23589
23590
23591 fi
23592
23593
23594 if test "x$mon_sd_password" = "x" ; then
23595    if test "x$OPENSSL" = "xnone" ; then
23596       key=`autoconf/randpass 41`
23597    else
23598       key=`openssl rand -base64 33`
23599    fi
23600    mon_sd_password=$key
23601 fi
23602
23603
23604
23605
23606
23607
23608
23609
23610 db_name=bacula
23611
23612 # Check whether --with-db_name was given.
23613 if test "${with_db_name+set}" = set; then :
23614   withval=$with_db_name;
23615        if test "x$withval" != "x" ; then
23616           db_name=$withval
23617        fi
23618
23619
23620 fi
23621
23622
23623
23624 db_user=bacula
23625
23626 # Check whether --with-db_user was given.
23627 if test "${with_db_user+set}" = set; then :
23628   withval=$with_db_user;
23629        if test "x$withval" != "x" ; then
23630           db_user=$withval
23631        fi
23632
23633
23634 fi
23635
23636
23637
23638 db_password=
23639
23640 # Check whether --with-db_password was given.
23641 if test "${with_db_password+set}" = set; then :
23642   withval=$with_db_password;
23643        if test "x$withval" != "x" ; then
23644           db_password=$withval
23645        fi
23646
23647
23648 fi
23649
23650
23651
23652 db_port=" "
23653
23654 # Check whether --with-db_port was given.
23655 if test "${with_db_port+set}" = set; then :
23656   withval=$with_db_port;
23657        if test "x$withval" != "x" ; then
23658           db_port=$withval
23659        fi
23660
23661
23662 fi
23663
23664
23665
23666 db_ssl_options=
23667
23668 # Check whether --with-db_ssl_options was given.
23669 if test "${with_db_ssl_options+set}" = set; then :
23670   withval=$with_db_ssl_options;
23671        if test "x$withval" != "x" ; then
23672          db_ssl_options=$withval
23673        fi
23674
23675
23676 fi
23677
23678
23679
23680 #
23681 # Handle users and groups for each daemon
23682 #
23683 dir_user=
23684
23685 # Check whether --with-dir_user was given.
23686 if test "${with_dir_user+set}" = set; then :
23687   withval=$with_dir_user;
23688        if test "x$withval" != "x" ; then
23689            dir_user=$withval
23690        fi
23691
23692
23693 fi
23694
23695
23696 dir_group=
23697
23698 # Check whether --with-dir_group was given.
23699 if test "${with_dir_group+set}" = set; then :
23700   withval=$with_dir_group;
23701        if test "x$withval" != "x" ; then
23702           dir_group=$withval
23703        fi
23704
23705
23706 fi
23707
23708
23709 sd_user=
23710
23711 # Check whether --with-sd_user was given.
23712 if test "${with_sd_user+set}" = set; then :
23713   withval=$with_sd_user;
23714        if test "x$withval" != "x" ; then
23715           sd_user=$withval
23716        fi
23717
23718
23719 fi
23720
23721
23722 sd_group=
23723
23724 # Check whether --with-sd_group was given.
23725 if test "${with_sd_group+set}" = set; then :
23726   withval=$with_sd_group;
23727        if test "x$withval" != "x" ; then
23728           sd_group=$withval
23729        fi
23730
23731
23732 fi
23733
23734
23735 fd_user=
23736
23737 # Check whether --with-fd_user was given.
23738 if test "${with_fd_user+set}" = set; then :
23739   withval=$with_fd_user;
23740        if test "x$withval" != "x" ; then
23741           fd_user=$withval
23742        fi
23743
23744
23745 fi
23746
23747
23748 fd_group=
23749
23750 # Check whether --with-fd_group was given.
23751 if test "${with_fd_group+set}" = set; then :
23752   withval=$with_fd_group;
23753        if test "x$withval" != "x" ; then
23754           fd_group=$withval
23755        fi
23756
23757
23758 fi
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768 SBINPERM=0750
23769
23770 # Check whether --with-sbin-perm was given.
23771 if test "${with_sbin_perm+set}" = set; then :
23772   withval=$with_sbin_perm;
23773        if test "x$withval" != "x" ; then
23774           SBINPERM=$withval
23775        fi
23776
23777
23778 fi
23779
23780
23781
23782
23783 support_batch_insert=yes
23784 # Check whether --enable-batch-insert was given.
23785 if test "${enable_batch_insert+set}" = set; then :
23786   enableval=$enable_batch_insert;
23787        if test x$enableval = xno; then
23788           support_batch_insert=no
23789        fi
23790
23791
23792 fi
23793
23794
23795 if test x$support_batch_insert = xyes; then
23796
23797 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23798
23799 fi
23800
23801
23802 uncomment_dbi="#"
23803
23804
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23806 $as_echo_n "checking for PostgreSQL support... " >&6; }
23807
23808 # Check whether --with-postgresql was given.
23809 if test "${with_postgresql+set}" = set; then :
23810   withval=$with_postgresql;
23811   if test "$withval" != "no"; then
23812       if test "$withval" = "yes"; then
23813           PG_CONFIG=`which pg_config 2>/dev/null`
23814           if test -n "$PG_CONFIG"; then
23815               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23816               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23817               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23818           elif test -f /usr/local/include/libpq-fe.h; then
23819               POSTGRESQL_INCDIR=/usr/local/include
23820               if test -d /usr/local/lib64; then
23821                  POSTGRESQL_LIBDIR=/usr/local/lib64
23822               else
23823                  POSTGRESQL_LIBDIR=/usr/local/lib
23824               fi
23825               POSTGRESQL_BINDIR=/usr/local/bin
23826           elif test -f /usr/include/libpq-fe.h; then
23827               POSTGRESQL_INCDIR=/usr/include
23828               if test -d /usr/lib64; then
23829                  POSTGRESQL_LIBDIR=/usr/lib64
23830               else
23831                  POSTGRESQL_LIBDIR=/usr/lib
23832               fi
23833               POSTGRESQL_BINDIR=/usr/bin
23834           elif test -f /usr/include/pgsql/libpq-fe.h; then
23835               POSTGRESQL_INCDIR=/usr/include/pgsql
23836               if test -d /usr/lib64/pgsql; then
23837                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23838               else
23839                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23840               fi
23841               POSTGRESQL_BINDIR=/usr/bin
23842           elif test -f /usr/include/postgresql/libpq-fe.h; then
23843               POSTGRESQL_INCDIR=/usr/include/postgresql
23844               if test -d /usr/lib64/postgresql; then
23845                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23846               else
23847                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23848               fi
23849               POSTGRESQL_BINDIR=/usr/bin
23850           else
23851               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23852 $as_echo "no" >&6; }
23853               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23854           fi
23855       elif test -f $withval/include/libpq-fe.h; then
23856           POSTGRESQL_INCDIR=$withval/include
23857           POSTGRESQL_LIBDIR=$withval/lib
23858           POSTGRESQL_BINDIR=$withval/bin
23859       elif test -f $withval/include/postgresql/libpq-fe.h; then
23860           POSTGRESQL_INCDIR=$withval/include/postgresql
23861           if test -d $withval/lib64; then
23862               POSTGRESQL_LIBDIR=$withval/lib64
23863           else
23864               POSTGRESQL_LIBDIR=$withval/lib
23865           fi
23866           POSTGRESQL_BINDIR=$withval/bin
23867       else
23868           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23869 $as_echo "no" >&6; }
23870           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23871       fi
23872
23873 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23874
23875      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23876 $as_echo "yes" >&6; }
23877
23878      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23879      if test x$use_libtool != xno; then
23880         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23881      else
23882         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23883      fi
23884      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23885 if test "x$ac_cv_func_crypt" = xyes; then :
23886
23887 else
23888   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23889 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23890 if ${ac_cv_lib_crypt_crypt+:} false; then :
23891   $as_echo_n "(cached) " >&6
23892 else
23893   ac_check_lib_save_LIBS=$LIBS
23894 LIBS="-lcrypt  $LIBS"
23895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23896 /* end confdefs.h.  */
23897
23898 /* Override any GCC internal prototype to avoid an error.
23899    Use char because int might match the return type of a GCC
23900    builtin and then its argument prototype would still apply.  */
23901 #ifdef __cplusplus
23902 extern "C"
23903 #endif
23904 char crypt ();
23905 int
23906 main ()
23907 {
23908 return crypt ();
23909   ;
23910   return 0;
23911 }
23912 _ACEOF
23913 if ac_fn_c_try_link "$LINENO"; then :
23914   ac_cv_lib_crypt_crypt=yes
23915 else
23916   ac_cv_lib_crypt_crypt=no
23917 fi
23918 rm -f core conftest.err conftest.$ac_objext \
23919     conftest$ac_exeext conftest.$ac_ext
23920 LIBS=$ac_check_lib_save_LIBS
23921 fi
23922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23923 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23924 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23925   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23926 fi
23927
23928 fi
23929
23930      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23931      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23932
23933      if test -z "${db_backends}"; then
23934          db_backends="PostgreSQL"
23935      else
23936          db_backends="${db_backends} PostgreSQL"
23937      fi
23938      if test -z "${DB_BACKENDS}"; then
23939          DB_BACKENDS="postgresql"
23940      else
23941          DB_BACKENDS="${DB_BACKENDS} postgresql"
23942      fi
23943
23944                     if test "x$support_batch_insert" = "xyes"; then
23945                   saved_LDFLAGS="${LDFLAGS}"
23946          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23947          saved_LIBS="${LIBS}"
23948          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23949             LIBS="${saved_LIBS} -lcrypt"
23950          fi
23951
23952          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23953 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23954 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23955   $as_echo_n "(cached) " >&6
23956 else
23957   ac_check_lib_save_LIBS=$LIBS
23958 LIBS="-lpq  $LIBS"
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h.  */
23961
23962 /* Override any GCC internal prototype to avoid an error.
23963    Use char because int might match the return type of a GCC
23964    builtin and then its argument prototype would still apply.  */
23965 #ifdef __cplusplus
23966 extern "C"
23967 #endif
23968 char PQisthreadsafe ();
23969 int
23970 main ()
23971 {
23972 return PQisthreadsafe ();
23973   ;
23974   return 0;
23975 }
23976 _ACEOF
23977 if ac_fn_c_try_link "$LINENO"; then :
23978   ac_cv_lib_pq_PQisthreadsafe=yes
23979 else
23980   ac_cv_lib_pq_PQisthreadsafe=no
23981 fi
23982 rm -f core conftest.err conftest.$ac_objext \
23983     conftest$ac_exeext conftest.$ac_ext
23984 LIBS=$ac_check_lib_save_LIBS
23985 fi
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23987 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23988 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23989
23990 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23991
23992 fi
23993
23994          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23995 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23996 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23997   $as_echo_n "(cached) " >&6
23998 else
23999   ac_check_lib_save_LIBS=$LIBS
24000 LIBS="-lpq  $LIBS"
24001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24002 /* end confdefs.h.  */
24003
24004 /* Override any GCC internal prototype to avoid an error.
24005    Use char because int might match the return type of a GCC
24006    builtin and then its argument prototype would still apply.  */
24007 #ifdef __cplusplus
24008 extern "C"
24009 #endif
24010 char PQputCopyData ();
24011 int
24012 main ()
24013 {
24014 return PQputCopyData ();
24015   ;
24016   return 0;
24017 }
24018 _ACEOF
24019 if ac_fn_c_try_link "$LINENO"; then :
24020   ac_cv_lib_pq_PQputCopyData=yes
24021 else
24022   ac_cv_lib_pq_PQputCopyData=no
24023 fi
24024 rm -f core conftest.err conftest.$ac_objext \
24025     conftest$ac_exeext conftest.$ac_ext
24026 LIBS=$ac_check_lib_save_LIBS
24027 fi
24028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24029 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24030 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24031
24032 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24033
24034 fi
24035
24036          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24037              if test $support_batch_insert = yes ; then
24038
24039 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24040
24041                  if test -z "${batch_insert_db_backends}"; then
24042                      batch_insert_db_backends="PostgreSQL"
24043                  else
24044                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24045                  fi
24046              fi
24047          fi
24048
24049          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24050          then
24051              echo "WARNING: Your PostgreSQL client library is too old to detect "
24052              echo "if it was compiled with --enable-thread-safety, consider to "
24053              echo "upgrade it in order to avoid problems with Batch insert mode"
24054          fi
24055
24056                   LDFLAGS="${saved_LDFLAGS}"
24057          LIBS="${saved_LIBS}"
24058      fi
24059   else
24060      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24061 $as_echo "no" >&6; }
24062   fi
24063
24064 else
24065
24066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24067 $as_echo "no" >&6; }
24068
24069 fi
24070
24071
24072
24073
24074
24075
24076
24077
24078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24079 $as_echo_n "checking for MySQL support... " >&6; }
24080
24081 # Check whether --with-mysql was given.
24082 if test "${with_mysql+set}" = set; then :
24083   withval=$with_mysql;
24084   if test "$withval" != "no"; then
24085         if test "$withval" = "yes"; then
24086 #
24087 # This code is very broken on older systems
24088 #
24089 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24090 #           if test "x${MYSQL_CONFIG}" != x; then
24091 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24092 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24093 #              if test $? = 0 ; then
24094 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24095 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24096 #              else
24097 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24098 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24099 #              fi
24100 #           fi
24101 #           if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24102            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24103               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24104               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24105                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24106                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24107               else
24108                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24109               fi
24110               MYSQL_BINDIR=/usr/local/mysql/bin
24111            elif test -f /usr/include/mysql/mysql.h; then
24112               MYSQL_INCDIR=/usr/include/mysql
24113               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24114                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24115                  MYSQL_LIBDIR=/usr/lib64/mysql
24116               elif test -f /usr/lib64/libmysqlclient_r.a \
24117                         -o -f /usr/lib64/libmysqlclient_r.so; then
24118                  MYSQL_LIBDIR=/usr/lib64
24119               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24120                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24121                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24122               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24123                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24124                  MYSQL_LIBDIR=/usr/lib/mysql
24125               else
24126                  MYSQL_LIBDIR=/usr/lib
24127               fi
24128               MYSQL_BINDIR=/usr/bin
24129            elif test -f /usr/include/mysql.h; then
24130               MYSQL_INCDIR=/usr/include
24131               if test -f /usr/lib64/libmysqlclient_r.a \
24132                       -o -f /usr/lib64/libmysqlclient_r.so; then
24133                  MYSQL_LIBDIR=/usr/lib64
24134               else
24135                  MYSQL_LIBDIR=/usr/lib
24136               fi
24137               MYSQL_BINDIR=/usr/bin
24138            elif test -f /usr/local/include/mysql/mysql.h; then
24139               MYSQL_INCDIR=/usr/local/include/mysql
24140               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24141                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24142                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24143               else
24144                  MYSQL_LIBDIR=/usr/local/lib/mysql
24145               fi
24146               MYSQL_BINDIR=/usr/local/bin
24147            elif test -f /usr/local/include/mysql.h; then
24148               MYSQL_INCDIR=/usr/local/include
24149               if test -f /usr/local/lib64/libmysqlclient_r.a \
24150                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24151                  MYSQL_LIBDIR=/usr/local/lib64
24152               else
24153                  MYSQL_LIBDIR=/usr/local/lib
24154               fi
24155               MYSQL_BINDIR=/usr/local/bin
24156            else
24157               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24158 $as_echo "no" >&6; }
24159               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24160            fi
24161         else
24162            if test -f $withval/include/mysql/mysql.h; then
24163               MYSQL_INCDIR=$withval/include/mysql
24164               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24165                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24166                  MYSQL_LIBDIR=$withval/lib64/mysql
24167               elif test -f $withval/lib64/libmysqlclient_r.a \
24168                    -o -f $withval/lib64/libmysqlclient_r.so; then
24169                  MYSQL_LIBDIR=$withval/lib64
24170               elif test -f $withval/lib/libmysqlclient_r.a \
24171                    -o -f $withval/lib/libmysqlclient_r.so; then
24172                  MYSQL_LIBDIR=$withval/lib
24173               else
24174                  MYSQL_LIBDIR=$withval/lib/mysql
24175               fi
24176               MYSQL_BINDIR=$withval/bin
24177            elif test -f $withval/include/mysql.h; then
24178               MYSQL_INCDIR=$withval/include
24179               if test -f $withval/lib64/libmysqlclient_r.a \
24180                    -o -f $withval/lib64/libmysqlclient_r.so; then
24181                  MYSQL_LIBDIR=$withval/lib64
24182               else
24183                  MYSQL_LIBDIR=$withval/lib
24184               fi
24185               MYSQL_BINDIR=$withval/bin
24186            elif test -f $withval/mysql.h; then
24187                             MYSQL_INCDIR=$withval
24188               { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24189 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24190               case $MYSQL_INCDIR in
24191                  *mysql55*)
24192                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24193 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24194                                           if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24195                           -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24196                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24197 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24198                         MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24199                      fi
24200                      MYSQL_BINDIR=$prefix/lib/mysql55/bin
24201                  ;;
24202                  *mysql51*)
24203                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24204 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24205                                           if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24206                           -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24207                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24208 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24209                         MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24210                      fi
24211                      MYSQL_BINDIR=$prefix/lib/mysql51/bin
24212                  ;;
24213               esac
24214               if test -z "${MYSQL_LIBDIR}" ; then
24215                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24216 $as_echo "no" >&6; }
24217                  as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24218               fi
24219            else
24220               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24222               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24223            fi
24224         fi
24225      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24226      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24227           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24228         if test x$use_libtool != xno; then
24229            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24230         else
24231            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24232         fi
24233         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24234      fi
24235      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24236
24237
24238 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24239
24240      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24241 $as_echo "yes" >&6; }
24242
24243      if test -z "${db_backends}" ; then
24244          db_backends="MySQL"
24245      else
24246          db_backends="${db_backends} MySQL"
24247      fi
24248      if test -z "${DB_BACKENDS}" ; then
24249          DB_BACKENDS="mysql"
24250      else
24251          DB_BACKENDS="${DB_BACKENDS} mysql"
24252      fi
24253
24254                     if test "x$support_batch_insert" = "xyes"; then
24255                   saved_LDFLAGS="${LDFLAGS}"
24256          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24257          saved_LIBS="${LIBS}"
24258          LIBS="${saved_LIBS} -lz"
24259
24260          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24261 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24262 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24263   $as_echo_n "(cached) " >&6
24264 else
24265   ac_check_lib_save_LIBS=$LIBS
24266 LIBS="-lmysqlclient_r  $LIBS"
24267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24268 /* end confdefs.h.  */
24269
24270 /* Override any GCC internal prototype to avoid an error.
24271    Use char because int might match the return type of a GCC
24272    builtin and then its argument prototype would still apply.  */
24273 #ifdef __cplusplus
24274 extern "C"
24275 #endif
24276 char mysql_thread_safe ();
24277 int
24278 main ()
24279 {
24280 return mysql_thread_safe ();
24281   ;
24282   return 0;
24283 }
24284 _ACEOF
24285 if ac_fn_c_try_link "$LINENO"; then :
24286   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24287 else
24288   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24289 fi
24290 rm -f core conftest.err conftest.$ac_objext \
24291     conftest$ac_exeext conftest.$ac_ext
24292 LIBS=$ac_check_lib_save_LIBS
24293 fi
24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24295 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24296 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24297
24298 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24299
24300 fi
24301
24302          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24303              if test -z "${batch_insert_db_backends}"; then
24304                  batch_insert_db_backends="MySQL"
24305              else
24306                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24307              fi
24308          fi
24309
24310                   LDFLAGS="${saved_LDFLAGS}"
24311          LIBS="${saved_LIBS}"
24312      fi
24313   else
24314      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24315 $as_echo "no" >&6; }
24316   fi
24317
24318 else
24319
24320   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24321 $as_echo "no" >&6; }
24322
24323 fi
24324
24325
24326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24327 $as_echo_n "checking for MySQL embedded support... " >&6; }
24328
24329 # Check whether --with-embedded-mysql was given.
24330 if test "${with_embedded_mysql+set}" = set; then :
24331   withval=$with_embedded_mysql;
24332   if test "$withval" != "no"; then
24333         if test "$withval" = "yes"; then
24334                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24335                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24336                         if test -d /usr/local/mysql/lib64/mysql; then
24337                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24338                         else
24339                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24340                         fi
24341                         MYSQL_BINDIR=/usr/local/mysql/bin
24342                 elif test -f /usr/include/mysql/mysql.h; then
24343                         MYSQL_INCDIR=/usr/include/mysql
24344                         if test -d /usr/lib64/mysql; then
24345                                 MYSQL_LIBDIR=/usr/lib64/mysql
24346                         else
24347                                 MYSQL_LIBDIR=/usr/lib/mysql
24348                         fi
24349                         MYSQL_BINDIR=/usr/bin
24350                 elif test -f /usr/include/mysql.h; then
24351                         MYSQL_INCDIR=/usr/include
24352                         if test -d /usr/lib64; then
24353                                 MYSQL_LIBDIR=/usr/lib64
24354                         else
24355                                 MYSQL_LIBDIR=/usr/lib
24356                         fi
24357                         MYSQL_BINDIR=/usr/bin
24358                 elif test -f /usr/local/include/mysql/mysql.h; then
24359                         MYSQL_INCDIR=/usr/local/include/mysql
24360                         if test -d /usr/local/lib64/mysql; then
24361                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24362                         else
24363                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24364                         fi
24365                         MYSQL_BINDIR=/usr/local/bin
24366                 elif test -f /usr/local/include/mysql.h; then
24367                         MYSQL_INCDIR=/usr/local/include
24368                         if test -d /usr/local/lib64; then
24369                                 MYSQL_LIBDIR=/usr/local/lib64
24370                         else
24371                                 MYSQL_LIBDIR=/usr/local/lib
24372                         fi
24373                         MYSQL_BINDIR=/usr/local/bin
24374                 else
24375                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24376 $as_echo "no" >&6; }
24377                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24378                 fi
24379         else
24380                 if test -f $withval/include/mysql/mysql.h; then
24381                         MYSQL_INCDIR=$withval/include/mysql
24382                         if test -d $withval/lib64/mysql; then
24383                                 MYSQL_LIBDIR=$withval/lib64/mysql
24384                         else
24385                                 MYSQL_LIBDIR=$withval/lib/mysql
24386                         fi
24387                         MYSQL_BINDIR=$withval/bin
24388                 elif test -f $withval/include/mysql.h; then
24389                         MYSQL_INCDIR=$withval/include
24390                         if test -d $withval/lib64; then
24391                                 MYSQL_LIBDIR=$withval/lib64
24392                         else
24393                                 MYSQL_LIBDIR=$withval/lib
24394                         fi
24395                         MYSQL_BINDIR=$withval/bin
24396                 else
24397                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24399                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24400                 fi
24401         fi
24402      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24403      if test x$use_libtool != xno; then
24404         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24405      else
24406         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24407      fi
24408      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24409      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24410
24411
24412 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24413
24414
24415 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24416
24417      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24418 $as_echo "yes" >&6; }
24419
24420      if test -z "${db_backends}"; then
24421          db_backends="MySQL"
24422      else
24423          db_backends="${db_backends} MySQL"
24424      fi
24425      if test -z "${DB_BACKENDS}"; then
24426          DB_BACKENDS="mysql"
24427      else
24428          DB_BACKENDS="${DB_BACKENDS} mysql"
24429      fi
24430
24431                     if test "x$support_batch_insert" = "xyes"; then
24432                   saved_LDFLAGS="${LDFLAGS}"
24433          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24434          saved_LIBS="${LIBS}"
24435          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24436
24437          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24438 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24439 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24440   $as_echo_n "(cached) " >&6
24441 else
24442   ac_check_lib_save_LIBS=$LIBS
24443 LIBS="-lmysqlclient_r  $LIBS"
24444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24445 /* end confdefs.h.  */
24446
24447 /* Override any GCC internal prototype to avoid an error.
24448    Use char because int might match the return type of a GCC
24449    builtin and then its argument prototype would still apply.  */
24450 #ifdef __cplusplus
24451 extern "C"
24452 #endif
24453 char mysql_thread_safe ();
24454 int
24455 main ()
24456 {
24457 return mysql_thread_safe ();
24458   ;
24459   return 0;
24460 }
24461 _ACEOF
24462 if ac_fn_c_try_link "$LINENO"; then :
24463   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24464 else
24465   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24466 fi
24467 rm -f core conftest.err conftest.$ac_objext \
24468     conftest$ac_exeext conftest.$ac_ext
24469 LIBS=$ac_check_lib_save_LIBS
24470 fi
24471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24472 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24473 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24474
24475 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24476
24477 fi
24478
24479          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24480              if test -z "${batch_insert_db_backends}"; then
24481                  batch_insert_db_backends="MySQL"
24482              else
24483                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24484              fi
24485          fi
24486
24487                   LDFLAGS="${saved_LDFLAGS}"
24488          LIBS="${saved_LIBS}"
24489      fi
24490   else
24491      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24492 $as_echo "no" >&6; }
24493   fi
24494
24495 else
24496
24497   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24498 $as_echo "no" >&6; }
24499
24500 fi
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24511 $as_echo_n "checking for SQLite3 support... " >&6; }
24512
24513 # Check whether --with-sqlite3 was given.
24514 if test "${with_sqlite3+set}" = set; then :
24515   withval=$with_sqlite3;
24516   if test "$withval" != "no"; then
24517      if test "$withval" = "yes"; then
24518         if test -f /usr/local/include/sqlite3.h; then
24519            SQLITE_INCDIR=/usr/local/include
24520            if test -d /usr/local/lib64; then
24521               SQLITE_LIBDIR=/usr/local/lib64
24522            else
24523               SQLITE_LIBDIR=/usr/local/lib
24524            fi
24525            SQLITE_BINDIR=/usr/local/bin
24526         elif test -f /usr/include/sqlite3.h; then
24527            SQLITE_INCDIR=/usr/include
24528            if test -d /usr/lib64; then
24529               SQLITE_LIBDIR=/usr/lib64
24530            else
24531               SQLITE_LIBDIR=/usr/lib
24532            fi
24533            SQLITE_BINDIR=/usr/bin
24534         elif test -f $prefix/include/sqlite3.h; then
24535            SQLITE_INCDIR=$prefix/include
24536            if test -d $prefix/lib64; then
24537               SQLITE_LIBDIR=$prefix/lib64
24538            else
24539               SQLITE_LIBDIR=$prefix/lib
24540            fi
24541            SQLITE_BINDIR=$prefix/bin
24542         else
24543            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24544 $as_echo "no" >&6; }
24545            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24546         fi
24547      else
24548         if test -f $withval/sqlite3.h; then
24549            SQLITE_INCDIR=$withval
24550            SQLITE_LIBDIR=$withval
24551            SQLITE_BINDIR=$withval
24552         elif test -f $withval/include/sqlite3.h; then
24553            SQLITE_INCDIR=$withval/include
24554            if test -d $withval/lib64; then
24555               SQLITE_LIBDIR=$withval/lib64
24556            else
24557               SQLITE_LIBDIR=$withval/lib
24558            fi
24559            SQLITE_BINDIR=$withval/bin
24560         else
24561            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24562 $as_echo "no" >&6; }
24563            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24564         fi
24565      fi
24566      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24567      if test x$use_libtool != xno; then
24568         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24569      else
24570         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24571      fi
24572      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24573      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24574
24575
24576 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24577
24578      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24579 $as_echo "yes" >&6; }
24580
24581      if test -z "${db_backends}"; then
24582          db_backends="SQLite3"
24583      else
24584          db_backends="${db_backends} SQLite3"
24585      fi
24586      if test -z "${DB_BACKENDS}"; then
24587          DB_BACKENDS="sqlite3"
24588      else
24589          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24590      fi
24591
24592                     if test "x$support_batch_insert" = "xyes"; then
24593                   saved_LDFLAGS="${LDFLAGS}"
24594          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24595
24596          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24597 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24598 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24599   $as_echo_n "(cached) " >&6
24600 else
24601   ac_check_lib_save_LIBS=$LIBS
24602 LIBS="-lsqlite3  $LIBS"
24603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24604 /* end confdefs.h.  */
24605
24606 /* Override any GCC internal prototype to avoid an error.
24607    Use char because int might match the return type of a GCC
24608    builtin and then its argument prototype would still apply.  */
24609 #ifdef __cplusplus
24610 extern "C"
24611 #endif
24612 char sqlite3_threadsafe ();
24613 int
24614 main ()
24615 {
24616 return sqlite3_threadsafe ();
24617   ;
24618   return 0;
24619 }
24620 _ACEOF
24621 if ac_fn_c_try_link "$LINENO"; then :
24622   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24623 else
24624   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24625 fi
24626 rm -f core conftest.err conftest.$ac_objext \
24627     conftest$ac_exeext conftest.$ac_ext
24628 LIBS=$ac_check_lib_save_LIBS
24629 fi
24630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24631 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24632 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24633
24634 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24635
24636 fi
24637
24638          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24639              if test -z "${batch_insert_db_backends}"; then
24640                  batch_insert_db_backends="SQLite3"
24641              else
24642                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24643              fi
24644          fi
24645
24646                   LDFLAGS="${saved_LDFLAGS}"
24647      fi
24648   else
24649      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24650 $as_echo "no" >&6; }
24651   fi
24652
24653 else
24654
24655   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24656 $as_echo "no" >&6; }
24657
24658 fi
24659
24660
24661
24662
24663
24664
24665
24666 if test -z "${batch_insert_db_backends}"; then
24667    batch_insert_db_backends="None"
24668 fi
24669
24670 if test "x${db_backends}" = "x" ; then
24671    echo " "
24672    echo " "
24673    echo "You have not specified either --enable-client-only or one of the"
24674    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24675    echo "This is not permitted. Please reconfigure."
24676    echo " "
24677    echo "Aborting the configuration ..."
24678    echo " "
24679    echo " "
24680    exit 1
24681 fi
24682
24683 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24684    1)
24685       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24686       if test x$use_libtool = xno; then
24687          SHARED_CATALOG_TARGETS=""
24688       else
24689          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24690       fi
24691       ;;
24692    *)
24693                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24694
24695                         if test x$use_libtool = xno; then
24696          echo " "
24697          echo " "
24698          echo "You have specified two or more of the"
24699          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24700          echo "This is not permitted when not using libtool Please reconfigure."
24701          echo " "
24702          echo "Aborting the configuration ..."
24703          echo " "
24704          echo " "
24705          exit 1
24706       fi
24707
24708       SHARED_CATALOG_TARGETS=""
24709       for db_type in ${DB_BACKENDS}
24710       do
24711          if test -z "${SHARED_CATALOG_TARGETS}"; then
24712             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24713          else
24714             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24715          fi
24716       done
24717       ;;
24718 esac
24719
24720 if test x$use_libtool = xyes; then
24721    DB_LIBS=""
24722 fi
24723
24724
24725
24726
24727
24728
24729
24730 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24731
24732
24733 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24734    if test -z "$CCOPTS"; then
24735       CCOPTS='-g -O2 -Wall'
24736    fi
24737    CFLAGS="$CCOPTS"
24738 fi
24739
24740
24741
24742 largefile_support="no"
24743
24744    # Check whether --enable-largefile was given.
24745 if test "${enable_largefile+set}" = set; then :
24746   enableval=$enable_largefile;
24747 fi
24748
24749    if test "$enable_largefile" != no; then
24750      if test -n "$ac_tool_prefix"; then
24751   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24752 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24754 $as_echo_n "checking for $ac_word... " >&6; }
24755 if ${ac_cv_prog_GETCONF+:} false; then :
24756   $as_echo_n "(cached) " >&6
24757 else
24758   if test -n "$GETCONF"; then
24759   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24760 else
24761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24762 for as_dir in $PATH
24763 do
24764   IFS=$as_save_IFS
24765   test -z "$as_dir" && as_dir=.
24766     for ac_exec_ext in '' $ac_executable_extensions; do
24767   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24768     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24769     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24770     break 2
24771   fi
24772 done
24773   done
24774 IFS=$as_save_IFS
24775
24776 fi
24777 fi
24778 GETCONF=$ac_cv_prog_GETCONF
24779 if test -n "$GETCONF"; then
24780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24781 $as_echo "$GETCONF" >&6; }
24782 else
24783   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24784 $as_echo "no" >&6; }
24785 fi
24786
24787
24788 fi
24789 if test -z "$ac_cv_prog_GETCONF"; then
24790   ac_ct_GETCONF=$GETCONF
24791   # Extract the first word of "getconf", so it can be a program name with args.
24792 set dummy getconf; ac_word=$2
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24794 $as_echo_n "checking for $ac_word... " >&6; }
24795 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24796   $as_echo_n "(cached) " >&6
24797 else
24798   if test -n "$ac_ct_GETCONF"; then
24799   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24800 else
24801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24802 for as_dir in $PATH
24803 do
24804   IFS=$as_save_IFS
24805   test -z "$as_dir" && as_dir=.
24806     for ac_exec_ext in '' $ac_executable_extensions; do
24807   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24808     ac_cv_prog_ac_ct_GETCONF="getconf"
24809     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24810     break 2
24811   fi
24812 done
24813   done
24814 IFS=$as_save_IFS
24815
24816 fi
24817 fi
24818 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24819 if test -n "$ac_ct_GETCONF"; then
24820   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24821 $as_echo "$ac_ct_GETCONF" >&6; }
24822 else
24823   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24824 $as_echo "no" >&6; }
24825 fi
24826
24827   if test "x$ac_ct_GETCONF" = x; then
24828     GETCONF=""
24829   else
24830     case $cross_compiling:$ac_tool_warned in
24831 yes:)
24832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24834 ac_tool_warned=yes ;;
24835 esac
24836     GETCONF=$ac_ct_GETCONF
24837   fi
24838 else
24839   GETCONF="$ac_cv_prog_GETCONF"
24840 fi
24841
24842      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24843 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24844 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24845   $as_echo_n "(cached) " >&6
24846 else
24847   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24848         ac_cv_sys_largefile_CFLAGS=no
24849         case "$host_os" in
24850            # IRIX 6.2 and later require cc -n32.
24851            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24852              if test "$GCC" != yes; then
24853                ac_cv_sys_largefile_CFLAGS=-n32
24854              fi
24855              ac_save_CC="$CC"
24856              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24857              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24858 /* end confdefs.h.  */
24859
24860 int
24861 main ()
24862 {
24863
24864   ;
24865   return 0;
24866 }
24867 _ACEOF
24868 if ac_fn_c_try_link "$LINENO"; then :
24869
24870 else
24871   ac_cv_sys_largefile_CFLAGS=no
24872 fi
24873 rm -f core conftest.err conftest.$ac_objext \
24874     conftest$ac_exeext conftest.$ac_ext
24875              CC="$ac_save_CC"
24876            esac
24877       }
24878 fi
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24880 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24881      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24882 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24883 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24884   $as_echo_n "(cached) " >&6
24885 else
24886   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24887         ac_cv_sys_largefile_LDFLAGS=no
24888
24889       }
24890 fi
24891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24892 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24893      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24894 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24895 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24896   $as_echo_n "(cached) " >&6
24897 else
24898   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24899         ac_cv_sys_largefile_LIBS=no
24900
24901       }
24902 fi
24903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24904 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24905
24906      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24907        case "$ac_flag" in
24908        no) ;;
24909        -D_FILE_OFFSET_BITS=*) ;;
24910        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24911        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24912        -D?* | -I?*)
24913          case "$ac_flag" in
24914    no) ;;
24915    ?*)
24916      case "$CPPFLAGS" in
24917      '') CPPFLAGS="$ac_flag" ;;
24918      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24919      esac ;;
24920    esac ;;
24921        *)
24922          case "$ac_flag" in
24923    no) ;;
24924    ?*)
24925      case "$CFLAGS" in
24926      '') CFLAGS="$ac_flag" ;;
24927      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24928      esac ;;
24929    esac ;;
24930        esac
24931      done
24932      case "$ac_cv_sys_largefile_LDFLAGS" in
24933    no) ;;
24934    ?*)
24935      case "$LDFLAGS" in
24936      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24937      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24938      esac ;;
24939    esac
24940      case "$ac_cv_sys_largefile_LIBS" in
24941    no) ;;
24942    ?*)
24943      case "$LIBS" in
24944      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24945      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24946      esac ;;
24947    esac
24948      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24949 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24950 if ${ac_cv_sys_file_offset_bits+:} false; then :
24951   $as_echo_n "(cached) " >&6
24952 else
24953   ac_cv_sys_file_offset_bits=no
24954       ac_cv_sys_file_offset_bits=64
24955       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24956         case "$ac_flag" in
24957         -D_FILE_OFFSET_BITS)
24958           ac_cv_sys_file_offset_bits=1 ;;
24959         -D_FILE_OFFSET_BITS=*)
24960           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24961         esac
24962       done
24963
24964 fi
24965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24966 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24967    if test "$ac_cv_sys_file_offset_bits" != no; then
24968
24969 cat >>confdefs.h <<_ACEOF
24970 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24971 _ACEOF
24972
24973    fi
24974      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24975 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24976 if ${ac_cv_sys_largefile_source+:} false; then :
24977   $as_echo_n "(cached) " >&6
24978 else
24979   ac_cv_sys_largefile_source=no
24980       ac_cv_sys_largefile_source=1
24981       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24982         case "$ac_flag" in
24983         -D_LARGEFILE_SOURCE)
24984           ac_cv_sys_largefile_source=1 ;;
24985         -D_LARGEFILE_SOURCE=*)
24986           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24987         esac
24988       done
24989
24990 fi
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24992 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24993    if test "$ac_cv_sys_largefile_source" != no; then
24994
24995 cat >>confdefs.h <<_ACEOF
24996 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24997 _ACEOF
24998
24999    fi
25000      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25001 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25002 if ${ac_cv_sys_large_files+:} false; then :
25003   $as_echo_n "(cached) " >&6
25004 else
25005   ac_cv_sys_large_files=no
25006       ac_cv_sys_large_files=1
25007       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25008         case "$ac_flag" in
25009         -D_LARGE_FILES)
25010           ac_cv_sys_large_files=1 ;;
25011         -D_LARGE_FILES=*)
25012           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25013         esac
25014       done
25015
25016 fi
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25018 $as_echo "$ac_cv_sys_large_files" >&6; }
25019    if test "$ac_cv_sys_large_files" != no; then
25020
25021 cat >>confdefs.h <<_ACEOF
25022 #define _LARGE_FILES $ac_cv_sys_large_files
25023 _ACEOF
25024
25025    fi
25026    fi
25027
25028
25029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25030 $as_echo_n "checking for X... " >&6; }
25031
25032
25033 # Check whether --with-x was given.
25034 if test "${with_x+set}" = set; then :
25035   withval=$with_x;
25036 fi
25037
25038 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25039 if test "x$with_x" = xno; then
25040   # The user explicitly disabled X.
25041   have_x=disabled
25042 else
25043   case $x_includes,$x_libraries in #(
25044     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25045     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25046   $as_echo_n "(cached) " >&6
25047 else
25048   # One or both of the vars are not set, and there is no cached value.
25049 ac_x_includes=no ac_x_libraries=no
25050 rm -f -r conftest.dir
25051 if mkdir conftest.dir; then
25052   cd conftest.dir
25053   cat >Imakefile <<'_ACEOF'
25054 incroot:
25055         @echo incroot='${INCROOT}'
25056 usrlibdir:
25057         @echo usrlibdir='${USRLIBDIR}'
25058 libdir:
25059         @echo libdir='${LIBDIR}'
25060 _ACEOF
25061   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25062     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25063     for ac_var in incroot usrlibdir libdir; do
25064       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25065     done
25066     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25067     for ac_extension in a so sl dylib la dll; do
25068       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25069          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25070         ac_im_usrlibdir=$ac_im_libdir; break
25071       fi
25072     done
25073     # Screen out bogus values from the imake configuration.  They are
25074     # bogus both because they are the default anyway, and because
25075     # using them would break gcc on systems where it needs fixed includes.
25076     case $ac_im_incroot in
25077         /usr/include) ac_x_includes= ;;
25078         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25079     esac
25080     case $ac_im_usrlibdir in
25081         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25082         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25083     esac
25084   fi
25085   cd ..
25086   rm -f -r conftest.dir
25087 fi
25088
25089 # Standard set of common directories for X headers.
25090 # Check X11 before X11Rn because it is often a symlink to the current release.
25091 ac_x_header_dirs='
25092 /usr/X11/include
25093 /usr/X11R7/include
25094 /usr/X11R6/include
25095 /usr/X11R5/include
25096 /usr/X11R4/include
25097
25098 /usr/include/X11
25099 /usr/include/X11R7
25100 /usr/include/X11R6
25101 /usr/include/X11R5
25102 /usr/include/X11R4
25103
25104 /usr/local/X11/include
25105 /usr/local/X11R7/include
25106 /usr/local/X11R6/include
25107 /usr/local/X11R5/include
25108 /usr/local/X11R4/include
25109
25110 /usr/local/include/X11
25111 /usr/local/include/X11R7
25112 /usr/local/include/X11R6
25113 /usr/local/include/X11R5
25114 /usr/local/include/X11R4
25115
25116 /usr/X386/include
25117 /usr/x386/include
25118 /usr/XFree86/include/X11
25119
25120 /usr/include
25121 /usr/local/include
25122 /usr/unsupported/include
25123 /usr/athena/include
25124 /usr/local/x11r5/include
25125 /usr/lpp/Xamples/include
25126
25127 /usr/openwin/include
25128 /usr/openwin/share/include'
25129
25130 if test "$ac_x_includes" = no; then
25131   # Guess where to find include files, by looking for Xlib.h.
25132   # First, try using that file with no special directory specified.
25133   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25134 /* end confdefs.h.  */
25135 #include <X11/Xlib.h>
25136 _ACEOF
25137 if ac_fn_c_try_cpp "$LINENO"; then :
25138   # We can compile using X headers with no special include directory.
25139 ac_x_includes=
25140 else
25141   for ac_dir in $ac_x_header_dirs; do
25142   if test -r "$ac_dir/X11/Xlib.h"; then
25143     ac_x_includes=$ac_dir
25144     break
25145   fi
25146 done
25147 fi
25148 rm -f conftest.err conftest.i conftest.$ac_ext
25149 fi # $ac_x_includes = no
25150
25151 if test "$ac_x_libraries" = no; then
25152   # Check for the libraries.
25153   # See if we find them without any special options.
25154   # Don't add to $LIBS permanently.
25155   ac_save_LIBS=$LIBS
25156   LIBS="-lX11 $LIBS"
25157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25158 /* end confdefs.h.  */
25159 #include <X11/Xlib.h>
25160 int
25161 main ()
25162 {
25163 XrmInitialize ()
25164   ;
25165   return 0;
25166 }
25167 _ACEOF
25168 if ac_fn_c_try_link "$LINENO"; then :
25169   LIBS=$ac_save_LIBS
25170 # We can link X programs with no special library path.
25171 ac_x_libraries=
25172 else
25173   LIBS=$ac_save_LIBS
25174 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25175 do
25176   # Don't even attempt the hair of trying to link an X program!
25177   for ac_extension in a so sl dylib la dll; do
25178     if test -r "$ac_dir/libX11.$ac_extension"; then
25179       ac_x_libraries=$ac_dir
25180       break 2
25181     fi
25182   done
25183 done
25184 fi
25185 rm -f core conftest.err conftest.$ac_objext \
25186     conftest$ac_exeext conftest.$ac_ext
25187 fi # $ac_x_libraries = no
25188
25189 case $ac_x_includes,$ac_x_libraries in #(
25190   no,* | *,no | *\'*)
25191     # Didn't find X, or a directory has "'" in its name.
25192     ac_cv_have_x="have_x=no";; #(
25193   *)
25194     # Record where we found X for the cache.
25195     ac_cv_have_x="have_x=yes\
25196         ac_x_includes='$ac_x_includes'\
25197         ac_x_libraries='$ac_x_libraries'"
25198 esac
25199 fi
25200 ;; #(
25201     *) have_x=yes;;
25202   esac
25203   eval "$ac_cv_have_x"
25204 fi # $with_x != no
25205
25206 if test "$have_x" != yes; then
25207   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25208 $as_echo "$have_x" >&6; }
25209   no_x=yes
25210 else
25211   # If each of the values was on the command line, it overrides each guess.
25212   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25213   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25214   # Update the cache value to reflect the command line values.
25215   ac_cv_have_x="have_x=yes\
25216         ac_x_includes='$x_includes'\
25217         ac_x_libraries='$x_libraries'"
25218   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25219 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25220 fi
25221
25222 if test "$no_x" = yes; then
25223   # Not all programs may use this symbol, but it does not hurt to define it.
25224
25225 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25226
25227   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25228 else
25229   if test -n "$x_includes"; then
25230     X_CFLAGS="$X_CFLAGS -I$x_includes"
25231   fi
25232
25233   # It would also be nice to do this for all -L options, not just this one.
25234   if test -n "$x_libraries"; then
25235     X_LIBS="$X_LIBS -L$x_libraries"
25236     # For Solaris; some versions of Sun CC require a space after -R and
25237     # others require no space.  Words are not sufficient . . . .
25238     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25239 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25240     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25241     ac_xsave_c_werror_flag=$ac_c_werror_flag
25242     ac_c_werror_flag=yes
25243     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25244 /* end confdefs.h.  */
25245
25246 int
25247 main ()
25248 {
25249
25250   ;
25251   return 0;
25252 }
25253 _ACEOF
25254 if ac_fn_c_try_link "$LINENO"; then :
25255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25256 $as_echo "no" >&6; }
25257        X_LIBS="$X_LIBS -R$x_libraries"
25258 else
25259   LIBS="$ac_xsave_LIBS -R $x_libraries"
25260        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25261 /* end confdefs.h.  */
25262
25263 int
25264 main ()
25265 {
25266
25267   ;
25268   return 0;
25269 }
25270 _ACEOF
25271 if ac_fn_c_try_link "$LINENO"; then :
25272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25273 $as_echo "yes" >&6; }
25274           X_LIBS="$X_LIBS -R $x_libraries"
25275 else
25276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25277 $as_echo "neither works" >&6; }
25278 fi
25279 rm -f core conftest.err conftest.$ac_objext \
25280     conftest$ac_exeext conftest.$ac_ext
25281 fi
25282 rm -f core conftest.err conftest.$ac_objext \
25283     conftest$ac_exeext conftest.$ac_ext
25284     ac_c_werror_flag=$ac_xsave_c_werror_flag
25285     LIBS=$ac_xsave_LIBS
25286   fi
25287
25288   # Check for system-dependent libraries X programs must link with.
25289   # Do this before checking for the system-independent R6 libraries
25290   # (-lICE), since we may need -lsocket or whatever for X linking.
25291
25292   if test "$ISC" = yes; then
25293     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25294   else
25295     # Martyn Johnson says this is needed for Ultrix, if the X
25296     # libraries were built with DECnet support.  And Karl Berry says
25297     # the Alpha needs dnet_stub (dnet does not exist).
25298     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25299     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h.  */
25301
25302 /* Override any GCC internal prototype to avoid an error.
25303    Use char because int might match the return type of a GCC
25304    builtin and then its argument prototype would still apply.  */
25305 #ifdef __cplusplus
25306 extern "C"
25307 #endif
25308 char XOpenDisplay ();
25309 int
25310 main ()
25311 {
25312 return XOpenDisplay ();
25313   ;
25314   return 0;
25315 }
25316 _ACEOF
25317 if ac_fn_c_try_link "$LINENO"; then :
25318
25319 else
25320   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25321 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25322 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25323   $as_echo_n "(cached) " >&6
25324 else
25325   ac_check_lib_save_LIBS=$LIBS
25326 LIBS="-ldnet  $LIBS"
25327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25328 /* end confdefs.h.  */
25329
25330 /* Override any GCC internal prototype to avoid an error.
25331    Use char because int might match the return type of a GCC
25332    builtin and then its argument prototype would still apply.  */
25333 #ifdef __cplusplus
25334 extern "C"
25335 #endif
25336 char dnet_ntoa ();
25337 int
25338 main ()
25339 {
25340 return dnet_ntoa ();
25341   ;
25342   return 0;
25343 }
25344 _ACEOF
25345 if ac_fn_c_try_link "$LINENO"; then :
25346   ac_cv_lib_dnet_dnet_ntoa=yes
25347 else
25348   ac_cv_lib_dnet_dnet_ntoa=no
25349 fi
25350 rm -f core conftest.err conftest.$ac_objext \
25351     conftest$ac_exeext conftest.$ac_ext
25352 LIBS=$ac_check_lib_save_LIBS
25353 fi
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25355 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25356 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25357   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25358 fi
25359
25360     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25361       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25362 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25363 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25364   $as_echo_n "(cached) " >&6
25365 else
25366   ac_check_lib_save_LIBS=$LIBS
25367 LIBS="-ldnet_stub  $LIBS"
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 dnet_ntoa ();
25378 int
25379 main ()
25380 {
25381 return dnet_ntoa ();
25382   ;
25383   return 0;
25384 }
25385 _ACEOF
25386 if ac_fn_c_try_link "$LINENO"; then :
25387   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25388 else
25389   ac_cv_lib_dnet_stub_dnet_ntoa=no
25390 fi
25391 rm -f core conftest.err conftest.$ac_objext \
25392     conftest$ac_exeext conftest.$ac_ext
25393 LIBS=$ac_check_lib_save_LIBS
25394 fi
25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25396 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25397 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25398   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25399 fi
25400
25401     fi
25402 fi
25403 rm -f core conftest.err conftest.$ac_objext \
25404     conftest$ac_exeext conftest.$ac_ext
25405     LIBS="$ac_xsave_LIBS"
25406
25407     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25408     # to get the SysV transport functions.
25409     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25410     # needs -lnsl.
25411     # The nsl library prevents programs from opening the X display
25412     # on Irix 5.2, according to T.E. Dickey.
25413     # The functions gethostbyname, getservbyname, and inet_addr are
25414     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25415     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25416 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25417
25418 fi
25419
25420     if test $ac_cv_func_gethostbyname = no; then
25421       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25422 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25423 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25424   $as_echo_n "(cached) " >&6
25425 else
25426   ac_check_lib_save_LIBS=$LIBS
25427 LIBS="-lnsl  $LIBS"
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h.  */
25430
25431 /* Override any GCC internal prototype to avoid an error.
25432    Use char because int might match the return type of a GCC
25433    builtin and then its argument prototype would still apply.  */
25434 #ifdef __cplusplus
25435 extern "C"
25436 #endif
25437 char gethostbyname ();
25438 int
25439 main ()
25440 {
25441 return gethostbyname ();
25442   ;
25443   return 0;
25444 }
25445 _ACEOF
25446 if ac_fn_c_try_link "$LINENO"; then :
25447   ac_cv_lib_nsl_gethostbyname=yes
25448 else
25449   ac_cv_lib_nsl_gethostbyname=no
25450 fi
25451 rm -f core conftest.err conftest.$ac_objext \
25452     conftest$ac_exeext conftest.$ac_ext
25453 LIBS=$ac_check_lib_save_LIBS
25454 fi
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25456 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25457 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25458   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25459 fi
25460
25461       if test $ac_cv_lib_nsl_gethostbyname = no; then
25462         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25463 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25464 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25465   $as_echo_n "(cached) " >&6
25466 else
25467   ac_check_lib_save_LIBS=$LIBS
25468 LIBS="-lbsd  $LIBS"
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h.  */
25471
25472 /* Override any GCC internal prototype to avoid an error.
25473    Use char because int might match the return type of a GCC
25474    builtin and then its argument prototype would still apply.  */
25475 #ifdef __cplusplus
25476 extern "C"
25477 #endif
25478 char gethostbyname ();
25479 int
25480 main ()
25481 {
25482 return gethostbyname ();
25483   ;
25484   return 0;
25485 }
25486 _ACEOF
25487 if ac_fn_c_try_link "$LINENO"; then :
25488   ac_cv_lib_bsd_gethostbyname=yes
25489 else
25490   ac_cv_lib_bsd_gethostbyname=no
25491 fi
25492 rm -f core conftest.err conftest.$ac_objext \
25493     conftest$ac_exeext conftest.$ac_ext
25494 LIBS=$ac_check_lib_save_LIBS
25495 fi
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25497 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25498 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25499   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25500 fi
25501
25502       fi
25503     fi
25504
25505     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25506     # socket/setsockopt and other routines are undefined under SCO ODT
25507     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25508     # on later versions), says Simon Leinen: it contains gethostby*
25509     # variants that don't use the name server (or something).  -lsocket
25510     # must be given before -lnsl if both are needed.  We assume that
25511     # if connect needs -lnsl, so does gethostbyname.
25512     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25513 if test "x$ac_cv_func_connect" = xyes; then :
25514
25515 fi
25516
25517     if test $ac_cv_func_connect = no; then
25518       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25519 $as_echo_n "checking for connect in -lsocket... " >&6; }
25520 if ${ac_cv_lib_socket_connect+:} false; then :
25521   $as_echo_n "(cached) " >&6
25522 else
25523   ac_check_lib_save_LIBS=$LIBS
25524 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h.  */
25527
25528 /* Override any GCC internal prototype to avoid an error.
25529    Use char because int might match the return type of a GCC
25530    builtin and then its argument prototype would still apply.  */
25531 #ifdef __cplusplus
25532 extern "C"
25533 #endif
25534 char connect ();
25535 int
25536 main ()
25537 {
25538 return connect ();
25539   ;
25540   return 0;
25541 }
25542 _ACEOF
25543 if ac_fn_c_try_link "$LINENO"; then :
25544   ac_cv_lib_socket_connect=yes
25545 else
25546   ac_cv_lib_socket_connect=no
25547 fi
25548 rm -f core conftest.err conftest.$ac_objext \
25549     conftest$ac_exeext conftest.$ac_ext
25550 LIBS=$ac_check_lib_save_LIBS
25551 fi
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25553 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25554 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25555   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25556 fi
25557
25558     fi
25559
25560     # Guillermo Gomez says -lposix is necessary on A/UX.
25561     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25562 if test "x$ac_cv_func_remove" = xyes; then :
25563
25564 fi
25565
25566     if test $ac_cv_func_remove = no; then
25567       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25568 $as_echo_n "checking for remove in -lposix... " >&6; }
25569 if ${ac_cv_lib_posix_remove+:} false; then :
25570   $as_echo_n "(cached) " >&6
25571 else
25572   ac_check_lib_save_LIBS=$LIBS
25573 LIBS="-lposix  $LIBS"
25574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25575 /* end confdefs.h.  */
25576
25577 /* Override any GCC internal prototype to avoid an error.
25578    Use char because int might match the return type of a GCC
25579    builtin and then its argument prototype would still apply.  */
25580 #ifdef __cplusplus
25581 extern "C"
25582 #endif
25583 char remove ();
25584 int
25585 main ()
25586 {
25587 return remove ();
25588   ;
25589   return 0;
25590 }
25591 _ACEOF
25592 if ac_fn_c_try_link "$LINENO"; then :
25593   ac_cv_lib_posix_remove=yes
25594 else
25595   ac_cv_lib_posix_remove=no
25596 fi
25597 rm -f core conftest.err conftest.$ac_objext \
25598     conftest$ac_exeext conftest.$ac_ext
25599 LIBS=$ac_check_lib_save_LIBS
25600 fi
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25602 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25603 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25604   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25605 fi
25606
25607     fi
25608
25609     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25610     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25611 if test "x$ac_cv_func_shmat" = xyes; then :
25612
25613 fi
25614
25615     if test $ac_cv_func_shmat = no; then
25616       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25617 $as_echo_n "checking for shmat in -lipc... " >&6; }
25618 if ${ac_cv_lib_ipc_shmat+:} false; then :
25619   $as_echo_n "(cached) " >&6
25620 else
25621   ac_check_lib_save_LIBS=$LIBS
25622 LIBS="-lipc  $LIBS"
25623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624 /* end confdefs.h.  */
25625
25626 /* Override any GCC internal prototype to avoid an error.
25627    Use char because int might match the return type of a GCC
25628    builtin and then its argument prototype would still apply.  */
25629 #ifdef __cplusplus
25630 extern "C"
25631 #endif
25632 char shmat ();
25633 int
25634 main ()
25635 {
25636 return shmat ();
25637   ;
25638   return 0;
25639 }
25640 _ACEOF
25641 if ac_fn_c_try_link "$LINENO"; then :
25642   ac_cv_lib_ipc_shmat=yes
25643 else
25644   ac_cv_lib_ipc_shmat=no
25645 fi
25646 rm -f core conftest.err conftest.$ac_objext \
25647     conftest$ac_exeext conftest.$ac_ext
25648 LIBS=$ac_check_lib_save_LIBS
25649 fi
25650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25651 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25652 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25653   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25654 fi
25655
25656     fi
25657   fi
25658
25659   # Check for libraries that X11R6 Xt/Xaw programs need.
25660   ac_save_LDFLAGS=$LDFLAGS
25661   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25662   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25663   # check for ICE first), but we must link in the order -lSM -lICE or
25664   # we get undefined symbols.  So assume we have SM if we have ICE.
25665   # These have to be linked with before -lX11, unlike the other
25666   # libraries we check for below, so use a different variable.
25667   # John Interrante, Karl Berry
25668   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25669 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25670 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25671   $as_echo_n "(cached) " >&6
25672 else
25673   ac_check_lib_save_LIBS=$LIBS
25674 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676 /* end confdefs.h.  */
25677
25678 /* Override any GCC internal prototype to avoid an error.
25679    Use char because int might match the return type of a GCC
25680    builtin and then its argument prototype would still apply.  */
25681 #ifdef __cplusplus
25682 extern "C"
25683 #endif
25684 char IceConnectionNumber ();
25685 int
25686 main ()
25687 {
25688 return IceConnectionNumber ();
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 if ac_fn_c_try_link "$LINENO"; then :
25694   ac_cv_lib_ICE_IceConnectionNumber=yes
25695 else
25696   ac_cv_lib_ICE_IceConnectionNumber=no
25697 fi
25698 rm -f core conftest.err conftest.$ac_objext \
25699     conftest$ac_exeext conftest.$ac_ext
25700 LIBS=$ac_check_lib_save_LIBS
25701 fi
25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25703 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25704 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25705   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25706 fi
25707
25708   LDFLAGS=$ac_save_LDFLAGS
25709
25710 fi
25711
25712
25713 for ac_header in \
25714    assert.h \
25715    fcntl.h \
25716    grp.h \
25717    pwd.h \
25718    libc.h \
25719    limits.h \
25720    stdarg.h \
25721    stdlib.h \
25722    stdint.h \
25723    inttypes.h \
25724    string.h \
25725    strings.h \
25726    termios.h \
25727    termcap.h \
25728    term.h \
25729    unistd.h \
25730    sys/bitypes.h \
25731    sys/byteorder.h \
25732    sys/ioctl.h \
25733    sys/select.h \
25734    sys/socket.h \
25735    sys/sockio.h \
25736    sys/stat.h \
25737    sys/time.h \
25738    sys/types.h \
25739    arpa/nameser.h \
25740    mtio.h \
25741    sys/mtio.h \
25742    sys/tape.h \
25743    regex.h \
25744
25745 do :
25746   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25747 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25748 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25749   cat >>confdefs.h <<_ACEOF
25750 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25751 _ACEOF
25752
25753 fi
25754
25755 done
25756
25757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25758 $as_echo_n "checking for ANSI C header files... " >&6; }
25759 if ${ac_cv_header_stdc+:} false; then :
25760   $as_echo_n "(cached) " >&6
25761 else
25762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25763 /* end confdefs.h.  */
25764 #include <stdlib.h>
25765 #include <stdarg.h>
25766 #include <string.h>
25767 #include <float.h>
25768
25769 int
25770 main ()
25771 {
25772
25773   ;
25774   return 0;
25775 }
25776 _ACEOF
25777 if ac_fn_c_try_compile "$LINENO"; then :
25778   ac_cv_header_stdc=yes
25779 else
25780   ac_cv_header_stdc=no
25781 fi
25782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25783
25784 if test $ac_cv_header_stdc = yes; then
25785   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25786   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25787 /* end confdefs.h.  */
25788 #include <string.h>
25789
25790 _ACEOF
25791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25792   $EGREP "memchr" >/dev/null 2>&1; then :
25793
25794 else
25795   ac_cv_header_stdc=no
25796 fi
25797 rm -f conftest*
25798
25799 fi
25800
25801 if test $ac_cv_header_stdc = yes; then
25802   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25803   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25804 /* end confdefs.h.  */
25805 #include <stdlib.h>
25806
25807 _ACEOF
25808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25809   $EGREP "free" >/dev/null 2>&1; then :
25810
25811 else
25812   ac_cv_header_stdc=no
25813 fi
25814 rm -f conftest*
25815
25816 fi
25817
25818 if test $ac_cv_header_stdc = yes; then
25819   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25820   if test "$cross_compiling" = yes; then :
25821   :
25822 else
25823   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25824 /* end confdefs.h.  */
25825 #include <ctype.h>
25826 #include <stdlib.h>
25827 #if ((' ' & 0x0FF) == 0x020)
25828 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25829 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25830 #else
25831 # define ISLOWER(c) \
25832                    (('a' <= (c) && (c) <= 'i') \
25833                      || ('j' <= (c) && (c) <= 'r') \
25834                      || ('s' <= (c) && (c) <= 'z'))
25835 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25836 #endif
25837
25838 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25839 int
25840 main ()
25841 {
25842   int i;
25843   for (i = 0; i < 256; i++)
25844     if (XOR (islower (i), ISLOWER (i))
25845         || toupper (i) != TOUPPER (i))
25846       return 2;
25847   return 0;
25848 }
25849 _ACEOF
25850 if ac_fn_c_try_run "$LINENO"; then :
25851
25852 else
25853   ac_cv_header_stdc=no
25854 fi
25855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25856   conftest.$ac_objext conftest.beam conftest.$ac_ext
25857 fi
25858
25859 fi
25860 fi
25861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25862 $as_echo "$ac_cv_header_stdc" >&6; }
25863 if test $ac_cv_header_stdc = yes; then
25864
25865 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25866
25867 fi
25868
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25870 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25871 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25872   $as_echo_n "(cached) " >&6
25873 else
25874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25875 /* end confdefs.h.  */
25876 #include <sys/types.h>
25877 int
25878 main ()
25879 {
25880 return makedev(0, 0);
25881   ;
25882   return 0;
25883 }
25884 _ACEOF
25885 if ac_fn_c_try_link "$LINENO"; then :
25886   ac_cv_header_sys_types_h_makedev=yes
25887 else
25888   ac_cv_header_sys_types_h_makedev=no
25889 fi
25890 rm -f core conftest.err conftest.$ac_objext \
25891     conftest$ac_exeext conftest.$ac_ext
25892
25893 fi
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25895 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25896
25897 if test $ac_cv_header_sys_types_h_makedev = no; then
25898 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25899 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25900
25901 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25902
25903 fi
25904
25905
25906
25907   if test $ac_cv_header_sys_mkdev_h = no; then
25908     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25909 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25910
25911 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25912
25913 fi
25914
25915
25916   fi
25917 fi
25918
25919 ac_header_dirent=no
25920 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25921   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25923 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25924 if eval \${$as_ac_Header+:} false; then :
25925   $as_echo_n "(cached) " >&6
25926 else
25927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25928 /* end confdefs.h.  */
25929 #include <sys/types.h>
25930 #include <$ac_hdr>
25931
25932 int
25933 main ()
25934 {
25935 if ((DIR *) 0)
25936 return 0;
25937   ;
25938   return 0;
25939 }
25940 _ACEOF
25941 if ac_fn_c_try_compile "$LINENO"; then :
25942   eval "$as_ac_Header=yes"
25943 else
25944   eval "$as_ac_Header=no"
25945 fi
25946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25947 fi
25948 eval ac_res=\$$as_ac_Header
25949                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25950 $as_echo "$ac_res" >&6; }
25951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25952   cat >>confdefs.h <<_ACEOF
25953 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25954 _ACEOF
25955
25956 ac_header_dirent=$ac_hdr; break
25957 fi
25958
25959 done
25960 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25961 if test $ac_header_dirent = dirent.h; then
25962   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25963 $as_echo_n "checking for library containing opendir... " >&6; }
25964 if ${ac_cv_search_opendir+:} false; then :
25965   $as_echo_n "(cached) " >&6
25966 else
25967   ac_func_search_save_LIBS=$LIBS
25968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25969 /* end confdefs.h.  */
25970
25971 /* Override any GCC internal prototype to avoid an error.
25972    Use char because int might match the return type of a GCC
25973    builtin and then its argument prototype would still apply.  */
25974 #ifdef __cplusplus
25975 extern "C"
25976 #endif
25977 char opendir ();
25978 int
25979 main ()
25980 {
25981 return opendir ();
25982   ;
25983   return 0;
25984 }
25985 _ACEOF
25986 for ac_lib in '' dir; do
25987   if test -z "$ac_lib"; then
25988     ac_res="none required"
25989   else
25990     ac_res=-l$ac_lib
25991     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25992   fi
25993   if ac_fn_c_try_link "$LINENO"; then :
25994   ac_cv_search_opendir=$ac_res
25995 fi
25996 rm -f core conftest.err conftest.$ac_objext \
25997     conftest$ac_exeext
25998   if ${ac_cv_search_opendir+:} false; then :
25999   break
26000 fi
26001 done
26002 if ${ac_cv_search_opendir+:} false; then :
26003
26004 else
26005   ac_cv_search_opendir=no
26006 fi
26007 rm conftest.$ac_ext
26008 LIBS=$ac_func_search_save_LIBS
26009 fi
26010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26011 $as_echo "$ac_cv_search_opendir" >&6; }
26012 ac_res=$ac_cv_search_opendir
26013 if test "$ac_res" != no; then :
26014   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26015
26016 fi
26017
26018 else
26019   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26020 $as_echo_n "checking for library containing opendir... " >&6; }
26021 if ${ac_cv_search_opendir+:} false; then :
26022   $as_echo_n "(cached) " >&6
26023 else
26024   ac_func_search_save_LIBS=$LIBS
26025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h.  */
26027
26028 /* Override any GCC internal prototype to avoid an error.
26029    Use char because int might match the return type of a GCC
26030    builtin and then its argument prototype would still apply.  */
26031 #ifdef __cplusplus
26032 extern "C"
26033 #endif
26034 char opendir ();
26035 int
26036 main ()
26037 {
26038 return opendir ();
26039   ;
26040   return 0;
26041 }
26042 _ACEOF
26043 for ac_lib in '' x; do
26044   if test -z "$ac_lib"; then
26045     ac_res="none required"
26046   else
26047     ac_res=-l$ac_lib
26048     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26049   fi
26050   if ac_fn_c_try_link "$LINENO"; then :
26051   ac_cv_search_opendir=$ac_res
26052 fi
26053 rm -f core conftest.err conftest.$ac_objext \
26054     conftest$ac_exeext
26055   if ${ac_cv_search_opendir+:} false; then :
26056   break
26057 fi
26058 done
26059 if ${ac_cv_search_opendir+:} false; then :
26060
26061 else
26062   ac_cv_search_opendir=no
26063 fi
26064 rm conftest.$ac_ext
26065 LIBS=$ac_func_search_save_LIBS
26066 fi
26067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26068 $as_echo "$ac_cv_search_opendir" >&6; }
26069 ac_res=$ac_cv_search_opendir
26070 if test "$ac_res" != no; then :
26071   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26072
26073 fi
26074
26075 fi
26076
26077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26078 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26079 if ${ac_cv_header_stat_broken+:} false; then :
26080   $as_echo_n "(cached) " >&6
26081 else
26082   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26083 /* end confdefs.h.  */
26084 #include <sys/types.h>
26085 #include <sys/stat.h>
26086
26087 #if defined S_ISBLK && defined S_IFDIR
26088 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26089 #endif
26090
26091 #if defined S_ISBLK && defined S_IFCHR
26092 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26093 #endif
26094
26095 #if defined S_ISLNK && defined S_IFREG
26096 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26097 #endif
26098
26099 #if defined S_ISSOCK && defined S_IFREG
26100 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26101 #endif
26102
26103 _ACEOF
26104 if ac_fn_c_try_compile "$LINENO"; then :
26105   ac_cv_header_stat_broken=no
26106 else
26107   ac_cv_header_stat_broken=yes
26108 fi
26109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26110 fi
26111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26112 $as_echo "$ac_cv_header_stat_broken" >&6; }
26113 if test $ac_cv_header_stat_broken = yes; then
26114
26115 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26116
26117 fi
26118
26119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26121 if ${ac_cv_header_sys_wait_h+:} false; then :
26122   $as_echo_n "(cached) " >&6
26123 else
26124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26125 /* end confdefs.h.  */
26126 #include <sys/types.h>
26127 #include <sys/wait.h>
26128 #ifndef WEXITSTATUS
26129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26130 #endif
26131 #ifndef WIFEXITED
26132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26133 #endif
26134
26135 int
26136 main ()
26137 {
26138   int s;
26139   wait (&s);
26140   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26141   ;
26142   return 0;
26143 }
26144 _ACEOF
26145 if ac_fn_c_try_compile "$LINENO"; then :
26146   ac_cv_header_sys_wait_h=yes
26147 else
26148   ac_cv_header_sys_wait_h=no
26149 fi
26150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26151 fi
26152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26154 if test $ac_cv_header_sys_wait_h = yes; then
26155
26156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26157
26158 fi
26159
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26161 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26162 if ${ac_cv_header_time+:} false; then :
26163   $as_echo_n "(cached) " >&6
26164 else
26165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26166 /* end confdefs.h.  */
26167 #include <sys/types.h>
26168 #include <sys/time.h>
26169 #include <time.h>
26170
26171 int
26172 main ()
26173 {
26174 if ((struct tm *) 0)
26175 return 0;
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 if ac_fn_c_try_compile "$LINENO"; then :
26181   ac_cv_header_time=yes
26182 else
26183   ac_cv_header_time=no
26184 fi
26185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26186 fi
26187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26188 $as_echo "$ac_cv_header_time" >&6; }
26189 if test $ac_cv_header_time = yes; then
26190
26191 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26192
26193 fi
26194
26195 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26196 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26197
26198 cat >>confdefs.h <<_ACEOF
26199 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26200 _ACEOF
26201
26202
26203 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26204
26205 fi
26206
26207
26208 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26209 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26210
26211 cat >>confdefs.h <<_ACEOF
26212 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26213 _ACEOF
26214
26215
26216 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26217
26218 else
26219   case " $LIBOBJS " in
26220   *" fileblocks.$ac_objext "* ) ;;
26221   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26222  ;;
26223 esac
26224
26225 fi
26226
26227
26228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26229 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26230 if ${ac_cv_struct_tm+:} false; then :
26231   $as_echo_n "(cached) " >&6
26232 else
26233   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26234 /* end confdefs.h.  */
26235 #include <sys/types.h>
26236 #include <time.h>
26237
26238 int
26239 main ()
26240 {
26241 struct tm tm;
26242                                      int *p = &tm.tm_sec;
26243                                      return !p;
26244   ;
26245   return 0;
26246 }
26247 _ACEOF
26248 if ac_fn_c_try_compile "$LINENO"; then :
26249   ac_cv_struct_tm=time.h
26250 else
26251   ac_cv_struct_tm=sys/time.h
26252 fi
26253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26254 fi
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26256 $as_echo "$ac_cv_struct_tm" >&6; }
26257 if test $ac_cv_struct_tm = sys/time.h; then
26258
26259 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26260
26261 fi
26262
26263 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26264 #include <$ac_cv_struct_tm>
26265
26266 "
26267 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26268
26269 cat >>confdefs.h <<_ACEOF
26270 #define HAVE_STRUCT_TM_TM_ZONE 1
26271 _ACEOF
26272
26273
26274 fi
26275
26276 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26277
26278 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26279
26280 else
26281   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26282 "
26283 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26284   ac_have_decl=1
26285 else
26286   ac_have_decl=0
26287 fi
26288
26289 cat >>confdefs.h <<_ACEOF
26290 #define HAVE_DECL_TZNAME $ac_have_decl
26291 _ACEOF
26292
26293   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26294 $as_echo_n "checking for tzname... " >&6; }
26295 if ${ac_cv_var_tzname+:} false; then :
26296   $as_echo_n "(cached) " >&6
26297 else
26298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26299 /* end confdefs.h.  */
26300 #include <time.h>
26301 #if !HAVE_DECL_TZNAME
26302 extern char *tzname[];
26303 #endif
26304
26305 int
26306 main ()
26307 {
26308 return tzname[0][0];
26309   ;
26310   return 0;
26311 }
26312 _ACEOF
26313 if ac_fn_c_try_link "$LINENO"; then :
26314   ac_cv_var_tzname=yes
26315 else
26316   ac_cv_var_tzname=no
26317 fi
26318 rm -f core conftest.err conftest.$ac_objext \
26319     conftest$ac_exeext conftest.$ac_ext
26320 fi
26321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26322 $as_echo "$ac_cv_var_tzname" >&6; }
26323   if test $ac_cv_var_tzname = yes; then
26324
26325 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26326
26327   fi
26328 fi
26329
26330
26331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26332 $as_echo_n "checking for utime.h... " >&6; }
26333 if ${ba_cv_header_utime_h+:} false; then :
26334   $as_echo_n "(cached) " >&6
26335 else
26336
26337        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h.  */
26339
26340               #include <sys/types.h>
26341               #include <utime.h>
26342
26343 int
26344 main ()
26345 {
26346
26347               struct utimbuf foo
26348
26349   ;
26350   return 0;
26351 }
26352 _ACEOF
26353 if ac_fn_c_try_compile "$LINENO"; then :
26354
26355               ba_cv_header_utime_h=yes
26356
26357 else
26358
26359               ba_cv_header_utime_h=no
26360
26361
26362 fi
26363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26364
26365
26366 fi
26367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26368 $as_echo "$ba_cv_header_utime_h" >&6; }
26369 test $ba_cv_header_utime_h = yes &&
26370 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26371
26372
26373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26374 $as_echo_n "checking for socklen_t... " >&6; }
26375 if ${ba_cv_header_socklen_t+:} false; then :
26376   $as_echo_n "(cached) " >&6
26377 else
26378
26379        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26380 /* end confdefs.h.  */
26381
26382               #include <sys/types.h>
26383               #include <sys/socket.h>
26384
26385 int
26386 main ()
26387 {
26388
26389               socklen_t x
26390
26391   ;
26392   return 0;
26393 }
26394 _ACEOF
26395 if ac_fn_c_try_compile "$LINENO"; then :
26396
26397              ba_cv_header_socklen_t=yes
26398
26399 else
26400
26401              ba_cv_header_socklen_t=no
26402
26403
26404 fi
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406
26407
26408 fi
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26410 $as_echo "$ba_cv_header_socklen_t" >&6; }
26411 test $ba_cv_header_socklen_t = yes &&
26412 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26413
26414
26415 ac_ext=cpp
26416 ac_cpp='$CXXCPP $CPPFLAGS'
26417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26420
26421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26422 $as_echo_n "checking for ioctl_req_t... " >&6; }
26423 if ${ba_cv_header_ioctl_req_t+:} false; then :
26424   $as_echo_n "(cached) " >&6
26425 else
26426
26427        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26428 /* end confdefs.h.  */
26429
26430               #include <unistd.h>
26431               #include <sys/types.h>
26432               #include <sys/ioctl.h>
26433
26434 int
26435 main ()
26436 {
26437
26438               int (*d_ioctl)(int fd, unsigned long int request, ...);
26439               d_ioctl = ::ioctl;
26440
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 if ac_fn_cxx_try_compile "$LINENO"; then :
26446
26447              ba_cv_header_ioctl_req_t=yes
26448
26449 else
26450
26451              ba_cv_header_ioctl_req_t=no
26452
26453
26454 fi
26455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26456
26457
26458 fi
26459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26460 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26461 test $ba_cv_header_ioctl_req_t = yes &&
26462 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26463
26464
26465 ac_ext=c
26466 ac_cpp='$CPP $CPPFLAGS'
26467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26470
26471
26472 ac_ext=cpp
26473 ac_cpp='$CXXCPP $CPPFLAGS'
26474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26477
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26479 $as_echo_n "checking for typeof... " >&6; }
26480 if ${ba_cv_have_typeof+:} false; then :
26481   $as_echo_n "(cached) " >&6
26482 else
26483
26484        if test "$cross_compiling" = yes; then :
26485
26486               ba_cv_have_typeof=no
26487
26488
26489 else
26490   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26491 /* end confdefs.h.  */
26492
26493               main(){char *a = 0; a = (typeof a)a;}
26494
26495 _ACEOF
26496 if ac_fn_cxx_try_run "$LINENO"; then :
26497
26498               ba_cv_have_typeof=yes
26499
26500 else
26501
26502               ba_cv_have_typeof=no
26503
26504 fi
26505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26506   conftest.$ac_objext conftest.beam conftest.$ac_ext
26507 fi
26508
26509
26510
26511 fi
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26513 $as_echo "$ba_cv_have_typeof" >&6; }
26514 test $ba_cv_have_typeof = yes &&
26515 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26516
26517 ac_ext=c
26518 ac_cpp='$CPP $CPPFLAGS'
26519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26522
26523
26524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26525 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26526 if ${ac_cv_c_const+:} false; then :
26527   $as_echo_n "(cached) " >&6
26528 else
26529   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26530 /* end confdefs.h.  */
26531
26532 int
26533 main ()
26534 {
26535
26536 #ifndef __cplusplus
26537   /* Ultrix mips cc rejects this sort of thing.  */
26538   typedef int charset[2];
26539   const charset cs = { 0, 0 };
26540   /* SunOS 4.1.1 cc rejects this.  */
26541   char const *const *pcpcc;
26542   char **ppc;
26543   /* NEC SVR4.0.2 mips cc rejects this.  */
26544   struct point {int x, y;};
26545   static struct point const zero = {0,0};
26546   /* AIX XL C 1.02.0.0 rejects this.
26547      It does not let you subtract one const X* pointer from another in
26548      an arm of an if-expression whose if-part is not a constant
26549      expression */
26550   const char *g = "string";
26551   pcpcc = &g + (g ? g-g : 0);
26552   /* HPUX 7.0 cc rejects these. */
26553   ++pcpcc;
26554   ppc = (char**) pcpcc;
26555   pcpcc = (char const *const *) ppc;
26556   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26557     char tx;
26558     char *t = &tx;
26559     char const *s = 0 ? (char *) 0 : (char const *) 0;
26560
26561     *t++ = 0;
26562     if (s) return 0;
26563   }
26564   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26565     int x[] = {25, 17};
26566     const int *foo = &x[0];
26567     ++foo;
26568   }
26569   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26570     typedef const int *iptr;
26571     iptr p = 0;
26572     ++p;
26573   }
26574   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26575        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26576     struct s { int j; const int *ap[3]; } bx;
26577     struct s *b = &bx; b->j = 5;
26578   }
26579   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26580     const int foo = 10;
26581     if (!foo) return 0;
26582   }
26583   return !cs[0] && !zero.x;
26584 #endif
26585
26586   ;
26587   return 0;
26588 }
26589 _ACEOF
26590 if ac_fn_c_try_compile "$LINENO"; then :
26591   ac_cv_c_const=yes
26592 else
26593   ac_cv_c_const=no
26594 fi
26595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26596 fi
26597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26598 $as_echo "$ac_cv_c_const" >&6; }
26599 if test $ac_cv_c_const = no; then
26600
26601 $as_echo "#define const /**/" >>confdefs.h
26602
26603 fi
26604
26605
26606  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26607 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26608 if ${ac_cv_c_bigendian+:} false; then :
26609   $as_echo_n "(cached) " >&6
26610 else
26611   ac_cv_c_bigendian=unknown
26612     # See if we're dealing with a universal compiler.
26613     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26614 /* end confdefs.h.  */
26615 #ifndef __APPLE_CC__
26616                not a universal capable compiler
26617              #endif
26618              typedef int dummy;
26619
26620 _ACEOF
26621 if ac_fn_c_try_compile "$LINENO"; then :
26622
26623         # Check for potential -arch flags.  It is not universal unless
26624         # there are at least two -arch flags with different values.
26625         ac_arch=
26626         ac_prev=
26627         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26628          if test -n "$ac_prev"; then
26629            case $ac_word in
26630              i?86 | x86_64 | ppc | ppc64)
26631                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26632                  ac_arch=$ac_word
26633                else
26634                  ac_cv_c_bigendian=universal
26635                  break
26636                fi
26637                ;;
26638            esac
26639            ac_prev=
26640          elif test "x$ac_word" = "x-arch"; then
26641            ac_prev=arch
26642          fi
26643        done
26644 fi
26645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26646     if test $ac_cv_c_bigendian = unknown; then
26647       # See if sys/param.h defines the BYTE_ORDER macro.
26648       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26649 /* end confdefs.h.  */
26650 #include <sys/types.h>
26651              #include <sys/param.h>
26652
26653 int
26654 main ()
26655 {
26656 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26657                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26658                      && LITTLE_ENDIAN)
26659               bogus endian macros
26660              #endif
26661
26662   ;
26663   return 0;
26664 }
26665 _ACEOF
26666 if ac_fn_c_try_compile "$LINENO"; then :
26667   # It does; now see whether it defined to BIG_ENDIAN or not.
26668          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26669 /* end confdefs.h.  */
26670 #include <sys/types.h>
26671                 #include <sys/param.h>
26672
26673 int
26674 main ()
26675 {
26676 #if BYTE_ORDER != BIG_ENDIAN
26677                  not big endian
26678                 #endif
26679
26680   ;
26681   return 0;
26682 }
26683 _ACEOF
26684 if ac_fn_c_try_compile "$LINENO"; then :
26685   ac_cv_c_bigendian=yes
26686 else
26687   ac_cv_c_bigendian=no
26688 fi
26689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26690 fi
26691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26692     fi
26693     if test $ac_cv_c_bigendian = unknown; then
26694       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26695       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26696 /* end confdefs.h.  */
26697 #include <limits.h>
26698
26699 int
26700 main ()
26701 {
26702 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26703               bogus endian macros
26704              #endif
26705
26706   ;
26707   return 0;
26708 }
26709 _ACEOF
26710 if ac_fn_c_try_compile "$LINENO"; then :
26711   # It does; now see whether it defined to _BIG_ENDIAN or not.
26712          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26713 /* end confdefs.h.  */
26714 #include <limits.h>
26715
26716 int
26717 main ()
26718 {
26719 #ifndef _BIG_ENDIAN
26720                  not big endian
26721                 #endif
26722
26723   ;
26724   return 0;
26725 }
26726 _ACEOF
26727 if ac_fn_c_try_compile "$LINENO"; then :
26728   ac_cv_c_bigendian=yes
26729 else
26730   ac_cv_c_bigendian=no
26731 fi
26732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26733 fi
26734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26735     fi
26736     if test $ac_cv_c_bigendian = unknown; then
26737       # Compile a test program.
26738       if test "$cross_compiling" = yes; then :
26739   # Try to guess by grepping values from an object file.
26740          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26741 /* end confdefs.h.  */
26742 short int ascii_mm[] =
26743                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26744                 short int ascii_ii[] =
26745                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26746                 int use_ascii (int i) {
26747                   return ascii_mm[i] + ascii_ii[i];
26748                 }
26749                 short int ebcdic_ii[] =
26750                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26751                 short int ebcdic_mm[] =
26752                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26753                 int use_ebcdic (int i) {
26754                   return ebcdic_mm[i] + ebcdic_ii[i];
26755                 }
26756                 extern int foo;
26757
26758 int
26759 main ()
26760 {
26761 return use_ascii (foo) == use_ebcdic (foo);
26762   ;
26763   return 0;
26764 }
26765 _ACEOF
26766 if ac_fn_c_try_compile "$LINENO"; then :
26767   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26768               ac_cv_c_bigendian=yes
26769             fi
26770             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26771               if test "$ac_cv_c_bigendian" = unknown; then
26772                 ac_cv_c_bigendian=no
26773               else
26774                 # finding both strings is unlikely to happen, but who knows?
26775                 ac_cv_c_bigendian=unknown
26776               fi
26777             fi
26778 fi
26779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26780 else
26781   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h.  */
26783 $ac_includes_default
26784 int
26785 main ()
26786 {
26787
26788              /* Are we little or big endian?  From Harbison&Steele.  */
26789              union
26790              {
26791                long int l;
26792                char c[sizeof (long int)];
26793              } u;
26794              u.l = 1;
26795              return u.c[sizeof (long int) - 1] == 1;
26796
26797   ;
26798   return 0;
26799 }
26800 _ACEOF
26801 if ac_fn_c_try_run "$LINENO"; then :
26802   ac_cv_c_bigendian=no
26803 else
26804   ac_cv_c_bigendian=yes
26805 fi
26806 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26807   conftest.$ac_objext conftest.beam conftest.$ac_ext
26808 fi
26809
26810     fi
26811 fi
26812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26813 $as_echo "$ac_cv_c_bigendian" >&6; }
26814  case $ac_cv_c_bigendian in #(
26815    yes)
26816
26817 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26818 ;; #(
26819    no)
26820
26821 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26822  ;; #(
26823    universal)
26824
26825 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26826
26827      ;; #(
26828    *)
26829      as_fn_error $? "unknown endianness
26830  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26831  esac
26832
26833
26834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26835 $as_echo_n "checking how to get filesystem type... " >&6; }
26836 fstype=no
26837 # The order of these tests is important.
26838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26839 /* end confdefs.h.  */
26840
26841        #include <sys/statvfs.h>
26842        #include <sys/fstyp.h>
26843
26844 _ACEOF
26845 if ac_fn_c_try_cpp "$LINENO"; then :
26846   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26847  fstype=SVR4
26848
26849 fi
26850 rm -f conftest.err conftest.i conftest.$ac_ext
26851 if test $fstype = no; then
26852    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26853 /* end confdefs.h.  */
26854
26855           #include <sys/statfs.h>
26856           #include <sys/fstyp.h>
26857
26858 _ACEOF
26859 if ac_fn_c_try_cpp "$LINENO"; then :
26860   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26861  fstype=SVR3
26862
26863 fi
26864 rm -f conftest.err conftest.i conftest.$ac_ext
26865 fi
26866 if test $fstype = no; then
26867    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26868 /* end confdefs.h.  */
26869
26870           #include <sys/statfs.h>
26871           #include <sys/vmount.h>
26872
26873 _ACEOF
26874 if ac_fn_c_try_cpp "$LINENO"; then :
26875   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26876  fstype=AIX
26877
26878 fi
26879 rm -f conftest.err conftest.i conftest.$ac_ext
26880 fi
26881 if test $fstype = no; then
26882    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26883 /* end confdefs.h.  */
26884
26885           #include <mntent.h>
26886
26887 _ACEOF
26888 if ac_fn_c_try_cpp "$LINENO"; then :
26889   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26890  fstype=4.3BSD
26891
26892 fi
26893 rm -f conftest.err conftest.i conftest.$ac_ext
26894 fi
26895 if test $fstype = no; then
26896    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26897 /* end confdefs.h.  */
26898 #include <sys/mount.h>
26899
26900 _ACEOF
26901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26902   $EGREP "f_type;" >/dev/null 2>&1; then :
26903   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26904  fstype=4.4BSD/OSF1
26905 fi
26906 rm -f conftest*
26907
26908 fi
26909 if test $fstype = no; then
26910    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26911 /* end confdefs.h.  */
26912
26913           #include <sys/mount.h>
26914           #include <sys/fs_types.h>
26915
26916 _ACEOF
26917 if ac_fn_c_try_cpp "$LINENO"; then :
26918   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26919  fstype=Ultrix
26920
26921 fi
26922 rm -f conftest.err conftest.i conftest.$ac_ext
26923 fi
26924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26925 $as_echo "$fstype" >&6; }
26926
26927 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26928 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26929
26930 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26931
26932 fi
26933
26934
26935
26936 ac_ext=cpp
26937 ac_cpp='$CXXCPP $CPPFLAGS'
26938 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26939 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26940 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26941
26942 for ac_func in backtrace
26943 do :
26944   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26945 if test "x$ac_cv_func_backtrace" = xyes; then :
26946   cat >>confdefs.h <<_ACEOF
26947 #define HAVE_BACKTRACE 1
26948 _ACEOF
26949
26950 fi
26951 done
26952
26953 ac_ext=c
26954 ac_cpp='$CPP $CPPFLAGS'
26955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26958
26959
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26961 $as_echo_n "checking return type of signal handlers... " >&6; }
26962 if ${ac_cv_type_signal+:} false; then :
26963   $as_echo_n "(cached) " >&6
26964 else
26965   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26966 /* end confdefs.h.  */
26967 #include <sys/types.h>
26968 #include <signal.h>
26969
26970 int
26971 main ()
26972 {
26973 return *(signal (0, 0)) (0) == 1;
26974   ;
26975   return 0;
26976 }
26977 _ACEOF
26978 if ac_fn_c_try_compile "$LINENO"; then :
26979   ac_cv_type_signal=int
26980 else
26981   ac_cv_type_signal=void
26982 fi
26983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26984 fi
26985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26986 $as_echo "$ac_cv_type_signal" >&6; }
26987
26988 cat >>confdefs.h <<_ACEOF
26989 #define RETSIGTYPE $ac_cv_type_signal
26990 _ACEOF
26991
26992
26993
26994   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26995 $as_echo_n "checking for type of signal functions... " >&6; }
26996   if ${bash_cv_signal_vintage+:} false; then :
26997   $as_echo_n "(cached) " >&6
26998 else
26999
27000     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27001 /* end confdefs.h.  */
27002 #include <signal.h>
27003 int
27004 main ()
27005 {
27006
27007       sigset_t ss;
27008       struct sigaction sa;
27009       sigemptyset(&ss); sigsuspend(&ss);
27010       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27011       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27012
27013   ;
27014   return 0;
27015 }
27016 _ACEOF
27017 if ac_fn_c_try_link "$LINENO"; then :
27018   bash_cv_signal_vintage="posix"
27019 else
27020
27021       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27022 /* end confdefs.h.  */
27023 #include <signal.h>
27024 int
27025 main ()
27026 {
27027
27028           int mask = sigmask(SIGINT);
27029           sigsetmask(mask); sigblock(mask); sigpause(mask);
27030
27031   ;
27032   return 0;
27033 }
27034 _ACEOF
27035 if ac_fn_c_try_link "$LINENO"; then :
27036   bash_cv_signal_vintage="4.2bsd"
27037 else
27038
27039         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27040 /* end confdefs.h.  */
27041
27042           #include <signal.h>
27043           RETSIGTYPE foo() { }
27044 int
27045 main ()
27046 {
27047
27048                   int mask = sigmask(SIGINT);
27049                   sigset(SIGINT, foo); sigrelse(SIGINT);
27050                   sighold(SIGINT); sigpause(SIGINT);
27051
27052   ;
27053   return 0;
27054 }
27055 _ACEOF
27056 if ac_fn_c_try_link "$LINENO"; then :
27057   bash_cv_signal_vintage="svr3"
27058 else
27059   bash_cv_signal_vintage="v7"
27060
27061 fi
27062 rm -f core conftest.err conftest.$ac_objext \
27063     conftest$ac_exeext conftest.$ac_ext
27064
27065 fi
27066 rm -f core conftest.err conftest.$ac_objext \
27067     conftest$ac_exeext conftest.$ac_ext
27068
27069 fi
27070 rm -f core conftest.err conftest.$ac_objext \
27071     conftest$ac_exeext conftest.$ac_ext
27072
27073 fi
27074
27075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27076 $as_echo "$bash_cv_signal_vintage" >&6; }
27077   if test "$bash_cv_signal_vintage" = "posix"; then
27078     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27079
27080   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27081     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27082
27083   elif test "$bash_cv_signal_vintage" = "svr3"; then
27084     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27085
27086   fi
27087
27088 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27089 if test "x$ac_cv_type_mode_t" = xyes; then :
27090
27091 else
27092
27093 cat >>confdefs.h <<_ACEOF
27094 #define mode_t int
27095 _ACEOF
27096
27097 fi
27098
27099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27100 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27101 if ${ac_cv_type_uid_t+:} false; then :
27102   $as_echo_n "(cached) " >&6
27103 else
27104   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27105 /* end confdefs.h.  */
27106 #include <sys/types.h>
27107
27108 _ACEOF
27109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27110   $EGREP "uid_t" >/dev/null 2>&1; then :
27111   ac_cv_type_uid_t=yes
27112 else
27113   ac_cv_type_uid_t=no
27114 fi
27115 rm -f conftest*
27116
27117 fi
27118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27119 $as_echo "$ac_cv_type_uid_t" >&6; }
27120 if test $ac_cv_type_uid_t = no; then
27121
27122 $as_echo "#define uid_t int" >>confdefs.h
27123
27124
27125 $as_echo "#define gid_t int" >>confdefs.h
27126
27127 fi
27128
27129 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27130 if test "x$ac_cv_type_size_t" = xyes; then :
27131
27132 else
27133
27134 cat >>confdefs.h <<_ACEOF
27135 #define size_t unsigned int
27136 _ACEOF
27137
27138 fi
27139
27140 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27141 if test "x$ac_cv_type_pid_t" = xyes; then :
27142
27143 else
27144
27145 cat >>confdefs.h <<_ACEOF
27146 #define pid_t int
27147 _ACEOF
27148
27149 fi
27150
27151 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27152 if test "x$ac_cv_type_off_t" = xyes; then :
27153
27154 else
27155
27156 cat >>confdefs.h <<_ACEOF
27157 #define off_t long int
27158 _ACEOF
27159
27160 fi
27161
27162
27163   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27164 if test "x$ac_cv_type_intptr_t" = xyes; then :
27165
27166 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27167
27168 else
27169   for ac_type in 'int' 'long int' 'long long int'; do
27170        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h.  */
27172 $ac_includes_default
27173 int
27174 main ()
27175 {
27176 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27177 test_array [0] = 0;
27178 return test_array [0];
27179
27180   ;
27181   return 0;
27182 }
27183 _ACEOF
27184 if ac_fn_c_try_compile "$LINENO"; then :
27185
27186 cat >>confdefs.h <<_ACEOF
27187 #define intptr_t $ac_type
27188 _ACEOF
27189
27190           ac_type=
27191 fi
27192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27193        test -z "$ac_type" && break
27194      done
27195 fi
27196
27197
27198
27199   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27200 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27201
27202 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27203
27204 else
27205   for ac_type in 'unsigned int' 'unsigned long int' \
27206         'unsigned long long int'; do
27207        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27208 /* end confdefs.h.  */
27209 $ac_includes_default
27210 int
27211 main ()
27212 {
27213 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27214 test_array [0] = 0;
27215 return test_array [0];
27216
27217   ;
27218   return 0;
27219 }
27220 _ACEOF
27221 if ac_fn_c_try_compile "$LINENO"; then :
27222
27223 cat >>confdefs.h <<_ACEOF
27224 #define uintptr_t $ac_type
27225 _ACEOF
27226
27227           ac_type=
27228 fi
27229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27230        test -z "$ac_type" && break
27231      done
27232 fi
27233
27234
27235 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27236 if test "x$ac_cv_type_ino_t" = xyes; then :
27237
27238 else
27239
27240 cat >>confdefs.h <<_ACEOF
27241 #define ino_t unsigned long
27242 _ACEOF
27243
27244 fi
27245
27246 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27247 if test "x$ac_cv_type_dev_t" = xyes; then :
27248
27249 else
27250
27251 cat >>confdefs.h <<_ACEOF
27252 #define dev_t unsigned long
27253 _ACEOF
27254
27255 fi
27256
27257 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27258 if test "x$ac_cv_type_daddr_t" = xyes; then :
27259
27260 else
27261
27262 cat >>confdefs.h <<_ACEOF
27263 #define daddr_t long
27264 _ACEOF
27265
27266 fi
27267
27268 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27269 if test "x$ac_cv_type_major_t" = xyes; then :
27270
27271 else
27272
27273 cat >>confdefs.h <<_ACEOF
27274 #define major_t int
27275 _ACEOF
27276
27277 fi
27278
27279 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27280 if test "x$ac_cv_type_minor_t" = xyes; then :
27281
27282 else
27283
27284 cat >>confdefs.h <<_ACEOF
27285 #define minor_t int
27286 _ACEOF
27287
27288 fi
27289
27290 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27291 if test "x$ac_cv_type_ssize_t" = xyes; then :
27292
27293 else
27294
27295 cat >>confdefs.h <<_ACEOF
27296 #define ssize_t int
27297 _ACEOF
27298
27299 fi
27300
27301 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27302 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27303
27304 cat >>confdefs.h <<_ACEOF
27305 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27306 _ACEOF
27307
27308
27309 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27310
27311 else
27312   case " $LIBOBJS " in
27313   *" fileblocks.$ac_objext "* ) ;;
27314   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27315  ;;
27316 esac
27317
27318 fi
27319
27320
27321 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27322 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27323
27324 cat >>confdefs.h <<_ACEOF
27325 #define HAVE_STRUCT_STAT_ST_RDEV 1
27326 _ACEOF
27327
27328
27329 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27330
27331 fi
27332
27333
27334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27335 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27336 if ${ac_cv_struct_tm+:} false; then :
27337   $as_echo_n "(cached) " >&6
27338 else
27339   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27340 /* end confdefs.h.  */
27341 #include <sys/types.h>
27342 #include <time.h>
27343
27344 int
27345 main ()
27346 {
27347 struct tm tm;
27348                                      int *p = &tm.tm_sec;
27349                                      return !p;
27350   ;
27351   return 0;
27352 }
27353 _ACEOF
27354 if ac_fn_c_try_compile "$LINENO"; then :
27355   ac_cv_struct_tm=time.h
27356 else
27357   ac_cv_struct_tm=sys/time.h
27358 fi
27359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27360 fi
27361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27362 $as_echo "$ac_cv_struct_tm" >&6; }
27363 if test $ac_cv_struct_tm = sys/time.h; then
27364
27365 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27366
27367 fi
27368
27369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27370 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27371 if ${ac_cv_c_const+:} false; then :
27372   $as_echo_n "(cached) " >&6
27373 else
27374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27375 /* end confdefs.h.  */
27376
27377 int
27378 main ()
27379 {
27380
27381 #ifndef __cplusplus
27382   /* Ultrix mips cc rejects this sort of thing.  */
27383   typedef int charset[2];
27384   const charset cs = { 0, 0 };
27385   /* SunOS 4.1.1 cc rejects this.  */
27386   char const *const *pcpcc;
27387   char **ppc;
27388   /* NEC SVR4.0.2 mips cc rejects this.  */
27389   struct point {int x, y;};
27390   static struct point const zero = {0,0};
27391   /* AIX XL C 1.02.0.0 rejects this.
27392      It does not let you subtract one const X* pointer from another in
27393      an arm of an if-expression whose if-part is not a constant
27394      expression */
27395   const char *g = "string";
27396   pcpcc = &g + (g ? g-g : 0);
27397   /* HPUX 7.0 cc rejects these. */
27398   ++pcpcc;
27399   ppc = (char**) pcpcc;
27400   pcpcc = (char const *const *) ppc;
27401   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27402     char tx;
27403     char *t = &tx;
27404     char const *s = 0 ? (char *) 0 : (char const *) 0;
27405
27406     *t++ = 0;
27407     if (s) return 0;
27408   }
27409   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27410     int x[] = {25, 17};
27411     const int *foo = &x[0];
27412     ++foo;
27413   }
27414   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27415     typedef const int *iptr;
27416     iptr p = 0;
27417     ++p;
27418   }
27419   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27420        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27421     struct s { int j; const int *ap[3]; } bx;
27422     struct s *b = &bx; b->j = 5;
27423   }
27424   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27425     const int foo = 10;
27426     if (!foo) return 0;
27427   }
27428   return !cs[0] && !zero.x;
27429 #endif
27430
27431   ;
27432   return 0;
27433 }
27434 _ACEOF
27435 if ac_fn_c_try_compile "$LINENO"; then :
27436   ac_cv_c_const=yes
27437 else
27438   ac_cv_c_const=no
27439 fi
27440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27441 fi
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27443 $as_echo "$ac_cv_c_const" >&6; }
27444 if test $ac_cv_c_const = no; then
27445
27446 $as_echo "#define const /**/" >>confdefs.h
27447
27448 fi
27449
27450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27451 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27452 if ${ac_cv_c_restrict+:} false; then :
27453   $as_echo_n "(cached) " >&6
27454 else
27455   ac_cv_c_restrict=no
27456    # The order here caters to the fact that C++ does not require restrict.
27457    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27458      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27459 /* end confdefs.h.  */
27460 typedef int * int_ptr;
27461         int foo (int_ptr $ac_kw ip) {
27462         return ip[0];
27463        }
27464 int
27465 main ()
27466 {
27467 int s[1];
27468         int * $ac_kw t = s;
27469         t[0] = 0;
27470         return foo(t)
27471   ;
27472   return 0;
27473 }
27474 _ACEOF
27475 if ac_fn_c_try_compile "$LINENO"; then :
27476   ac_cv_c_restrict=$ac_kw
27477 fi
27478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27479      test "$ac_cv_c_restrict" != no && break
27480    done
27481
27482 fi
27483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27484 $as_echo "$ac_cv_c_restrict" >&6; }
27485
27486  case $ac_cv_c_restrict in
27487    restrict) ;;
27488    no) $as_echo "#define restrict /**/" >>confdefs.h
27489  ;;
27490    *)  cat >>confdefs.h <<_ACEOF
27491 #define restrict $ac_cv_c_restrict
27492 _ACEOF
27493  ;;
27494  esac
27495
27496
27497 # The cast to long int works around a bug in the HP C Compiler
27498 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27499 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27500 # This bug is HP SR number 8606223364.
27501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27502 $as_echo_n "checking size of char... " >&6; }
27503 if ${ac_cv_sizeof_char+:} false; then :
27504   $as_echo_n "(cached) " >&6
27505 else
27506   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27507
27508 else
27509   if test "$ac_cv_type_char" = yes; then
27510      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27512 as_fn_error 77 "cannot compute sizeof (char)
27513 See \`config.log' for more details" "$LINENO" 5; }
27514    else
27515      ac_cv_sizeof_char=0
27516    fi
27517 fi
27518
27519 fi
27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27521 $as_echo "$ac_cv_sizeof_char" >&6; }
27522
27523
27524
27525 cat >>confdefs.h <<_ACEOF
27526 #define SIZEOF_CHAR $ac_cv_sizeof_char
27527 _ACEOF
27528
27529
27530 # The cast to long int works around a bug in the HP C Compiler
27531 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27532 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27533 # This bug is HP SR number 8606223364.
27534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27535 $as_echo_n "checking size of short int... " >&6; }
27536 if ${ac_cv_sizeof_short_int+:} false; then :
27537   $as_echo_n "(cached) " >&6
27538 else
27539   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27540
27541 else
27542   if test "$ac_cv_type_short_int" = yes; then
27543      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27544 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27545 as_fn_error 77 "cannot compute sizeof (short int)
27546 See \`config.log' for more details" "$LINENO" 5; }
27547    else
27548      ac_cv_sizeof_short_int=0
27549    fi
27550 fi
27551
27552 fi
27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27554 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27555
27556
27557
27558 cat >>confdefs.h <<_ACEOF
27559 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27560 _ACEOF
27561
27562
27563 # The cast to long int works around a bug in the HP C Compiler
27564 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27565 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27566 # This bug is HP SR number 8606223364.
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27568 $as_echo_n "checking size of int... " >&6; }
27569 if ${ac_cv_sizeof_int+:} false; then :
27570   $as_echo_n "(cached) " >&6
27571 else
27572   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27573
27574 else
27575   if test "$ac_cv_type_int" = yes; then
27576      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27578 as_fn_error 77 "cannot compute sizeof (int)
27579 See \`config.log' for more details" "$LINENO" 5; }
27580    else
27581      ac_cv_sizeof_int=0
27582    fi
27583 fi
27584
27585 fi
27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27587 $as_echo "$ac_cv_sizeof_int" >&6; }
27588
27589
27590
27591 cat >>confdefs.h <<_ACEOF
27592 #define SIZEOF_INT $ac_cv_sizeof_int
27593 _ACEOF
27594
27595
27596 # The cast to long int works around a bug in the HP C Compiler
27597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27599 # This bug is HP SR number 8606223364.
27600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27601 $as_echo_n "checking size of long int... " >&6; }
27602 if ${ac_cv_sizeof_long_int+:} false; then :
27603   $as_echo_n "(cached) " >&6
27604 else
27605   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27606
27607 else
27608   if test "$ac_cv_type_long_int" = yes; then
27609      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27611 as_fn_error 77 "cannot compute sizeof (long int)
27612 See \`config.log' for more details" "$LINENO" 5; }
27613    else
27614      ac_cv_sizeof_long_int=0
27615    fi
27616 fi
27617
27618 fi
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27620 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27621
27622
27623
27624 cat >>confdefs.h <<_ACEOF
27625 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27626 _ACEOF
27627
27628
27629 # The cast to long int works around a bug in the HP C Compiler
27630 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27631 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27632 # This bug is HP SR number 8606223364.
27633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27634 $as_echo_n "checking size of long long int... " >&6; }
27635 if ${ac_cv_sizeof_long_long_int+:} false; then :
27636   $as_echo_n "(cached) " >&6
27637 else
27638   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27639
27640 else
27641   if test "$ac_cv_type_long_long_int" = yes; then
27642      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27644 as_fn_error 77 "cannot compute sizeof (long long int)
27645 See \`config.log' for more details" "$LINENO" 5; }
27646    else
27647      ac_cv_sizeof_long_long_int=0
27648    fi
27649 fi
27650
27651 fi
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27653 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27654
27655
27656
27657 cat >>confdefs.h <<_ACEOF
27658 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27659 _ACEOF
27660
27661
27662 # The cast to long int works around a bug in the HP C Compiler
27663 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27664 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27665 # This bug is HP SR number 8606223364.
27666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27667 $as_echo_n "checking size of int *... " >&6; }
27668 if ${ac_cv_sizeof_int_p+:} false; then :
27669   $as_echo_n "(cached) " >&6
27670 else
27671   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27672
27673 else
27674   if test "$ac_cv_type_int_p" = yes; then
27675      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27677 as_fn_error 77 "cannot compute sizeof (int *)
27678 See \`config.log' for more details" "$LINENO" 5; }
27679    else
27680      ac_cv_sizeof_int_p=0
27681    fi
27682 fi
27683
27684 fi
27685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27686 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27687
27688
27689
27690 cat >>confdefs.h <<_ACEOF
27691 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27692 _ACEOF
27693
27694
27695
27696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27697 $as_echo_n "checking for u_int type... " >&6; }
27698 if ${ac_cv_have_u_int+:} false; then :
27699   $as_echo_n "(cached) " >&6
27700 else
27701
27702        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27703 /* end confdefs.h.  */
27704
27705               #include <sys/types.h>
27706
27707 int
27708 main ()
27709 {
27710
27711               u_int a; a = 1;
27712
27713   ;
27714   return 0;
27715 }
27716 _ACEOF
27717 if ac_fn_c_try_compile "$LINENO"; then :
27718
27719               ac_cv_have_u_int="yes"
27720
27721 else
27722
27723               ac_cv_have_u_int="no"
27724
27725
27726 fi
27727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27728
27729
27730 fi
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27732 $as_echo "$ac_cv_have_u_int" >&6; }
27733 if test "x$ac_cv_have_u_int" = "xyes" ; then
27734    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27735
27736    have_u_int=1
27737 fi
27738
27739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27740 $as_echo_n "checking for intmax_t type... " >&6; }
27741 if ${ac_cv_have_intmax_t+:} false; then :
27742   $as_echo_n "(cached) " >&6
27743 else
27744
27745        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27746 /* end confdefs.h.  */
27747
27748               #include <sys/types.h>
27749
27750 int
27751 main ()
27752 {
27753
27754               intmax_t a; a = 1;
27755
27756   ;
27757   return 0;
27758 }
27759 _ACEOF
27760 if ac_fn_c_try_compile "$LINENO"; then :
27761
27762               ac_cv_have_intmax_t="yes"
27763
27764 else
27765
27766               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27767 /* end confdefs.h.  */
27768
27769                      #include <stdint.h>
27770
27771 int
27772 main ()
27773 {
27774
27775                      intmax_t a; a = 1;
27776
27777   ;
27778   return 0;
27779 }
27780 _ACEOF
27781 if ac_fn_c_try_compile "$LINENO"; then :
27782
27783                      ac_cv_have_intmax_t="yes"
27784
27785 else
27786
27787                      ac_cv_have_intmax_t="no"
27788
27789
27790 fi
27791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27792
27793
27794 fi
27795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27796
27797
27798 fi
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27800 $as_echo "$ac_cv_have_intmax_t" >&6; }
27801 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27802    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27803
27804    have_intmax_t=1
27805 fi
27806
27807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27808 $as_echo_n "checking for u_intmax_t type... " >&6; }
27809 if ${ac_cv_have_u_intmax_t+:} false; then :
27810   $as_echo_n "(cached) " >&6
27811 else
27812
27813        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27814 /* end confdefs.h.  */
27815
27816               #include <sys/types.h>
27817
27818 int
27819 main ()
27820 {
27821
27822               u_intmax_t a; a = 1;
27823
27824   ;
27825   return 0;
27826 }
27827 _ACEOF
27828 if ac_fn_c_try_compile "$LINENO"; then :
27829
27830               ac_cv_have_u_intmax_t="yes"
27831
27832 else
27833
27834               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27835 /* end confdefs.h.  */
27836
27837                      #include <stdint.h>
27838
27839 int
27840 main ()
27841 {
27842
27843                     u_intmax_t a; a = 1;
27844
27845   ;
27846   return 0;
27847 }
27848 _ACEOF
27849 if ac_fn_c_try_compile "$LINENO"; then :
27850
27851                     ac_cv_have_u_intmax_t="yes"
27852
27853 else
27854
27855                     ac_cv_have_u_intmax_t="no"
27856
27857
27858 fi
27859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27860
27861
27862 fi
27863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27864
27865
27866 fi
27867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27868 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27869 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27870    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27871
27872    have_u_intmax_t=1
27873 fi
27874
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27876 $as_echo_n "checking for intXX_t types... " >&6; }
27877 if ${ac_cv_have_intxx_t+:} false; then :
27878   $as_echo_n "(cached) " >&6
27879 else
27880
27881        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27882 /* end confdefs.h.  */
27883
27884               #include <sys/types.h>
27885
27886 int
27887 main ()
27888 {
27889
27890               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27891
27892   ;
27893   return 0;
27894 }
27895 _ACEOF
27896 if ac_fn_c_try_compile "$LINENO"; then :
27897
27898               ac_cv_have_intxx_t="yes"
27899
27900 else
27901
27902               ac_cv_have_intxx_t="no"
27903
27904
27905 fi
27906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27907
27908
27909 fi
27910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27911 $as_echo "$ac_cv_have_intxx_t" >&6; }
27912 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27913    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27914
27915    have_intxx_t=1
27916 fi
27917
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27919 $as_echo_n "checking for int64_t type... " >&6; }
27920 if ${ac_cv_have_int64_t+:} false; then :
27921   $as_echo_n "(cached) " >&6
27922 else
27923
27924        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27925 /* end confdefs.h.  */
27926
27927               #include <sys/types.h>
27928
27929 int
27930 main ()
27931 {
27932
27933               int64_t a; a = 1;
27934
27935   ;
27936   return 0;
27937 }
27938 _ACEOF
27939 if ac_fn_c_try_compile "$LINENO"; then :
27940
27941               ac_cv_have_int64_t="yes"
27942
27943 else
27944
27945               ac_cv_have_int64_t="no"
27946
27947
27948 fi
27949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27950
27951
27952 fi
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27954 $as_echo "$ac_cv_have_int64_t" >&6; }
27955 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27956    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27957
27958    have_int64_t=1
27959 fi
27960
27961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27962 $as_echo_n "checking for u_intXX_t types... " >&6; }
27963 if ${ac_cv_have_u_intxx_t+:} false; then :
27964   $as_echo_n "(cached) " >&6
27965 else
27966
27967        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27968 /* end confdefs.h.  */
27969
27970               #include <sys/types.h>
27971
27972 int
27973 main ()
27974 {
27975
27976               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27977
27978   ;
27979   return 0;
27980 }
27981 _ACEOF
27982 if ac_fn_c_try_compile "$LINENO"; then :
27983
27984              ac_cv_have_u_intxx_t="yes"
27985
27986 else
27987
27988              ac_cv_have_u_intxx_t="no"
27989
27990
27991 fi
27992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27993
27994
27995 fi
27996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27997 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27998 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27999    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28000
28001    have_u_intxx_t=1
28002 fi
28003
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28005 $as_echo_n "checking for u_int64_t types... " >&6; }
28006 if ${ac_cv_have_u_int64_t+:} false; then :
28007   $as_echo_n "(cached) " >&6
28008 else
28009
28010        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28011 /* end confdefs.h.  */
28012
28013               #include <sys/types.h>
28014
28015 int
28016 main ()
28017 {
28018
28019               u_int64_t a; a = 1;
28020
28021   ;
28022   return 0;
28023 }
28024 _ACEOF
28025 if ac_fn_c_try_compile "$LINENO"; then :
28026
28027              ac_cv_have_u_int64_t="yes"
28028
28029 else
28030
28031              ac_cv_have_u_int64_t="no"
28032
28033
28034 fi
28035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28036
28037
28038 fi
28039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28040 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28041 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28042    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28043
28044    have_u_int64_t=1
28045 fi
28046
28047 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28048     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28049 then
28050    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28051 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28053 /* end confdefs.h.  */
28054
28055           #include <sys/bitypes.h>
28056
28057 int
28058 main ()
28059 {
28060
28061           int8_t a; int16_t b; int32_t c;
28062           u_int8_t e; u_int16_t f; u_int32_t g;
28063           a = b = c = e = f = g = 1;
28064
28065   ;
28066   return 0;
28067 }
28068 _ACEOF
28069 if ac_fn_c_try_compile "$LINENO"; then :
28070
28071           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28072
28073           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28074
28075           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28076
28077           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28078 $as_echo "yes" >&6; }
28079
28080 else
28081
28082           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28084
28085
28086 fi
28087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088 fi
28089
28090 if test -z "$have_u_intxx_t" ; then
28091    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28092 $as_echo_n "checking for uintXX_t types... " >&6; }
28093 if ${ac_cv_have_uintxx_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                  uint8_t a; uint16_t b;
28107                  uint32_t c; a = b = c = 1;
28108
28109   ;
28110   return 0;
28111 }
28112 _ACEOF
28113 if ac_fn_c_try_compile "$LINENO"; then :
28114
28115                 ac_cv_have_uintxx_t="yes"
28116
28117 else
28118
28119                 ac_cv_have_uintxx_t="no"
28120
28121
28122 fi
28123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28124
28125
28126 fi
28127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28128 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28129    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28130       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28131
28132    fi
28133 fi
28134
28135 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28136     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28137 then
28138    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28139 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28140    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28141 /* end confdefs.h.  */
28142
28143           #include <sys/bitypes.h>
28144
28145 int
28146 main ()
28147 {
28148
28149           int64_t a; u_int64_t b;
28150           a = b = 1;
28151
28152   ;
28153   return 0;
28154 }
28155 _ACEOF
28156 if ac_fn_c_try_compile "$LINENO"; then :
28157
28158           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28159
28160           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28161
28162           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28163 $as_echo "yes" >&6; }
28164
28165 else
28166
28167           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28168 $as_echo "no" >&6; }
28169
28170
28171 fi
28172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28173 fi
28174
28175 if (test -z "$have_uintxx_t" && \
28176     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28177 then
28178    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28179 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28180    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28181 /* end confdefs.h.  */
28182
28183           #include <sys/bitypes.h>
28184
28185 int
28186 main ()
28187 {
28188
28189           uint8_t a; uint16_t b;
28190           uint32_t c; a = b = c = 1;
28191
28192   ;
28193   return 0;
28194 }
28195 _ACEOF
28196 if ac_fn_c_try_compile "$LINENO"; then :
28197
28198           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28199
28200           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28201 $as_echo "yes" >&6; }
28202
28203 else
28204
28205           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28206 $as_echo "no" >&6; }
28207
28208
28209 fi
28210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28211 fi
28212
28213 for ac_func in \
28214    fork \
28215    getcwd \
28216    gethostname \
28217    getpid \
28218    gettimeofday \
28219    setpgid \
28220    setpgrp \
28221    setsid \
28222    signal \
28223    strerror \
28224    strncmp \
28225    strncpy \
28226    vfprintf \
28227
28228 do :
28229   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28230 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28231 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28232   cat >>confdefs.h <<_ACEOF
28233 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28234 _ACEOF
28235
28236 else
28237   echo 'configure: cannot find needed function.'; exit 1
28238
28239 fi
28240 done
28241
28242
28243 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28244
28245 "
28246 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28247
28248 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28249
28250 fi
28251
28252
28253 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28254
28255 "
28256 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28257
28258 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28259
28260 fi
28261
28262
28263 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28264 if test "x$ac_cv_func_closefrom" = xyes; then :
28265
28266 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28267
28268 fi
28269
28270 for ac_func in getpagesize
28271 do :
28272   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28273 if test "x$ac_cv_func_getpagesize" = xyes; then :
28274   cat >>confdefs.h <<_ACEOF
28275 #define HAVE_GETPAGESIZE 1
28276 _ACEOF
28277
28278 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28279
28280 fi
28281 done
28282
28283 for ac_func in malloc_trim
28284 do :
28285   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28286 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28287   cat >>confdefs.h <<_ACEOF
28288 #define HAVE_MALLOC_TRIM 1
28289 _ACEOF
28290
28291 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28292
28293 fi
28294 done
28295
28296
28297 for ac_func in fchdir
28298 do :
28299   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28300 if test "x$ac_cv_func_fchdir" = xyes; then :
28301   cat >>confdefs.h <<_ACEOF
28302 #define HAVE_FCHDIR 1
28303 _ACEOF
28304  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28305
28306 fi
28307 done
28308
28309 for ac_func in strtoll
28310 do :
28311   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28312 if test "x$ac_cv_func_strtoll" = xyes; then :
28313   cat >>confdefs.h <<_ACEOF
28314 #define HAVE_STRTOLL 1
28315 _ACEOF
28316  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28317
28318 fi
28319 done
28320
28321 for ac_func in posix_fadvise
28322 do :
28323   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28324 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28325   cat >>confdefs.h <<_ACEOF
28326 #define HAVE_POSIX_FADVISE 1
28327 _ACEOF
28328
28329 fi
28330 done
28331
28332 for ac_func in posix_fallocate
28333 do :
28334   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28335 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28336   cat >>confdefs.h <<_ACEOF
28337 #define HAVE_POSIX_FALLOCATE 1
28338 _ACEOF
28339
28340 fi
28341 done
28342
28343 for ac_func in fdatasync
28344 do :
28345   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28346 if test "x$ac_cv_func_fdatasync" = xyes; then :
28347   cat >>confdefs.h <<_ACEOF
28348 #define HAVE_FDATASYNC 1
28349 _ACEOF
28350
28351 fi
28352 done
28353
28354
28355 for ac_func in chflags
28356 do :
28357   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28358 if test "x$ac_cv_func_chflags" = xyes; then :
28359   cat >>confdefs.h <<_ACEOF
28360 #define HAVE_CHFLAGS 1
28361 _ACEOF
28362
28363 fi
28364 done
28365
28366
28367 for ac_func in snprintf vsnprintf gethostid fseeko
28368 do :
28369   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28371 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28372   cat >>confdefs.h <<_ACEOF
28373 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28374 _ACEOF
28375
28376 fi
28377 done
28378
28379
28380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28381 $as_echo_n "checking for va_copy... " >&6; }
28382 if ${ba_cv_va_copy+:} false; then :
28383   $as_echo_n "(cached) " >&6
28384 else
28385
28386        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28387 /* end confdefs.h.  */
28388
28389               #include <stdarg.h>
28390               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28391               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28392
28393 int
28394 main ()
28395 {
28396
28397               call_use_va_copy(1,2,3)
28398
28399   ;
28400   return 0;
28401 }
28402 _ACEOF
28403 if ac_fn_c_try_link "$LINENO"; then :
28404
28405               ba_cv_va_copy=yes
28406
28407 else
28408
28409               ba_cv_va_copy=no
28410
28411
28412 fi
28413 rm -f core conftest.err conftest.$ac_objext \
28414     conftest$ac_exeext conftest.$ac_ext
28415
28416
28417 fi
28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28419 $as_echo "$ba_cv_va_copy" >&6; }
28420 test $ba_cv_va_copy = yes &&
28421 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28422
28423
28424 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28425 do :
28426   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28427 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28428 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28429   cat >>confdefs.h <<_ACEOF
28430 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28431 _ACEOF
28432
28433 fi
28434 done
28435
28436
28437 # If resolver functions are not in libc check for -lnsl or -lresolv.
28438 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28439 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28441 $as_echo "using libc's resolver" >&6; }
28442 else
28443   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28444 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28445 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28446   $as_echo_n "(cached) " >&6
28447 else
28448   ac_check_lib_save_LIBS=$LIBS
28449 LIBS="-lnsl  $LIBS"
28450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28451 /* end confdefs.h.  */
28452
28453 /* Override any GCC internal prototype to avoid an error.
28454    Use char because int might match the return type of a GCC
28455    builtin and then its argument prototype would still apply.  */
28456 #ifdef __cplusplus
28457 extern "C"
28458 #endif
28459 char gethostbyname_r ();
28460 int
28461 main ()
28462 {
28463 return gethostbyname_r ();
28464   ;
28465   return 0;
28466 }
28467 _ACEOF
28468 if ac_fn_c_try_link "$LINENO"; then :
28469   ac_cv_lib_nsl_gethostbyname_r=yes
28470 else
28471   ac_cv_lib_nsl_gethostbyname_r=no
28472 fi
28473 rm -f core conftest.err conftest.$ac_objext \
28474     conftest$ac_exeext conftest.$ac_ext
28475 LIBS=$ac_check_lib_save_LIBS
28476 fi
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28478 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28479 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28480   cat >>confdefs.h <<_ACEOF
28481 #define HAVE_LIBNSL 1
28482 _ACEOF
28483
28484   LIBS="-lnsl $LIBS"
28485
28486 fi
28487
28488     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28489 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28490 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28491   $as_echo_n "(cached) " >&6
28492 else
28493   ac_check_lib_save_LIBS=$LIBS
28494 LIBS="-lresolv  $LIBS"
28495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28496 /* end confdefs.h.  */
28497
28498 /* Override any GCC internal prototype to avoid an error.
28499    Use char because int might match the return type of a GCC
28500    builtin and then its argument prototype would still apply.  */
28501 #ifdef __cplusplus
28502 extern "C"
28503 #endif
28504 char gethostbyname_r ();
28505 int
28506 main ()
28507 {
28508 return gethostbyname_r ();
28509   ;
28510   return 0;
28511 }
28512 _ACEOF
28513 if ac_fn_c_try_link "$LINENO"; then :
28514   ac_cv_lib_resolv_gethostbyname_r=yes
28515 else
28516   ac_cv_lib_resolv_gethostbyname_r=no
28517 fi
28518 rm -f core conftest.err conftest.$ac_objext \
28519     conftest$ac_exeext conftest.$ac_ext
28520 LIBS=$ac_check_lib_save_LIBS
28521 fi
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28523 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28524 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28525   cat >>confdefs.h <<_ACEOF
28526 #define HAVE_LIBRESOLV 1
28527 _ACEOF
28528
28529   LIBS="-lresolv $LIBS"
28530
28531 fi
28532
28533 fi
28534
28535
28536 for ac_func in inet_pton
28537 do :
28538   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28539 if test "x$ac_cv_func_inet_pton" = xyes; then :
28540   cat >>confdefs.h <<_ACEOF
28541 #define HAVE_INET_PTON 1
28542 _ACEOF
28543  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28544
28545 fi
28546 done
28547
28548 for ac_func in inet_ntop
28549 do :
28550   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28551 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28552   cat >>confdefs.h <<_ACEOF
28553 #define HAVE_INET_NTOP 1
28554 _ACEOF
28555  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28556
28557 fi
28558 done
28559
28560 for ac_func in gethostbyname2
28561 do :
28562   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28563 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28564   cat >>confdefs.h <<_ACEOF
28565 #define HAVE_GETHOSTBYNAME2 1
28566 _ACEOF
28567  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28568
28569 fi
28570 done
28571
28572 for ac_func in getnameinfo
28573 do :
28574   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28575 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28576   cat >>confdefs.h <<_ACEOF
28577 #define HAVE_GETNAMEINFO 1
28578 _ACEOF
28579  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28580
28581 fi
28582 done
28583
28584
28585
28586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28587 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28588 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28589   $as_echo_n "(cached) " >&6
28590 else
28591
28592        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28593 /* end confdefs.h.  */
28594
28595               #include <sys/socket.h>
28596
28597 int
28598 main ()
28599 {
28600
28601               struct sockaddr s; s.sa_len;
28602
28603   ;
28604   return 0;
28605 }
28606 _ACEOF
28607 if ac_fn_c_try_compile "$LINENO"; then :
28608
28609              ac_cv_struct_sockaddr_sa_len=yes
28610
28611 else
28612   ac_cv_struct_sockaddr_sa_len=no
28613
28614
28615 fi
28616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28617
28618
28619 fi
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28621 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28622
28623 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28624
28625 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28626
28627 fi
28628
28629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28630 $as_echo_n "checking for working getaddrinfo... " >&6; }
28631 if ${ac_cv_working_getaddrinfo+:} false; then :
28632   $as_echo_n "(cached) " >&6
28633 else
28634
28635        if test "$cross_compiling" = yes; then :
28636
28637               ac_cv_working_getaddrinfo="yes"
28638
28639
28640 else
28641   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28642 /* end confdefs.h.  */
28643
28644               #include <netdb.h>
28645               #include <string.h>
28646               #include <sys/types.h>
28647               #include <sys/socket.h>
28648
28649               void main(void) {
28650                   struct addrinfo hints, *ai;
28651                   int error;
28652
28653                   memset(&hints, 0, sizeof(hints));
28654                   hints.ai_family = AF_UNSPEC;
28655                   hints.ai_socktype = SOCK_STREAM;
28656                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28657                   if (error) {
28658                       exit(1);
28659                   }
28660                   if (ai->ai_addr->sa_family != AF_INET) {
28661                       exit(1);
28662                   }
28663                   exit(0);
28664               }
28665
28666 _ACEOF
28667 if ac_fn_c_try_run "$LINENO"; then :
28668
28669               ac_cv_working_getaddrinfo="yes"
28670
28671 else
28672
28673               ac_cv_working_getaddrinfo="no"
28674
28675 fi
28676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28677   conftest.$ac_objext conftest.beam conftest.$ac_ext
28678 fi
28679
28680
28681
28682 fi
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28684 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28685 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28686 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28687
28688 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28689
28690 fi
28691
28692
28693 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28694   if test "$ac_cv_func_gai_strerror" != "yes"; then
28695     ac_cv_working_getaddrinfo="no"
28696   else
28697
28698 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28699
28700   fi
28701 fi
28702
28703 for ac_func in strftime
28704 do :
28705   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28706 if test "x$ac_cv_func_strftime" = xyes; then :
28707   cat >>confdefs.h <<_ACEOF
28708 #define HAVE_STRFTIME 1
28709 _ACEOF
28710
28711 else
28712   # strftime is in -lintl on SCO UNIX.
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28714 $as_echo_n "checking for strftime in -lintl... " >&6; }
28715 if ${ac_cv_lib_intl_strftime+:} false; then :
28716   $as_echo_n "(cached) " >&6
28717 else
28718   ac_check_lib_save_LIBS=$LIBS
28719 LIBS="-lintl  $LIBS"
28720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28721 /* end confdefs.h.  */
28722
28723 /* Override any GCC internal prototype to avoid an error.
28724    Use char because int might match the return type of a GCC
28725    builtin and then its argument prototype would still apply.  */
28726 #ifdef __cplusplus
28727 extern "C"
28728 #endif
28729 char strftime ();
28730 int
28731 main ()
28732 {
28733 return strftime ();
28734   ;
28735   return 0;
28736 }
28737 _ACEOF
28738 if ac_fn_c_try_link "$LINENO"; then :
28739   ac_cv_lib_intl_strftime=yes
28740 else
28741   ac_cv_lib_intl_strftime=no
28742 fi
28743 rm -f core conftest.err conftest.$ac_objext \
28744     conftest$ac_exeext conftest.$ac_ext
28745 LIBS=$ac_check_lib_save_LIBS
28746 fi
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28748 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28749 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28750   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28751
28752 LIBS="-lintl $LIBS"
28753 fi
28754
28755 fi
28756 done
28757
28758 for ac_func in vprintf
28759 do :
28760   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28761 if test "x$ac_cv_func_vprintf" = xyes; then :
28762   cat >>confdefs.h <<_ACEOF
28763 #define HAVE_VPRINTF 1
28764 _ACEOF
28765
28766 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28767 if test "x$ac_cv_func__doprnt" = xyes; then :
28768
28769 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28770
28771 fi
28772
28773 fi
28774 done
28775
28776
28777 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28778 # for constant arguments.  Useless!
28779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28780 $as_echo_n "checking for working alloca.h... " >&6; }
28781 if ${ac_cv_working_alloca_h+:} false; then :
28782   $as_echo_n "(cached) " >&6
28783 else
28784   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28785 /* end confdefs.h.  */
28786 #include <alloca.h>
28787 int
28788 main ()
28789 {
28790 char *p = (char *) alloca (2 * sizeof (int));
28791                           if (p) return 0;
28792   ;
28793   return 0;
28794 }
28795 _ACEOF
28796 if ac_fn_c_try_link "$LINENO"; then :
28797   ac_cv_working_alloca_h=yes
28798 else
28799   ac_cv_working_alloca_h=no
28800 fi
28801 rm -f core conftest.err conftest.$ac_objext \
28802     conftest$ac_exeext conftest.$ac_ext
28803 fi
28804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28805 $as_echo "$ac_cv_working_alloca_h" >&6; }
28806 if test $ac_cv_working_alloca_h = yes; then
28807
28808 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28809
28810 fi
28811
28812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28813 $as_echo_n "checking for alloca... " >&6; }
28814 if ${ac_cv_func_alloca_works+:} false; then :
28815   $as_echo_n "(cached) " >&6
28816 else
28817   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28818 /* end confdefs.h.  */
28819 #ifdef __GNUC__
28820 # define alloca __builtin_alloca
28821 #else
28822 # ifdef _MSC_VER
28823 #  include <malloc.h>
28824 #  define alloca _alloca
28825 # else
28826 #  ifdef HAVE_ALLOCA_H
28827 #   include <alloca.h>
28828 #  else
28829 #   ifdef _AIX
28830  #pragma alloca
28831 #   else
28832 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28833 void *alloca (size_t);
28834 #    endif
28835 #   endif
28836 #  endif
28837 # endif
28838 #endif
28839
28840 int
28841 main ()
28842 {
28843 char *p = (char *) alloca (1);
28844                                     if (p) return 0;
28845   ;
28846   return 0;
28847 }
28848 _ACEOF
28849 if ac_fn_c_try_link "$LINENO"; then :
28850   ac_cv_func_alloca_works=yes
28851 else
28852   ac_cv_func_alloca_works=no
28853 fi
28854 rm -f core conftest.err conftest.$ac_objext \
28855     conftest$ac_exeext conftest.$ac_ext
28856 fi
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28858 $as_echo "$ac_cv_func_alloca_works" >&6; }
28859
28860 if test $ac_cv_func_alloca_works = yes; then
28861
28862 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28863
28864 else
28865   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28866 # that cause trouble.  Some versions do not even contain alloca or
28867 # contain a buggy version.  If you still want to use their alloca,
28868 # use ar to extract alloca.o from them instead of compiling alloca.c.
28869
28870 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28871
28872 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28873
28874
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28876 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28877 if ${ac_cv_os_cray+:} false; then :
28878   $as_echo_n "(cached) " >&6
28879 else
28880   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28881 /* end confdefs.h.  */
28882 #if defined CRAY && ! defined CRAY2
28883 webecray
28884 #else
28885 wenotbecray
28886 #endif
28887
28888 _ACEOF
28889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28890   $EGREP "webecray" >/dev/null 2>&1; then :
28891   ac_cv_os_cray=yes
28892 else
28893   ac_cv_os_cray=no
28894 fi
28895 rm -f conftest*
28896
28897 fi
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28899 $as_echo "$ac_cv_os_cray" >&6; }
28900 if test $ac_cv_os_cray = yes; then
28901   for ac_func in _getb67 GETB67 getb67; do
28902     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28903 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28904 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28905
28906 cat >>confdefs.h <<_ACEOF
28907 #define CRAY_STACKSEG_END $ac_func
28908 _ACEOF
28909
28910     break
28911 fi
28912
28913   done
28914 fi
28915
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28917 $as_echo_n "checking stack direction for C alloca... " >&6; }
28918 if ${ac_cv_c_stack_direction+:} false; then :
28919   $as_echo_n "(cached) " >&6
28920 else
28921   if test "$cross_compiling" = yes; then :
28922   ac_cv_c_stack_direction=0
28923 else
28924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28925 /* end confdefs.h.  */
28926 $ac_includes_default
28927 int
28928 find_stack_direction (int *addr, int depth)
28929 {
28930   int dir, dummy = 0;
28931   if (! addr)
28932     addr = &dummy;
28933   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28934   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28935   return dir + dummy;
28936 }
28937
28938 int
28939 main (int argc, char **argv)
28940 {
28941   return find_stack_direction (0, argc + !argv + 20) < 0;
28942 }
28943 _ACEOF
28944 if ac_fn_c_try_run "$LINENO"; then :
28945   ac_cv_c_stack_direction=1
28946 else
28947   ac_cv_c_stack_direction=-1
28948 fi
28949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28950   conftest.$ac_objext conftest.beam conftest.$ac_ext
28951 fi
28952
28953 fi
28954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28955 $as_echo "$ac_cv_c_stack_direction" >&6; }
28956 cat >>confdefs.h <<_ACEOF
28957 #define STACK_DIRECTION $ac_cv_c_stack_direction
28958 _ACEOF
28959
28960
28961 fi
28962
28963 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28964 # -lseq on Dynix/PTX, -lgen on Unixware.
28965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28966 $as_echo_n "checking for library containing getmntent... " >&6; }
28967 if ${ac_cv_search_getmntent+:} false; then :
28968   $as_echo_n "(cached) " >&6
28969 else
28970   ac_func_search_save_LIBS=$LIBS
28971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28972 /* end confdefs.h.  */
28973
28974 /* Override any GCC internal prototype to avoid an error.
28975    Use char because int might match the return type of a GCC
28976    builtin and then its argument prototype would still apply.  */
28977 #ifdef __cplusplus
28978 extern "C"
28979 #endif
28980 char getmntent ();
28981 int
28982 main ()
28983 {
28984 return getmntent ();
28985   ;
28986   return 0;
28987 }
28988 _ACEOF
28989 for ac_lib in '' sun seq gen; do
28990   if test -z "$ac_lib"; then
28991     ac_res="none required"
28992   else
28993     ac_res=-l$ac_lib
28994     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28995   fi
28996   if ac_fn_c_try_link "$LINENO"; then :
28997   ac_cv_search_getmntent=$ac_res
28998 fi
28999 rm -f core conftest.err conftest.$ac_objext \
29000     conftest$ac_exeext
29001   if ${ac_cv_search_getmntent+:} false; then :
29002   break
29003 fi
29004 done
29005 if ${ac_cv_search_getmntent+:} false; then :
29006
29007 else
29008   ac_cv_search_getmntent=no
29009 fi
29010 rm conftest.$ac_ext
29011 LIBS=$ac_func_search_save_LIBS
29012 fi
29013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29014 $as_echo "$ac_cv_search_getmntent" >&6; }
29015 ac_res=$ac_cv_search_getmntent
29016 if test "$ac_res" != no; then :
29017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29018   ac_cv_func_getmntent=yes
29019
29020 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29021
29022 else
29023   ac_cv_func_getmntent=no
29024 fi
29025
29026
29027 for ac_func in getmntinfo
29028 do :
29029   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29030 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29031   cat >>confdefs.h <<_ACEOF
29032 #define HAVE_GETMNTINFO 1
29033 _ACEOF
29034  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29035
29036 fi
29037 done
29038
29039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29040 $as_echo_n "checking whether closedir returns void... " >&6; }
29041 if ${ac_cv_func_closedir_void+:} false; then :
29042   $as_echo_n "(cached) " >&6
29043 else
29044   if test "$cross_compiling" = yes; then :
29045   ac_cv_func_closedir_void=yes
29046 else
29047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29048 /* end confdefs.h.  */
29049 $ac_includes_default
29050 #include <$ac_header_dirent>
29051 #ifndef __cplusplus
29052 int closedir ();
29053 #endif
29054
29055 int
29056 main ()
29057 {
29058 return closedir (opendir (".")) != 0;
29059   ;
29060   return 0;
29061 }
29062 _ACEOF
29063 if ac_fn_c_try_run "$LINENO"; then :
29064   ac_cv_func_closedir_void=no
29065 else
29066   ac_cv_func_closedir_void=yes
29067 fi
29068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29069   conftest.$ac_objext conftest.beam conftest.$ac_ext
29070 fi
29071
29072 fi
29073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29074 $as_echo "$ac_cv_func_closedir_void" >&6; }
29075 if test $ac_cv_func_closedir_void = yes; then
29076
29077 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29078
29079 fi
29080
29081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29082 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29083 if ${ac_cv_func_setpgrp_void+:} false; then :
29084   $as_echo_n "(cached) " >&6
29085 else
29086   if test "$cross_compiling" = yes; then :
29087   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29088 else
29089   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29090 /* end confdefs.h.  */
29091 $ac_includes_default
29092 int
29093 main ()
29094 {
29095 /* If this system has a BSD-style setpgrp which takes arguments,
29096   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29097   exit successfully. */
29098   return setpgrp (1,1) != -1;
29099   ;
29100   return 0;
29101 }
29102 _ACEOF
29103 if ac_fn_c_try_run "$LINENO"; then :
29104   ac_cv_func_setpgrp_void=no
29105 else
29106   ac_cv_func_setpgrp_void=yes
29107 fi
29108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29109   conftest.$ac_objext conftest.beam conftest.$ac_ext
29110 fi
29111
29112 fi
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29114 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29115 if test $ac_cv_func_setpgrp_void = yes; then
29116
29117 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29118
29119 fi
29120             # AC_FUNC_FNMATCH    dnl use local version
29121
29122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29123 $as_echo_n "checking for gettext in -lintl... " >&6; }
29124 if ${ac_cv_lib_intl_gettext+:} false; then :
29125   $as_echo_n "(cached) " >&6
29126 else
29127   ac_check_lib_save_LIBS=$LIBS
29128 LIBS="-lintl  $LIBS"
29129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29130 /* end confdefs.h.  */
29131
29132 /* Override any GCC internal prototype to avoid an error.
29133    Use char because int might match the return type of a GCC
29134    builtin and then its argument prototype would still apply.  */
29135 #ifdef __cplusplus
29136 extern "C"
29137 #endif
29138 char gettext ();
29139 int
29140 main ()
29141 {
29142 return gettext ();
29143   ;
29144   return 0;
29145 }
29146 _ACEOF
29147 if ac_fn_c_try_link "$LINENO"; then :
29148   ac_cv_lib_intl_gettext=yes
29149 else
29150   ac_cv_lib_intl_gettext=no
29151 fi
29152 rm -f core conftest.err conftest.$ac_objext \
29153     conftest$ac_exeext conftest.$ac_ext
29154 LIBS=$ac_check_lib_save_LIBS
29155 fi
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29157 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29158 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29159   LIBS="$LIBS -lintl"
29160 fi
29161
29162
29163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29164 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29165 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29166   $as_echo_n "(cached) " >&6
29167 else
29168   ac_check_lib_save_LIBS=$LIBS
29169 LIBS="-lsun  $LIBS"
29170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29171 /* end confdefs.h.  */
29172
29173 /* Override any GCC internal prototype to avoid an error.
29174    Use char because int might match the return type of a GCC
29175    builtin and then its argument prototype would still apply.  */
29176 #ifdef __cplusplus
29177 extern "C"
29178 #endif
29179 char getpwnam ();
29180 int
29181 main ()
29182 {
29183 return getpwnam ();
29184   ;
29185   return 0;
29186 }
29187 _ACEOF
29188 if ac_fn_c_try_link "$LINENO"; then :
29189   ac_cv_lib_sun_getpwnam=yes
29190 else
29191   ac_cv_lib_sun_getpwnam=no
29192 fi
29193 rm -f core conftest.err conftest.$ac_objext \
29194     conftest$ac_exeext conftest.$ac_ext
29195 LIBS=$ac_check_lib_save_LIBS
29196 fi
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29198 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29199 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29200   cat >>confdefs.h <<_ACEOF
29201 #define HAVE_LIBSUN 1
29202 _ACEOF
29203
29204   LIBS="-lsun $LIBS"
29205
29206 fi
29207
29208
29209 for ac_header in zlib.h
29210 do :
29211   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29212 if test "x$ac_cv_header_zlib_h" = xyes; then :
29213   cat >>confdefs.h <<_ACEOF
29214 #define HAVE_ZLIB_H 1
29215 _ACEOF
29216
29217 fi
29218
29219 done
29220
29221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29222 $as_echo_n "checking for deflate in -lz... " >&6; }
29223 if ${ac_cv_lib_z_deflate+:} false; then :
29224   $as_echo_n "(cached) " >&6
29225 else
29226   ac_check_lib_save_LIBS=$LIBS
29227 LIBS="-lz  $LIBS"
29228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29229 /* end confdefs.h.  */
29230
29231 /* Override any GCC internal prototype to avoid an error.
29232    Use char because int might match the return type of a GCC
29233    builtin and then its argument prototype would still apply.  */
29234 #ifdef __cplusplus
29235 extern "C"
29236 #endif
29237 char deflate ();
29238 int
29239 main ()
29240 {
29241 return deflate ();
29242   ;
29243   return 0;
29244 }
29245 _ACEOF
29246 if ac_fn_c_try_link "$LINENO"; then :
29247   ac_cv_lib_z_deflate=yes
29248 else
29249   ac_cv_lib_z_deflate=no
29250 fi
29251 rm -f core conftest.err conftest.$ac_objext \
29252     conftest$ac_exeext conftest.$ac_ext
29253 LIBS=$ac_check_lib_save_LIBS
29254 fi
29255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29256 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29257 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29258   ZLIBS="-lz"
29259 fi
29260
29261 have_zlib=no
29262 if test x$ZLIBS = x-lz; then
29263    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29264
29265    have_zlib=yes
29266 fi
29267
29268
29269 AFS_CFLAGS=""
29270 AFS_LIBS=""
29271 support_afs=auto
29272 # Check whether --enable-afs was given.
29273 if test "${enable_afs+set}" = set; then :
29274   enableval=$enable_afs;
29275        if test x$enableval = xyes; then
29276           support_afs=yes
29277        elif test x$enableval = xno; then
29278           support_afs=no
29279        fi
29280
29281
29282 fi
29283
29284
29285 have_afs=no
29286 if test x$support_afs = xyes -o x$support_afs = xauto; then
29287
29288 # Check whether --with-afsdir was given.
29289 if test "${with_afsdir+set}" = set; then :
29290   withval=$with_afsdir; with_afsdir=$withval
29291
29292 fi
29293
29294
29295             if test x$with_afsdir = x; then
29296       for root in /usr /usr/local; do
29297          if test -d ${root}/include/afs/ ; then
29298             with_afsdir=${root}
29299             break
29300          fi
29301          if test -d ${root}/include/openafs/afs/ ; then
29302             with_afsdir=${root}
29303             break
29304          fi
29305       done
29306    fi
29307
29308    if test -d ${with_afsdir}/include/afs/ ; then
29309       AFS_CFLAGS="-I${with_afsdir}/include"
29310    else
29311       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29312          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29313       fi
29314    fi
29315
29316    saved_CFLAGS="${CFLAGS}"
29317    saved_CPPFLAGS="${CPPFLAGS}"
29318    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29319    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29320
29321    for ac_header in afs/afsint.h
29322 do :
29323   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29324 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29325   cat >>confdefs.h <<_ACEOF
29326 #define HAVE_AFS_AFSINT_H 1
29327 _ACEOF
29328
29329 fi
29330
29331 done
29332
29333    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29334 /* end confdefs.h.  */
29335
29336           #include <afs/afsint.h>
29337           #include <afs/venus.h>
29338
29339 _ACEOF
29340 if ac_fn_c_try_cpp "$LINENO"; then :
29341
29342 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29343
29344
29345 fi
29346 rm -f conftest.err conftest.i conftest.$ac_ext
29347
29348    CFLAGS="${saved_CFLAGS}"
29349    CPPFLAGS="${saved_CPPFLAGS}"
29350
29351             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29352 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29353    for dir in ${with_afsdir}/lib \
29354               ${with_afsdir}/lib/afs \
29355               ${with_afsdir}/lib/openafs \
29356               ${with_afsdir}/lib64 \
29357               ${with_afsdir}/lib64/afs \
29358               ${with_afsdir}/lib64/openafs
29359    do
29360       for arch_type in .a .so
29361       do
29362          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29363          pkg=$?
29364          if test $pkg = 0; then
29365             have_afs=yes
29366             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29367             break
29368          fi
29369       done
29370    done
29371
29372    if test $have_afs = yes; then
29373       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29374 $as_echo "yes" >&6; }
29375    else
29376       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29377 $as_echo "no" >&6; }
29378    fi
29379
29380    if test x$support_afs = xyes -a $have_afs != yes; then
29381       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29382   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29383    else
29384       if test $have_afs = yes; then
29385
29386 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29387
29388
29389 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29390
29391       fi
29392    fi
29393 fi
29394
29395
29396
29397
29398 # Check whether --enable-lzo was given.
29399 if test "${enable_lzo+set}" = set; then :
29400   enableval=$enable_lzo;
29401        if test x$enableval = xno; then
29402           support_lzo=no
29403        fi
29404
29405
29406 fi
29407
29408
29409 LZO_INC=
29410 LZO_LIBS=
29411 LZO_LDFLAGS=
29412
29413 have_lzo="no"
29414 if test x$support_lzo = xyes; then
29415
29416 # Check whether --with-lzo was given.
29417 if test "${with_lzo+set}" = set; then :
29418   withval=$with_lzo;
29419           case "$with_lzo" in
29420           no)
29421              :
29422              ;;
29423           yes|*)
29424              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29425                 LZO_INC="-I${with_lzo}/include"
29426                 LZO_LDFLAGS="-L${with_lzo}/lib"
29427                 with_lzo="${with_lzo}/include"
29428              else
29429                 with_lzo="/usr/include"
29430              fi
29431
29432              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29433 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29435
29436
29437 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29438
29439                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29440                     have_lzo="yes"
29441
29442 else
29443
29444                     echo " "
29445                     echo "lzoconf.h not found. lzo turned off ..."
29446                     echo " "
29447
29448
29449 fi
29450
29451
29452              ;;
29453           esac
29454
29455 else
29456
29457          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29458 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29459
29460             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29461 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29462
29463                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29464 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29465 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29466   $as_echo_n "(cached) " >&6
29467 else
29468   ac_check_lib_save_LIBS=$LIBS
29469 LIBS="-llzo2  $LIBS"
29470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29471 /* end confdefs.h.  */
29472
29473 /* Override any GCC internal prototype to avoid an error.
29474    Use char because int might match the return type of a GCC
29475    builtin and then its argument prototype would still apply.  */
29476 #ifdef __cplusplus
29477 extern "C"
29478 #endif
29479 char lzo1x_1_compress ();
29480 int
29481 main ()
29482 {
29483 return lzo1x_1_compress ();
29484   ;
29485   return 0;
29486 }
29487 _ACEOF
29488 if ac_fn_c_try_link "$LINENO"; then :
29489   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29490 else
29491   ac_cv_lib_lzo2_lzo1x_1_compress=no
29492 fi
29493 rm -f core conftest.err conftest.$ac_objext \
29494     conftest$ac_exeext conftest.$ac_ext
29495 LIBS=$ac_check_lib_save_LIBS
29496 fi
29497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29498 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29499 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29500
29501                  LZO_LIBS="-llzo2"
29502
29503 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29504
29505                  have_lzo=yes
29506
29507 fi
29508
29509
29510 fi
29511
29512
29513
29514 fi
29515
29516
29517
29518 fi
29519
29520 fi
29521
29522
29523
29524
29525
29526 support_acl=auto
29527 # Check whether --enable-acl was given.
29528 if test "${enable_acl+set}" = set; then :
29529   enableval=$enable_acl;
29530        if test x$enableval = xyes; then
29531           support_acl=yes
29532        elif test x$enableval = xno; then
29533           support_acl=no
29534        fi
29535
29536
29537 fi
29538
29539
29540 have_acl=no
29541 have_extended_acl=no
29542 if test x$support_acl = xyes -o x$support_acl = xauto; then
29543    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29544 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29545
29546 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29547
29548 fi
29549
29550
29551
29552             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29553 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29554
29555           have_acl=yes
29556
29557
29558 fi
29559
29560
29561             if test $have_acl = no; then
29562       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29563 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29564 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29565   $as_echo_n "(cached) " >&6
29566 else
29567   ac_check_lib_save_LIBS=$LIBS
29568 LIBS="-lacl  $LIBS"
29569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29570 /* end confdefs.h.  */
29571
29572 /* Override any GCC internal prototype to avoid an error.
29573    Use char because int might match the return type of a GCC
29574    builtin and then its argument prototype would still apply.  */
29575 #ifdef __cplusplus
29576 extern "C"
29577 #endif
29578 char acl_get_file ();
29579 int
29580 main ()
29581 {
29582 return acl_get_file ();
29583   ;
29584   return 0;
29585 }
29586 _ACEOF
29587 if ac_fn_c_try_link "$LINENO"; then :
29588   ac_cv_lib_acl_acl_get_file=yes
29589 else
29590   ac_cv_lib_acl_acl_get_file=no
29591 fi
29592 rm -f core conftest.err conftest.$ac_objext \
29593     conftest$ac_exeext conftest.$ac_ext
29594 LIBS=$ac_check_lib_save_LIBS
29595 fi
29596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29597 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29598 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29599
29600              have_acl=yes
29601              if test $have_afs = yes; then
29602                                                                 if test -d /usr/lib64/; then
29603                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29604                 else
29605                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29606                 fi
29607              else
29608                 FDLIBS="-lacl $FDLIBS"
29609              fi
29610
29611
29612 fi
29613
29614    fi
29615
29616                if test $have_acl = no -a \
29617            x${HAVE_OSF1_OS_TRUE} = x; then
29618       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29619 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29620 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29621   $as_echo_n "(cached) " >&6
29622 else
29623   ac_check_lib_save_LIBS=$LIBS
29624 LIBS="-lpacl  $LIBS"
29625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h.  */
29627
29628 /* Override any GCC internal prototype to avoid an error.
29629    Use char because int might match the return type of a GCC
29630    builtin and then its argument prototype would still apply.  */
29631 #ifdef __cplusplus
29632 extern "C"
29633 #endif
29634 char acl_get_file ();
29635 int
29636 main ()
29637 {
29638 return acl_get_file ();
29639   ;
29640   return 0;
29641 }
29642 _ACEOF
29643 if ac_fn_c_try_link "$LINENO"; then :
29644   ac_cv_lib_pacl_acl_get_file=yes
29645 else
29646   ac_cv_lib_pacl_acl_get_file=no
29647 fi
29648 rm -f core conftest.err conftest.$ac_objext \
29649     conftest$ac_exeext conftest.$ac_ext
29650 LIBS=$ac_check_lib_save_LIBS
29651 fi
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29653 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29654 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29655
29656              have_acl=yes
29657              FDLIBS="-lpacl $FDLIBS"
29658
29659
29660 fi
29661
29662
29663       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29664 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29665       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29666       if test $? = 0; then
29667
29668 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29669
29670          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29671 $as_echo "yes" >&6; }
29672       else
29673          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29674 $as_echo "no" >&6; }
29675       fi
29676    fi
29677
29678             if test $have_acl = yes -a \
29679            x${HAVE_DARWIN_OS_TRUE} = x; then
29680       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29681 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29682       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29683       if test $? = 0; then
29684
29685 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29686
29687          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29688 $as_echo "yes" >&6; }
29689       else
29690          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29691 $as_echo "no" >&6; }
29692       fi
29693    fi
29694
29695             if test $have_acl = yes -a \
29696            x${HAVE_FREEBSD_OS_TRUE} = x; then
29697       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29698 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29699       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29700       if test $? = 0; then
29701
29702 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29703
29704          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29705 $as_echo "yes" >&6; }
29706       else
29707          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29708 $as_echo "no" >&6; }
29709       fi
29710    fi
29711
29712             if test $have_acl = no -a \
29713            x${HAVE_SUN_OS_TRUE} = x; then
29714       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29715 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29716 if ${ac_cv_lib_sec_acltotext+:} false; then :
29717   $as_echo_n "(cached) " >&6
29718 else
29719   ac_check_lib_save_LIBS=$LIBS
29720 LIBS="-lsec  $LIBS"
29721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29722 /* end confdefs.h.  */
29723
29724 /* Override any GCC internal prototype to avoid an error.
29725    Use char because int might match the return type of a GCC
29726    builtin and then its argument prototype would still apply.  */
29727 #ifdef __cplusplus
29728 extern "C"
29729 #endif
29730 char acltotext ();
29731 int
29732 main ()
29733 {
29734 return acltotext ();
29735   ;
29736   return 0;
29737 }
29738 _ACEOF
29739 if ac_fn_c_try_link "$LINENO"; then :
29740   ac_cv_lib_sec_acltotext=yes
29741 else
29742   ac_cv_lib_sec_acltotext=no
29743 fi
29744 rm -f core conftest.err conftest.$ac_objext \
29745     conftest$ac_exeext conftest.$ac_ext
29746 LIBS=$ac_check_lib_save_LIBS
29747 fi
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29749 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29750 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29751
29752              have_acl=yes
29753              FDLIBS="-lsec $FDLIBS"
29754
29755              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29756 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29757 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29758   $as_echo_n "(cached) " >&6
29759 else
29760   ac_check_lib_save_LIBS=$LIBS
29761 LIBS="-lsec  $LIBS"
29762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29763 /* end confdefs.h.  */
29764
29765 /* Override any GCC internal prototype to avoid an error.
29766    Use char because int might match the return type of a GCC
29767    builtin and then its argument prototype would still apply.  */
29768 #ifdef __cplusplus
29769 extern "C"
29770 #endif
29771 char acl_totext ();
29772 int
29773 main ()
29774 {
29775 return acl_totext ();
29776   ;
29777   return 0;
29778 }
29779 _ACEOF
29780 if ac_fn_c_try_link "$LINENO"; then :
29781   ac_cv_lib_sec_acl_totext=yes
29782 else
29783   ac_cv_lib_sec_acl_totext=no
29784 fi
29785 rm -f core conftest.err conftest.$ac_objext \
29786     conftest$ac_exeext conftest.$ac_ext
29787 LIBS=$ac_check_lib_save_LIBS
29788 fi
29789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29790 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29791 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29792
29793                     have_extended_acl=yes
29794
29795
29796 fi
29797
29798
29799
29800 fi
29801
29802    fi
29803
29804             if test $have_acl = no -a \
29805            x${HAVE_AIX_OS_TRUE} = x; then
29806       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29807 if test "x$ac_cv_func_acl_get" = xyes; then :
29808
29809              have_acl=yes
29810
29811              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29812 if test "x$ac_cv_func_aclx_get" = xyes; then :
29813
29814                     have_extended_acl=yes
29815
29816
29817 fi
29818
29819
29820
29821 fi
29822
29823    fi
29824
29825    if test x$support_acl = xyes -a $have_acl != yes; then
29826       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29827   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29828    else
29829       if test $have_acl = yes; then
29830
29831 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29832
29833       fi
29834
29835       if test $have_extended_acl = yes; then
29836
29837 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29838
29839       fi
29840    fi
29841 fi
29842
29843 support_xattr=auto
29844 # Check whether --enable-xattr was given.
29845 if test "${enable_xattr+set}" = set; then :
29846   enableval=$enable_xattr;
29847        if test x$enableval = xyes; then
29848           support_xattr=yes
29849        elif test x$enableval = xno; then
29850           support_xattr=no
29851        fi
29852
29853
29854 fi
29855
29856
29857 have_xattr=no
29858 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29859                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29860            x${HAVE_NETBSD_OS_TRUE} = x -o \
29861            x${HAVE_OPENBSD_OS_TRUE} = x; then
29862       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29863 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29864
29865 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29866
29867 fi
29868
29869
29870       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29871 if test "x$ac_cv_header_libutil_h" = xyes; then :
29872
29873 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29874
29875 fi
29876
29877
29878       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29879 do :
29880   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29881 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29882 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29883   cat >>confdefs.h <<_ACEOF
29884 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29885 _ACEOF
29886
29887              have_xattr=yes
29888
29889 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29890
29891
29892 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29893
29894
29895 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29896
29897
29898
29899 fi
29900 done
29901
29902
29903       if test $have_xattr = no; then
29904          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29905 do :
29906   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29907 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29908 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29909   cat >>confdefs.h <<_ACEOF
29910 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29911 _ACEOF
29912
29913                 have_xattr=yes
29914
29915 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29916
29917
29918 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29919
29920
29921 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29922
29923
29924
29925 fi
29926 done
29927
29928       fi
29929
29930       if test $have_xattr = yes; then
29931          have_extattr_string_in_libc=no
29932          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29933 do :
29934   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29937   cat >>confdefs.h <<_ACEOF
29938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29939 _ACEOF
29940
29941                 have_extattr_string_in_libc=yes
29942
29943 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29944
29945
29946 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29947
29948
29949
29950 fi
29951 done
29952
29953
29954                                  if test $have_extattr_string_in_libc = no; then
29955             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29956 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29957 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29958   $as_echo_n "(cached) " >&6
29959 else
29960   ac_check_lib_save_LIBS=$LIBS
29961 LIBS="-lutil  $LIBS"
29962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29963 /* end confdefs.h.  */
29964
29965 /* Override any GCC internal prototype to avoid an error.
29966    Use char because int might match the return type of a GCC
29967    builtin and then its argument prototype would still apply.  */
29968 #ifdef __cplusplus
29969 extern "C"
29970 #endif
29971 char extattr_namespace_to_string extattr_string_to_namespace ();
29972 int
29973 main ()
29974 {
29975 return extattr_namespace_to_string extattr_string_to_namespace ();
29976   ;
29977   return 0;
29978 }
29979 _ACEOF
29980 if ac_fn_c_try_link "$LINENO"; then :
29981   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29982 else
29983   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29984 fi
29985 rm -f core conftest.err conftest.$ac_objext \
29986     conftest$ac_exeext conftest.$ac_ext
29987 LIBS=$ac_check_lib_save_LIBS
29988 fi
29989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29990 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29991 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29992
29993
29994 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29995
29996
29997 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29998
29999                    FDLIBS="-lutil $FDLIBS"
30000
30001
30002 fi
30003
30004          fi
30005       fi
30006    fi
30007
30008                if test $have_xattr = no -a \
30009            x${HAVE_AIX_OS_TRUE} = x; then
30010       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30011 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30012
30013 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30014
30015 fi
30016
30017
30018       for ac_func in llistea lgetea lsetea
30019 do :
30020   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30023   cat >>confdefs.h <<_ACEOF
30024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30025 _ACEOF
30026
30027              have_xattr=yes
30028
30029 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30030
30031
30032 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30033
30034
30035 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30036
30037
30038
30039 fi
30040 done
30041
30042
30043       if test $have_xattr = no; then
30044          for ac_func in listea getea setea
30045 do :
30046   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30047 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30048 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30049   cat >>confdefs.h <<_ACEOF
30050 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30051 _ACEOF
30052
30053                 have_xattr=yes
30054
30055 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30056
30057
30058 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30059
30060
30061 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30062
30063
30064
30065 fi
30066 done
30067
30068       fi
30069    fi
30070
30071                if test $have_xattr = no -a \
30072            x${HAVE_OSF1_OS_TRUE} = x; then
30073       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30074 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30075
30076 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30077
30078 fi
30079
30080
30081       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30082 do :
30083   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30084 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30085 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30086   cat >>confdefs.h <<_ACEOF
30087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30088 _ACEOF
30089
30090              have_xattr=yes
30091
30092 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30093
30094
30095 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30096
30097
30098 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30099
30100
30101 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30102
30103
30104 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30105
30106
30107
30108 fi
30109 done
30110
30111    fi
30112
30113                if test $have_xattr = no -a \
30114            x${HAVE_SUN_OS_TRUE} = x; then
30115       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30116 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30117
30118 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30119
30120 fi
30121
30122
30123       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30124 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30125
30126 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30127
30128 fi
30129
30130
30131       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30132 if test "x$ac_cv_header_attr_h" = xyes; then :
30133
30134 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30135
30136 fi
30137
30138
30139
30140       for ac_func in openat fstatat unlinkat fchownat futimesat
30141 do :
30142   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30143 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30144 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30145   cat >>confdefs.h <<_ACEOF
30146 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30147 _ACEOF
30148
30149              have_xattr=yes
30150
30151 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30152
30153
30154 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30155
30156
30157 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30158
30159
30160 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30161
30162
30163 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30164
30165
30166
30167 fi
30168 done
30169
30170
30171       if test $have_xattr = yes; then
30172          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30173 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30174 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30175   $as_echo_n "(cached) " >&6
30176 else
30177   ac_check_lib_save_LIBS=$LIBS
30178 LIBS="-lnvpair  $LIBS"
30179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30180 /* end confdefs.h.  */
30181
30182 /* Override any GCC internal prototype to avoid an error.
30183    Use char because int might match the return type of a GCC
30184    builtin and then its argument prototype would still apply.  */
30185 #ifdef __cplusplus
30186 extern "C"
30187 #endif
30188 char nvlist_next_nvpair ();
30189 int
30190 main ()
30191 {
30192 return nvlist_next_nvpair ();
30193   ;
30194   return 0;
30195 }
30196 _ACEOF
30197 if ac_fn_c_try_link "$LINENO"; then :
30198   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30199 else
30200   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30201 fi
30202 rm -f core conftest.err conftest.$ac_objext \
30203     conftest$ac_exeext conftest.$ac_ext
30204 LIBS=$ac_check_lib_save_LIBS
30205 fi
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30207 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30208 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30209
30210
30211 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30212
30213                 FDLIBS="-lnvpair $FDLIBS"
30214
30215
30216 fi
30217
30218       fi
30219    fi
30220
30221             if test $have_xattr = no; then
30222       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30223 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30224
30225 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30226
30227 fi
30228
30229
30230       for ac_func in llistxattr lgetxattr lsetxattr
30231 do :
30232   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30233 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30234 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30235   cat >>confdefs.h <<_ACEOF
30236 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30237 _ACEOF
30238
30239              have_xattr=yes
30240
30241 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30242
30243
30244 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30245
30246
30247 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30248
30249
30250
30251 fi
30252 done
30253
30254
30255       if test $have_xattr = no; then
30256          for ac_func in listxattr getxattr setxattr
30257 do :
30258   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30261   cat >>confdefs.h <<_ACEOF
30262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30263 _ACEOF
30264
30265                 have_xattr=yes
30266
30267 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30268
30269
30270 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30271
30272
30273 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30274
30275
30276
30277 fi
30278 done
30279
30280       fi
30281    fi
30282
30283    if test x$support_xattr = xyes -a $have_xattr != yes; then
30284       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30285   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30286    else
30287       if test $have_xattr = yes; then
30288
30289 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30290
30291       fi
30292    fi
30293 fi
30294
30295 PTHREAD_LIB=""
30296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30297 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30298 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30299   $as_echo_n "(cached) " >&6
30300 else
30301   ac_check_lib_save_LIBS=$LIBS
30302 LIBS="-lpthread  $LIBS"
30303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30304 /* end confdefs.h.  */
30305
30306 /* Override any GCC internal prototype to avoid an error.
30307    Use char because int might match the return type of a GCC
30308    builtin and then its argument prototype would still apply.  */
30309 #ifdef __cplusplus
30310 extern "C"
30311 #endif
30312 char pthread_create ();
30313 int
30314 main ()
30315 {
30316 return pthread_create ();
30317   ;
30318   return 0;
30319 }
30320 _ACEOF
30321 if ac_fn_c_try_link "$LINENO"; then :
30322   ac_cv_lib_pthread_pthread_create=yes
30323 else
30324   ac_cv_lib_pthread_pthread_create=no
30325 fi
30326 rm -f core conftest.err conftest.$ac_objext \
30327     conftest$ac_exeext conftest.$ac_ext
30328 LIBS=$ac_check_lib_save_LIBS
30329 fi
30330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30331 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30332 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30333   PTHREAD_LIB="-lpthread"
30334 else
30335
30336        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30337 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30338 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30339   $as_echo_n "(cached) " >&6
30340 else
30341   ac_check_lib_save_LIBS=$LIBS
30342 LIBS="-lpthreads  $LIBS"
30343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30344 /* end confdefs.h.  */
30345
30346 /* Override any GCC internal prototype to avoid an error.
30347    Use char because int might match the return type of a GCC
30348    builtin and then its argument prototype would still apply.  */
30349 #ifdef __cplusplus
30350 extern "C"
30351 #endif
30352 char pthread_create ();
30353 int
30354 main ()
30355 {
30356 return pthread_create ();
30357   ;
30358   return 0;
30359 }
30360 _ACEOF
30361 if ac_fn_c_try_link "$LINENO"; then :
30362   ac_cv_lib_pthreads_pthread_create=yes
30363 else
30364   ac_cv_lib_pthreads_pthread_create=no
30365 fi
30366 rm -f core conftest.err conftest.$ac_objext \
30367     conftest$ac_exeext conftest.$ac_ext
30368 LIBS=$ac_check_lib_save_LIBS
30369 fi
30370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30371 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30372 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30373   PTHREAD_LIB="-lpthreads"
30374 else
30375
30376               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30377 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30378 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30379   $as_echo_n "(cached) " >&6
30380 else
30381   ac_check_lib_save_LIBS=$LIBS
30382 LIBS="-lc_r  $LIBS"
30383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30384 /* end confdefs.h.  */
30385
30386 /* Override any GCC internal prototype to avoid an error.
30387    Use char because int might match the return type of a GCC
30388    builtin and then its argument prototype would still apply.  */
30389 #ifdef __cplusplus
30390 extern "C"
30391 #endif
30392 char pthread_create ();
30393 int
30394 main ()
30395 {
30396 return pthread_create ();
30397   ;
30398   return 0;
30399 }
30400 _ACEOF
30401 if ac_fn_c_try_link "$LINENO"; then :
30402   ac_cv_lib_c_r_pthread_create=yes
30403 else
30404   ac_cv_lib_c_r_pthread_create=no
30405 fi
30406 rm -f core conftest.err conftest.$ac_objext \
30407     conftest$ac_exeext conftest.$ac_ext
30408 LIBS=$ac_check_lib_save_LIBS
30409 fi
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30411 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30412 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30413   PTHREAD_LIB="-lc_r"
30414 else
30415
30416                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30417 if test "x$ac_cv_func_pthread_create" = xyes; then :
30418
30419 fi
30420
30421
30422
30423 fi
30424
30425
30426
30427 fi
30428
30429
30430
30431 fi
30432
30433
30434 for ac_header in sys/prctl.h sys/capability.h
30435 do :
30436   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30437 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30439   cat >>confdefs.h <<_ACEOF
30440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30441 _ACEOF
30442
30443 fi
30444
30445 done
30446
30447 for ac_func in prctl setreuid
30448 do :
30449   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30450 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30451 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30452   cat >>confdefs.h <<_ACEOF
30453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30454 _ACEOF
30455
30456 fi
30457 done
30458
30459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30460 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30461 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30462   $as_echo_n "(cached) " >&6
30463 else
30464   ac_check_lib_save_LIBS=$LIBS
30465 LIBS="-lcap  $LIBS"
30466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30467 /* end confdefs.h.  */
30468
30469 /* Override any GCC internal prototype to avoid an error.
30470    Use char because int might match the return type of a GCC
30471    builtin and then its argument prototype would still apply.  */
30472 #ifdef __cplusplus
30473 extern "C"
30474 #endif
30475 char cap_set_proc ();
30476 int
30477 main ()
30478 {
30479 return cap_set_proc ();
30480   ;
30481   return 0;
30482 }
30483 _ACEOF
30484 if ac_fn_c_try_link "$LINENO"; then :
30485   ac_cv_lib_cap_cap_set_proc=yes
30486 else
30487   ac_cv_lib_cap_cap_set_proc=no
30488 fi
30489 rm -f core conftest.err conftest.$ac_objext \
30490     conftest$ac_exeext conftest.$ac_ext
30491 LIBS=$ac_check_lib_save_LIBS
30492 fi
30493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30494 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30495 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30496   CAP_LIBS="-lcap"
30497 else
30498   CAP_LIBS=
30499 fi
30500
30501 if test x$CAP_LIBS = x-lcap; then
30502
30503 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30504
30505 fi
30506
30507
30508
30509 $as_echo "#define FDLIBS 1" >>confdefs.h
30510
30511
30512 CFLAGS=${CFLAGS--O}
30513
30514 if test x$have_gcc = xyes ; then
30515    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30516    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30517 fi
30518 LDFLAGS=${LDFLAGS--O}
30519 CPPFLAGS="$CPPFLAGS"
30520 CFLAGS="$CFLAGS"
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535
30536 OBJLIST=
30537
30538
30539 lld="lld"
30540 llu="llu"
30541
30542 WCFLAGS=
30543 WLDFLAGS=
30544
30545 PSCMD="ps -e"
30546 WIN32=
30547 MACOSX=
30548 COMPRESS_MANPAGES=yes
30549
30550 case "$DISTNAME" in
30551 aix)
30552    DISTVER=`uname -r`
30553    PSCMD="ps -e -o pid,comm"
30554    PFILES="${PFILES} platforms/aix/Makefile"
30555    TAPEDRIVE="/dev/rmt0.1"
30556   ;;
30557 alpha)
30558    DISTVER=`uname -r`
30559    PTHREAD_LIB="-lpthread -lexc"
30560    if test "${CC}" = "gcc" ; then
30561       lld="lld"
30562       llu="llu"
30563    else
30564       lld="ld"
30565       llu="lu"
30566    fi
30567    TAPEDRIVE="/dev/nrmt0"
30568   ;;
30569 bsdi)
30570    DISTVER=`uname -a |awk '{print $3}'`
30571    TAPEDRIVE="/dev/nrmt0"
30572    PTHREAD_LIB="-pthread"
30573    CFLAGS="${CFLAGS} -pthread"
30574    PSCMD="ps -ax -o pid,command"
30575    lld="qd"
30576    llu="qu"
30577    PFILES="${PFILES} \
30578        platforms/bsdi/Makefile \
30579        platforms/bsdi/bacula-fd \
30580        platforms/bsdi/bacula-sd \
30581        platforms/bsdi/bacula-dir"
30582    largefile_support="yes"
30583   ;;
30584 cygwin)
30585    DISTVER=`uname -a |awk '{print $3}'`
30586    TAPEDRIVE="/dev/nrst0"
30587    WIN32=win32
30588    WCFLAGS="-mwindows"
30589    WLDFLAGS="-mwindows"
30590   ;;
30591 darwin)
30592    DISTVER=`uname -r`
30593    TAPEDRIVE="/dev/nst0"
30594    PSCMD="ps -e -o pid,command"
30595    MACOSX=macosx
30596    PFILES="${PFILES} \
30597       platforms/darwin/Makefile"
30598   ;;
30599 osx)
30600    DISTVER=`uname -r`
30601    TAPEDRIVE="/dev/nst0"
30602    PSCMD="ps -e -o pid,command"
30603    MACOSX=macosx
30604    PFILES="${PFILES} \
30605       platforms/osx/Makefile"
30606   ;;
30607 debian)
30608    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30609       DISTNAME="ubuntu"
30610    fi
30611    DISTVER=`cat /etc/debian_version`
30612    if test -f /etc/lsb-release ; then
30613       . /etc/lsb-release
30614       if test "x$DISTRIB_ID" != "x" ; then
30615          DISTNAME=$DISTRIB_ID
30616       fi
30617       if test "x$DISTRIB_RELEASE" != "x" ; then
30618          DISTVER=$DISTRIB_RELEASE
30619       fi
30620    fi
30621    if test "$DISTNAME" = "Ubuntu" ; then
30622       DISTNAME="ubuntu"
30623    fi
30624    TAPEDRIVE="/dev/nst0"
30625    PSCMD="ps -e -o pid,command"
30626    if test "$DISTNAME" = "ubuntu" ; then
30627       PFILES="${PFILES} \
30628          platforms/ubuntu/Makefile \
30629          platforms/ubuntu/bacula-fd \
30630          platforms/ubuntu/bacula-sd \
30631          platforms/ubuntu/bacula-dir"
30632    else
30633       PFILES="${PFILES} \
30634          platforms/debian/Makefile \
30635          platforms/debian/bacula-fd \
30636          platforms/debian/bacula-sd \
30637          platforms/debian/bacula-dir"
30638    fi
30639   ;;
30640 freebsd)
30641    DISTVER=`uname -a |awk '{print $3}'`
30642    VER=`echo $DISTVER | cut -c 1`
30643    if test x$VER = x4 ; then
30644       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30645       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30646    fi
30647    lld="qd"
30648    llu="qu"
30649    TAPEDRIVE="/dev/nrsa0"
30650    PSCMD="ps -ax -o pid,command"
30651    PFILES="${PFILES} \
30652        platforms/freebsd/Makefile \
30653        platforms/freebsd/bacula-fd \
30654        platforms/freebsd/bacula-sd \
30655        platforms/freebsd/bacula-dir"
30656    largefile_support="yes"
30657   ;;
30658 hurd)
30659    DISTVER=`uname -r`
30660    TAPEDRIVE="/dev/nst0"
30661    PSCMD="ps -e -o pid,command"
30662    PFILES="${PFILES} \
30663        platforms/hurd/Makefile \
30664        platforms/hurd/bacula-fd \
30665        platforms/hurd/bacula-sd \
30666        platforms/hurd/bacula-dir"
30667   ;;
30668 hpux)
30669    PSCMD="UNIX95=1; ps -e -o pid,comm"
30670    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30671    DISTVER=`uname -r`
30672    TAPEDRIVE="/dev/rmt/0hnb"
30673    PTHREAD_LIB="-lpthread"
30674    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30675
30676   ;;
30677 irix)
30678    DISTVER=`uname -r`
30679    TAPEDRIVE="/dev/rmt/0cbn"
30680    PSCMD="ps -e -o pid,comm"
30681    PFILES="${PFILES} \
30682        platforms/irix/Makefile \
30683        platforms/irix/bacula-fd \
30684        platforms/irix/bacula-sd \
30685        platforms/irix/bacula-dir"
30686   ;;
30687 netbsd)
30688    DISTVER=`uname -a |awk '{print $3}'`
30689    lld="qd"
30690    llu="qu"
30691    TAPEDRIVE="/dev/nrst0"
30692    PSCMD="ps -ax -o pid,command"
30693    PTHREAD_LIB="-pthread"
30694    CFLAGS="${CFLAGS} -pthread"
30695   ;;
30696 openbsd)
30697    DISTVER=`uname -a |awk '{print $3}'`
30698    lld="qd"
30699    llu="qu"
30700    TAPEDRIVE="/dev/nrst0"
30701    PSCMD="ps -ax -o pid,command"
30702    PTHREAD_LIB="-pthread"
30703    CFLAGS="${CFLAGS} -pthread"
30704    PFILES="${PFILES} \
30705        platforms/openbsd/Makefile \
30706        platforms/openbsd/bacula-fd \
30707        platforms/openbsd/bacula-sd \
30708        platforms/openbsd/bacula-dir"
30709   ;;
30710 redhat)
30711    if test -f /etc/whitebox-release ; then
30712       f=/etc/whitebox-release
30713    else
30714       f=/etc/redhat-release
30715    fi
30716    if test `cat $f | grep release |\
30717          cut -f 3 -d ' '`x = "Enterprise"x ; then
30718       DISTVER="Enterprise "`cat $f | grep release |\
30719           cut -f 6 -d ' '`
30720    else
30721        DISTVER=`cat /etc/redhat-release | grep release |\
30722            cut -f 5 -d ' '`
30723    fi
30724    TAPEDRIVE="/dev/nst0"
30725    PSCMD="ps -e -o pid,command"
30726    PFILES="${PFILES} \
30727        platforms/redhat/Makefile \
30728        platforms/redhat/bacula-fd \
30729        platforms/redhat/bacula-sd \
30730        platforms/redhat/bacula-dir
30731        "
30732   ;;
30733 mandrake)
30734    DISTVER=`cat /etc/mandrake-release | grep release |\
30735       cut -f 5 -d ' '`
30736    TAPEDRIVE="/dev/nst0"
30737    PSCMD="ps -e -o pid,command"
30738    PFILES="${PFILES} \
30739        platforms/mandrake/Makefile \
30740        platforms/mandrake/bacula-fd \
30741        platforms/mandrake/bacula-sd \
30742        platforms/mandrake/bacula-dir \
30743        "
30744   ;;
30745 gentoo)
30746    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30747    TAPEDRIVE="/dev/nst0"
30748    PSCMD="ps -e -o pid,command"
30749    PFILES="${PFILES} \
30750        platforms/gentoo/Makefile \
30751     platforms/gentoo/bacula-init \
30752        platforms/gentoo/bacula-fd \
30753        platforms/gentoo/bacula-sd \
30754        platforms/gentoo/bacula-dir"
30755   ;;
30756 slackware)
30757    DISTVER=`cat /etc/slackware-version`
30758    TAPEDRIVE="/dev/nst0"
30759    PSCMD="ps -e -o pid,command"
30760    PFILES="${PFILES} \
30761        platforms/slackware/Makefile \
30762        platforms/slackware/rc.bacula-fd \
30763        platforms/slackware/rc.bacula-sd \
30764        platforms/slackware/rc.bacula-dir\
30765        platforms/slackware/functions.bacula"
30766   ;;
30767 solaris)
30768    DISTVER=`uname -r`
30769    TAPEDRIVE="/dev/rmt/0cbn"
30770    PSCMD="ps -e -o pid,comm"
30771    PFILES="${PFILES} \
30772        platforms/solaris/Makefile \
30773        platforms/solaris/bacula-fd \
30774        platforms/solaris/bacula-sd \
30775        platforms/solaris/bacula-dir"
30776    COMPRESS_MANPAGES=
30777    case ${DISTVER} in
30778    5.5|5.6)
30779       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30780
30781       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30782
30783       ;;
30784    5.7|5.8)
30785       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30786
30787       ;;
30788    *)
30789       ;;
30790    esac
30791    LIBS="$LIBS -lresolv -lrt"
30792   ;;
30793 suse)
30794    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30795        cut -f 3 -d ' '`
30796    TAPEDRIVE="/dev/nst0"
30797    PSCMD="ps -e -o pid,command"
30798    PFILES="${PFILES} \
30799        platforms/suse/Makefile \
30800        platforms/suse/bacula-fd \
30801        platforms/suse/bacula-sd \
30802        platforms/suse/bacula-dir \
30803        platforms/suse/bacula"
30804   ;;
30805 suse5)
30806    DISTNAME=suse
30807    DISTVER=5.x
30808    TAPEDRIVE="/dev/nst0"
30809    PSCMD="ps -e -o pid,command"
30810    PFILES="${PFILES} \
30811        platforms/suse/Makefile \
30812        platforms/suse/bacula-fd \
30813        platforms/suse/bacula-sd \
30814        platforms/suse/bacula-dir"
30815   ;;
30816 unknown)
30817    DISTVER=unknown
30818    TAPEDRIVE="/dev/nst0"
30819   ;;
30820 *)
30821   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30822   ;;
30823 esac
30824
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30826 $as_echo_n "checking for systemd support... " >&6; }
30827
30828 # Check whether --with-systemd was given.
30829 if test "${with_systemd+set}" = set; then :
30830   withval=$with_systemd;
30831        if test "$withval" != "no"; then
30832            if test "$withval" = "yes"; then
30833                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30834            else
30835                SYSTEMD_UNITDIR="${withval}"
30836            fi
30837
30838            PFILES="${PFILES} \
30839                    platforms/systemd/Makefile \
30840                    platforms/systemd/bacula-dir.service \
30841                    platforms/systemd/bacula-fd.service \
30842                    platforms/systemd/bacula-sd.service"
30843
30844 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30845
30846            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30847 $as_echo "yes" >&6; }
30848            support_systemd="yes"
30849        else
30850            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30851 $as_echo "no" >&6; }
30852            support_systemd="no"
30853        fi
30854
30855 else
30856
30857        support_systemd="no"
30858        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30859 $as_echo "no" >&6; }
30860
30861
30862 fi
30863
30864
30865
30866
30867
30868 LIBS="$PTHREAD_LIB $LIBS"
30869
30870 cat >>confdefs.h <<_ACEOF
30871 #define lld "$lld"
30872 _ACEOF
30873
30874 cat >>confdefs.h <<_ACEOF
30875 #define llu "$llu"
30876 _ACEOF
30877
30878
30879
30880
30881
30882
30883
30884
30885
30886 MCOMMON=./autoconf/Make.common
30887
30888
30889 if test "x${subsysdir}" = "x${sbindir}" ; then
30890    echo " "
30891    echo " "
30892    echo "You have set both --sbindir and --with-subsys-dir"
30893    echo "  equal to: ${subsysdir} "
30894    echo "This is not permitted. Please reconfigure."
30895    echo " "
30896    echo "Aborting configuration ..."
30897    echo " "
30898    echo " "
30899    exit 1
30900 fi
30901
30902
30903 ac_config_files="$ac_config_files autoconf/Make.common Makefile manpages/Makefile scripts/btraceback scripts/bconsole scripts/bacula scripts/bacula-ctl-dir scripts/bacula-ctl-fd scripts/bacula-ctl-sd scripts/devel_bacula scripts/Makefile scripts/logrotate scripts/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 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 updatedb/update_mysql_tables_12_to_13 updatedb/update_postgresql_tables_12_to_13 updatedb/update_mysql_tables_13_to_14 updatedb/update_postgresql_tables_13_to_14 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"
30904
30905 ac_config_commands="$ac_config_commands default"
30906
30907 cat >confcache <<\_ACEOF
30908 # This file is a shell script that caches the results of configure
30909 # tests run on this system so they can be shared between configure
30910 # scripts and configure runs, see configure's option --config-cache.
30911 # It is not useful on other systems.  If it contains results you don't
30912 # want to keep, you may remove or edit it.
30913 #
30914 # config.status only pays attention to the cache file if you give it
30915 # the --recheck option to rerun configure.
30916 #
30917 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30918 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30919 # following values.
30920
30921 _ACEOF
30922
30923 # The following way of writing the cache mishandles newlines in values,
30924 # but we know of no workaround that is simple, portable, and efficient.
30925 # So, we kill variables containing newlines.
30926 # Ultrix sh set writes to stderr and can't be redirected directly,
30927 # and sets the high bit in the cache file unless we assign to the vars.
30928 (
30929   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30930     eval ac_val=\$$ac_var
30931     case $ac_val in #(
30932     *${as_nl}*)
30933       case $ac_var in #(
30934       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30935 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30936       esac
30937       case $ac_var in #(
30938       _ | IFS | as_nl) ;; #(
30939       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30940       *) { eval $ac_var=; unset $ac_var;} ;;
30941       esac ;;
30942     esac
30943   done
30944
30945   (set) 2>&1 |
30946     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30947     *${as_nl}ac_space=\ *)
30948       # `set' does not quote correctly, so add quotes: double-quote
30949       # substitution turns \\\\ into \\, and sed turns \\ into \.
30950       sed -n \
30951         "s/'/'\\\\''/g;
30952           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30953       ;; #(
30954     *)
30955       # `set' quotes correctly as required by POSIX, so do not add quotes.
30956       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30957       ;;
30958     esac |
30959     sort
30960 ) |
30961   sed '
30962      /^ac_cv_env_/b end
30963      t clear
30964      :clear
30965      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30966      t end
30967      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30968      :end' >>confcache
30969 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30970   if test -w "$cache_file"; then
30971     if test "x$cache_file" != "x/dev/null"; then
30972       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30973 $as_echo "$as_me: updating cache $cache_file" >&6;}
30974       if test ! -f "$cache_file" || test -h "$cache_file"; then
30975         cat confcache >"$cache_file"
30976       else
30977         case $cache_file in #(
30978         */* | ?:*)
30979           mv -f confcache "$cache_file"$$ &&
30980           mv -f "$cache_file"$$ "$cache_file" ;; #(
30981         *)
30982           mv -f confcache "$cache_file" ;;
30983         esac
30984       fi
30985     fi
30986   else
30987     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30988 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30989   fi
30990 fi
30991 rm -f confcache
30992
30993 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30994 # Let make expand exec_prefix.
30995 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30996
30997 DEFS=-DHAVE_CONFIG_H
30998
30999 ac_libobjs=
31000 ac_ltlibobjs=
31001 U=
31002 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31003   # 1. Remove the extension, and $U if already installed.
31004   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31005   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31006   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31007   #    will be set to the directory where LIBOBJS objects are built.
31008   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31009   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31010 done
31011 LIBOBJS=$ac_libobjs
31012
31013 LTLIBOBJS=$ac_ltlibobjs
31014
31015
31016
31017
31018 : "${CONFIG_STATUS=./config.status}"
31019 ac_write_fail=0
31020 ac_clean_files_save=$ac_clean_files
31021 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31023 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31024 as_write_fail=0
31025 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31026 #! $SHELL
31027 # Generated by $as_me.
31028 # Run this file to recreate the current configuration.
31029 # Compiler output produced by configure, useful for debugging
31030 # configure, is in config.log if it exists.
31031
31032 debug=false
31033 ac_cs_recheck=false
31034 ac_cs_silent=false
31035
31036 SHELL=\${CONFIG_SHELL-$SHELL}
31037 export SHELL
31038 _ASEOF
31039 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31040 ## -------------------- ##
31041 ## M4sh Initialization. ##
31042 ## -------------------- ##
31043
31044 # Be more Bourne compatible
31045 DUALCASE=1; export DUALCASE # for MKS sh
31046 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31047   emulate sh
31048   NULLCMD=:
31049   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31050   # is contrary to our usage.  Disable this feature.
31051   alias -g '${1+"$@"}'='"$@"'
31052   setopt NO_GLOB_SUBST
31053 else
31054   case `(set -o) 2>/dev/null` in #(
31055   *posix*) :
31056     set -o posix ;; #(
31057   *) :
31058      ;;
31059 esac
31060 fi
31061
31062
31063 as_nl='
31064 '
31065 export as_nl
31066 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31067 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31069 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31070 # Prefer a ksh shell builtin over an external printf program on Solaris,
31071 # but without wasting forks for bash or zsh.
31072 if test -z "$BASH_VERSION$ZSH_VERSION" \
31073     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31074   as_echo='print -r --'
31075   as_echo_n='print -rn --'
31076 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31077   as_echo='printf %s\n'
31078   as_echo_n='printf %s'
31079 else
31080   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31081     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31082     as_echo_n='/usr/ucb/echo -n'
31083   else
31084     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31085     as_echo_n_body='eval
31086       arg=$1;
31087       case $arg in #(
31088       *"$as_nl"*)
31089         expr "X$arg" : "X\\(.*\\)$as_nl";
31090         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31091       esac;
31092       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31093     '
31094     export as_echo_n_body
31095     as_echo_n='sh -c $as_echo_n_body as_echo'
31096   fi
31097   export as_echo_body
31098   as_echo='sh -c $as_echo_body as_echo'
31099 fi
31100
31101 # The user is always right.
31102 if test "${PATH_SEPARATOR+set}" != set; then
31103   PATH_SEPARATOR=:
31104   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31105     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31106       PATH_SEPARATOR=';'
31107   }
31108 fi
31109
31110
31111 # IFS
31112 # We need space, tab and new line, in precisely that order.  Quoting is
31113 # there to prevent editors from complaining about space-tab.
31114 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31115 # splitting by setting IFS to empty value.)
31116 IFS=" ""        $as_nl"
31117
31118 # Find who we are.  Look in the path if we contain no directory separator.
31119 as_myself=
31120 case $0 in #((
31121   *[\\/]* ) as_myself=$0 ;;
31122   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31123 for as_dir in $PATH
31124 do
31125   IFS=$as_save_IFS
31126   test -z "$as_dir" && as_dir=.
31127     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31128   done
31129 IFS=$as_save_IFS
31130
31131      ;;
31132 esac
31133 # We did not find ourselves, most probably we were run as `sh COMMAND'
31134 # in which case we are not to be found in the path.
31135 if test "x$as_myself" = x; then
31136   as_myself=$0
31137 fi
31138 if test ! -f "$as_myself"; then
31139   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31140   exit 1
31141 fi
31142
31143 # Unset variables that we do not need and which cause bugs (e.g. in
31144 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31145 # suppresses any "Segmentation fault" message there.  '((' could
31146 # trigger a bug in pdksh 5.2.14.
31147 for as_var in BASH_ENV ENV MAIL MAILPATH
31148 do eval test x\${$as_var+set} = xset \
31149   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31150 done
31151 PS1='$ '
31152 PS2='> '
31153 PS4='+ '
31154
31155 # NLS nuisances.
31156 LC_ALL=C
31157 export LC_ALL
31158 LANGUAGE=C
31159 export LANGUAGE
31160
31161 # CDPATH.
31162 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31163
31164
31165 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31166 # ----------------------------------------
31167 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31168 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31169 # script with STATUS, using 1 if that was 0.
31170 as_fn_error ()
31171 {
31172   as_status=$1; test $as_status -eq 0 && as_status=1
31173   if test "$4"; then
31174     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31175     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31176   fi
31177   $as_echo "$as_me: error: $2" >&2
31178   as_fn_exit $as_status
31179 } # as_fn_error
31180
31181
31182 # as_fn_set_status STATUS
31183 # -----------------------
31184 # Set $? to STATUS, without forking.
31185 as_fn_set_status ()
31186 {
31187   return $1
31188 } # as_fn_set_status
31189
31190 # as_fn_exit STATUS
31191 # -----------------
31192 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31193 as_fn_exit ()
31194 {
31195   set +e
31196   as_fn_set_status $1
31197   exit $1
31198 } # as_fn_exit
31199
31200 # as_fn_unset VAR
31201 # ---------------
31202 # Portably unset VAR.
31203 as_fn_unset ()
31204 {
31205   { eval $1=; unset $1;}
31206 }
31207 as_unset=as_fn_unset
31208 # as_fn_append VAR VALUE
31209 # ----------------------
31210 # Append the text in VALUE to the end of the definition contained in VAR. Take
31211 # advantage of any shell optimizations that allow amortized linear growth over
31212 # repeated appends, instead of the typical quadratic growth present in naive
31213 # implementations.
31214 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31215   eval 'as_fn_append ()
31216   {
31217     eval $1+=\$2
31218   }'
31219 else
31220   as_fn_append ()
31221   {
31222     eval $1=\$$1\$2
31223   }
31224 fi # as_fn_append
31225
31226 # as_fn_arith ARG...
31227 # ------------------
31228 # Perform arithmetic evaluation on the ARGs, and store the result in the
31229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31230 # must be portable across $(()) and expr.
31231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31232   eval 'as_fn_arith ()
31233   {
31234     as_val=$(( $* ))
31235   }'
31236 else
31237   as_fn_arith ()
31238   {
31239     as_val=`expr "$@" || test $? -eq 1`
31240   }
31241 fi # as_fn_arith
31242
31243
31244 if expr a : '\(a\)' >/dev/null 2>&1 &&
31245    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31246   as_expr=expr
31247 else
31248   as_expr=false
31249 fi
31250
31251 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31252   as_basename=basename
31253 else
31254   as_basename=false
31255 fi
31256
31257 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31258   as_dirname=dirname
31259 else
31260   as_dirname=false
31261 fi
31262
31263 as_me=`$as_basename -- "$0" ||
31264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31265          X"$0" : 'X\(//\)$' \| \
31266          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31267 $as_echo X/"$0" |
31268     sed '/^.*\/\([^/][^/]*\)\/*$/{
31269             s//\1/
31270             q
31271           }
31272           /^X\/\(\/\/\)$/{
31273             s//\1/
31274             q
31275           }
31276           /^X\/\(\/\).*/{
31277             s//\1/
31278             q
31279           }
31280           s/.*/./; q'`
31281
31282 # Avoid depending upon Character Ranges.
31283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31286 as_cr_digits='0123456789'
31287 as_cr_alnum=$as_cr_Letters$as_cr_digits
31288
31289 ECHO_C= ECHO_N= ECHO_T=
31290 case `echo -n x` in #(((((
31291 -n*)
31292   case `echo 'xy\c'` in
31293   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31294   xy)  ECHO_C='\c';;
31295   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31296        ECHO_T=' ';;
31297   esac;;
31298 *)
31299   ECHO_N='-n';;
31300 esac
31301
31302 rm -f conf$$ conf$$.exe conf$$.file
31303 if test -d conf$$.dir; then
31304   rm -f conf$$.dir/conf$$.file
31305 else
31306   rm -f conf$$.dir
31307   mkdir conf$$.dir 2>/dev/null
31308 fi
31309 if (echo >conf$$.file) 2>/dev/null; then
31310   if ln -s conf$$.file conf$$ 2>/dev/null; then
31311     as_ln_s='ln -s'
31312     # ... but there are two gotchas:
31313     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31314     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31315     # In both cases, we have to default to `cp -pR'.
31316     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31317       as_ln_s='cp -pR'
31318   elif ln conf$$.file conf$$ 2>/dev/null; then
31319     as_ln_s=ln
31320   else
31321     as_ln_s='cp -pR'
31322   fi
31323 else
31324   as_ln_s='cp -pR'
31325 fi
31326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31327 rmdir conf$$.dir 2>/dev/null
31328
31329
31330 # as_fn_mkdir_p
31331 # -------------
31332 # Create "$as_dir" as a directory, including parents if necessary.
31333 as_fn_mkdir_p ()
31334 {
31335
31336   case $as_dir in #(
31337   -*) as_dir=./$as_dir;;
31338   esac
31339   test -d "$as_dir" || eval $as_mkdir_p || {
31340     as_dirs=
31341     while :; do
31342       case $as_dir in #(
31343       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31344       *) as_qdir=$as_dir;;
31345       esac
31346       as_dirs="'$as_qdir' $as_dirs"
31347       as_dir=`$as_dirname -- "$as_dir" ||
31348 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31349          X"$as_dir" : 'X\(//\)[^/]' \| \
31350          X"$as_dir" : 'X\(//\)$' \| \
31351          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31352 $as_echo X"$as_dir" |
31353     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31354             s//\1/
31355             q
31356           }
31357           /^X\(\/\/\)[^/].*/{
31358             s//\1/
31359             q
31360           }
31361           /^X\(\/\/\)$/{
31362             s//\1/
31363             q
31364           }
31365           /^X\(\/\).*/{
31366             s//\1/
31367             q
31368           }
31369           s/.*/./; q'`
31370       test -d "$as_dir" && break
31371     done
31372     test -z "$as_dirs" || eval "mkdir $as_dirs"
31373   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31374
31375
31376 } # as_fn_mkdir_p
31377 if mkdir -p . 2>/dev/null; then
31378   as_mkdir_p='mkdir -p "$as_dir"'
31379 else
31380   test -d ./-p && rmdir ./-p
31381   as_mkdir_p=false
31382 fi
31383
31384
31385 # as_fn_executable_p FILE
31386 # -----------------------
31387 # Test if FILE is an executable regular file.
31388 as_fn_executable_p ()
31389 {
31390   test -f "$1" && test -x "$1"
31391 } # as_fn_executable_p
31392 as_test_x='test -x'
31393 as_executable_p=as_fn_executable_p
31394
31395 # Sed expression to map a string onto a valid CPP name.
31396 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31397
31398 # Sed expression to map a string onto a valid variable name.
31399 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31400
31401
31402 exec 6>&1
31403 ## ----------------------------------- ##
31404 ## Main body of $CONFIG_STATUS script. ##
31405 ## ----------------------------------- ##
31406 _ASEOF
31407 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31408
31409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31410 # Save the log message, to keep $0 and so on meaningful, and to
31411 # report actual input values of CONFIG_FILES etc. instead of their
31412 # values after options handling.
31413 ac_log="
31414 This file was extended by bacula $as_me 7.2.1, which was
31415 generated by GNU Autoconf 2.69.  Invocation command line was
31416
31417   CONFIG_FILES    = $CONFIG_FILES
31418   CONFIG_HEADERS  = $CONFIG_HEADERS
31419   CONFIG_LINKS    = $CONFIG_LINKS
31420   CONFIG_COMMANDS = $CONFIG_COMMANDS
31421   $ $0 $@
31422
31423 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31424 "
31425
31426 _ACEOF
31427
31428 case $ac_config_files in *"
31429 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31430 esac
31431
31432 case $ac_config_headers in *"
31433 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31434 esac
31435
31436
31437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31438 # Files that config.status was made for.
31439 config_files="$ac_config_files"
31440 config_headers="$ac_config_headers"
31441 config_commands="$ac_config_commands"
31442
31443 _ACEOF
31444
31445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31446 ac_cs_usage="\
31447 \`$as_me' instantiates files and other configuration actions
31448 from templates according to the current configuration.  Unless the files
31449 and actions are specified as TAGs, all are instantiated by default.
31450
31451 Usage: $0 [OPTION]... [TAG]...
31452
31453   -h, --help       print this help, then exit
31454   -V, --version    print version number and configuration settings, then exit
31455       --config     print configuration, then exit
31456   -q, --quiet, --silent
31457                    do not print progress messages
31458   -d, --debug      don't remove temporary files
31459       --recheck    update $as_me by reconfiguring in the same conditions
31460       --file=FILE[:TEMPLATE]
31461                    instantiate the configuration file FILE
31462       --header=FILE[:TEMPLATE]
31463                    instantiate the configuration header FILE
31464
31465 Configuration files:
31466 $config_files
31467
31468 Configuration headers:
31469 $config_headers
31470
31471 Configuration commands:
31472 $config_commands
31473
31474 Report bugs to the package provider."
31475
31476 _ACEOF
31477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31478 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31479 ac_cs_version="\\
31480 bacula config.status 7.2.1
31481 configured by $0, generated by GNU Autoconf 2.69,
31482   with options \\"\$ac_cs_config\\"
31483
31484 Copyright (C) 2012 Free Software Foundation, Inc.
31485 This config.status script is free software; the Free Software Foundation
31486 gives unlimited permission to copy, distribute and modify it."
31487
31488 ac_pwd='$ac_pwd'
31489 srcdir='$srcdir'
31490 INSTALL='$INSTALL'
31491 AWK='$AWK'
31492 test -n "\$AWK" || AWK=awk
31493 _ACEOF
31494
31495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31496 # The default lists apply if the user does not specify any file.
31497 ac_need_defaults=:
31498 while test $# != 0
31499 do
31500   case $1 in
31501   --*=?*)
31502     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31503     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31504     ac_shift=:
31505     ;;
31506   --*=)
31507     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31508     ac_optarg=
31509     ac_shift=:
31510     ;;
31511   *)
31512     ac_option=$1
31513     ac_optarg=$2
31514     ac_shift=shift
31515     ;;
31516   esac
31517
31518   case $ac_option in
31519   # Handling of the options.
31520   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31521     ac_cs_recheck=: ;;
31522   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31523     $as_echo "$ac_cs_version"; exit ;;
31524   --config | --confi | --conf | --con | --co | --c )
31525     $as_echo "$ac_cs_config"; exit ;;
31526   --debug | --debu | --deb | --de | --d | -d )
31527     debug=: ;;
31528   --file | --fil | --fi | --f )
31529     $ac_shift
31530     case $ac_optarg in
31531     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31532     '') as_fn_error $? "missing file argument" ;;
31533     esac
31534     as_fn_append CONFIG_FILES " '$ac_optarg'"
31535     ac_need_defaults=false;;
31536   --header | --heade | --head | --hea )
31537     $ac_shift
31538     case $ac_optarg in
31539     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31540     esac
31541     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31542     ac_need_defaults=false;;
31543   --he | --h)
31544     # Conflict between --help and --header
31545     as_fn_error $? "ambiguous option: \`$1'
31546 Try \`$0 --help' for more information.";;
31547   --help | --hel | -h )
31548     $as_echo "$ac_cs_usage"; exit ;;
31549   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31550   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31551     ac_cs_silent=: ;;
31552
31553   # This is an error.
31554   -*) as_fn_error $? "unrecognized option: \`$1'
31555 Try \`$0 --help' for more information." ;;
31556
31557   *) as_fn_append ac_config_targets " $1"
31558      ac_need_defaults=false ;;
31559
31560   esac
31561   shift
31562 done
31563
31564 ac_configure_extra_args=
31565
31566 if $ac_cs_silent; then
31567   exec 6>/dev/null
31568   ac_configure_extra_args="$ac_configure_extra_args --silent"
31569 fi
31570
31571 _ACEOF
31572 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31573 if \$ac_cs_recheck; then
31574   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31575   shift
31576   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31577   CONFIG_SHELL='$SHELL'
31578   export CONFIG_SHELL
31579   exec "\$@"
31580 fi
31581
31582 _ACEOF
31583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31584 exec 5>>config.log
31585 {
31586   echo
31587   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31588 ## Running $as_me. ##
31589 _ASBOX
31590   $as_echo "$ac_log"
31591 } >&5
31592
31593 _ACEOF
31594 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31595 #
31596 # INIT-COMMANDS
31597 #
31598
31599
31600 # The HP-UX ksh and POSIX shell print the target directory to stdout
31601 # if CDPATH is set.
31602 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31603
31604 sed_quote_subst='$sed_quote_subst'
31605 double_quote_subst='$double_quote_subst'
31606 delay_variable_subst='$delay_variable_subst'
31607 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31608 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31610 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31611 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31612 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31615 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31616 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31617 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31618 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31619 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31620 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31621 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31622 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31623 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31624 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31625 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31626 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31627 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31628 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31629 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31630 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31631 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31632 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31633 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31634 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31635 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31638 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31639 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31640 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31641 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31642 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31643 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31644 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31645 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31646 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31647 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31648 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31649 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31650 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31651 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31652 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31654 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31655 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31656 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31657 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31658 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31659 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31662 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31663 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"`'
31664 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31665 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31666 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31667 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31671 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31672 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31673 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31674 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31675 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31676 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31677 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31678 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31679 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31680 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31681 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31682 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31683 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31684 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31685 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31687 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31689 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31691 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31693 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31694 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31695 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31698 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31700 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31701 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31702 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31703 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31704 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31705 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31706 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31707 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31708 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31709 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31710 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31711 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31712 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31713 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31714 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31715 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31716 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31717 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31719 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31720 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31721 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31722 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31723 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31724 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31727 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31728 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31730 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31731 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31734 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31735 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31736 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31737 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31738 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31739 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31740 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31741 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31742 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31743 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31745 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31747 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31748 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31753 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31754 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31755 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31756 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31758 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31765 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31766 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31774 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31775 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31776 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31777 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31778 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31779 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31780 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31781 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31782 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31783 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31784 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31785 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31786 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31787 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31788 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31789 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31790 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31791
31792 LTCC='$LTCC'
31793 LTCFLAGS='$LTCFLAGS'
31794 compiler='$compiler_DEFAULT'
31795
31796 # A function that is used when there is no print builtin or printf.
31797 func_fallback_echo ()
31798 {
31799   eval 'cat <<_LTECHO_EOF
31800 \$1
31801 _LTECHO_EOF'
31802 }
31803
31804 # Quote evaled strings.
31805 for var in SHELL \
31806 ECHO \
31807 PATH_SEPARATOR \
31808 SED \
31809 GREP \
31810 EGREP \
31811 FGREP \
31812 LD \
31813 NM \
31814 LN_S \
31815 lt_SP2NL \
31816 lt_NL2SP \
31817 reload_flag \
31818 OBJDUMP \
31819 deplibs_check_method \
31820 file_magic_cmd \
31821 file_magic_glob \
31822 want_nocaseglob \
31823 DLLTOOL \
31824 sharedlib_from_linklib_cmd \
31825 AR \
31826 AR_FLAGS \
31827 archiver_list_spec \
31828 STRIP \
31829 RANLIB \
31830 CC \
31831 CFLAGS \
31832 compiler \
31833 lt_cv_sys_global_symbol_pipe \
31834 lt_cv_sys_global_symbol_to_cdecl \
31835 lt_cv_sys_global_symbol_to_c_name_address \
31836 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31837 nm_file_list_spec \
31838 lt_prog_compiler_no_builtin_flag \
31839 lt_prog_compiler_pic \
31840 lt_prog_compiler_wl \
31841 lt_prog_compiler_static \
31842 lt_cv_prog_compiler_c_o \
31843 need_locks \
31844 MANIFEST_TOOL \
31845 DSYMUTIL \
31846 NMEDIT \
31847 LIPO \
31848 OTOOL \
31849 OTOOL64 \
31850 shrext_cmds \
31851 export_dynamic_flag_spec \
31852 whole_archive_flag_spec \
31853 compiler_needs_object \
31854 with_gnu_ld \
31855 allow_undefined_flag \
31856 no_undefined_flag \
31857 hardcode_libdir_flag_spec \
31858 hardcode_libdir_separator \
31859 exclude_expsyms \
31860 include_expsyms \
31861 file_list_spec \
31862 variables_saved_for_relink \
31863 libname_spec \
31864 library_names_spec \
31865 soname_spec \
31866 install_override_mode \
31867 finish_eval \
31868 old_striplib \
31869 striplib \
31870 compiler_lib_search_dirs \
31871 predep_objects \
31872 postdep_objects \
31873 predeps \
31874 postdeps \
31875 compiler_lib_search_path \
31876 LD_CXX \
31877 reload_flag_CXX \
31878 compiler_CXX \
31879 lt_prog_compiler_no_builtin_flag_CXX \
31880 lt_prog_compiler_pic_CXX \
31881 lt_prog_compiler_wl_CXX \
31882 lt_prog_compiler_static_CXX \
31883 lt_cv_prog_compiler_c_o_CXX \
31884 export_dynamic_flag_spec_CXX \
31885 whole_archive_flag_spec_CXX \
31886 compiler_needs_object_CXX \
31887 with_gnu_ld_CXX \
31888 allow_undefined_flag_CXX \
31889 no_undefined_flag_CXX \
31890 hardcode_libdir_flag_spec_CXX \
31891 hardcode_libdir_separator_CXX \
31892 exclude_expsyms_CXX \
31893 include_expsyms_CXX \
31894 file_list_spec_CXX \
31895 compiler_lib_search_dirs_CXX \
31896 predep_objects_CXX \
31897 postdep_objects_CXX \
31898 predeps_CXX \
31899 postdeps_CXX \
31900 compiler_lib_search_path_CXX; do
31901     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31902     *[\\\\\\\`\\"\\\$]*)
31903       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31904       ;;
31905     *)
31906       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31907       ;;
31908     esac
31909 done
31910
31911 # Double-quote double-evaled strings.
31912 for var in reload_cmds \
31913 old_postinstall_cmds \
31914 old_postuninstall_cmds \
31915 old_archive_cmds \
31916 extract_expsyms_cmds \
31917 old_archive_from_new_cmds \
31918 old_archive_from_expsyms_cmds \
31919 archive_cmds \
31920 archive_expsym_cmds \
31921 module_cmds \
31922 module_expsym_cmds \
31923 export_symbols_cmds \
31924 prelink_cmds \
31925 postlink_cmds \
31926 postinstall_cmds \
31927 postuninstall_cmds \
31928 finish_cmds \
31929 sys_lib_search_path_spec \
31930 sys_lib_dlsearch_path_spec \
31931 reload_cmds_CXX \
31932 old_archive_cmds_CXX \
31933 old_archive_from_new_cmds_CXX \
31934 old_archive_from_expsyms_cmds_CXX \
31935 archive_cmds_CXX \
31936 archive_expsym_cmds_CXX \
31937 module_cmds_CXX \
31938 module_expsym_cmds_CXX \
31939 export_symbols_cmds_CXX \
31940 prelink_cmds_CXX \
31941 postlink_cmds_CXX; do
31942     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31943     *[\\\\\\\`\\"\\\$]*)
31944       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31945       ;;
31946     *)
31947       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31948       ;;
31949     esac
31950 done
31951
31952 ac_aux_dir='$ac_aux_dir'
31953 xsi_shell='$xsi_shell'
31954 lt_shell_append='$lt_shell_append'
31955
31956 # See if we are running on zsh, and set the options which allow our
31957 # commands through without removal of \ escapes INIT.
31958 if test -n "\${ZSH_VERSION+set}" ; then
31959    setopt NO_GLOB_SUBST
31960 fi
31961
31962
31963     PACKAGE='$PACKAGE'
31964     VERSION='$VERSION'
31965     TIMESTAMP='$TIMESTAMP'
31966     RM='$RM'
31967     ofile='$ofile'
31968
31969
31970
31971
31972
31973 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31974     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31975     # from automake.
31976     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31977     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31978     LINGUAS="${LINGUAS-%UNSET%}"
31979
31980
31981 _ACEOF
31982
31983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31984
31985 # Handling of arguments.
31986 for ac_config_target in $ac_config_targets
31987 do
31988   case $ac_config_target in
31989     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31990     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31991     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31992     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31993     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31994     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31995     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31996     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31997     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31998     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31999     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
32000     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32001     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32002     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32003     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32004     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32005     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32006     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32007     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32008     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32009     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32010     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32011     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32012     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32013     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32014     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32015     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32016     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32017     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32018     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32019     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32020     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32021     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32022     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32023     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32024     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32025     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32026     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32027     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32028     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32029     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32030     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32031     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32032     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32033     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32034     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32035     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32036     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32037     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32038     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32039     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32040     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32041     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32042     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32043     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32044     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32045     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32046     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32047     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32048     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32049     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32050     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32051     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32052     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32053     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32054     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32055     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32056     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32057     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32058     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32059     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32060     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32061     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32062     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32063     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32064     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32065     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32066     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32067     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32068     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32069     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32070     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32071     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32072     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32073     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32074     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32075     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32076     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32077     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32078     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32079     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32080     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32081     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32082     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32083     "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32084     "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32085     "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32086     "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32087     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32088     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32089     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32090     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32091     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32092     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32093     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32094     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32095     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32096     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32097     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32098
32099   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32100   esac
32101 done
32102
32103
32104 # If the user did not use the arguments to specify the items to instantiate,
32105 # then the envvar interface is used.  Set only those that are not.
32106 # We use the long form for the default assignment because of an extremely
32107 # bizarre bug on SunOS 4.1.3.
32108 if $ac_need_defaults; then
32109   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32110   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32111   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32112 fi
32113
32114 # Have a temporary directory for convenience.  Make it in the build tree
32115 # simply because there is no reason against having it here, and in addition,
32116 # creating and moving files from /tmp can sometimes cause problems.
32117 # Hook for its removal unless debugging.
32118 # Note that there is a small window in which the directory will not be cleaned:
32119 # after its creation but before its name has been assigned to `$tmp'.
32120 $debug ||
32121 {
32122   tmp= ac_tmp=
32123   trap 'exit_status=$?
32124   : "${ac_tmp:=$tmp}"
32125   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32126 ' 0
32127   trap 'as_fn_exit 1' 1 2 13 15
32128 }
32129 # Create a (secure) tmp directory for tmp files.
32130
32131 {
32132   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32133   test -d "$tmp"
32134 }  ||
32135 {
32136   tmp=./conf$$-$RANDOM
32137   (umask 077 && mkdir "$tmp")
32138 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32139 ac_tmp=$tmp
32140
32141 # Set up the scripts for CONFIG_FILES section.
32142 # No need to generate them if there are no CONFIG_FILES.
32143 # This happens for instance with `./config.status config.h'.
32144 if test -n "$CONFIG_FILES"; then
32145
32146 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32147   ac_cs_awk_getline=:
32148   ac_cs_awk_pipe_init=
32149   ac_cs_awk_read_file='
32150       while ((getline aline < (F[key])) > 0)
32151         print(aline)
32152       close(F[key])'
32153   ac_cs_awk_pipe_fini=
32154 else
32155   ac_cs_awk_getline=false
32156   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32157   ac_cs_awk_read_file='
32158       print "|#_!!_#|"
32159       print "cat " F[key] " &&"
32160       '$ac_cs_awk_pipe_init
32161   # The final `:' finishes the AND list.
32162   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32163 fi
32164 ac_cr=`echo X | tr X '\015'`
32165 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32166 # But we know of no other shell where ac_cr would be empty at this
32167 # point, so we can use a bashism as a fallback.
32168 if test "x$ac_cr" = x; then
32169   eval ac_cr=\$\'\\r\'
32170 fi
32171 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32172 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32173   ac_cs_awk_cr='\\r'
32174 else
32175   ac_cs_awk_cr=$ac_cr
32176 fi
32177
32178 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32179 _ACEOF
32180
32181 # Create commands to substitute file output variables.
32182 {
32183   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32184   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32185   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32186   echo "_ACAWK" &&
32187   echo "_ACEOF"
32188 } >conf$$files.sh &&
32189 . ./conf$$files.sh ||
32190   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32191 rm -f conf$$files.sh
32192
32193 {
32194   echo "cat >conf$$subs.awk <<_ACEOF" &&
32195   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32196   echo "_ACEOF"
32197 } >conf$$subs.sh ||
32198   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32199 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32200 ac_delim='%!_!# '
32201 for ac_last_try in false false false false false :; do
32202   . ./conf$$subs.sh ||
32203     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32204
32205   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32206   if test $ac_delim_n = $ac_delim_num; then
32207     break
32208   elif $ac_last_try; then
32209     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32210   else
32211     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32212   fi
32213 done
32214 rm -f conf$$subs.sh
32215
32216 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32217 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32218 _ACEOF
32219 sed -n '
32220 h
32221 s/^/S["/; s/!.*/"]=/
32222 p
32223 g
32224 s/^[^!]*!//
32225 :repl
32226 t repl
32227 s/'"$ac_delim"'$//
32228 t delim
32229 :nl
32230 h
32231 s/\(.\{148\}\)..*/\1/
32232 t more1
32233 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32234 p
32235 n
32236 b repl
32237 :more1
32238 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32239 p
32240 g
32241 s/.\{148\}//
32242 t nl
32243 :delim
32244 h
32245 s/\(.\{148\}\)..*/\1/
32246 t more2
32247 s/["\\]/\\&/g; s/^/"/; s/$/"/
32248 p
32249 b
32250 :more2
32251 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32252 p
32253 g
32254 s/.\{148\}//
32255 t delim
32256 ' <conf$$subs.awk | sed '
32257 /^[^""]/{
32258   N
32259   s/\n//
32260 }
32261 ' >>$CONFIG_STATUS || ac_write_fail=1
32262 rm -f conf$$subs.awk
32263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32264 _ACAWK
32265 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32266   for (key in S) S_is_set[key] = 1
32267   FS = "\a"
32268   \$ac_cs_awk_pipe_init
32269 }
32270 {
32271   line = $ 0
32272   nfields = split(line, field, "@")
32273   substed = 0
32274   len = length(field[1])
32275   for (i = 2; i < nfields; i++) {
32276     key = field[i]
32277     keylen = length(key)
32278     if (S_is_set[key]) {
32279       value = S[key]
32280       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32281       len += length(value) + length(field[++i])
32282       substed = 1
32283     } else
32284       len += 1 + keylen
32285   }
32286   if (nfields == 3 && !substed) {
32287     key = field[2]
32288     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32289       \$ac_cs_awk_read_file
32290       next
32291     }
32292   }
32293   print line
32294 }
32295 \$ac_cs_awk_pipe_fini
32296 _ACAWK
32297 _ACEOF
32298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32300   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32301 else
32302   cat
32303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32304   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32305 _ACEOF
32306
32307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32309 # trailing colons and then remove the whole line if VPATH becomes empty
32310 # (actually we leave an empty line to preserve line numbers).
32311 if test "x$srcdir" = x.; then
32312   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32313 h
32314 s///
32315 s/^/:/
32316 s/[      ]*$/:/
32317 s/:\$(srcdir):/:/g
32318 s/:\${srcdir}:/:/g
32319 s/:@srcdir@:/:/g
32320 s/^:*//
32321 s/:*$//
32322 x
32323 s/\(=[   ]*\).*/\1/
32324 G
32325 s/\n//
32326 s/^[^=]*=[       ]*$//
32327 }'
32328 fi
32329
32330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32331 fi # test -n "$CONFIG_FILES"
32332
32333 # Set up the scripts for CONFIG_HEADERS section.
32334 # No need to generate them if there are no CONFIG_HEADERS.
32335 # This happens for instance with `./config.status Makefile'.
32336 if test -n "$CONFIG_HEADERS"; then
32337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32338 BEGIN {
32339 _ACEOF
32340
32341 # Transform confdefs.h into an awk script `defines.awk', embedded as
32342 # here-document in config.status, that substitutes the proper values into
32343 # config.h.in to produce config.h.
32344
32345 # Create a delimiter string that does not exist in confdefs.h, to ease
32346 # handling of long lines.
32347 ac_delim='%!_!# '
32348 for ac_last_try in false false :; do
32349   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32350   if test -z "$ac_tt"; then
32351     break
32352   elif $ac_last_try; then
32353     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32354   else
32355     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32356   fi
32357 done
32358
32359 # For the awk script, D is an array of macro values keyed by name,
32360 # likewise P contains macro parameters if any.  Preserve backslash
32361 # newline sequences.
32362
32363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32364 sed -n '
32365 s/.\{148\}/&'"$ac_delim"'/g
32366 t rset
32367 :rset
32368 s/^[     ]*#[    ]*define[       ][      ]*/ /
32369 t def
32370 d
32371 :def
32372 s/\\$//
32373 t bsnl
32374 s/["\\]/\\&/g
32375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32376 D["\1"]=" \3"/p
32377 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32378 d
32379 :bsnl
32380 s/["\\]/\\&/g
32381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32382 D["\1"]=" \3\\\\\\n"\\/p
32383 t cont
32384 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32385 t cont
32386 d
32387 :cont
32388 n
32389 s/.\{148\}/&'"$ac_delim"'/g
32390 t clear
32391 :clear
32392 s/\\$//
32393 t bsnlc
32394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32395 d
32396 :bsnlc
32397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32398 b cont
32399 ' <confdefs.h | sed '
32400 s/'"$ac_delim"'/"\\\
32401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32402
32403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32404   for (key in D) D_is_set[key] = 1
32405   FS = "\a"
32406 }
32407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32408   line = \$ 0
32409   split(line, arg, " ")
32410   if (arg[1] == "#") {
32411     defundef = arg[2]
32412     mac1 = arg[3]
32413   } else {
32414     defundef = substr(arg[1], 2)
32415     mac1 = arg[2]
32416   }
32417   split(mac1, mac2, "(") #)
32418   macro = mac2[1]
32419   prefix = substr(line, 1, index(line, defundef) - 1)
32420   if (D_is_set[macro]) {
32421     # Preserve the white space surrounding the "#".
32422     print prefix "define", macro P[macro] D[macro]
32423     next
32424   } else {
32425     # Replace #undef with comments.  This is necessary, for example,
32426     # in the case of _POSIX_SOURCE, which is predefined and required
32427     # on some systems where configure will not decide to define it.
32428     if (defundef == "undef") {
32429       print "/*", prefix defundef, macro, "*/"
32430       next
32431     }
32432   }
32433 }
32434 { print }
32435 _ACAWK
32436 _ACEOF
32437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32438   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32439 fi # test -n "$CONFIG_HEADERS"
32440
32441
32442 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32443 shift
32444 for ac_tag
32445 do
32446   case $ac_tag in
32447   :[FHLC]) ac_mode=$ac_tag; continue;;
32448   esac
32449   case $ac_mode$ac_tag in
32450   :[FHL]*:*);;
32451   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32452   :[FH]-) ac_tag=-:-;;
32453   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32454   esac
32455   ac_save_IFS=$IFS
32456   IFS=:
32457   set x $ac_tag
32458   IFS=$ac_save_IFS
32459   shift
32460   ac_file=$1
32461   shift
32462
32463   case $ac_mode in
32464   :L) ac_source=$1;;
32465   :[FH])
32466     ac_file_inputs=
32467     for ac_f
32468     do
32469       case $ac_f in
32470       -) ac_f="$ac_tmp/stdin";;
32471       *) # Look for the file first in the build tree, then in the source tree
32472          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32473          # because $ac_f cannot contain `:'.
32474          test -f "$ac_f" ||
32475            case $ac_f in
32476            [\\/$]*) false;;
32477            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32478            esac ||
32479            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32480       esac
32481       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32482       as_fn_append ac_file_inputs " '$ac_f'"
32483     done
32484
32485     # Let's still pretend it is `configure' which instantiates (i.e., don't
32486     # use $as_me), people would be surprised to read:
32487     #    /* config.h.  Generated by config.status.  */
32488     configure_input='Generated from '`
32489           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32490         `' by configure.'
32491     if test x"$ac_file" != x-; then
32492       configure_input="$ac_file.  $configure_input"
32493       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32494 $as_echo "$as_me: creating $ac_file" >&6;}
32495     fi
32496     # Neutralize special characters interpreted by sed in replacement strings.
32497     case $configure_input in #(
32498     *\&* | *\|* | *\\* )
32499        ac_sed_conf_input=`$as_echo "$configure_input" |
32500        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32501     *) ac_sed_conf_input=$configure_input;;
32502     esac
32503
32504     case $ac_tag in
32505     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32506       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32507     esac
32508     ;;
32509   esac
32510
32511   ac_dir=`$as_dirname -- "$ac_file" ||
32512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32513          X"$ac_file" : 'X\(//\)[^/]' \| \
32514          X"$ac_file" : 'X\(//\)$' \| \
32515          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32516 $as_echo X"$ac_file" |
32517     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32518             s//\1/
32519             q
32520           }
32521           /^X\(\/\/\)[^/].*/{
32522             s//\1/
32523             q
32524           }
32525           /^X\(\/\/\)$/{
32526             s//\1/
32527             q
32528           }
32529           /^X\(\/\).*/{
32530             s//\1/
32531             q
32532           }
32533           s/.*/./; q'`
32534   as_dir="$ac_dir"; as_fn_mkdir_p
32535   ac_builddir=.
32536
32537 case "$ac_dir" in
32538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32539 *)
32540   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32541   # A ".." for each directory in $ac_dir_suffix.
32542   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32543   case $ac_top_builddir_sub in
32544   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32545   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32546   esac ;;
32547 esac
32548 ac_abs_top_builddir=$ac_pwd
32549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32550 # for backward compatibility:
32551 ac_top_builddir=$ac_top_build_prefix
32552
32553 case $srcdir in
32554   .)  # We are building in place.
32555     ac_srcdir=.
32556     ac_top_srcdir=$ac_top_builddir_sub
32557     ac_abs_top_srcdir=$ac_pwd ;;
32558   [\\/]* | ?:[\\/]* )  # Absolute name.
32559     ac_srcdir=$srcdir$ac_dir_suffix;
32560     ac_top_srcdir=$srcdir
32561     ac_abs_top_srcdir=$srcdir ;;
32562   *) # Relative name.
32563     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32564     ac_top_srcdir=$ac_top_build_prefix$srcdir
32565     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32566 esac
32567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32568
32569
32570   case $ac_mode in
32571   :F)
32572   #
32573   # CONFIG_FILE
32574   #
32575
32576   case $INSTALL in
32577   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32578   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32579   esac
32580 _ACEOF
32581
32582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32583 # If the template does not know about datarootdir, expand it.
32584 # FIXME: This hack should be removed a few years after 2.60.
32585 ac_datarootdir_hack=; ac_datarootdir_seen=
32586 ac_sed_dataroot='
32587 /datarootdir/ {
32588   p
32589   q
32590 }
32591 /@datadir@/p
32592 /@docdir@/p
32593 /@infodir@/p
32594 /@localedir@/p
32595 /@mandir@/p'
32596 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32597 *datarootdir*) ac_datarootdir_seen=yes;;
32598 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32599   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32600 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32601 _ACEOF
32602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32603   ac_datarootdir_hack='
32604   s&@datadir@&$datadir&g
32605   s&@docdir@&$docdir&g
32606   s&@infodir@&$infodir&g
32607   s&@localedir@&$localedir&g
32608   s&@mandir@&$mandir&g
32609   s&\\\${datarootdir}&$datarootdir&g' ;;
32610 esac
32611 _ACEOF
32612
32613 # Neutralize VPATH when `$srcdir' = `.'.
32614 # Shell code in configure.ac might set extrasub.
32615 # FIXME: do we really want to maintain this feature?
32616 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32617 ac_sed_extra="$ac_vpsub
32618 $extrasub
32619 _ACEOF
32620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32621 :t
32622 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32623 s|@configure_input@|$ac_sed_conf_input|;t t
32624 s&@top_builddir@&$ac_top_builddir_sub&;t t
32625 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32626 s&@srcdir@&$ac_srcdir&;t t
32627 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32628 s&@top_srcdir@&$ac_top_srcdir&;t t
32629 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32630 s&@builddir@&$ac_builddir&;t t
32631 s&@abs_builddir@&$ac_abs_builddir&;t t
32632 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32633 s&@INSTALL@&$ac_INSTALL&;t t
32634 $ac_datarootdir_hack
32635 "
32636 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32637 if $ac_cs_awk_getline; then
32638   $AWK -f "$ac_tmp/subs.awk"
32639 else
32640   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32641 fi \
32642   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32643
32644 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32645   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32646   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32647       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32648   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32649 which seems to be undefined.  Please make sure it is defined" >&5
32650 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32651 which seems to be undefined.  Please make sure it is defined" >&2;}
32652
32653   rm -f "$ac_tmp/stdin"
32654   case $ac_file in
32655   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32656   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32657   esac \
32658   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32659  ;;
32660   :H)
32661   #
32662   # CONFIG_HEADER
32663   #
32664   if test x"$ac_file" != x-; then
32665     {
32666       $as_echo "/* $configure_input  */" \
32667       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32668     } >"$ac_tmp/config.h" \
32669       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32670     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32671       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32672 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32673     else
32674       rm -f "$ac_file"
32675       mv "$ac_tmp/config.h" "$ac_file" \
32676         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32677     fi
32678   else
32679     $as_echo "/* $configure_input  */" \
32680       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32681       || as_fn_error $? "could not create -" "$LINENO" 5
32682   fi
32683  ;;
32684
32685   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32686 $as_echo "$as_me: executing $ac_file commands" >&6;}
32687  ;;
32688   esac
32689
32690
32691   case $ac_file$ac_mode in
32692     "libtool":C)
32693
32694     # See if we are running on zsh, and set the options which allow our
32695     # commands through without removal of \ escapes.
32696     if test -n "${ZSH_VERSION+set}" ; then
32697       setopt NO_GLOB_SUBST
32698     fi
32699
32700     cfgfile="${ofile}T"
32701     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32702     $RM "$cfgfile"
32703
32704     cat <<_LT_EOF >> "$cfgfile"
32705 #! $SHELL
32706
32707 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32708 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32709 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32710 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32711 #
32712 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32713 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32714 #                 Foundation, Inc.
32715 #   Written by Gordon Matzigkeit, 1996
32716 #
32717 #   This file is part of GNU Libtool.
32718 #
32719 # GNU Libtool is free software; you can redistribute it and/or
32720 # modify it under the terms of the GNU General Public License as
32721 # published by the Free Software Foundation; either version 2 of
32722 # the License, or (at your option) any later version.
32723 #
32724 # As a special exception to the GNU General Public License,
32725 # if you distribute this file as part of a program or library that
32726 # is built using GNU Libtool, you may include this file under the
32727 # same distribution terms that you use for the rest of that program.
32728 #
32729 # GNU Libtool is distributed in the hope that it will be useful,
32730 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32731 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32732 # GNU General Public License for more details.
32733 #
32734 # You should have received a copy of the GNU General Public License
32735 # along with GNU Libtool; see the file COPYING.  If not, a copy
32736 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32737 # obtained by writing to the Free Software Foundation, Inc.,
32738 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32739
32740
32741 # The names of the tagged configurations supported by this script.
32742 available_tags="CXX "
32743
32744 # ### BEGIN LIBTOOL CONFIG
32745
32746 # Which release of libtool.m4 was used?
32747 macro_version=$macro_version
32748 macro_revision=$macro_revision
32749
32750 # Whether or not to build shared libraries.
32751 build_libtool_libs=$enable_shared
32752
32753 # Whether or not to build static libraries.
32754 build_old_libs=$enable_static
32755
32756 # What type of objects to build.
32757 pic_mode=$pic_mode
32758
32759 # Whether or not to optimize for fast installation.
32760 fast_install=$enable_fast_install
32761
32762 # Shell to use when invoking shell scripts.
32763 SHELL=$lt_SHELL
32764
32765 # An echo program that protects backslashes.
32766 ECHO=$lt_ECHO
32767
32768 # The PATH separator for the build system.
32769 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32770
32771 # The host system.
32772 host_alias=$host_alias
32773 host=$host
32774 host_os=$host_os
32775
32776 # The build system.
32777 build_alias=$build_alias
32778 build=$build
32779 build_os=$build_os
32780
32781 # A sed program that does not truncate output.
32782 SED=$lt_SED
32783
32784 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32785 Xsed="\$SED -e 1s/^X//"
32786
32787 # A grep program that handles long lines.
32788 GREP=$lt_GREP
32789
32790 # An ERE matcher.
32791 EGREP=$lt_EGREP
32792
32793 # A literal string matcher.
32794 FGREP=$lt_FGREP
32795
32796 # A BSD- or MS-compatible name lister.
32797 NM=$lt_NM
32798
32799 # Whether we need soft or hard links.
32800 LN_S=$lt_LN_S
32801
32802 # What is the maximum length of a command?
32803 max_cmd_len=$max_cmd_len
32804
32805 # Object file suffix (normally "o").
32806 objext=$ac_objext
32807
32808 # Executable file suffix (normally "").
32809 exeext=$exeext
32810
32811 # whether the shell understands "unset".
32812 lt_unset=$lt_unset
32813
32814 # turn spaces into newlines.
32815 SP2NL=$lt_lt_SP2NL
32816
32817 # turn newlines into spaces.
32818 NL2SP=$lt_lt_NL2SP
32819
32820 # convert \$build file names to \$host format.
32821 to_host_file_cmd=$lt_cv_to_host_file_cmd
32822
32823 # convert \$build files to toolchain format.
32824 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32825
32826 # An object symbol dumper.
32827 OBJDUMP=$lt_OBJDUMP
32828
32829 # Method to check whether dependent libraries are shared objects.
32830 deplibs_check_method=$lt_deplibs_check_method
32831
32832 # Command to use when deplibs_check_method = "file_magic".
32833 file_magic_cmd=$lt_file_magic_cmd
32834
32835 # How to find potential files when deplibs_check_method = "file_magic".
32836 file_magic_glob=$lt_file_magic_glob
32837
32838 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32839 want_nocaseglob=$lt_want_nocaseglob
32840
32841 # DLL creation program.
32842 DLLTOOL=$lt_DLLTOOL
32843
32844 # Command to associate shared and link libraries.
32845 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32846
32847 # The archiver.
32848 AR=$lt_AR
32849
32850 # Flags to create an archive.
32851 AR_FLAGS=$lt_AR_FLAGS
32852
32853 # How to feed a file listing to the archiver.
32854 archiver_list_spec=$lt_archiver_list_spec
32855
32856 # A symbol stripping program.
32857 STRIP=$lt_STRIP
32858
32859 # Commands used to install an old-style archive.
32860 RANLIB=$lt_RANLIB
32861 old_postinstall_cmds=$lt_old_postinstall_cmds
32862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32863
32864 # Whether to use a lock for old archive extraction.
32865 lock_old_archive_extraction=$lock_old_archive_extraction
32866
32867 # A C compiler.
32868 LTCC=$lt_CC
32869
32870 # LTCC compiler flags.
32871 LTCFLAGS=$lt_CFLAGS
32872
32873 # Take the output of nm and produce a listing of raw symbols and C names.
32874 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32875
32876 # Transform the output of nm in a proper C declaration.
32877 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32878
32879 # Transform the output of nm in a C name address pair.
32880 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32881
32882 # Transform the output of nm in a C name address pair when lib prefix is needed.
32883 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32884
32885 # Specify filename containing input files for \$NM.
32886 nm_file_list_spec=$lt_nm_file_list_spec
32887
32888 # The root where to search for dependent libraries,and in which our libraries should be installed.
32889 lt_sysroot=$lt_sysroot
32890
32891 # The name of the directory that contains temporary libtool files.
32892 objdir=$objdir
32893
32894 # Used to examine libraries when file_magic_cmd begins with "file".
32895 MAGIC_CMD=$MAGIC_CMD
32896
32897 # Must we lock files when doing compilation?
32898 need_locks=$lt_need_locks
32899
32900 # Manifest tool.
32901 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32902
32903 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32904 DSYMUTIL=$lt_DSYMUTIL
32905
32906 # Tool to change global to local symbols on Mac OS X.
32907 NMEDIT=$lt_NMEDIT
32908
32909 # Tool to manipulate fat objects and archives on Mac OS X.
32910 LIPO=$lt_LIPO
32911
32912 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32913 OTOOL=$lt_OTOOL
32914
32915 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32916 OTOOL64=$lt_OTOOL64
32917
32918 # Old archive suffix (normally "a").
32919 libext=$libext
32920
32921 # Shared library suffix (normally ".so").
32922 shrext_cmds=$lt_shrext_cmds
32923
32924 # The commands to extract the exported symbol list from a shared archive.
32925 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32926
32927 # Variables whose values should be saved in libtool wrapper scripts and
32928 # restored at link time.
32929 variables_saved_for_relink=$lt_variables_saved_for_relink
32930
32931 # Do we need the "lib" prefix for modules?
32932 need_lib_prefix=$need_lib_prefix
32933
32934 # Do we need a version for libraries?
32935 need_version=$need_version
32936
32937 # Library versioning type.
32938 version_type=$version_type
32939
32940 # Shared library runtime path variable.
32941 runpath_var=$runpath_var
32942
32943 # Shared library path variable.
32944 shlibpath_var=$shlibpath_var
32945
32946 # Is shlibpath searched before the hard-coded library search path?
32947 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32948
32949 # Format of library name prefix.
32950 libname_spec=$lt_libname_spec
32951
32952 # List of archive names.  First name is the real one, the rest are links.
32953 # The last name is the one that the linker finds with -lNAME
32954 library_names_spec=$lt_library_names_spec
32955
32956 # The coded name of the library, if different from the real name.
32957 soname_spec=$lt_soname_spec
32958
32959 # Permission mode override for installation of shared libraries.
32960 install_override_mode=$lt_install_override_mode
32961
32962 # Command to use after installation of a shared archive.
32963 postinstall_cmds=$lt_postinstall_cmds
32964
32965 # Command to use after uninstallation of a shared archive.
32966 postuninstall_cmds=$lt_postuninstall_cmds
32967
32968 # Commands used to finish a libtool library installation in a directory.
32969 finish_cmds=$lt_finish_cmds
32970
32971 # As "finish_cmds", except a single script fragment to be evaled but
32972 # not shown.
32973 finish_eval=$lt_finish_eval
32974
32975 # Whether we should hardcode library paths into libraries.
32976 hardcode_into_libs=$hardcode_into_libs
32977
32978 # Compile-time system search path for libraries.
32979 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32980
32981 # Run-time system search path for libraries.
32982 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32983
32984 # Whether dlopen is supported.
32985 dlopen_support=$enable_dlopen
32986
32987 # Whether dlopen of programs is supported.
32988 dlopen_self=$enable_dlopen_self
32989
32990 # Whether dlopen of statically linked programs is supported.
32991 dlopen_self_static=$enable_dlopen_self_static
32992
32993 # Commands to strip libraries.
32994 old_striplib=$lt_old_striplib
32995 striplib=$lt_striplib
32996
32997
32998 # The linker used to build libraries.
32999 LD=$lt_LD
33000
33001 # How to create reloadable object files.
33002 reload_flag=$lt_reload_flag
33003 reload_cmds=$lt_reload_cmds
33004
33005 # Commands used to build an old-style archive.
33006 old_archive_cmds=$lt_old_archive_cmds
33007
33008 # A language specific compiler.
33009 CC=$lt_compiler
33010
33011 # Is the compiler the GNU compiler?
33012 with_gcc=$GCC
33013
33014 # Compiler flag to turn off builtin functions.
33015 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33016
33017 # Additional compiler flags for building library objects.
33018 pic_flag=$lt_lt_prog_compiler_pic
33019
33020 # How to pass a linker flag through the compiler.
33021 wl=$lt_lt_prog_compiler_wl
33022
33023 # Compiler flag to prevent dynamic linking.
33024 link_static_flag=$lt_lt_prog_compiler_static
33025
33026 # Does compiler simultaneously support -c and -o options?
33027 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33028
33029 # Whether or not to add -lc for building shared libraries.
33030 build_libtool_need_lc=$archive_cmds_need_lc
33031
33032 # Whether or not to disallow shared libs when runtime libs are static.
33033 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33034
33035 # Compiler flag to allow reflexive dlopens.
33036 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33037
33038 # Compiler flag to generate shared objects directly from archives.
33039 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33040
33041 # Whether the compiler copes with passing no objects directly.
33042 compiler_needs_object=$lt_compiler_needs_object
33043
33044 # Create an old-style archive from a shared archive.
33045 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33046
33047 # Create a temporary old-style archive to link instead of a shared archive.
33048 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33049
33050 # Commands used to build a shared archive.
33051 archive_cmds=$lt_archive_cmds
33052 archive_expsym_cmds=$lt_archive_expsym_cmds
33053
33054 # Commands used to build a loadable module if different from building
33055 # a shared archive.
33056 module_cmds=$lt_module_cmds
33057 module_expsym_cmds=$lt_module_expsym_cmds
33058
33059 # Whether we are building with GNU ld or not.
33060 with_gnu_ld=$lt_with_gnu_ld
33061
33062 # Flag that allows shared libraries with undefined symbols to be built.
33063 allow_undefined_flag=$lt_allow_undefined_flag
33064
33065 # Flag that enforces no undefined symbols.
33066 no_undefined_flag=$lt_no_undefined_flag
33067
33068 # Flag to hardcode \$libdir into a binary during linking.
33069 # This must work even if \$libdir does not exist
33070 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33071
33072 # Whether we need a single "-rpath" flag with a separated argument.
33073 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33074
33075 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33076 # DIR into the resulting binary.
33077 hardcode_direct=$hardcode_direct
33078
33079 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33080 # DIR into the resulting binary and the resulting library dependency is
33081 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33082 # library is relocated.
33083 hardcode_direct_absolute=$hardcode_direct_absolute
33084
33085 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33086 # into the resulting binary.
33087 hardcode_minus_L=$hardcode_minus_L
33088
33089 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33090 # into the resulting binary.
33091 hardcode_shlibpath_var=$hardcode_shlibpath_var
33092
33093 # Set to "yes" if building a shared library automatically hardcodes DIR
33094 # into the library and all subsequent libraries and executables linked
33095 # against it.
33096 hardcode_automatic=$hardcode_automatic
33097
33098 # Set to yes if linker adds runtime paths of dependent libraries
33099 # to runtime path list.
33100 inherit_rpath=$inherit_rpath
33101
33102 # Whether libtool must link a program against all its dependency libraries.
33103 link_all_deplibs=$link_all_deplibs
33104
33105 # Set to "yes" if exported symbols are required.
33106 always_export_symbols=$always_export_symbols
33107
33108 # The commands to list exported symbols.
33109 export_symbols_cmds=$lt_export_symbols_cmds
33110
33111 # Symbols that should not be listed in the preloaded symbols.
33112 exclude_expsyms=$lt_exclude_expsyms
33113
33114 # Symbols that must always be exported.
33115 include_expsyms=$lt_include_expsyms
33116
33117 # Commands necessary for linking programs (against libraries) with templates.
33118 prelink_cmds=$lt_prelink_cmds
33119
33120 # Commands necessary for finishing linking programs.
33121 postlink_cmds=$lt_postlink_cmds
33122
33123 # Specify filename containing input files.
33124 file_list_spec=$lt_file_list_spec
33125
33126 # How to hardcode a shared library path into an executable.
33127 hardcode_action=$hardcode_action
33128
33129 # The directories searched by this compiler when creating a shared library.
33130 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33131
33132 # Dependencies to place before and after the objects being linked to
33133 # create a shared library.
33134 predep_objects=$lt_predep_objects
33135 postdep_objects=$lt_postdep_objects
33136 predeps=$lt_predeps
33137 postdeps=$lt_postdeps
33138
33139 # The library search path used internally by the compiler when linking
33140 # a shared library.
33141 compiler_lib_search_path=$lt_compiler_lib_search_path
33142
33143 # ### END LIBTOOL CONFIG
33144
33145 _LT_EOF
33146
33147   case $host_os in
33148   aix3*)
33149     cat <<\_LT_EOF >> "$cfgfile"
33150 # AIX sometimes has problems with the GCC collect2 program.  For some
33151 # reason, if we set the COLLECT_NAMES environment variable, the problems
33152 # vanish in a puff of smoke.
33153 if test "X${COLLECT_NAMES+set}" != Xset; then
33154   COLLECT_NAMES=
33155   export COLLECT_NAMES
33156 fi
33157 _LT_EOF
33158     ;;
33159   esac
33160
33161
33162 ltmain="$ac_aux_dir/ltmain.sh"
33163
33164
33165   # We use sed instead of cat because bash on DJGPP gets confused if
33166   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33167   # text mode, it properly converts lines to CR/LF.  This bash problem
33168   # is reportedly fixed, but why not run on old versions too?
33169   sed '$q' "$ltmain" >> "$cfgfile" \
33170      || (rm -f "$cfgfile"; exit 1)
33171
33172   if test x"$xsi_shell" = xyes; then
33173   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33174 func_dirname ()\
33175 {\
33176 \    case ${1} in\
33177 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33178 \      *  ) func_dirname_result="${3}" ;;\
33179 \    esac\
33180 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33181   && mv -f "$cfgfile.tmp" "$cfgfile" \
33182     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33183 test 0 -eq $? || _lt_function_replace_fail=:
33184
33185
33186   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33187 func_basename ()\
33188 {\
33189 \    func_basename_result="${1##*/}"\
33190 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33191   && mv -f "$cfgfile.tmp" "$cfgfile" \
33192     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33193 test 0 -eq $? || _lt_function_replace_fail=:
33194
33195
33196   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33197 func_dirname_and_basename ()\
33198 {\
33199 \    case ${1} in\
33200 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33201 \      *  ) func_dirname_result="${3}" ;;\
33202 \    esac\
33203 \    func_basename_result="${1##*/}"\
33204 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33205   && mv -f "$cfgfile.tmp" "$cfgfile" \
33206     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33207 test 0 -eq $? || _lt_function_replace_fail=:
33208
33209
33210   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33211 func_stripname ()\
33212 {\
33213 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33214 \    # positional parameters, so assign one to ordinary parameter first.\
33215 \    func_stripname_result=${3}\
33216 \    func_stripname_result=${func_stripname_result#"${1}"}\
33217 \    func_stripname_result=${func_stripname_result%"${2}"}\
33218 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33219   && mv -f "$cfgfile.tmp" "$cfgfile" \
33220     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33221 test 0 -eq $? || _lt_function_replace_fail=:
33222
33223
33224   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33225 func_split_long_opt ()\
33226 {\
33227 \    func_split_long_opt_name=${1%%=*}\
33228 \    func_split_long_opt_arg=${1#*=}\
33229 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33230   && mv -f "$cfgfile.tmp" "$cfgfile" \
33231     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33232 test 0 -eq $? || _lt_function_replace_fail=:
33233
33234
33235   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33236 func_split_short_opt ()\
33237 {\
33238 \    func_split_short_opt_arg=${1#??}\
33239 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33240 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33241   && mv -f "$cfgfile.tmp" "$cfgfile" \
33242     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33243 test 0 -eq $? || _lt_function_replace_fail=:
33244
33245
33246   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33247 func_lo2o ()\
33248 {\
33249 \    case ${1} in\
33250 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33251 \      *)    func_lo2o_result=${1} ;;\
33252 \    esac\
33253 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33254   && mv -f "$cfgfile.tmp" "$cfgfile" \
33255     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33256 test 0 -eq $? || _lt_function_replace_fail=:
33257
33258
33259   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33260 func_xform ()\
33261 {\
33262     func_xform_result=${1%.*}.lo\
33263 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33264   && mv -f "$cfgfile.tmp" "$cfgfile" \
33265     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33266 test 0 -eq $? || _lt_function_replace_fail=:
33267
33268
33269   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33270 func_arith ()\
33271 {\
33272     func_arith_result=$(( $* ))\
33273 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33274   && mv -f "$cfgfile.tmp" "$cfgfile" \
33275     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33276 test 0 -eq $? || _lt_function_replace_fail=:
33277
33278
33279   sed -e '/^func_len ()$/,/^} # func_len /c\
33280 func_len ()\
33281 {\
33282     func_len_result=${#1}\
33283 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33284   && mv -f "$cfgfile.tmp" "$cfgfile" \
33285     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33286 test 0 -eq $? || _lt_function_replace_fail=:
33287
33288 fi
33289
33290 if test x"$lt_shell_append" = xyes; then
33291   sed -e '/^func_append ()$/,/^} # func_append /c\
33292 func_append ()\
33293 {\
33294     eval "${1}+=\\${2}"\
33295 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33296   && mv -f "$cfgfile.tmp" "$cfgfile" \
33297     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33298 test 0 -eq $? || _lt_function_replace_fail=:
33299
33300
33301   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33302 func_append_quoted ()\
33303 {\
33304 \    func_quote_for_eval "${2}"\
33305 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33306 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33307   && mv -f "$cfgfile.tmp" "$cfgfile" \
33308     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33309 test 0 -eq $? || _lt_function_replace_fail=:
33310
33311
33312   # Save a `func_append' function call where possible by direct use of '+='
33313   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33314     && mv -f "$cfgfile.tmp" "$cfgfile" \
33315       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33316   test 0 -eq $? || _lt_function_replace_fail=:
33317 else
33318   # Save a `func_append' function call even when '+=' is not available
33319   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33320     && mv -f "$cfgfile.tmp" "$cfgfile" \
33321       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33322   test 0 -eq $? || _lt_function_replace_fail=:
33323 fi
33324
33325 if test x"$_lt_function_replace_fail" = x":"; then
33326   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33327 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33328 fi
33329
33330
33331    mv -f "$cfgfile" "$ofile" ||
33332     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33333   chmod +x "$ofile"
33334
33335
33336     cat <<_LT_EOF >> "$ofile"
33337
33338 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33339
33340 # The linker used to build libraries.
33341 LD=$lt_LD_CXX
33342
33343 # How to create reloadable object files.
33344 reload_flag=$lt_reload_flag_CXX
33345 reload_cmds=$lt_reload_cmds_CXX
33346
33347 # Commands used to build an old-style archive.
33348 old_archive_cmds=$lt_old_archive_cmds_CXX
33349
33350 # A language specific compiler.
33351 CC=$lt_compiler_CXX
33352
33353 # Is the compiler the GNU compiler?
33354 with_gcc=$GCC_CXX
33355
33356 # Compiler flag to turn off builtin functions.
33357 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33358
33359 # Additional compiler flags for building library objects.
33360 pic_flag=$lt_lt_prog_compiler_pic_CXX
33361
33362 # How to pass a linker flag through the compiler.
33363 wl=$lt_lt_prog_compiler_wl_CXX
33364
33365 # Compiler flag to prevent dynamic linking.
33366 link_static_flag=$lt_lt_prog_compiler_static_CXX
33367
33368 # Does compiler simultaneously support -c and -o options?
33369 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33370
33371 # Whether or not to add -lc for building shared libraries.
33372 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33373
33374 # Whether or not to disallow shared libs when runtime libs are static.
33375 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33376
33377 # Compiler flag to allow reflexive dlopens.
33378 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33379
33380 # Compiler flag to generate shared objects directly from archives.
33381 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33382
33383 # Whether the compiler copes with passing no objects directly.
33384 compiler_needs_object=$lt_compiler_needs_object_CXX
33385
33386 # Create an old-style archive from a shared archive.
33387 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33388
33389 # Create a temporary old-style archive to link instead of a shared archive.
33390 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33391
33392 # Commands used to build a shared archive.
33393 archive_cmds=$lt_archive_cmds_CXX
33394 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33395
33396 # Commands used to build a loadable module if different from building
33397 # a shared archive.
33398 module_cmds=$lt_module_cmds_CXX
33399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33400
33401 # Whether we are building with GNU ld or not.
33402 with_gnu_ld=$lt_with_gnu_ld_CXX
33403
33404 # Flag that allows shared libraries with undefined symbols to be built.
33405 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33406
33407 # Flag that enforces no undefined symbols.
33408 no_undefined_flag=$lt_no_undefined_flag_CXX
33409
33410 # Flag to hardcode \$libdir into a binary during linking.
33411 # This must work even if \$libdir does not exist
33412 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33413
33414 # Whether we need a single "-rpath" flag with a separated argument.
33415 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33416
33417 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33418 # DIR into the resulting binary.
33419 hardcode_direct=$hardcode_direct_CXX
33420
33421 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33422 # DIR into the resulting binary and the resulting library dependency is
33423 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33424 # library is relocated.
33425 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33426
33427 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33428 # into the resulting binary.
33429 hardcode_minus_L=$hardcode_minus_L_CXX
33430
33431 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33432 # into the resulting binary.
33433 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33434
33435 # Set to "yes" if building a shared library automatically hardcodes DIR
33436 # into the library and all subsequent libraries and executables linked
33437 # against it.
33438 hardcode_automatic=$hardcode_automatic_CXX
33439
33440 # Set to yes if linker adds runtime paths of dependent libraries
33441 # to runtime path list.
33442 inherit_rpath=$inherit_rpath_CXX
33443
33444 # Whether libtool must link a program against all its dependency libraries.
33445 link_all_deplibs=$link_all_deplibs_CXX
33446
33447 # Set to "yes" if exported symbols are required.
33448 always_export_symbols=$always_export_symbols_CXX
33449
33450 # The commands to list exported symbols.
33451 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33452
33453 # Symbols that should not be listed in the preloaded symbols.
33454 exclude_expsyms=$lt_exclude_expsyms_CXX
33455
33456 # Symbols that must always be exported.
33457 include_expsyms=$lt_include_expsyms_CXX
33458
33459 # Commands necessary for linking programs (against libraries) with templates.
33460 prelink_cmds=$lt_prelink_cmds_CXX
33461
33462 # Commands necessary for finishing linking programs.
33463 postlink_cmds=$lt_postlink_cmds_CXX
33464
33465 # Specify filename containing input files.
33466 file_list_spec=$lt_file_list_spec_CXX
33467
33468 # How to hardcode a shared library path into an executable.
33469 hardcode_action=$hardcode_action_CXX
33470
33471 # The directories searched by this compiler when creating a shared library.
33472 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33473
33474 # Dependencies to place before and after the objects being linked to
33475 # create a shared library.
33476 predep_objects=$lt_predep_objects_CXX
33477 postdep_objects=$lt_postdep_objects_CXX
33478 predeps=$lt_predeps_CXX
33479 postdeps=$lt_postdeps_CXX
33480
33481 # The library search path used internally by the compiler when linking
33482 # a shared library.
33483 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33484
33485 # ### END LIBTOOL TAG CONFIG: CXX
33486 _LT_EOF
33487
33488  ;;
33489     "default-1":C)
33490     for ac_file in $CONFIG_FILES; do
33491       # Support "outfile[:infile[:infile...]]"
33492       case "$ac_file" in
33493         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33494       esac
33495       # PO directories have a Makefile.in generated from Makefile.in.in.
33496       case "$ac_file" in */Makefile.in)
33497         # Adjust a relative srcdir.
33498         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33499         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33500         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33501         # In autoconf-2.13 it is called $ac_given_srcdir.
33502         # In autoconf-2.50 it is called $srcdir.
33503         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33504         case "$ac_given_srcdir" in
33505           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33506           /*) top_srcdir="$ac_given_srcdir" ;;
33507           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33508         esac
33509         # Treat a directory as a PO directory if and only if it has a
33510         # POTFILES.in file. This allows packages to have multiple PO
33511         # directories under different names or in different locations.
33512         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33513           rm -f "$ac_dir/POTFILES"
33514           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33515           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33516           POMAKEFILEDEPS="POTFILES.in"
33517           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33518           # on $ac_dir but don't depend on user-specified configuration
33519           # parameters.
33520           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33521             # The LINGUAS file contains the set of available languages.
33522             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33523               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33524             fi
33525             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33526             # Hide the ALL_LINGUAS assigment from automake.
33527             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33528             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33529           else
33530             # The set of available languages was given in configure.in.
33531             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33532           fi
33533           # Compute POFILES
33534           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33535           # Compute UPDATEPOFILES
33536           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33537           # Compute DUMMYPOFILES
33538           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33539           # Compute GMOFILES
33540           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33541           case "$ac_given_srcdir" in
33542             .) srcdirpre= ;;
33543             *) srcdirpre='$(srcdir)/' ;;
33544           esac
33545           POFILES=
33546           UPDATEPOFILES=
33547           DUMMYPOFILES=
33548           GMOFILES=
33549           for lang in $ALL_LINGUAS; do
33550             POFILES="$POFILES $srcdirpre$lang.po"
33551             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33552             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33553             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33554           done
33555           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33556           # environment variable.
33557           INST_LINGUAS=
33558           if test -n "$ALL_LINGUAS"; then
33559             for presentlang in $ALL_LINGUAS; do
33560               useit=no
33561               if test "%UNSET%" != "$LINGUAS"; then
33562                 desiredlanguages="$LINGUAS"
33563               else
33564                 desiredlanguages="$ALL_LINGUAS"
33565               fi
33566               for desiredlang in $desiredlanguages; do
33567                 # Use the presentlang catalog if desiredlang is
33568                 #   a. equal to presentlang, or
33569                 #   b. a variant of presentlang (because in this case,
33570                 #      presentlang can be used as a fallback for messages
33571                 #      which are not translated in the desiredlang catalog).
33572                 case "$desiredlang" in
33573                   "$presentlang"*) useit=yes;;
33574                 esac
33575               done
33576               if test $useit = yes; then
33577                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33578               fi
33579             done
33580           fi
33581           CATALOGS=
33582           if test -n "$INST_LINGUAS"; then
33583             for lang in $INST_LINGUAS; do
33584               CATALOGS="$CATALOGS $lang.gmo"
33585             done
33586           fi
33587           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33588           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"
33589           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33590             if test -f "$f"; then
33591               case "$f" in
33592                 *.orig | *.bak | *~) ;;
33593                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33594               esac
33595             fi
33596           done
33597         fi
33598         ;;
33599       esac
33600     done ;;
33601     "default":C)
33602  ;;
33603
33604   esac
33605 done # for ac_tag
33606
33607
33608 as_fn_exit 0
33609 _ACEOF
33610 ac_clean_files=$ac_clean_files_save
33611
33612 test $ac_write_fail = 0 ||
33613   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33614
33615
33616 # configure is writing to config.log, and then calls config.status.
33617 # config.status does its own redirection, appending to config.log.
33618 # Unfortunately, on DOS this fails, as config.log is still kept open
33619 # by configure, so config.status won't be able to write to it; its
33620 # output is simply discarded.  So we exec the FD to /dev/null,
33621 # effectively closing config.log, so it can be properly (re)opened and
33622 # appended to by config.status.  When coming back to configure, we
33623 # need to make the FD available again.
33624 if test "$no_create" != yes; then
33625   ac_cs_success=:
33626   ac_config_status_args=
33627   test "$silent" = yes &&
33628     ac_config_status_args="$ac_config_status_args --quiet"
33629   exec 5>/dev/null
33630   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33631   exec 5>>config.log
33632   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33633   # would make configure fail if this is the last instruction.
33634   $ac_cs_success || as_fn_exit 1
33635 fi
33636 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33637   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33638 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33639 fi
33640
33641
33642 if test "${support_bat}" = "yes" ; then
33643    if test "x$QMAKE" = "xnone"; then
33644       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33645    fi
33646
33647    cd src/qt-console
33648    echo "Creating bat Makefile"
33649    touch bat
33650    chmod 755 bat
33651    rm -f Makefile
33652    rm -rf moc32 obj32
33653    $QMAKE
33654    ${MAKE:-make} clean
33655    cd ${BUILD_DIR}
33656 fi
33657
33658 if test X"$GCC" = "Xyes" ; then
33659   echo "Doing make of dependencies"
33660   ${MAKE:-make} depend
33661 fi
33662
33663 cd src/qt-console
33664 chmod 755 install_conf_file build-depkgs-qt-console
33665 cd ${BUILD_DIR}
33666
33667 cd scripts
33668 chmod 755 bacula btraceback mtx-changer
33669 chmod 755 dvd-handler dvd-simulator
33670 chmod 755 bconsole disk-changer devel_bacula logrotate
33671 cd ..
33672
33673 c=updatedb
33674 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33675 chmod 755 $c/update_postgresql_tables_10_to_11
33676 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33677 chmod 755 $c/update_postgresql_tables_11_to_12
33678
33679
33680 c=src/cats
33681
33682 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33683 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33684
33685 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33686 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33687
33688 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33689 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33690
33691 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33692 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33693
33694 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33695 chmod 755 $c/sqlite
33696 chmod 755 $c/mysql
33697
33698 chmod 755 $c/install-default-backend
33699
33700 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33701    largefile_support="yes"
33702 fi
33703
33704 if test X"$GCC" = "Xyes" ; then
33705                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33706    if test "x${CCVERSION}" = "x" ; then
33707       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33708    fi
33709    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33710    if test x"${CXXVERSION}" = x ; then
33711       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33712    fi
33713 fi
33714
33715 # clean up any old junk
33716 echo " "
33717 echo "Cleaning up"
33718 echo " "
33719 ${MAKE:-make} clean
33720
33721 echo "
33722 Configuration on `date`:
33723
33724    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33725    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33726    Source code location:     ${srcdir}
33727    Install binaries:         ${sbindir}
33728    Install libraries:        ${libdir}
33729    Install config files:     ${sysconfdir}
33730    Scripts directory:        ${scriptdir}
33731    Archive directory:        ${archivedir}
33732    Working directory:        ${working_dir}
33733    PID directory:            ${piddir}
33734    Subsys directory:         ${subsysdir}
33735    Man directory:            ${mandir}
33736    Data directory:           ${datarootdir}
33737    Plugin directory:         ${plugindir}
33738    C Compiler:               ${CC} ${CCVERSION}
33739    C++ Compiler:             ${CXX} ${CXXVERSION}
33740    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33741    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33742    Libraries:                ${LIBS}
33743    Statically Linked Tools:  ${support_static_tools}
33744    Statically Linked FD:     ${support_static_fd}
33745    Statically Linked SD:     ${support_static_sd}
33746    Statically Linked DIR:    ${support_static_dir}
33747    Statically Linked CONS:   ${support_static_cons}
33748    Database backends:        ${db_backends}
33749    Database port:            ${db_port}
33750    Database name:            ${db_name}
33751    Database user:            ${db_user}
33752    Database SSL options:     ${db_ssl_options}
33753
33754    Job Output Email:         ${job_email}
33755    Traceback Email:          ${dump_email}
33756    SMTP Host Address:        ${smtp_host}
33757
33758    Director Port:            ${dir_port}
33759    File daemon Port:         ${fd_port}
33760    Storage daemon Port:      ${sd_port}
33761
33762    Director User:            ${dir_user}
33763    Director Group:           ${dir_group}
33764    Storage Daemon User:      ${sd_user}
33765    Storage DaemonGroup:      ${sd_group}
33766    File Daemon User:         ${fd_user}
33767    File Daemon Group:        ${fd_group}
33768
33769    Large file support:       $largefile_support
33770    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33771    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33772    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33773    TLS support:              ${support_tls}
33774    Encryption support:       ${support_crypto}
33775    ZLIB support:             ${have_zlib}
33776    LZO support:              ${have_lzo}
33777    enable-smartalloc:        ${support_smartalloc}
33778    enable-lockmgr:           ${support_lockmgr}
33779    bat support:              ${support_bat}
33780    client-only:              ${build_client_only}
33781    build-dird:               ${build_dird}
33782    build-stored:             ${build_stored}
33783    Plugin support:           ${have_plugins}
33784    AFS support:              ${have_afs}
33785    ACL support:              ${have_acl}
33786    XATTR support:            ${have_xattr}
33787    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33788    Batch insert enabled:     ${batch_insert_db_backends}
33789
33790   " > config.out
33791
33792 # create a small shell script useful for support with
33793 # configure options and config.out info
33794 cat > scripts/bacula_config << EOF
33795 #!/bin/sh
33796 cat << __EOC__
33797 $ $0 $ac_configure_args
33798 EOF
33799 cat config.out >> scripts/bacula_config
33800 echo __EOC__ >> scripts/bacula_config
33801 chmod 755 scripts/bacula_config
33802
33803 cat config.out