]> git.sur5r.net Git - bacula/bacula/blob - bacula/configure
Tweak recompile configure.in
[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                 ac_ext=cpp
4084 ac_cpp='$CXXCPP $CPPFLAGS'
4085 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4088 if test -z "$CXX"; then
4089   if test -n "$CCC"; then
4090     CXX=$CCC
4091   else
4092     if test -n "$ac_tool_prefix"; then
4093   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4094   do
4095     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4096 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4098 $as_echo_n "checking for $ac_word... " >&6; }
4099 if ${ac_cv_prog_CXX+:} false; then :
4100   $as_echo_n "(cached) " >&6
4101 else
4102   if test -n "$CXX"; then
4103   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4104 else
4105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4106 for as_dir in $PATH
4107 do
4108   IFS=$as_save_IFS
4109   test -z "$as_dir" && as_dir=.
4110     for ac_exec_ext in '' $ac_executable_extensions; do
4111   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4112     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4114     break 2
4115   fi
4116 done
4117   done
4118 IFS=$as_save_IFS
4119
4120 fi
4121 fi
4122 CXX=$ac_cv_prog_CXX
4123 if test -n "$CXX"; then
4124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4125 $as_echo "$CXX" >&6; }
4126 else
4127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4128 $as_echo "no" >&6; }
4129 fi
4130
4131
4132     test -n "$CXX" && break
4133   done
4134 fi
4135 if test -z "$CXX"; then
4136   ac_ct_CXX=$CXX
4137   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4138 do
4139   # Extract the first word of "$ac_prog", so it can be a program name with args.
4140 set dummy $ac_prog; ac_word=$2
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4142 $as_echo_n "checking for $ac_word... " >&6; }
4143 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4144   $as_echo_n "(cached) " >&6
4145 else
4146   if test -n "$ac_ct_CXX"; then
4147   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4148 else
4149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4150 for as_dir in $PATH
4151 do
4152   IFS=$as_save_IFS
4153   test -z "$as_dir" && as_dir=.
4154     for ac_exec_ext in '' $ac_executable_extensions; do
4155   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4156     ac_cv_prog_ac_ct_CXX="$ac_prog"
4157     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158     break 2
4159   fi
4160 done
4161   done
4162 IFS=$as_save_IFS
4163
4164 fi
4165 fi
4166 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4167 if test -n "$ac_ct_CXX"; then
4168   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4169 $as_echo "$ac_ct_CXX" >&6; }
4170 else
4171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4172 $as_echo "no" >&6; }
4173 fi
4174
4175
4176   test -n "$ac_ct_CXX" && break
4177 done
4178
4179   if test "x$ac_ct_CXX" = x; then
4180     CXX="g++"
4181   else
4182     case $cross_compiling:$ac_tool_warned in
4183 yes:)
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4185 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4186 ac_tool_warned=yes ;;
4187 esac
4188     CXX=$ac_ct_CXX
4189   fi
4190 fi
4191
4192   fi
4193 fi
4194 # Provide some information about the compiler.
4195 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4196 set X $ac_compile
4197 ac_compiler=$2
4198 for ac_option in --version -v -V -qversion; do
4199   { { ac_try="$ac_compiler $ac_option >&5"
4200 case "(($ac_try" in
4201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4202   *) ac_try_echo=$ac_try;;
4203 esac
4204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4205 $as_echo "$ac_try_echo"; } >&5
4206   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4207   ac_status=$?
4208   if test -s conftest.err; then
4209     sed '10a\
4210 ... rest of stderr output deleted ...
4211          10q' conftest.err >conftest.er1
4212     cat conftest.er1 >&5
4213   fi
4214   rm -f conftest.er1 conftest.err
4215   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4216   test $ac_status = 0; }
4217 done
4218
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4220 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4221 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4222   $as_echo_n "(cached) " >&6
4223 else
4224   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h.  */
4226
4227 int
4228 main ()
4229 {
4230 #ifndef __GNUC__
4231        choke me
4232 #endif
4233
4234   ;
4235   return 0;
4236 }
4237 _ACEOF
4238 if ac_fn_cxx_try_compile "$LINENO"; then :
4239   ac_compiler_gnu=yes
4240 else
4241   ac_compiler_gnu=no
4242 fi
4243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4244 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4245
4246 fi
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4248 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4249 if test $ac_compiler_gnu = yes; then
4250   GXX=yes
4251 else
4252   GXX=
4253 fi
4254 ac_test_CXXFLAGS=${CXXFLAGS+set}
4255 ac_save_CXXFLAGS=$CXXFLAGS
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4257 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4258 if ${ac_cv_prog_cxx_g+:} false; then :
4259   $as_echo_n "(cached) " >&6
4260 else
4261   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4262    ac_cxx_werror_flag=yes
4263    ac_cv_prog_cxx_g=no
4264    CXXFLAGS="-g"
4265    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h.  */
4267
4268 int
4269 main ()
4270 {
4271
4272   ;
4273   return 0;
4274 }
4275 _ACEOF
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4277   ac_cv_prog_cxx_g=yes
4278 else
4279   CXXFLAGS=""
4280       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4281 /* end confdefs.h.  */
4282
4283 int
4284 main ()
4285 {
4286
4287   ;
4288   return 0;
4289 }
4290 _ACEOF
4291 if ac_fn_cxx_try_compile "$LINENO"; then :
4292
4293 else
4294   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4295          CXXFLAGS="-g"
4296          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4297 /* end confdefs.h.  */
4298
4299 int
4300 main ()
4301 {
4302
4303   ;
4304   return 0;
4305 }
4306 _ACEOF
4307 if ac_fn_cxx_try_compile "$LINENO"; then :
4308   ac_cv_prog_cxx_g=yes
4309 fi
4310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4311 fi
4312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4313 fi
4314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4315    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4316 fi
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4318 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4319 if test "$ac_test_CXXFLAGS" = set; then
4320   CXXFLAGS=$ac_save_CXXFLAGS
4321 elif test $ac_cv_prog_cxx_g = yes; then
4322   if test "$GXX" = yes; then
4323     CXXFLAGS="-g -O2"
4324   else
4325     CXXFLAGS="-g"
4326   fi
4327 else
4328   if test "$GXX" = yes; then
4329     CXXFLAGS="-O2"
4330   else
4331     CXXFLAGS=
4332   fi
4333 fi
4334 ac_ext=c
4335 ac_cpp='$CPP $CPPFLAGS'
4336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340 if test "x$CC" != xcc; then
4341   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4342 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4343 else
4344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4345 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4346 fi
4347 set dummy $CC; ac_cc=`$as_echo "$2" |
4348                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4349 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4350   $as_echo_n "(cached) " >&6
4351 else
4352   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4353 /* end confdefs.h.  */
4354
4355 int
4356 main ()
4357 {
4358
4359   ;
4360   return 0;
4361 }
4362 _ACEOF
4363 # Make sure it works both with $CC and with simple cc.
4364 # We do the test twice because some compilers refuse to overwrite an
4365 # existing .o file with -o, though they will create one.
4366 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4367 rm -f conftest2.*
4368 if { { case "(($ac_try" in
4369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4370   *) ac_try_echo=$ac_try;;
4371 esac
4372 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4373 $as_echo "$ac_try_echo"; } >&5
4374   (eval "$ac_try") 2>&5
4375   ac_status=$?
4376   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4377   test $ac_status = 0; } &&
4378    test -f conftest2.$ac_objext && { { case "(($ac_try" in
4379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380   *) ac_try_echo=$ac_try;;
4381 esac
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384   (eval "$ac_try") 2>&5
4385   ac_status=$?
4386   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387   test $ac_status = 0; };
4388 then
4389   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4390   if test "x$CC" != xcc; then
4391     # Test first that cc exists at all.
4392     if { ac_try='cc -c conftest.$ac_ext >&5'
4393   { { case "(($ac_try" in
4394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4395   *) ac_try_echo=$ac_try;;
4396 esac
4397 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4398 $as_echo "$ac_try_echo"; } >&5
4399   (eval "$ac_try") 2>&5
4400   ac_status=$?
4401   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4402   test $ac_status = 0; }; }; then
4403       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4404       rm -f conftest2.*
4405       if { { case "(($ac_try" in
4406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407   *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411   (eval "$ac_try") 2>&5
4412   ac_status=$?
4413   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414   test $ac_status = 0; } &&
4415          test -f conftest2.$ac_objext && { { case "(($ac_try" in
4416   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417   *) ac_try_echo=$ac_try;;
4418 esac
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421   (eval "$ac_try") 2>&5
4422   ac_status=$?
4423   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424   test $ac_status = 0; };
4425       then
4426         # cc works too.
4427         :
4428       else
4429         # cc exists but doesn't like -o.
4430         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4431       fi
4432     fi
4433   fi
4434 else
4435   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4436 fi
4437 rm -f core conftest*
4438
4439 fi
4440 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4441   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4442 $as_echo "yes" >&6; }
4443 else
4444   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 $as_echo "no" >&6; }
4446
4447 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4448
4449 fi
4450
4451 ac_ext=c
4452 ac_cpp='$CPP $CPPFLAGS'
4453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4457 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4458 # On Suns, sometimes $CPP names a directory.
4459 if test -n "$CPP" && test -d "$CPP"; then
4460   CPP=
4461 fi
4462 if test -z "$CPP"; then
4463   if ${ac_cv_prog_CPP+:} false; then :
4464   $as_echo_n "(cached) " >&6
4465 else
4466       # Double quotes because CPP needs to be expanded
4467     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4468     do
4469       ac_preproc_ok=false
4470 for ac_c_preproc_warn_flag in '' yes
4471 do
4472   # Use a header file that comes with gcc, so configuring glibc
4473   # with a fresh cross-compiler works.
4474   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4475   # <limits.h> exists even on freestanding compilers.
4476   # On the NeXT, cc -E runs the code through the compiler's parser,
4477   # not just through cpp. "Syntax error" is here to catch this case.
4478   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h.  */
4480 #ifdef __STDC__
4481 # include <limits.h>
4482 #else
4483 # include <assert.h>
4484 #endif
4485                      Syntax error
4486 _ACEOF
4487 if ac_fn_c_try_cpp "$LINENO"; then :
4488
4489 else
4490   # Broken: fails on valid input.
4491 continue
4492 fi
4493 rm -f conftest.err conftest.i conftest.$ac_ext
4494
4495   # OK, works on sane cases.  Now check whether nonexistent headers
4496   # can be detected and how.
4497   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4498 /* end confdefs.h.  */
4499 #include <ac_nonexistent.h>
4500 _ACEOF
4501 if ac_fn_c_try_cpp "$LINENO"; then :
4502   # Broken: success on invalid input.
4503 continue
4504 else
4505   # Passes both tests.
4506 ac_preproc_ok=:
4507 break
4508 fi
4509 rm -f conftest.err conftest.i conftest.$ac_ext
4510
4511 done
4512 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4513 rm -f conftest.i conftest.err conftest.$ac_ext
4514 if $ac_preproc_ok; then :
4515   break
4516 fi
4517
4518     done
4519     ac_cv_prog_CPP=$CPP
4520
4521 fi
4522   CPP=$ac_cv_prog_CPP
4523 else
4524   ac_cv_prog_CPP=$CPP
4525 fi
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4527 $as_echo "$CPP" >&6; }
4528 ac_preproc_ok=false
4529 for ac_c_preproc_warn_flag in '' yes
4530 do
4531   # Use a header file that comes with gcc, so configuring glibc
4532   # with a fresh cross-compiler works.
4533   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4534   # <limits.h> exists even on freestanding compilers.
4535   # On the NeXT, cc -E runs the code through the compiler's parser,
4536   # not just through cpp. "Syntax error" is here to catch this case.
4537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538 /* end confdefs.h.  */
4539 #ifdef __STDC__
4540 # include <limits.h>
4541 #else
4542 # include <assert.h>
4543 #endif
4544                      Syntax error
4545 _ACEOF
4546 if ac_fn_c_try_cpp "$LINENO"; then :
4547
4548 else
4549   # Broken: fails on valid input.
4550 continue
4551 fi
4552 rm -f conftest.err conftest.i conftest.$ac_ext
4553
4554   # OK, works on sane cases.  Now check whether nonexistent headers
4555   # can be detected and how.
4556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h.  */
4558 #include <ac_nonexistent.h>
4559 _ACEOF
4560 if ac_fn_c_try_cpp "$LINENO"; then :
4561   # Broken: success on invalid input.
4562 continue
4563 else
4564   # Passes both tests.
4565 ac_preproc_ok=:
4566 break
4567 fi
4568 rm -f conftest.err conftest.i conftest.$ac_ext
4569
4570 done
4571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4572 rm -f conftest.i conftest.err conftest.$ac_ext
4573 if $ac_preproc_ok; then :
4574
4575 else
4576   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4579 See \`config.log' for more details" "$LINENO" 5; }
4580 fi
4581
4582 ac_ext=c
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587
4588
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4590 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4591 if ${ac_cv_path_GREP+:} false; then :
4592   $as_echo_n "(cached) " >&6
4593 else
4594   if test -z "$GREP"; then
4595   ac_path_GREP_found=false
4596   # Loop through the user's path and test for each of PROGNAME-LIST
4597   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4599 do
4600   IFS=$as_save_IFS
4601   test -z "$as_dir" && as_dir=.
4602     for ac_prog in grep ggrep; do
4603     for ac_exec_ext in '' $ac_executable_extensions; do
4604       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4605       as_fn_executable_p "$ac_path_GREP" || continue
4606 # Check for GNU ac_path_GREP and select it if it is found.
4607   # Check for GNU $ac_path_GREP
4608 case `"$ac_path_GREP" --version 2>&1` in
4609 *GNU*)
4610   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4611 *)
4612   ac_count=0
4613   $as_echo_n 0123456789 >"conftest.in"
4614   while :
4615   do
4616     cat "conftest.in" "conftest.in" >"conftest.tmp"
4617     mv "conftest.tmp" "conftest.in"
4618     cp "conftest.in" "conftest.nl"
4619     $as_echo 'GREP' >> "conftest.nl"
4620     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4621     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4622     as_fn_arith $ac_count + 1 && ac_count=$as_val
4623     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4624       # Best one so far, save it but keep looking for a better one
4625       ac_cv_path_GREP="$ac_path_GREP"
4626       ac_path_GREP_max=$ac_count
4627     fi
4628     # 10*(2^10) chars as input seems more than enough
4629     test $ac_count -gt 10 && break
4630   done
4631   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4632 esac
4633
4634       $ac_path_GREP_found && break 3
4635     done
4636   done
4637   done
4638 IFS=$as_save_IFS
4639   if test -z "$ac_cv_path_GREP"; then
4640     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4641   fi
4642 else
4643   ac_cv_path_GREP=$GREP
4644 fi
4645
4646 fi
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4648 $as_echo "$ac_cv_path_GREP" >&6; }
4649  GREP="$ac_cv_path_GREP"
4650
4651
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4653 $as_echo_n "checking for egrep... " >&6; }
4654 if ${ac_cv_path_EGREP+:} false; then :
4655   $as_echo_n "(cached) " >&6
4656 else
4657   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4658    then ac_cv_path_EGREP="$GREP -E"
4659    else
4660      if test -z "$EGREP"; then
4661   ac_path_EGREP_found=false
4662   # Loop through the user's path and test for each of PROGNAME-LIST
4663   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4664 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4665 do
4666   IFS=$as_save_IFS
4667   test -z "$as_dir" && as_dir=.
4668     for ac_prog in egrep; do
4669     for ac_exec_ext in '' $ac_executable_extensions; do
4670       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4671       as_fn_executable_p "$ac_path_EGREP" || continue
4672 # Check for GNU ac_path_EGREP and select it if it is found.
4673   # Check for GNU $ac_path_EGREP
4674 case `"$ac_path_EGREP" --version 2>&1` in
4675 *GNU*)
4676   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4677 *)
4678   ac_count=0
4679   $as_echo_n 0123456789 >"conftest.in"
4680   while :
4681   do
4682     cat "conftest.in" "conftest.in" >"conftest.tmp"
4683     mv "conftest.tmp" "conftest.in"
4684     cp "conftest.in" "conftest.nl"
4685     $as_echo 'EGREP' >> "conftest.nl"
4686     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4687     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4688     as_fn_arith $ac_count + 1 && ac_count=$as_val
4689     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4690       # Best one so far, save it but keep looking for a better one
4691       ac_cv_path_EGREP="$ac_path_EGREP"
4692       ac_path_EGREP_max=$ac_count
4693     fi
4694     # 10*(2^10) chars as input seems more than enough
4695     test $ac_count -gt 10 && break
4696   done
4697   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4698 esac
4699
4700       $ac_path_EGREP_found && break 3
4701     done
4702   done
4703   done
4704 IFS=$as_save_IFS
4705   if test -z "$ac_cv_path_EGREP"; then
4706     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4707   fi
4708 else
4709   ac_cv_path_EGREP=$EGREP
4710 fi
4711
4712    fi
4713 fi
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4715 $as_echo "$ac_cv_path_EGREP" >&6; }
4716  EGREP="$ac_cv_path_EGREP"
4717
4718
4719 if test $ac_cv_c_compiler_gnu = yes; then
4720     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
4721 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
4722 if ${ac_cv_prog_gcc_traditional+:} false; then :
4723   $as_echo_n "(cached) " >&6
4724 else
4725     ac_pattern="Autoconf.*'x'"
4726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4727 /* end confdefs.h.  */
4728 #include <sgtty.h>
4729 Autoconf TIOCGETP
4730 _ACEOF
4731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4732   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4733   ac_cv_prog_gcc_traditional=yes
4734 else
4735   ac_cv_prog_gcc_traditional=no
4736 fi
4737 rm -f conftest*
4738
4739
4740   if test $ac_cv_prog_gcc_traditional = no; then
4741     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h.  */
4743 #include <termio.h>
4744 Autoconf TCGETA
4745 _ACEOF
4746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4747   $EGREP "$ac_pattern" >/dev/null 2>&1; then :
4748   ac_cv_prog_gcc_traditional=yes
4749 fi
4750 rm -f conftest*
4751
4752   fi
4753 fi
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
4755 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
4756   if test $ac_cv_prog_gcc_traditional = yes; then
4757     CC="$CC -traditional"
4758   fi
4759 fi
4760
4761 BASECC=`basename $CC`
4762 have_gcc=no
4763 if test x"$GCC" = "xyes"; then
4764    $as_echo "#define HAVE_GCC 1" >>confdefs.h
4765
4766    have_gcc=yes
4767 fi
4768 # Extract the first word of "$CXX", so it can be a program name with args.
4769 set dummy $CXX; ac_word=$2
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4771 $as_echo_n "checking for $ac_word... " >&6; }
4772 if ${ac_cv_path_CXX+:} false; then :
4773   $as_echo_n "(cached) " >&6
4774 else
4775   case $CXX in
4776   [\\/]* | ?:[\\/]*)
4777   ac_cv_path_CXX="$CXX" # Let the user override the test with a path.
4778   ;;
4779   *)
4780   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 for as_dir in $PATH
4782 do
4783   IFS=$as_save_IFS
4784   test -z "$as_dir" && as_dir=.
4785     for ac_exec_ext in '' $ac_executable_extensions; do
4786   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4787     ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext"
4788     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4789     break 2
4790   fi
4791 done
4792   done
4793 IFS=$as_save_IFS
4794
4795   test -z "$ac_cv_path_CXX" && ac_cv_path_CXX="$CXX"
4796   ;;
4797 esac
4798 fi
4799 CXX=$ac_cv_path_CXX
4800 if test -n "$CXX"; then
4801   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4802 $as_echo "$CXX" >&6; }
4803 else
4804   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 fi
4807
4808
4809 if test ! -e $CXX; then
4810    as_fn_error $? "Unable to find C++ compiler" "$LINENO" 5
4811 fi
4812
4813 # Find a good install program.  We prefer a C program (faster),
4814 # so one script is as good as another.  But avoid the broken or
4815 # incompatible versions:
4816 # SysV /etc/install, /usr/sbin/install
4817 # SunOS /usr/etc/install
4818 # IRIX /sbin/install
4819 # AIX /bin/install
4820 # AmigaOS /C/install, which installs bootblocks on floppy discs
4821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4824 # OS/2's system install, which has a completely different semantic
4825 # ./install, which can be erroneously created by make from ./install.sh.
4826 # Reject install programs that cannot install multiple files.
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4829 if test -z "$INSTALL"; then
4830 if ${ac_cv_path_install+:} false; then :
4831   $as_echo_n "(cached) " >&6
4832 else
4833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4835 do
4836   IFS=$as_save_IFS
4837   test -z "$as_dir" && as_dir=.
4838     # Account for people who put trailing slashes in PATH elements.
4839 case $as_dir/ in #((
4840   ./ | .// | /[cC]/* | \
4841   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4842   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4843   /usr/ucb/* ) ;;
4844   *)
4845     # OSF1 and SCO ODT 3.0 have their own names for install.
4846     # Don't use installbsd from OSF since it installs stuff as root
4847     # by default.
4848     for ac_prog in ginstall scoinst install; do
4849       for ac_exec_ext in '' $ac_executable_extensions; do
4850         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4851           if test $ac_prog = install &&
4852             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4853             # AIX install.  It has an incompatible calling convention.
4854             :
4855           elif test $ac_prog = install &&
4856             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4857             # program-specific install script used by HP pwplus--don't use.
4858             :
4859           else
4860             rm -rf conftest.one conftest.two conftest.dir
4861             echo one > conftest.one
4862             echo two > conftest.two
4863             mkdir conftest.dir
4864             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4865               test -s conftest.one && test -s conftest.two &&
4866               test -s conftest.dir/conftest.one &&
4867               test -s conftest.dir/conftest.two
4868             then
4869               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4870               break 3
4871             fi
4872           fi
4873         fi
4874       done
4875     done
4876     ;;
4877 esac
4878
4879   done
4880 IFS=$as_save_IFS
4881
4882 rm -rf conftest.one conftest.two conftest.dir
4883
4884 fi
4885   if test "${ac_cv_path_install+set}" = set; then
4886     INSTALL=$ac_cv_path_install
4887   else
4888     # As a last resort, use the slow shell script.  Don't cache a
4889     # value for INSTALL within a source directory, because that will
4890     # break other packages using the cache if that directory is
4891     # removed, or if the value is a relative name.
4892     INSTALL=$ac_install_sh
4893   fi
4894 fi
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4896 $as_echo "$INSTALL" >&6; }
4897
4898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4899 # It thinks the first close brace ends the variable substitution.
4900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4901
4902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4903
4904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4905
4906 # Extract the first word of "mv", so it can be a program name with args.
4907 set dummy mv; ac_word=$2
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909 $as_echo_n "checking for $ac_word... " >&6; }
4910 if ${ac_cv_path_MV+:} false; then :
4911   $as_echo_n "(cached) " >&6
4912 else
4913   case $MV in
4914   [\\/]* | ?:[\\/]*)
4915   ac_cv_path_MV="$MV" # Let the user override the test with a path.
4916   ;;
4917   *)
4918   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4919 for as_dir in $PATH
4920 do
4921   IFS=$as_save_IFS
4922   test -z "$as_dir" && as_dir=.
4923     for ac_exec_ext in '' $ac_executable_extensions; do
4924   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4925     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4926     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4927     break 2
4928   fi
4929 done
4930   done
4931 IFS=$as_save_IFS
4932
4933   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4934   ;;
4935 esac
4936 fi
4937 MV=$ac_cv_path_MV
4938 if test -n "$MV"; then
4939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4940 $as_echo "$MV" >&6; }
4941 else
4942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4944 fi
4945
4946
4947 # Extract the first word of "rm", so it can be a program name with args.
4948 set dummy rm; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if ${ac_cv_path_REMOVE+:} false; then :
4952   $as_echo_n "(cached) " >&6
4953 else
4954   case $REMOVE in
4955   [\\/]* | ?:[\\/]*)
4956   ac_cv_path_REMOVE="$REMOVE" # Let the user override the test with a path.
4957   ;;
4958   *)
4959   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962   IFS=$as_save_IFS
4963   test -z "$as_dir" && as_dir=.
4964     for ac_exec_ext in '' $ac_executable_extensions; do
4965   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4966     ac_cv_path_REMOVE="$as_dir/$ac_word$ac_exec_ext"
4967     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4968     break 2
4969   fi
4970 done
4971   done
4972 IFS=$as_save_IFS
4973
4974   test -z "$ac_cv_path_REMOVE" && ac_cv_path_REMOVE="rm"
4975   ;;
4976 esac
4977 fi
4978 REMOVE=$ac_cv_path_REMOVE
4979 if test -n "$REMOVE"; then
4980   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $REMOVE" >&5
4981 $as_echo "$REMOVE" >&6; }
4982 else
4983   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4985 fi
4986
4987
4988 # Extract the first word of "cp", so it can be a program name with args.
4989 set dummy cp; ac_word=$2
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991 $as_echo_n "checking for $ac_word... " >&6; }
4992 if ${ac_cv_path_CP+:} false; then :
4993   $as_echo_n "(cached) " >&6
4994 else
4995   case $CP in
4996   [\\/]* | ?:[\\/]*)
4997   ac_cv_path_CP="$CP" # Let the user override the test with a path.
4998   ;;
4999   *)
5000   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001 for as_dir in $PATH
5002 do
5003   IFS=$as_save_IFS
5004   test -z "$as_dir" && as_dir=.
5005     for ac_exec_ext in '' $ac_executable_extensions; do
5006   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5009     break 2
5010   fi
5011 done
5012   done
5013 IFS=$as_save_IFS
5014
5015   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5016   ;;
5017 esac
5018 fi
5019 CP=$ac_cv_path_CP
5020 if test -n "$CP"; then
5021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5022 $as_echo "$CP" >&6; }
5023 else
5024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5026 fi
5027
5028
5029 # Extract the first word of "sed", so it can be a program name with args.
5030 set dummy sed; ac_word=$2
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032 $as_echo_n "checking for $ac_word... " >&6; }
5033 if ${ac_cv_path_SED+:} false; then :
5034   $as_echo_n "(cached) " >&6
5035 else
5036   case $SED in
5037   [\\/]* | ?:[\\/]*)
5038   ac_cv_path_SED="$SED" # Let the user override the test with a path.
5039   ;;
5040   *)
5041   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044   IFS=$as_save_IFS
5045   test -z "$as_dir" && as_dir=.
5046     for ac_exec_ext in '' $ac_executable_extensions; do
5047   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5049     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050     break 2
5051   fi
5052 done
5053   done
5054 IFS=$as_save_IFS
5055
5056   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5057   ;;
5058 esac
5059 fi
5060 SED=$ac_cv_path_SED
5061 if test -n "$SED"; then
5062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
5063 $as_echo "$SED" >&6; }
5064 else
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5067 fi
5068
5069
5070 # Extract the first word of "echo", so it can be a program name with args.
5071 set dummy echo; ac_word=$2
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5073 $as_echo_n "checking for $ac_word... " >&6; }
5074 if ${ac_cv_path_ECHO+:} false; then :
5075   $as_echo_n "(cached) " >&6
5076 else
5077   case $ECHO in
5078   [\\/]* | ?:[\\/]*)
5079   ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5080   ;;
5081   *)
5082   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083 for as_dir in $PATH
5084 do
5085   IFS=$as_save_IFS
5086   test -z "$as_dir" && as_dir=.
5087     for ac_exec_ext in '' $ac_executable_extensions; do
5088   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5089     ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5090     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5091     break 2
5092   fi
5093 done
5094   done
5095 IFS=$as_save_IFS
5096
5097   test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5098   ;;
5099 esac
5100 fi
5101 ECHO=$ac_cv_path_ECHO
5102 if test -n "$ECHO"; then
5103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
5104 $as_echo "$ECHO" >&6; }
5105 else
5106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5108 fi
5109
5110
5111 # Extract the first word of "cmp", so it can be a program name with args.
5112 set dummy cmp; ac_word=$2
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5114 $as_echo_n "checking for $ac_word... " >&6; }
5115 if ${ac_cv_path_CMP+:} false; then :
5116   $as_echo_n "(cached) " >&6
5117 else
5118   case $CMP in
5119   [\\/]* | ?:[\\/]*)
5120   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5121   ;;
5122   *)
5123   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126   IFS=$as_save_IFS
5127   test -z "$as_dir" && as_dir=.
5128     for ac_exec_ext in '' $ac_executable_extensions; do
5129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5132     break 2
5133   fi
5134 done
5135   done
5136 IFS=$as_save_IFS
5137
5138   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5139   ;;
5140 esac
5141 fi
5142 CMP=$ac_cv_path_CMP
5143 if test -n "$CMP"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
5145 $as_echo "$CMP" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 # Extract the first word of "tbl", so it can be a program name with args.
5153 set dummy tbl; ac_word=$2
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5155 $as_echo_n "checking for $ac_word... " >&6; }
5156 if ${ac_cv_path_TBL+:} false; then :
5157   $as_echo_n "(cached) " >&6
5158 else
5159   case $TBL in
5160   [\\/]* | ?:[\\/]*)
5161   ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5162   ;;
5163   *)
5164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167   IFS=$as_save_IFS
5168   test -z "$as_dir" && as_dir=.
5169     for ac_exec_ext in '' $ac_executable_extensions; do
5170   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5171     ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5172     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173     break 2
5174   fi
5175 done
5176   done
5177 IFS=$as_save_IFS
5178
5179   test -z "$ac_cv_path_TBL" && ac_cv_path_TBL="tbl"
5180   ;;
5181 esac
5182 fi
5183 TBL=$ac_cv_path_TBL
5184 if test -n "$TBL"; then
5185   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TBL" >&5
5186 $as_echo "$TBL" >&6; }
5187 else
5188   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5190 fi
5191
5192
5193 # Extract the first word of "ar", so it can be a program name with args.
5194 set dummy ar; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; }
5197 if ${ac_cv_path_AR+:} false; then :
5198   $as_echo_n "(cached) " >&6
5199 else
5200   case $AR in
5201   [\\/]* | ?:[\\/]*)
5202   ac_cv_path_AR="$AR" # Let the user override the test with a path.
5203   ;;
5204   *)
5205   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH
5207 do
5208   IFS=$as_save_IFS
5209   test -z "$as_dir" && as_dir=.
5210     for ac_exec_ext in '' $ac_executable_extensions; do
5211   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5212     ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
5213     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5214     break 2
5215   fi
5216 done
5217   done
5218 IFS=$as_save_IFS
5219
5220   test -z "$ac_cv_path_AR" && ac_cv_path_AR="ar"
5221   ;;
5222 esac
5223 fi
5224 AR=$ac_cv_path_AR
5225 if test -n "$AR"; then
5226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5227 $as_echo "$AR" >&6; }
5228 else
5229   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230 $as_echo "no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "openssl", so it can be a program name with args.
5235 set dummy openssl; ac_word=$2
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5237 $as_echo_n "checking for $ac_word... " >&6; }
5238 if ${ac_cv_path_OPENSSL+:} false; then :
5239   $as_echo_n "(cached) " >&6
5240 else
5241   case $OPENSSL in
5242   [\\/]* | ?:[\\/]*)
5243   ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
5244   ;;
5245   *)
5246   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5248 do
5249   IFS=$as_save_IFS
5250   test -z "$as_dir" && as_dir=.
5251     for ac_exec_ext in '' $ac_executable_extensions; do
5252   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253     ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
5254     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255     break 2
5256   fi
5257 done
5258   done
5259 IFS=$as_save_IFS
5260
5261   test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="none"
5262   ;;
5263 esac
5264 fi
5265 OPENSSL=$ac_cv_path_OPENSSL
5266 if test -n "$OPENSSL"; then
5267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
5268 $as_echo "$OPENSSL" >&6; }
5269 else
5270   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 # Extract the first word of "mtx", so it can be a program name with args.
5276 set dummy mtx; ac_word=$2
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5278 $as_echo_n "checking for $ac_word... " >&6; }
5279 if ${ac_cv_path_MTX+:} false; then :
5280   $as_echo_n "(cached) " >&6
5281 else
5282   case $MTX in
5283   [\\/]* | ?:[\\/]*)
5284   ac_cv_path_MTX="$MTX" # Let the user override the test with a path.
5285   ;;
5286   *)
5287   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5289 do
5290   IFS=$as_save_IFS
5291   test -z "$as_dir" && as_dir=.
5292     for ac_exec_ext in '' $ac_executable_extensions; do
5293   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294     ac_cv_path_MTX="$as_dir/$ac_word$ac_exec_ext"
5295     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5296     break 2
5297   fi
5298 done
5299   done
5300 IFS=$as_save_IFS
5301
5302   test -z "$ac_cv_path_MTX" && ac_cv_path_MTX="mtx"
5303   ;;
5304 esac
5305 fi
5306 MTX=$ac_cv_path_MTX
5307 if test -n "$MTX"; then
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MTX" >&5
5309 $as_echo "$MTX" >&6; }
5310 else
5311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5312 $as_echo "no" >&6; }
5313 fi
5314
5315
5316 # Extract the first word of "dd", so it can be a program name with args.
5317 set dummy dd; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_DD+:} false; then :
5321   $as_echo_n "(cached) " >&6
5322 else
5323   case $DD in
5324   [\\/]* | ?:[\\/]*)
5325   ac_cv_path_DD="$DD" # Let the user override the test with a path.
5326   ;;
5327   *)
5328   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 for as_dir in $PATH
5330 do
5331   IFS=$as_save_IFS
5332   test -z "$as_dir" && as_dir=.
5333     for ac_exec_ext in '' $ac_executable_extensions; do
5334   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5335     ac_cv_path_DD="$as_dir/$ac_word$ac_exec_ext"
5336     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5337     break 2
5338   fi
5339 done
5340   done
5341 IFS=$as_save_IFS
5342
5343   test -z "$ac_cv_path_DD" && ac_cv_path_DD="dd"
5344   ;;
5345 esac
5346 fi
5347 DD=$ac_cv_path_DD
5348 if test -n "$DD"; then
5349   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
5350 $as_echo "$DD" >&6; }
5351 else
5352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5354 fi
5355
5356
5357 # Extract the first word of "mkisofs", so it can be a program name with args.
5358 set dummy mkisofs; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_path_MKISOFS+:} false; then :
5362   $as_echo_n "(cached) " >&6
5363 else
5364   case $MKISOFS in
5365   [\\/]* | ?:[\\/]*)
5366   ac_cv_path_MKISOFS="$MKISOFS" # Let the user override the test with a path.
5367   ;;
5368   *)
5369   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5370 for as_dir in $PATH
5371 do
5372   IFS=$as_save_IFS
5373   test -z "$as_dir" && as_dir=.
5374     for ac_exec_ext in '' $ac_executable_extensions; do
5375   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5376     ac_cv_path_MKISOFS="$as_dir/$ac_word$ac_exec_ext"
5377     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5378     break 2
5379   fi
5380 done
5381   done
5382 IFS=$as_save_IFS
5383
5384   test -z "$ac_cv_path_MKISOFS" && ac_cv_path_MKISOFS="mkisofs"
5385   ;;
5386 esac
5387 fi
5388 MKISOFS=$ac_cv_path_MKISOFS
5389 if test -n "$MKISOFS"; then
5390   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKISOFS" >&5
5391 $as_echo "$MKISOFS" >&6; }
5392 else
5393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5394 $as_echo "no" >&6; }
5395 fi
5396
5397
5398 # Extract the first word of "python", so it can be a program name with args.
5399 set dummy python; ac_word=$2
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 $as_echo_n "checking for $ac_word... " >&6; }
5402 if ${ac_cv_path_PYTHON+:} false; then :
5403   $as_echo_n "(cached) " >&6
5404 else
5405   case $PYTHON in
5406   [\\/]* | ?:[\\/]*)
5407   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5408   ;;
5409   *)
5410   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 for as_dir in $PATH
5412 do
5413   IFS=$as_save_IFS
5414   test -z "$as_dir" && as_dir=.
5415     for ac_exec_ext in '' $ac_executable_extensions; do
5416   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5417     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5418     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5419     break 2
5420   fi
5421 done
5422   done
5423 IFS=$as_save_IFS
5424
5425   test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="python"
5426   ;;
5427 esac
5428 fi
5429 PYTHON=$ac_cv_path_PYTHON
5430 if test -n "$PYTHON"; then
5431   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5432 $as_echo "$PYTHON" >&6; }
5433 else
5434   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5435 $as_echo "no" >&6; }
5436 fi
5437
5438
5439 # Extract the first word of "growisofs", so it can be a program name with args.
5440 set dummy growisofs; ac_word=$2
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5442 $as_echo_n "checking for $ac_word... " >&6; }
5443 if ${ac_cv_path_GROWISOFS+:} false; then :
5444   $as_echo_n "(cached) " >&6
5445 else
5446   case $GROWISOFS in
5447   [\\/]* | ?:[\\/]*)
5448   ac_cv_path_GROWISOFS="$GROWISOFS" # Let the user override the test with a path.
5449   ;;
5450   *)
5451   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   test -z "$as_dir" && as_dir=.
5456     for ac_exec_ext in '' $ac_executable_extensions; do
5457   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458     ac_cv_path_GROWISOFS="$as_dir/$ac_word$ac_exec_ext"
5459     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5460     break 2
5461   fi
5462 done
5463   done
5464 IFS=$as_save_IFS
5465
5466   test -z "$ac_cv_path_GROWISOFS" && ac_cv_path_GROWISOFS="growisofs"
5467   ;;
5468 esac
5469 fi
5470 GROWISOFS=$ac_cv_path_GROWISOFS
5471 if test -n "$GROWISOFS"; then
5472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROWISOFS" >&5
5473 $as_echo "$GROWISOFS" >&6; }
5474 else
5475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5476 $as_echo "no" >&6; }
5477 fi
5478
5479
5480 # Extract the first word of "dvd+rw-mediainfo", so it can be a program name with args.
5481 set dummy dvd+rw-mediainfo; ac_word=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_path_DVDRWMEDIAINFO+:} false; then :
5485   $as_echo_n "(cached) " >&6
5486 else
5487   case $DVDRWMEDIAINFO in
5488   [\\/]* | ?:[\\/]*)
5489   ac_cv_path_DVDRWMEDIAINFO="$DVDRWMEDIAINFO" # Let the user override the test with a path.
5490   ;;
5491   *)
5492   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493 for as_dir in $PATH
5494 do
5495   IFS=$as_save_IFS
5496   test -z "$as_dir" && as_dir=.
5497     for ac_exec_ext in '' $ac_executable_extensions; do
5498   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5499     ac_cv_path_DVDRWMEDIAINFO="$as_dir/$ac_word$ac_exec_ext"
5500     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5501     break 2
5502   fi
5503 done
5504   done
5505 IFS=$as_save_IFS
5506
5507   test -z "$ac_cv_path_DVDRWMEDIAINFO" && ac_cv_path_DVDRWMEDIAINFO="dvd+rw-mediainfo"
5508   ;;
5509 esac
5510 fi
5511 DVDRWMEDIAINFO=$ac_cv_path_DVDRWMEDIAINFO
5512 if test -n "$DVDRWMEDIAINFO"; then
5513   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWMEDIAINFO" >&5
5514 $as_echo "$DVDRWMEDIAINFO" >&6; }
5515 else
5516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5518 fi
5519
5520
5521 # Extract the first word of "dvd+rw-format", so it can be a program name with args.
5522 set dummy dvd+rw-format; ac_word=$2
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524 $as_echo_n "checking for $ac_word... " >&6; }
5525 if ${ac_cv_path_DVDRWFORMAT+:} false; then :
5526   $as_echo_n "(cached) " >&6
5527 else
5528   case $DVDRWFORMAT in
5529   [\\/]* | ?:[\\/]*)
5530   ac_cv_path_DVDRWFORMAT="$DVDRWFORMAT" # Let the user override the test with a path.
5531   ;;
5532   *)
5533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536   IFS=$as_save_IFS
5537   test -z "$as_dir" && as_dir=.
5538     for ac_exec_ext in '' $ac_executable_extensions; do
5539   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540     ac_cv_path_DVDRWFORMAT="$as_dir/$ac_word$ac_exec_ext"
5541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542     break 2
5543   fi
5544 done
5545   done
5546 IFS=$as_save_IFS
5547
5548   test -z "$ac_cv_path_DVDRWFORMAT" && ac_cv_path_DVDRWFORMAT="dvd+rw-format"
5549   ;;
5550 esac
5551 fi
5552 DVDRWFORMAT=$ac_cv_path_DVDRWFORMAT
5553 if test -n "$DVDRWFORMAT"; then
5554   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVDRWFORMAT" >&5
5555 $as_echo "$DVDRWFORMAT" >&6; }
5556 else
5557   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5559 fi
5560
5561
5562 # Extract the first word of "pkg-config", so it can be a program name with args.
5563 set dummy pkg-config; ac_word=$2
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5565 $as_echo_n "checking for $ac_word... " >&6; }
5566 if ${ac_cv_path_PKGCONFIG+:} false; then :
5567   $as_echo_n "(cached) " >&6
5568 else
5569   case $PKGCONFIG in
5570   [\\/]* | ?:[\\/]*)
5571   ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
5572   ;;
5573   *)
5574   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5575 for as_dir in $PATH
5576 do
5577   IFS=$as_save_IFS
5578   test -z "$as_dir" && as_dir=.
5579     for ac_exec_ext in '' $ac_executable_extensions; do
5580   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5581     ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
5582     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583     break 2
5584   fi
5585 done
5586   done
5587 IFS=$as_save_IFS
5588
5589   test -z "$ac_cv_path_PKGCONFIG" && ac_cv_path_PKGCONFIG="pkg-config"
5590   ;;
5591 esac
5592 fi
5593 PKGCONFIG=$ac_cv_path_PKGCONFIG
5594 if test -n "$PKGCONFIG"; then
5595   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
5596 $as_echo "$PKGCONFIG" >&6; }
5597 else
5598   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5600 fi
5601
5602
5603 # Extract the first word of "qmake", so it can be a program name with args.
5604 set dummy qmake; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_QMAKE+:} false; then :
5608   $as_echo_n "(cached) " >&6
5609 else
5610   case $QMAKE in
5611   [\\/]* | ?:[\\/]*)
5612   ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
5613   ;;
5614   *)
5615   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618   IFS=$as_save_IFS
5619   test -z "$as_dir" && as_dir=.
5620     for ac_exec_ext in '' $ac_executable_extensions; do
5621   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5622     ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
5623     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5624     break 2
5625   fi
5626 done
5627   done
5628 IFS=$as_save_IFS
5629
5630   test -z "$ac_cv_path_QMAKE" && ac_cv_path_QMAKE="none"
5631   ;;
5632 esac
5633 fi
5634 QMAKE=$ac_cv_path_QMAKE
5635 if test -n "$QMAKE"; then
5636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
5637 $as_echo "$QMAKE" >&6; }
5638 else
5639   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5641 fi
5642
5643
5644 # Extract the first word of "gmake", so it can be a program name with args.
5645 set dummy gmake; ac_word=$2
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5647 $as_echo_n "checking for $ac_word... " >&6; }
5648 if ${ac_cv_path_GMAKE+:} false; then :
5649   $as_echo_n "(cached) " >&6
5650 else
5651   case $GMAKE in
5652   [\\/]* | ?:[\\/]*)
5653   ac_cv_path_GMAKE="$GMAKE" # Let the user override the test with a path.
5654   ;;
5655   *)
5656   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5657 for as_dir in $PATH
5658 do
5659   IFS=$as_save_IFS
5660   test -z "$as_dir" && as_dir=.
5661     for ac_exec_ext in '' $ac_executable_extensions; do
5662   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663     ac_cv_path_GMAKE="$as_dir/$ac_word$ac_exec_ext"
5664     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5665     break 2
5666   fi
5667 done
5668   done
5669 IFS=$as_save_IFS
5670
5671   test -z "$ac_cv_path_GMAKE" && ac_cv_path_GMAKE="none"
5672   ;;
5673 esac
5674 fi
5675 GMAKE=$ac_cv_path_GMAKE
5676 if test -n "$GMAKE"; then
5677   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMAKE" >&5
5678 $as_echo "$GMAKE" >&6; }
5679 else
5680   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5681 $as_echo "no" >&6; }
5682 fi
5683
5684
5685 # Extract the first word of "pidof", so it can be a program name with args.
5686 set dummy pidof; ac_word=$2
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5688 $as_echo_n "checking for $ac_word... " >&6; }
5689 if ${ac_cv_path_PIDOF+:} false; then :
5690   $as_echo_n "(cached) " >&6
5691 else
5692   case $PIDOF in
5693   [\\/]* | ?:[\\/]*)
5694   ac_cv_path_PIDOF="$PIDOF" # Let the user override the test with a path.
5695   ;;
5696   *)
5697   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5698 for as_dir in $PATH
5699 do
5700   IFS=$as_save_IFS
5701   test -z "$as_dir" && as_dir=.
5702     for ac_exec_ext in '' $ac_executable_extensions; do
5703   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5704     ac_cv_path_PIDOF="$as_dir/$ac_word$ac_exec_ext"
5705     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5706     break 2
5707   fi
5708 done
5709   done
5710 IFS=$as_save_IFS
5711
5712   test -z "$ac_cv_path_PIDOF" && ac_cv_path_PIDOF="pidof"
5713   ;;
5714 esac
5715 fi
5716 PIDOF=$ac_cv_path_PIDOF
5717 if test -n "$PIDOF"; then
5718   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PIDOF" >&5
5719 $as_echo "$PIDOF" >&6; }
5720 else
5721   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5722 $as_echo "no" >&6; }
5723 fi
5724
5725
5726 for ac_prog in gawk mawk nawk awk
5727 do
5728   # Extract the first word of "$ac_prog", so it can be a program name with args.
5729 set dummy $ac_prog; ac_word=$2
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 $as_echo_n "checking for $ac_word... " >&6; }
5732 if ${ac_cv_prog_AWK+:} false; then :
5733   $as_echo_n "(cached) " >&6
5734 else
5735   if test -n "$AWK"; then
5736   ac_cv_prog_AWK="$AWK" # Let the user override the test.
5737 else
5738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739 for as_dir in $PATH
5740 do
5741   IFS=$as_save_IFS
5742   test -z "$as_dir" && as_dir=.
5743     for ac_exec_ext in '' $ac_executable_extensions; do
5744   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5745     ac_cv_prog_AWK="$ac_prog"
5746     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747     break 2
5748   fi
5749 done
5750   done
5751 IFS=$as_save_IFS
5752
5753 fi
5754 fi
5755 AWK=$ac_cv_prog_AWK
5756 if test -n "$AWK"; then
5757   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5758 $as_echo "$AWK" >&6; }
5759 else
5760   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 $as_echo "no" >&6; }
5762 fi
5763
5764
5765   test -n "$AWK" && break
5766 done
5767
5768 # Some AWK programs fail, so test it and warn the user
5769 if echo xfoo | $AWK 'BEGIN { prog=ARGV1; ARGC=1 }
5770       { if ((prog == $2) || (("(" prog ")") == $2) ||
5771       (("" prog "") == $2) ||
5772       ((prog ":") == $2)) { print $1 ; exit 0 } }' xfoo>/dev/null; then :;
5773 else
5774   as_fn_error $? "!!!!!!!!! WARNING !!!!!!!!!!!!!!
5775    The regex engine of $AWK is too broken to be used you
5776    might want to install GNU AWK.
5777    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" "$LINENO" 5
5778 fi
5779 THE_AWK=$AWK
5780 # Extract the first word of "$THE_AWK", so it can be a program name with args.
5781 set dummy $THE_AWK; ac_word=$2
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5783 $as_echo_n "checking for $ac_word... " >&6; }
5784 if ${ac_cv_path_AWK+:} false; then :
5785   $as_echo_n "(cached) " >&6
5786 else
5787   case $AWK in
5788   [\\/]* | ?:[\\/]*)
5789   ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
5790   ;;
5791   *)
5792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5793 for as_dir in $PATH
5794 do
5795   IFS=$as_save_IFS
5796   test -z "$as_dir" && as_dir=.
5797     for ac_exec_ext in '' $ac_executable_extensions; do
5798   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5799     ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
5800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801     break 2
5802   fi
5803 done
5804   done
5805 IFS=$as_save_IFS
5806
5807   test -z "$ac_cv_path_AWK" && ac_cv_path_AWK="$THE_AWK"
5808   ;;
5809 esac
5810 fi
5811 AWK=$ac_cv_path_AWK
5812 if test -n "$AWK"; then
5813   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5814 $as_echo "$AWK" >&6; }
5815 else
5816   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817 $as_echo "no" >&6; }
5818 fi
5819
5820
5821
5822
5823 test -n "$ARFLAG" || ARFLAGS="cr"
5824
5825
5826 MAKE_SHELL=/bin/sh
5827
5828
5829
5830
5831
5832
5833
5834 use_libtool=yes
5835 # Check whether --enable-libtool was given.
5836 if test "${enable_libtool+set}" = set; then :
5837   enableval=$enable_libtool;
5838        if test x$enableval = xno; then
5839           use_libtool=no
5840        fi
5841
5842
5843 fi
5844
5845 case `pwd` in
5846   *\ * | *\     *)
5847     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5848 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5849 esac
5850
5851
5852
5853 macro_version='2.4.2'
5854 macro_revision='1.3337'
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868 ltmain="$ac_aux_dir/ltmain.sh"
5869
5870 # Make sure we can run config.sub.
5871 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5872   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5873
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5875 $as_echo_n "checking build system type... " >&6; }
5876 if ${ac_cv_build+:} false; then :
5877   $as_echo_n "(cached) " >&6
5878 else
5879   ac_build_alias=$build_alias
5880 test "x$ac_build_alias" = x &&
5881   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5882 test "x$ac_build_alias" = x &&
5883   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5884 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5885   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5886
5887 fi
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5889 $as_echo "$ac_cv_build" >&6; }
5890 case $ac_cv_build in
5891 *-*-*) ;;
5892 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5893 esac
5894 build=$ac_cv_build
5895 ac_save_IFS=$IFS; IFS='-'
5896 set x $ac_cv_build
5897 shift
5898 build_cpu=$1
5899 build_vendor=$2
5900 shift; shift
5901 # Remember, the first character of IFS is used to create $*,
5902 # except with old shells:
5903 build_os=$*
5904 IFS=$ac_save_IFS
5905 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5906
5907
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5909 $as_echo_n "checking host system type... " >&6; }
5910 if ${ac_cv_host+:} false; then :
5911   $as_echo_n "(cached) " >&6
5912 else
5913   if test "x$host_alias" = x; then
5914   ac_cv_host=$ac_cv_build
5915 else
5916   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5917     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5922 $as_echo "$ac_cv_host" >&6; }
5923 case $ac_cv_host in
5924 *-*-*) ;;
5925 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5926 esac
5927 host=$ac_cv_host
5928 ac_save_IFS=$IFS; IFS='-'
5929 set x $ac_cv_host
5930 shift
5931 host_cpu=$1
5932 host_vendor=$2
5933 shift; shift
5934 # Remember, the first character of IFS is used to create $*,
5935 # except with old shells:
5936 host_os=$*
5937 IFS=$ac_save_IFS
5938 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5939
5940
5941 # Backslashify metacharacters that are still active within
5942 # double-quoted strings.
5943 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5944
5945 # Same as above, but do not quote variable references.
5946 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5947
5948 # Sed substitution to delay expansion of an escaped shell variable in a
5949 # double_quote_subst'ed string.
5950 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5951
5952 # Sed substitution to delay expansion of an escaped single quote.
5953 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5954
5955 # Sed substitution to avoid accidental globbing in evaled expressions
5956 no_glob_subst='s/\*/\\\*/g'
5957
5958 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5959 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5960 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5961
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5963 $as_echo_n "checking how to print strings... " >&6; }
5964 # Test print first, because it will be a builtin if present.
5965 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5966    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5967   ECHO='print -r --'
5968 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5969   ECHO='printf %s\n'
5970 else
5971   # Use this function as a fallback that always works.
5972   func_fallback_echo ()
5973   {
5974     eval 'cat <<_LTECHO_EOF
5975 $1
5976 _LTECHO_EOF'
5977   }
5978   ECHO='func_fallback_echo'
5979 fi
5980
5981 # func_echo_all arg...
5982 # Invoke $ECHO with all args, space-separated.
5983 func_echo_all ()
5984 {
5985     $ECHO ""
5986 }
5987
5988 case "$ECHO" in
5989   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5990 $as_echo "printf" >&6; } ;;
5991   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5992 $as_echo "print -r" >&6; } ;;
5993   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5994 $as_echo "cat" >&6; } ;;
5995 esac
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6011 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6012 if ${ac_cv_path_SED+:} false; then :
6013   $as_echo_n "(cached) " >&6
6014 else
6015             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6016      for ac_i in 1 2 3 4 5 6 7; do
6017        ac_script="$ac_script$as_nl$ac_script"
6018      done
6019      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6020      { ac_script=; unset ac_script;}
6021      if test -z "$SED"; then
6022   ac_path_SED_found=false
6023   # Loop through the user's path and test for each of PROGNAME-LIST
6024   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 for as_dir in $PATH
6026 do
6027   IFS=$as_save_IFS
6028   test -z "$as_dir" && as_dir=.
6029     for ac_prog in sed gsed; do
6030     for ac_exec_ext in '' $ac_executable_extensions; do
6031       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6032       as_fn_executable_p "$ac_path_SED" || continue
6033 # Check for GNU ac_path_SED and select it if it is found.
6034   # Check for GNU $ac_path_SED
6035 case `"$ac_path_SED" --version 2>&1` in
6036 *GNU*)
6037   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6038 *)
6039   ac_count=0
6040   $as_echo_n 0123456789 >"conftest.in"
6041   while :
6042   do
6043     cat "conftest.in" "conftest.in" >"conftest.tmp"
6044     mv "conftest.tmp" "conftest.in"
6045     cp "conftest.in" "conftest.nl"
6046     $as_echo '' >> "conftest.nl"
6047     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6048     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6049     as_fn_arith $ac_count + 1 && ac_count=$as_val
6050     if test $ac_count -gt ${ac_path_SED_max-0}; then
6051       # Best one so far, save it but keep looking for a better one
6052       ac_cv_path_SED="$ac_path_SED"
6053       ac_path_SED_max=$ac_count
6054     fi
6055     # 10*(2^10) chars as input seems more than enough
6056     test $ac_count -gt 10 && break
6057   done
6058   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6059 esac
6060
6061       $ac_path_SED_found && break 3
6062     done
6063   done
6064   done
6065 IFS=$as_save_IFS
6066   if test -z "$ac_cv_path_SED"; then
6067     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6068   fi
6069 else
6070   ac_cv_path_SED=$SED
6071 fi
6072
6073 fi
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6075 $as_echo "$ac_cv_path_SED" >&6; }
6076  SED="$ac_cv_path_SED"
6077   rm -f conftest.sed
6078
6079 test -z "$SED" && SED=sed
6080 Xsed="$SED -e 1s/^X//"
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6093 $as_echo_n "checking for fgrep... " >&6; }
6094 if ${ac_cv_path_FGREP+:} false; then :
6095   $as_echo_n "(cached) " >&6
6096 else
6097   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6098    then ac_cv_path_FGREP="$GREP -F"
6099    else
6100      if test -z "$FGREP"; then
6101   ac_path_FGREP_found=false
6102   # Loop through the user's path and test for each of PROGNAME-LIST
6103   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6105 do
6106   IFS=$as_save_IFS
6107   test -z "$as_dir" && as_dir=.
6108     for ac_prog in fgrep; do
6109     for ac_exec_ext in '' $ac_executable_extensions; do
6110       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6111       as_fn_executable_p "$ac_path_FGREP" || continue
6112 # Check for GNU ac_path_FGREP and select it if it is found.
6113   # Check for GNU $ac_path_FGREP
6114 case `"$ac_path_FGREP" --version 2>&1` in
6115 *GNU*)
6116   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6117 *)
6118   ac_count=0
6119   $as_echo_n 0123456789 >"conftest.in"
6120   while :
6121   do
6122     cat "conftest.in" "conftest.in" >"conftest.tmp"
6123     mv "conftest.tmp" "conftest.in"
6124     cp "conftest.in" "conftest.nl"
6125     $as_echo 'FGREP' >> "conftest.nl"
6126     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6127     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6128     as_fn_arith $ac_count + 1 && ac_count=$as_val
6129     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6130       # Best one so far, save it but keep looking for a better one
6131       ac_cv_path_FGREP="$ac_path_FGREP"
6132       ac_path_FGREP_max=$ac_count
6133     fi
6134     # 10*(2^10) chars as input seems more than enough
6135     test $ac_count -gt 10 && break
6136   done
6137   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6138 esac
6139
6140       $ac_path_FGREP_found && break 3
6141     done
6142   done
6143   done
6144 IFS=$as_save_IFS
6145   if test -z "$ac_cv_path_FGREP"; then
6146     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6147   fi
6148 else
6149   ac_cv_path_FGREP=$FGREP
6150 fi
6151
6152    fi
6153 fi
6154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6155 $as_echo "$ac_cv_path_FGREP" >&6; }
6156  FGREP="$ac_cv_path_FGREP"
6157
6158
6159 test -z "$GREP" && GREP=grep
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179 # Check whether --with-gnu-ld was given.
6180 if test "${with_gnu_ld+set}" = set; then :
6181   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6182 else
6183   with_gnu_ld=no
6184 fi
6185
6186 ac_prog=ld
6187 if test "$GCC" = yes; then
6188   # Check if gcc -print-prog-name=ld gives a path.
6189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6190 $as_echo_n "checking for ld used by $CC... " >&6; }
6191   case $host in
6192   *-*-mingw*)
6193     # gcc leaves a trailing carriage return which upsets mingw
6194     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6195   *)
6196     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6197   esac
6198   case $ac_prog in
6199     # Accept absolute paths.
6200     [\\/]* | ?:[\\/]*)
6201       re_direlt='/[^/][^/]*/\.\./'
6202       # Canonicalize the pathname of ld
6203       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6204       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6205         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6206       done
6207       test -z "$LD" && LD="$ac_prog"
6208       ;;
6209   "")
6210     # If it fails, then pretend we aren't using GCC.
6211     ac_prog=ld
6212     ;;
6213   *)
6214     # If it is relative, then search for the first ld in PATH.
6215     with_gnu_ld=unknown
6216     ;;
6217   esac
6218 elif test "$with_gnu_ld" = yes; then
6219   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6220 $as_echo_n "checking for GNU ld... " >&6; }
6221 else
6222   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6223 $as_echo_n "checking for non-GNU ld... " >&6; }
6224 fi
6225 if ${lt_cv_path_LD+:} false; then :
6226   $as_echo_n "(cached) " >&6
6227 else
6228   if test -z "$LD"; then
6229   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6230   for ac_dir in $PATH; do
6231     IFS="$lt_save_ifs"
6232     test -z "$ac_dir" && ac_dir=.
6233     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6234       lt_cv_path_LD="$ac_dir/$ac_prog"
6235       # Check to see if the program is GNU ld.  I'd rather use --version,
6236       # but apparently some variants of GNU ld only accept -v.
6237       # Break only if it was the GNU/non-GNU ld that we prefer.
6238       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6239       *GNU* | *'with BFD'*)
6240         test "$with_gnu_ld" != no && break
6241         ;;
6242       *)
6243         test "$with_gnu_ld" != yes && break
6244         ;;
6245       esac
6246     fi
6247   done
6248   IFS="$lt_save_ifs"
6249 else
6250   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6251 fi
6252 fi
6253
6254 LD="$lt_cv_path_LD"
6255 if test -n "$LD"; then
6256   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6257 $as_echo "$LD" >&6; }
6258 else
6259   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6264 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6265 if ${lt_cv_prog_gnu_ld+:} false; then :
6266   $as_echo_n "(cached) " >&6
6267 else
6268   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6269 case `$LD -v 2>&1 </dev/null` in
6270 *GNU* | *'with BFD'*)
6271   lt_cv_prog_gnu_ld=yes
6272   ;;
6273 *)
6274   lt_cv_prog_gnu_ld=no
6275   ;;
6276 esac
6277 fi
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6279 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6280 with_gnu_ld=$lt_cv_prog_gnu_ld
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6291 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6292 if ${lt_cv_path_NM+:} false; then :
6293   $as_echo_n "(cached) " >&6
6294 else
6295   if test -n "$NM"; then
6296   # Let the user override the test.
6297   lt_cv_path_NM="$NM"
6298 else
6299   lt_nm_to_check="${ac_tool_prefix}nm"
6300   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6301     lt_nm_to_check="$lt_nm_to_check nm"
6302   fi
6303   for lt_tmp_nm in $lt_nm_to_check; do
6304     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6305     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6306       IFS="$lt_save_ifs"
6307       test -z "$ac_dir" && ac_dir=.
6308       tmp_nm="$ac_dir/$lt_tmp_nm"
6309       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6310         # Check to see if the nm accepts a BSD-compat flag.
6311         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6312         #   nm: unknown option "B" ignored
6313         # Tru64's nm complains that /dev/null is an invalid object file
6314         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6315         */dev/null* | *'Invalid file or object type'*)
6316           lt_cv_path_NM="$tmp_nm -B"
6317           break
6318           ;;
6319         *)
6320           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6321           */dev/null*)
6322             lt_cv_path_NM="$tmp_nm -p"
6323             break
6324             ;;
6325           *)
6326             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6327             continue # so that we can try to find one that supports BSD flags
6328             ;;
6329           esac
6330           ;;
6331         esac
6332       fi
6333     done
6334     IFS="$lt_save_ifs"
6335   done
6336   : ${lt_cv_path_NM=no}
6337 fi
6338 fi
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6340 $as_echo "$lt_cv_path_NM" >&6; }
6341 if test "$lt_cv_path_NM" != "no"; then
6342   NM="$lt_cv_path_NM"
6343 else
6344   # Didn't find any BSD compatible name lister, look for dumpbin.
6345   if test -n "$DUMPBIN"; then :
6346     # Let the user override the test.
6347   else
6348     if test -n "$ac_tool_prefix"; then
6349   for ac_prog in dumpbin "link -dump"
6350   do
6351     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6352 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6354 $as_echo_n "checking for $ac_word... " >&6; }
6355 if ${ac_cv_prog_DUMPBIN+:} false; then :
6356   $as_echo_n "(cached) " >&6
6357 else
6358   if test -n "$DUMPBIN"; then
6359   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6360 else
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6363 do
6364   IFS=$as_save_IFS
6365   test -z "$as_dir" && as_dir=.
6366     for ac_exec_ext in '' $ac_executable_extensions; do
6367   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6368     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6369     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6370     break 2
6371   fi
6372 done
6373   done
6374 IFS=$as_save_IFS
6375
6376 fi
6377 fi
6378 DUMPBIN=$ac_cv_prog_DUMPBIN
6379 if test -n "$DUMPBIN"; then
6380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6381 $as_echo "$DUMPBIN" >&6; }
6382 else
6383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6384 $as_echo "no" >&6; }
6385 fi
6386
6387
6388     test -n "$DUMPBIN" && break
6389   done
6390 fi
6391 if test -z "$DUMPBIN"; then
6392   ac_ct_DUMPBIN=$DUMPBIN
6393   for ac_prog in dumpbin "link -dump"
6394 do
6395   # Extract the first word of "$ac_prog", so it can be a program name with args.
6396 set dummy $ac_prog; ac_word=$2
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6398 $as_echo_n "checking for $ac_word... " >&6; }
6399 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6400   $as_echo_n "(cached) " >&6
6401 else
6402   if test -n "$ac_ct_DUMPBIN"; then
6403   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6404 else
6405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6406 for as_dir in $PATH
6407 do
6408   IFS=$as_save_IFS
6409   test -z "$as_dir" && as_dir=.
6410     for ac_exec_ext in '' $ac_executable_extensions; do
6411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6412     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6414     break 2
6415   fi
6416 done
6417   done
6418 IFS=$as_save_IFS
6419
6420 fi
6421 fi
6422 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6423 if test -n "$ac_ct_DUMPBIN"; then
6424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6425 $as_echo "$ac_ct_DUMPBIN" >&6; }
6426 else
6427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428 $as_echo "no" >&6; }
6429 fi
6430
6431
6432   test -n "$ac_ct_DUMPBIN" && break
6433 done
6434
6435   if test "x$ac_ct_DUMPBIN" = x; then
6436     DUMPBIN=":"
6437   else
6438     case $cross_compiling:$ac_tool_warned in
6439 yes:)
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6441 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6442 ac_tool_warned=yes ;;
6443 esac
6444     DUMPBIN=$ac_ct_DUMPBIN
6445   fi
6446 fi
6447
6448     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6449     *COFF*)
6450       DUMPBIN="$DUMPBIN -symbols"
6451       ;;
6452     *)
6453       DUMPBIN=:
6454       ;;
6455     esac
6456   fi
6457
6458   if test "$DUMPBIN" != ":"; then
6459     NM="$DUMPBIN"
6460   fi
6461 fi
6462 test -z "$NM" && NM=nm
6463
6464
6465
6466
6467
6468
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6470 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6471 if ${lt_cv_nm_interface+:} false; then :
6472   $as_echo_n "(cached) " >&6
6473 else
6474   lt_cv_nm_interface="BSD nm"
6475   echo "int some_variable = 0;" > conftest.$ac_ext
6476   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6477   (eval "$ac_compile" 2>conftest.err)
6478   cat conftest.err >&5
6479   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6480   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6481   cat conftest.err >&5
6482   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6483   cat conftest.out >&5
6484   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6485     lt_cv_nm_interface="MS dumpbin"
6486   fi
6487   rm -f conftest*
6488 fi
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6490 $as_echo "$lt_cv_nm_interface" >&6; }
6491
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6493 $as_echo_n "checking whether ln -s works... " >&6; }
6494 LN_S=$as_ln_s
6495 if test "$LN_S" = "ln -s"; then
6496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6497 $as_echo "yes" >&6; }
6498 else
6499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6500 $as_echo "no, using $LN_S" >&6; }
6501 fi
6502
6503 # find the maximum length of command line arguments
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6505 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6506 if ${lt_cv_sys_max_cmd_len+:} false; then :
6507   $as_echo_n "(cached) " >&6
6508 else
6509     i=0
6510   teststring="ABCD"
6511
6512   case $build_os in
6513   msdosdjgpp*)
6514     # On DJGPP, this test can blow up pretty badly due to problems in libc
6515     # (any single argument exceeding 2000 bytes causes a buffer overrun
6516     # during glob expansion).  Even if it were fixed, the result of this
6517     # check would be larger than it should be.
6518     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6519     ;;
6520
6521   gnu*)
6522     # Under GNU Hurd, this test is not required because there is
6523     # no limit to the length of command line arguments.
6524     # Libtool will interpret -1 as no limit whatsoever
6525     lt_cv_sys_max_cmd_len=-1;
6526     ;;
6527
6528   cygwin* | mingw* | cegcc*)
6529     # On Win9x/ME, this test blows up -- it succeeds, but takes
6530     # about 5 minutes as the teststring grows exponentially.
6531     # Worse, since 9x/ME are not pre-emptively multitasking,
6532     # you end up with a "frozen" computer, even though with patience
6533     # the test eventually succeeds (with a max line length of 256k).
6534     # Instead, let's just punt: use the minimum linelength reported by
6535     # all of the supported platforms: 8192 (on NT/2K/XP).
6536     lt_cv_sys_max_cmd_len=8192;
6537     ;;
6538
6539   mint*)
6540     # On MiNT this can take a long time and run out of memory.
6541     lt_cv_sys_max_cmd_len=8192;
6542     ;;
6543
6544   amigaos*)
6545     # On AmigaOS with pdksh, this test takes hours, literally.
6546     # So we just punt and use a minimum line length of 8192.
6547     lt_cv_sys_max_cmd_len=8192;
6548     ;;
6549
6550   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6551     # This has been around since 386BSD, at least.  Likely further.
6552     if test -x /sbin/sysctl; then
6553       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6554     elif test -x /usr/sbin/sysctl; then
6555       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6556     else
6557       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6558     fi
6559     # And add a safety zone
6560     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6561     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6562     ;;
6563
6564   interix*)
6565     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6566     lt_cv_sys_max_cmd_len=196608
6567     ;;
6568
6569   os2*)
6570     # The test takes a long time on OS/2.
6571     lt_cv_sys_max_cmd_len=8192
6572     ;;
6573
6574   osf*)
6575     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6576     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6577     # nice to cause kernel panics so lets avoid the loop below.
6578     # First set a reasonable default.
6579     lt_cv_sys_max_cmd_len=16384
6580     #
6581     if test -x /sbin/sysconfig; then
6582       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6583         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6584       esac
6585     fi
6586     ;;
6587   sco3.2v5*)
6588     lt_cv_sys_max_cmd_len=102400
6589     ;;
6590   sysv5* | sco5v6* | sysv4.2uw2*)
6591     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6592     if test -n "$kargmax"; then
6593       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6594     else
6595       lt_cv_sys_max_cmd_len=32768
6596     fi
6597     ;;
6598   *)
6599     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6600     if test -n "$lt_cv_sys_max_cmd_len" && \
6601         test undefined != "$lt_cv_sys_max_cmd_len"; then
6602       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6603       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6604     else
6605       # Make teststring a little bigger before we do anything with it.
6606       # a 1K string should be a reasonable start.
6607       for i in 1 2 3 4 5 6 7 8 ; do
6608         teststring=$teststring$teststring
6609       done
6610       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6611       # If test is not a shell built-in, we'll probably end up computing a
6612       # maximum length that is only half of the actual maximum length, but
6613       # we can't tell.
6614       while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6615                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6616               test $i != 17 # 1/2 MB should be enough
6617       do
6618         i=`expr $i + 1`
6619         teststring=$teststring$teststring
6620       done
6621       # Only check the string length outside the loop.
6622       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6623       teststring=
6624       # Add a significant safety factor because C++ compilers can tack on
6625       # massive amounts of additional arguments before passing them to the
6626       # linker.  It appears as though 1/2 is a usable value.
6627       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6628     fi
6629     ;;
6630   esac
6631
6632 fi
6633
6634 if test -n $lt_cv_sys_max_cmd_len ; then
6635   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6636 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6637 else
6638   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6639 $as_echo "none" >&6; }
6640 fi
6641 max_cmd_len=$lt_cv_sys_max_cmd_len
6642
6643
6644
6645
6646
6647
6648 : ${CP="cp -f"}
6649 : ${MV="mv -f"}
6650 : ${RM="rm -f"}
6651
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6653 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6654 # Try some XSI features
6655 xsi_shell=no
6656 ( _lt_dummy="a/b/c"
6657   test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6658       = c,a/b,b/c, \
6659     && eval 'test $(( 1 + 1 )) -eq 2 \
6660     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6661   && xsi_shell=yes
6662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6663 $as_echo "$xsi_shell" >&6; }
6664
6665
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6667 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6668 lt_shell_append=no
6669 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6670     >/dev/null 2>&1 \
6671   && lt_shell_append=yes
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6673 $as_echo "$lt_shell_append" >&6; }
6674
6675
6676 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6677   lt_unset=unset
6678 else
6679   lt_unset=false
6680 fi
6681
6682
6683
6684
6685
6686 # test EBCDIC or ASCII
6687 case `echo X|tr X '\101'` in
6688  A) # ASCII based system
6689     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6690   lt_SP2NL='tr \040 \012'
6691   lt_NL2SP='tr \015\012 \040\040'
6692   ;;
6693  *) # EBCDIC based system
6694   lt_SP2NL='tr \100 \n'
6695   lt_NL2SP='tr \r\n \100\100'
6696   ;;
6697 esac
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6708 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6709 if ${lt_cv_to_host_file_cmd+:} false; then :
6710   $as_echo_n "(cached) " >&6
6711 else
6712   case $host in
6713   *-*-mingw* )
6714     case $build in
6715       *-*-mingw* ) # actually msys
6716         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6717         ;;
6718       *-*-cygwin* )
6719         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6720         ;;
6721       * ) # otherwise, assume *nix
6722         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6723         ;;
6724     esac
6725     ;;
6726   *-*-cygwin* )
6727     case $build in
6728       *-*-mingw* ) # actually msys
6729         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6730         ;;
6731       *-*-cygwin* )
6732         lt_cv_to_host_file_cmd=func_convert_file_noop
6733         ;;
6734       * ) # otherwise, assume *nix
6735         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6736         ;;
6737     esac
6738     ;;
6739   * ) # unhandled hosts (and "normal" native builds)
6740     lt_cv_to_host_file_cmd=func_convert_file_noop
6741     ;;
6742 esac
6743
6744 fi
6745
6746 to_host_file_cmd=$lt_cv_to_host_file_cmd
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6748 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6749
6750
6751
6752
6753
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6755 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6756 if ${lt_cv_to_tool_file_cmd+:} false; then :
6757   $as_echo_n "(cached) " >&6
6758 else
6759   #assume ordinary cross tools, or native build.
6760 lt_cv_to_tool_file_cmd=func_convert_file_noop
6761 case $host in
6762   *-*-mingw* )
6763     case $build in
6764       *-*-mingw* ) # actually msys
6765         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6766         ;;
6767     esac
6768     ;;
6769 esac
6770
6771 fi
6772
6773 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6775 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6776
6777
6778
6779
6780
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6782 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6783 if ${lt_cv_ld_reload_flag+:} false; then :
6784   $as_echo_n "(cached) " >&6
6785 else
6786   lt_cv_ld_reload_flag='-r'
6787 fi
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6789 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6790 reload_flag=$lt_cv_ld_reload_flag
6791 case $reload_flag in
6792 "" | " "*) ;;
6793 *) reload_flag=" $reload_flag" ;;
6794 esac
6795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6796 case $host_os in
6797   cygwin* | mingw* | pw32* | cegcc*)
6798     if test "$GCC" != yes; then
6799       reload_cmds=false
6800     fi
6801     ;;
6802   darwin*)
6803     if test "$GCC" = yes; then
6804       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6805     else
6806       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6807     fi
6808     ;;
6809 esac
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819 if test -n "$ac_tool_prefix"; then
6820   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6821 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if ${ac_cv_prog_OBJDUMP+:} false; then :
6825   $as_echo_n "(cached) " >&6
6826 else
6827   if test -n "$OBJDUMP"; then
6828   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6829 else
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6831 for as_dir in $PATH
6832 do
6833   IFS=$as_save_IFS
6834   test -z "$as_dir" && as_dir=.
6835     for ac_exec_ext in '' $ac_executable_extensions; do
6836   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6837     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6838     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6839     break 2
6840   fi
6841 done
6842   done
6843 IFS=$as_save_IFS
6844
6845 fi
6846 fi
6847 OBJDUMP=$ac_cv_prog_OBJDUMP
6848 if test -n "$OBJDUMP"; then
6849   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6850 $as_echo "$OBJDUMP" >&6; }
6851 else
6852   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6854 fi
6855
6856
6857 fi
6858 if test -z "$ac_cv_prog_OBJDUMP"; then
6859   ac_ct_OBJDUMP=$OBJDUMP
6860   # Extract the first word of "objdump", so it can be a program name with args.
6861 set dummy objdump; ac_word=$2
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6863 $as_echo_n "checking for $ac_word... " >&6; }
6864 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6865   $as_echo_n "(cached) " >&6
6866 else
6867   if test -n "$ac_ct_OBJDUMP"; then
6868   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6869 else
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6871 for as_dir in $PATH
6872 do
6873   IFS=$as_save_IFS
6874   test -z "$as_dir" && as_dir=.
6875     for ac_exec_ext in '' $ac_executable_extensions; do
6876   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6877     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6878     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6879     break 2
6880   fi
6881 done
6882   done
6883 IFS=$as_save_IFS
6884
6885 fi
6886 fi
6887 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6888 if test -n "$ac_ct_OBJDUMP"; then
6889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6890 $as_echo "$ac_ct_OBJDUMP" >&6; }
6891 else
6892   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6893 $as_echo "no" >&6; }
6894 fi
6895
6896   if test "x$ac_ct_OBJDUMP" = x; then
6897     OBJDUMP="false"
6898   else
6899     case $cross_compiling:$ac_tool_warned in
6900 yes:)
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6903 ac_tool_warned=yes ;;
6904 esac
6905     OBJDUMP=$ac_ct_OBJDUMP
6906   fi
6907 else
6908   OBJDUMP="$ac_cv_prog_OBJDUMP"
6909 fi
6910
6911 test -z "$OBJDUMP" && OBJDUMP=objdump
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6922 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6923 if ${lt_cv_deplibs_check_method+:} false; then :
6924   $as_echo_n "(cached) " >&6
6925 else
6926   lt_cv_file_magic_cmd='$MAGIC_CMD'
6927 lt_cv_file_magic_test_file=
6928 lt_cv_deplibs_check_method='unknown'
6929 # Need to set the preceding variable on all platforms that support
6930 # interlibrary dependencies.
6931 # 'none' -- dependencies not supported.
6932 # `unknown' -- same as none, but documents that we really don't know.
6933 # 'pass_all' -- all dependencies passed with no checks.
6934 # 'test_compile' -- check by making test program.
6935 # 'file_magic [[regex]]' -- check by looking for files in library path
6936 # which responds to the $file_magic_cmd with a given extended regex.
6937 # If you have `file' or equivalent on your system and you're not sure
6938 # whether `pass_all' will *always* work, you probably want this one.
6939
6940 case $host_os in
6941 aix[4-9]*)
6942   lt_cv_deplibs_check_method=pass_all
6943   ;;
6944
6945 beos*)
6946   lt_cv_deplibs_check_method=pass_all
6947   ;;
6948
6949 bsdi[45]*)
6950   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6951   lt_cv_file_magic_cmd='/usr/bin/file -L'
6952   lt_cv_file_magic_test_file=/shlib/libc.so
6953   ;;
6954
6955 cygwin*)
6956   # func_win32_libid is a shell function defined in ltmain.sh
6957   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6958   lt_cv_file_magic_cmd='func_win32_libid'
6959   ;;
6960
6961 mingw* | pw32*)
6962   # Base MSYS/MinGW do not provide the 'file' command needed by
6963   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6964   # unless we find 'file', for example because we are cross-compiling.
6965   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6966   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6967     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6968     lt_cv_file_magic_cmd='func_win32_libid'
6969   else
6970     # Keep this pattern in sync with the one in func_win32_libid.
6971     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6972     lt_cv_file_magic_cmd='$OBJDUMP -f'
6973   fi
6974   ;;
6975
6976 cegcc*)
6977   # use the weaker test based on 'objdump'. See mingw*.
6978   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6979   lt_cv_file_magic_cmd='$OBJDUMP -f'
6980   ;;
6981
6982 darwin* | rhapsody*)
6983   lt_cv_deplibs_check_method=pass_all
6984   ;;
6985
6986 freebsd* | dragonfly*)
6987   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6988     case $host_cpu in
6989     i*86 )
6990       # Not sure whether the presence of OpenBSD here was a mistake.
6991       # Let's accept both of them until this is cleared up.
6992       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6993       lt_cv_file_magic_cmd=/usr/bin/file
6994       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6995       ;;
6996     esac
6997   else
6998     lt_cv_deplibs_check_method=pass_all
6999   fi
7000   ;;
7001
7002 haiku*)
7003   lt_cv_deplibs_check_method=pass_all
7004   ;;
7005
7006 hpux10.20* | hpux11*)
7007   lt_cv_file_magic_cmd=/usr/bin/file
7008   case $host_cpu in
7009   ia64*)
7010     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7011     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7012     ;;
7013   hppa*64*)
7014     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]'
7015     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7016     ;;
7017   *)
7018     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7019     lt_cv_file_magic_test_file=/usr/lib/libc.sl
7020     ;;
7021   esac
7022   ;;
7023
7024 interix[3-9]*)
7025   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7026   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7027   ;;
7028
7029 irix5* | irix6* | nonstopux*)
7030   case $LD in
7031   *-32|*"-32 ") libmagic=32-bit;;
7032   *-n32|*"-n32 ") libmagic=N32;;
7033   *-64|*"-64 ") libmagic=64-bit;;
7034   *) libmagic=never-match;;
7035   esac
7036   lt_cv_deplibs_check_method=pass_all
7037   ;;
7038
7039 # This must be glibc/ELF.
7040 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
7041   lt_cv_deplibs_check_method=pass_all
7042   ;;
7043
7044 netbsd* | netbsdelf*-gnu)
7045   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7047   else
7048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7049   fi
7050   ;;
7051
7052 newos6*)
7053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7054   lt_cv_file_magic_cmd=/usr/bin/file
7055   lt_cv_file_magic_test_file=/usr/lib/libnls.so
7056   ;;
7057
7058 *nto* | *qnx*)
7059   lt_cv_deplibs_check_method=pass_all
7060   ;;
7061
7062 openbsd*)
7063   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7065   else
7066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7067   fi
7068   ;;
7069
7070 osf3* | osf4* | osf5*)
7071   lt_cv_deplibs_check_method=pass_all
7072   ;;
7073
7074 rdos*)
7075   lt_cv_deplibs_check_method=pass_all
7076   ;;
7077
7078 solaris*)
7079   lt_cv_deplibs_check_method=pass_all
7080   ;;
7081
7082 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7083   lt_cv_deplibs_check_method=pass_all
7084   ;;
7085
7086 sysv4 | sysv4.3*)
7087   case $host_vendor in
7088   motorola)
7089     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]'
7090     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7091     ;;
7092   ncr)
7093     lt_cv_deplibs_check_method=pass_all
7094     ;;
7095   sequent)
7096     lt_cv_file_magic_cmd='/bin/file'
7097     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7098     ;;
7099   sni)
7100     lt_cv_file_magic_cmd='/bin/file'
7101     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7102     lt_cv_file_magic_test_file=/lib/libc.so
7103     ;;
7104   siemens)
7105     lt_cv_deplibs_check_method=pass_all
7106     ;;
7107   pc)
7108     lt_cv_deplibs_check_method=pass_all
7109     ;;
7110   esac
7111   ;;
7112
7113 tpf*)
7114   lt_cv_deplibs_check_method=pass_all
7115   ;;
7116 esac
7117
7118 fi
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7120 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7121
7122 file_magic_glob=
7123 want_nocaseglob=no
7124 if test "$build" = "$host"; then
7125   case $host_os in
7126   mingw* | pw32*)
7127     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
7128       want_nocaseglob=yes
7129     else
7130       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
7131     fi
7132     ;;
7133   esac
7134 fi
7135
7136 file_magic_cmd=$lt_cv_file_magic_cmd
7137 deplibs_check_method=$lt_cv_deplibs_check_method
7138 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158
7159
7160
7161 if test -n "$ac_tool_prefix"; then
7162   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7163 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165 $as_echo_n "checking for $ac_word... " >&6; }
7166 if ${ac_cv_prog_DLLTOOL+:} false; then :
7167   $as_echo_n "(cached) " >&6
7168 else
7169   if test -n "$DLLTOOL"; then
7170   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7171 else
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173 for as_dir in $PATH
7174 do
7175   IFS=$as_save_IFS
7176   test -z "$as_dir" && as_dir=.
7177     for ac_exec_ext in '' $ac_executable_extensions; do
7178   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7180     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181     break 2
7182   fi
7183 done
7184   done
7185 IFS=$as_save_IFS
7186
7187 fi
7188 fi
7189 DLLTOOL=$ac_cv_prog_DLLTOOL
7190 if test -n "$DLLTOOL"; then
7191   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7192 $as_echo "$DLLTOOL" >&6; }
7193 else
7194   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 fi
7197
7198
7199 fi
7200 if test -z "$ac_cv_prog_DLLTOOL"; then
7201   ac_ct_DLLTOOL=$DLLTOOL
7202   # Extract the first word of "dlltool", so it can be a program name with args.
7203 set dummy dlltool; ac_word=$2
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205 $as_echo_n "checking for $ac_word... " >&6; }
7206 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7207   $as_echo_n "(cached) " >&6
7208 else
7209   if test -n "$ac_ct_DLLTOOL"; then
7210   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7211 else
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 for as_dir in $PATH
7214 do
7215   IFS=$as_save_IFS
7216   test -z "$as_dir" && as_dir=.
7217     for ac_exec_ext in '' $ac_executable_extensions; do
7218   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7220     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221     break 2
7222   fi
7223 done
7224   done
7225 IFS=$as_save_IFS
7226
7227 fi
7228 fi
7229 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7230 if test -n "$ac_ct_DLLTOOL"; then
7231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7232 $as_echo "$ac_ct_DLLTOOL" >&6; }
7233 else
7234   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235 $as_echo "no" >&6; }
7236 fi
7237
7238   if test "x$ac_ct_DLLTOOL" = x; then
7239     DLLTOOL="false"
7240   else
7241     case $cross_compiling:$ac_tool_warned in
7242 yes:)
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245 ac_tool_warned=yes ;;
7246 esac
7247     DLLTOOL=$ac_ct_DLLTOOL
7248   fi
7249 else
7250   DLLTOOL="$ac_cv_prog_DLLTOOL"
7251 fi
7252
7253 test -z "$DLLTOOL" && DLLTOOL=dlltool
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7265 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7266 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
7267   $as_echo_n "(cached) " >&6
7268 else
7269   lt_cv_sharedlib_from_linklib_cmd='unknown'
7270
7271 case $host_os in
7272 cygwin* | mingw* | pw32* | cegcc*)
7273   # two different shell functions defined in ltmain.sh
7274   # decide which to use based on capabilities of $DLLTOOL
7275   case `$DLLTOOL --help 2>&1` in
7276   *--identify-strict*)
7277     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
7278     ;;
7279   *)
7280     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
7281     ;;
7282   esac
7283   ;;
7284 *)
7285   # fallback: assume linklib IS sharedlib
7286   lt_cv_sharedlib_from_linklib_cmd="$ECHO"
7287   ;;
7288 esac
7289
7290 fi
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7292 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7293 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
7294 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
7295
7296
7297
7298
7299
7300
7301
7302 if test -n "$ac_tool_prefix"; then
7303   for ac_prog in ar
7304   do
7305     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7308 $as_echo_n "checking for $ac_word... " >&6; }
7309 if ${ac_cv_prog_AR+:} false; then :
7310   $as_echo_n "(cached) " >&6
7311 else
7312   if test -n "$AR"; then
7313   ac_cv_prog_AR="$AR" # Let the user override the test.
7314 else
7315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7316 for as_dir in $PATH
7317 do
7318   IFS=$as_save_IFS
7319   test -z "$as_dir" && as_dir=.
7320     for ac_exec_ext in '' $ac_executable_extensions; do
7321   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7322     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7323     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7324     break 2
7325   fi
7326 done
7327   done
7328 IFS=$as_save_IFS
7329
7330 fi
7331 fi
7332 AR=$ac_cv_prog_AR
7333 if test -n "$AR"; then
7334   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7335 $as_echo "$AR" >&6; }
7336 else
7337   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7338 $as_echo "no" >&6; }
7339 fi
7340
7341
7342     test -n "$AR" && break
7343   done
7344 fi
7345 if test -z "$AR"; then
7346   ac_ct_AR=$AR
7347   for ac_prog in ar
7348 do
7349   # Extract the first word of "$ac_prog", so it can be a program name with args.
7350 set dummy $ac_prog; ac_word=$2
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7352 $as_echo_n "checking for $ac_word... " >&6; }
7353 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7354   $as_echo_n "(cached) " >&6
7355 else
7356   if test -n "$ac_ct_AR"; then
7357   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7358 else
7359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360 for as_dir in $PATH
7361 do
7362   IFS=$as_save_IFS
7363   test -z "$as_dir" && as_dir=.
7364     for ac_exec_ext in '' $ac_executable_extensions; do
7365   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7366     ac_cv_prog_ac_ct_AR="$ac_prog"
7367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7368     break 2
7369   fi
7370 done
7371   done
7372 IFS=$as_save_IFS
7373
7374 fi
7375 fi
7376 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7377 if test -n "$ac_ct_AR"; then
7378   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7379 $as_echo "$ac_ct_AR" >&6; }
7380 else
7381   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7382 $as_echo "no" >&6; }
7383 fi
7384
7385
7386   test -n "$ac_ct_AR" && break
7387 done
7388
7389   if test "x$ac_ct_AR" = x; then
7390     AR="false"
7391   else
7392     case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398     AR=$ac_ct_AR
7399   fi
7400 fi
7401
7402 : ${AR=ar}
7403 : ${AR_FLAGS=cru}
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7416 $as_echo_n "checking for archiver @FILE support... " >&6; }
7417 if ${lt_cv_ar_at_file+:} false; then :
7418   $as_echo_n "(cached) " >&6
7419 else
7420   lt_cv_ar_at_file=no
7421    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7422 /* end confdefs.h.  */
7423
7424 int
7425 main ()
7426 {
7427
7428   ;
7429   return 0;
7430 }
7431 _ACEOF
7432 if ac_fn_c_try_compile "$LINENO"; then :
7433   echo conftest.$ac_objext > conftest.lst
7434       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7435       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7436   (eval $lt_ar_try) 2>&5
7437   ac_status=$?
7438   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7439   test $ac_status = 0; }
7440       if test "$ac_status" -eq 0; then
7441         # Ensure the archiver fails upon bogus file names.
7442         rm -f conftest.$ac_objext libconftest.a
7443         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7444   (eval $lt_ar_try) 2>&5
7445   ac_status=$?
7446   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7447   test $ac_status = 0; }
7448         if test "$ac_status" -ne 0; then
7449           lt_cv_ar_at_file=@
7450         fi
7451       fi
7452       rm -f conftest.* libconftest.a
7453
7454 fi
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456
7457 fi
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7459 $as_echo "$lt_cv_ar_at_file" >&6; }
7460
7461 if test "x$lt_cv_ar_at_file" = xno; then
7462   archiver_list_spec=
7463 else
7464   archiver_list_spec=$lt_cv_ar_at_file
7465 fi
7466
7467
7468
7469
7470
7471
7472
7473 if test -n "$ac_tool_prefix"; then
7474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7475 set dummy ${ac_tool_prefix}strip; ac_word=$2
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477 $as_echo_n "checking for $ac_word... " >&6; }
7478 if ${ac_cv_prog_STRIP+:} false; then :
7479   $as_echo_n "(cached) " >&6
7480 else
7481   if test -n "$STRIP"; then
7482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7483 else
7484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485 for as_dir in $PATH
7486 do
7487   IFS=$as_save_IFS
7488   test -z "$as_dir" && as_dir=.
7489     for ac_exec_ext in '' $ac_executable_extensions; do
7490   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7492     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493     break 2
7494   fi
7495 done
7496   done
7497 IFS=$as_save_IFS
7498
7499 fi
7500 fi
7501 STRIP=$ac_cv_prog_STRIP
7502 if test -n "$STRIP"; then
7503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7504 $as_echo "$STRIP" >&6; }
7505 else
7506   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507 $as_echo "no" >&6; }
7508 fi
7509
7510
7511 fi
7512 if test -z "$ac_cv_prog_STRIP"; then
7513   ac_ct_STRIP=$STRIP
7514   # Extract the first word of "strip", so it can be a program name with args.
7515 set dummy strip; ac_word=$2
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7517 $as_echo_n "checking for $ac_word... " >&6; }
7518 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7519   $as_echo_n "(cached) " >&6
7520 else
7521   if test -n "$ac_ct_STRIP"; then
7522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7523 else
7524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7525 for as_dir in $PATH
7526 do
7527   IFS=$as_save_IFS
7528   test -z "$as_dir" && as_dir=.
7529     for ac_exec_ext in '' $ac_executable_extensions; do
7530   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7531     ac_cv_prog_ac_ct_STRIP="strip"
7532     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7533     break 2
7534   fi
7535 done
7536   done
7537 IFS=$as_save_IFS
7538
7539 fi
7540 fi
7541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7542 if test -n "$ac_ct_STRIP"; then
7543   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7544 $as_echo "$ac_ct_STRIP" >&6; }
7545 else
7546   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7547 $as_echo "no" >&6; }
7548 fi
7549
7550   if test "x$ac_ct_STRIP" = x; then
7551     STRIP=":"
7552   else
7553     case $cross_compiling:$ac_tool_warned in
7554 yes:)
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7556 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7557 ac_tool_warned=yes ;;
7558 esac
7559     STRIP=$ac_ct_STRIP
7560   fi
7561 else
7562   STRIP="$ac_cv_prog_STRIP"
7563 fi
7564
7565 test -z "$STRIP" && STRIP=:
7566
7567
7568
7569
7570
7571
7572 if test -n "$ac_tool_prefix"; then
7573   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7574 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7576 $as_echo_n "checking for $ac_word... " >&6; }
7577 if ${ac_cv_prog_RANLIB+:} false; then :
7578   $as_echo_n "(cached) " >&6
7579 else
7580   if test -n "$RANLIB"; then
7581   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588     for ac_exec_ext in '' $ac_executable_extensions; do
7589   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7591     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595   done
7596 IFS=$as_save_IFS
7597
7598 fi
7599 fi
7600 RANLIB=$ac_cv_prog_RANLIB
7601 if test -n "$RANLIB"; then
7602   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7603 $as_echo "$RANLIB" >&6; }
7604 else
7605   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7606 $as_echo "no" >&6; }
7607 fi
7608
7609
7610 fi
7611 if test -z "$ac_cv_prog_RANLIB"; then
7612   ac_ct_RANLIB=$RANLIB
7613   # Extract the first word of "ranlib", so it can be a program name with args.
7614 set dummy ranlib; ac_word=$2
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7616 $as_echo_n "checking for $ac_word... " >&6; }
7617 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7618   $as_echo_n "(cached) " >&6
7619 else
7620   if test -n "$ac_ct_RANLIB"; then
7621   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7622 else
7623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7624 for as_dir in $PATH
7625 do
7626   IFS=$as_save_IFS
7627   test -z "$as_dir" && as_dir=.
7628     for ac_exec_ext in '' $ac_executable_extensions; do
7629   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7630     ac_cv_prog_ac_ct_RANLIB="ranlib"
7631     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7632     break 2
7633   fi
7634 done
7635   done
7636 IFS=$as_save_IFS
7637
7638 fi
7639 fi
7640 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7641 if test -n "$ac_ct_RANLIB"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7643 $as_echo "$ac_ct_RANLIB" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646 $as_echo "no" >&6; }
7647 fi
7648
7649   if test "x$ac_ct_RANLIB" = x; then
7650     RANLIB=":"
7651   else
7652     case $cross_compiling:$ac_tool_warned in
7653 yes:)
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7656 ac_tool_warned=yes ;;
7657 esac
7658     RANLIB=$ac_ct_RANLIB
7659   fi
7660 else
7661   RANLIB="$ac_cv_prog_RANLIB"
7662 fi
7663
7664 test -z "$RANLIB" && RANLIB=:
7665
7666
7667
7668
7669
7670
7671 # Determine commands to create old-style static archives.
7672 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7673 old_postinstall_cmds='chmod 644 $oldlib'
7674 old_postuninstall_cmds=
7675
7676 if test -n "$RANLIB"; then
7677   case $host_os in
7678   openbsd*)
7679     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7680     ;;
7681   *)
7682     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7683     ;;
7684   esac
7685   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7686 fi
7687
7688 case $host_os in
7689   darwin*)
7690     lock_old_archive_extraction=yes ;;
7691   *)
7692     lock_old_archive_extraction=no ;;
7693 esac
7694
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 # If no C compiler was specified, use CC.
7734 LTCC=${LTCC-"$CC"}
7735
7736 # If no C compiler flags were specified, use CFLAGS.
7737 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7738
7739 # Allow CC to be a program name with arguments.
7740 compiler=$CC
7741
7742
7743 # Check for command to grab the raw symbol name followed by C symbol from nm.
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7745 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7746 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7747   $as_echo_n "(cached) " >&6
7748 else
7749
7750 # These are sane defaults that work on at least a few old systems.
7751 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7752
7753 # Character class describing NM global symbol codes.
7754 symcode='[BCDEGRST]'
7755
7756 # Regexp to match symbols that can be accessed directly from C.
7757 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7758
7759 # Define system-specific variables.
7760 case $host_os in
7761 aix*)
7762   symcode='[BCDT]'
7763   ;;
7764 cygwin* | mingw* | pw32* | cegcc*)
7765   symcode='[ABCDGISTW]'
7766   ;;
7767 hpux*)
7768   if test "$host_cpu" = ia64; then
7769     symcode='[ABCDEGRST]'
7770   fi
7771   ;;
7772 irix* | nonstopux*)
7773   symcode='[BCDEGRST]'
7774   ;;
7775 osf*)
7776   symcode='[BCDEGQRST]'
7777   ;;
7778 solaris*)
7779   symcode='[BDRT]'
7780   ;;
7781 sco3.2v5*)
7782   symcode='[DT]'
7783   ;;
7784 sysv4.2uw2*)
7785   symcode='[DT]'
7786   ;;
7787 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7788   symcode='[ABDT]'
7789   ;;
7790 sysv4)
7791   symcode='[DFNSTU]'
7792   ;;
7793 esac
7794
7795 # If we're using GNU nm, then use its standard symbol codes.
7796 case `$NM -V 2>&1` in
7797 *GNU* | *'with BFD'*)
7798   symcode='[ABCDGIRSTW]' ;;
7799 esac
7800
7801 # Transform an extracted symbol line into a proper C declaration.
7802 # Some systems (esp. on ia64) link data and code symbols differently,
7803 # so use this general approach.
7804 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7805
7806 # Transform an extracted symbol line into symbol name and symbol address
7807 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7808 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'"
7809
7810 # Handle CRLF in mingw tool chain
7811 opt_cr=
7812 case $build_os in
7813 mingw*)
7814   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7815   ;;
7816 esac
7817
7818 # Try without a prefix underscore, then with it.
7819 for ac_symprfx in "" "_"; do
7820
7821   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7822   symxfrm="\\1 $ac_symprfx\\2 \\2"
7823
7824   # Write the raw and C identifiers.
7825   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7826     # Fake it for dumpbin and say T for any non-static function
7827     # and D for any global variable.
7828     # Also find C++ and __fastcall symbols from MSVC++,
7829     # which start with @ or ?.
7830     lt_cv_sys_global_symbol_pipe="$AWK '"\
7831 "     {last_section=section; section=\$ 3};"\
7832 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7833 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7834 "     \$ 0!~/External *\|/{next};"\
7835 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7836 "     {if(hide[section]) next};"\
7837 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7838 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7839 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7840 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7841 "     ' prfx=^$ac_symprfx"
7842   else
7843     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7844   fi
7845   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7846
7847   # Check to see that the pipe works correctly.
7848   pipe_works=no
7849
7850   rm -f conftest*
7851   cat > conftest.$ac_ext <<_LT_EOF
7852 #ifdef __cplusplus
7853 extern "C" {
7854 #endif
7855 char nm_test_var;
7856 void nm_test_func(void);
7857 void nm_test_func(void){}
7858 #ifdef __cplusplus
7859 }
7860 #endif
7861 int main(){nm_test_var='a';nm_test_func();return(0);}
7862 _LT_EOF
7863
7864   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7865   (eval $ac_compile) 2>&5
7866   ac_status=$?
7867   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7868   test $ac_status = 0; }; then
7869     # Now try to grab the symbols.
7870     nlist=conftest.nm
7871     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7872   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7873   ac_status=$?
7874   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7875   test $ac_status = 0; } && test -s "$nlist"; then
7876       # Try sorting and uniquifying the output.
7877       if sort "$nlist" | uniq > "$nlist"T; then
7878         mv -f "$nlist"T "$nlist"
7879       else
7880         rm -f "$nlist"T
7881       fi
7882
7883       # Make sure that we snagged all the symbols we need.
7884       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7885         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7886           cat <<_LT_EOF > conftest.$ac_ext
7887 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7888 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7889 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7890    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7891 # define LT_DLSYM_CONST
7892 #elif defined(__osf__)
7893 /* This system does not cope well with relocations in const data.  */
7894 # define LT_DLSYM_CONST
7895 #else
7896 # define LT_DLSYM_CONST const
7897 #endif
7898
7899 #ifdef __cplusplus
7900 extern "C" {
7901 #endif
7902
7903 _LT_EOF
7904           # Now generate the symbol file.
7905           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7906
7907           cat <<_LT_EOF >> conftest.$ac_ext
7908
7909 /* The mapping between symbol names and symbols.  */
7910 LT_DLSYM_CONST struct {
7911   const char *name;
7912   void       *address;
7913 }
7914 lt__PROGRAM__LTX_preloaded_symbols[] =
7915 {
7916   { "@PROGRAM@", (void *) 0 },
7917 _LT_EOF
7918           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7919           cat <<\_LT_EOF >> conftest.$ac_ext
7920   {0, (void *) 0}
7921 };
7922
7923 /* This works around a problem in FreeBSD linker */
7924 #ifdef FREEBSD_WORKAROUND
7925 static const void *lt_preloaded_setup() {
7926   return lt__PROGRAM__LTX_preloaded_symbols;
7927 }
7928 #endif
7929
7930 #ifdef __cplusplus
7931 }
7932 #endif
7933 _LT_EOF
7934           # Now try linking the two files.
7935           mv conftest.$ac_objext conftstm.$ac_objext
7936           lt_globsym_save_LIBS=$LIBS
7937           lt_globsym_save_CFLAGS=$CFLAGS
7938           LIBS="conftstm.$ac_objext"
7939           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7940           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7941   (eval $ac_link) 2>&5
7942   ac_status=$?
7943   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7944   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7945             pipe_works=yes
7946           fi
7947           LIBS=$lt_globsym_save_LIBS
7948           CFLAGS=$lt_globsym_save_CFLAGS
7949         else
7950           echo "cannot find nm_test_func in $nlist" >&5
7951         fi
7952       else
7953         echo "cannot find nm_test_var in $nlist" >&5
7954       fi
7955     else
7956       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7957     fi
7958   else
7959     echo "$progname: failed program was:" >&5
7960     cat conftest.$ac_ext >&5
7961   fi
7962   rm -rf conftest* conftst*
7963
7964   # Do not use the global_symbol_pipe unless it works.
7965   if test "$pipe_works" = yes; then
7966     break
7967   else
7968     lt_cv_sys_global_symbol_pipe=
7969   fi
7970 done
7971
7972 fi
7973
7974 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7975   lt_cv_sys_global_symbol_to_cdecl=
7976 fi
7977 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7979 $as_echo "failed" >&6; }
7980 else
7981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7982 $as_echo "ok" >&6; }
7983 fi
7984
7985 # Response file support.
7986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7987   nm_file_list_spec='@'
7988 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7989   nm_file_list_spec='@'
7990 fi
7991
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
8019 $as_echo_n "checking for sysroot... " >&6; }
8020
8021 # Check whether --with-sysroot was given.
8022 if test "${with_sysroot+set}" = set; then :
8023   withval=$with_sysroot;
8024 else
8025   with_sysroot=no
8026 fi
8027
8028
8029 lt_sysroot=
8030 case ${with_sysroot} in #(
8031  yes)
8032    if test "$GCC" = yes; then
8033      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
8034    fi
8035    ;; #(
8036  /*)
8037    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
8038    ;; #(
8039  no|'')
8040    ;; #(
8041  *)
8042    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
8043 $as_echo "${with_sysroot}" >&6; }
8044    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
8045    ;;
8046 esac
8047
8048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
8049 $as_echo "${lt_sysroot:-no}" >&6; }
8050
8051
8052
8053
8054
8055 # Check whether --enable-libtool-lock was given.
8056 if test "${enable_libtool_lock+set}" = set; then :
8057   enableval=$enable_libtool_lock;
8058 fi
8059
8060 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8061
8062 # Some flags need to be propagated to the compiler or linker for good
8063 # libtool support.
8064 case $host in
8065 ia64-*-hpux*)
8066   # Find out which ABI we are using.
8067   echo 'int i;' > conftest.$ac_ext
8068   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8069   (eval $ac_compile) 2>&5
8070   ac_status=$?
8071   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8072   test $ac_status = 0; }; then
8073     case `/usr/bin/file conftest.$ac_objext` in
8074       *ELF-32*)
8075         HPUX_IA64_MODE="32"
8076         ;;
8077       *ELF-64*)
8078         HPUX_IA64_MODE="64"
8079         ;;
8080     esac
8081   fi
8082   rm -rf conftest*
8083   ;;
8084 *-*-irix6*)
8085   # Find out which ABI we are using.
8086   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8087   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8088   (eval $ac_compile) 2>&5
8089   ac_status=$?
8090   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8091   test $ac_status = 0; }; then
8092     if test "$lt_cv_prog_gnu_ld" = yes; then
8093       case `/usr/bin/file conftest.$ac_objext` in
8094         *32-bit*)
8095           LD="${LD-ld} -melf32bsmip"
8096           ;;
8097         *N32*)
8098           LD="${LD-ld} -melf32bmipn32"
8099           ;;
8100         *64-bit*)
8101           LD="${LD-ld} -melf64bmip"
8102         ;;
8103       esac
8104     else
8105       case `/usr/bin/file conftest.$ac_objext` in
8106         *32-bit*)
8107           LD="${LD-ld} -32"
8108           ;;
8109         *N32*)
8110           LD="${LD-ld} -n32"
8111           ;;
8112         *64-bit*)
8113           LD="${LD-ld} -64"
8114           ;;
8115       esac
8116     fi
8117   fi
8118   rm -rf conftest*
8119   ;;
8120
8121 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8122 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8123   # Find out which ABI we are using.
8124   echo 'int i;' > conftest.$ac_ext
8125   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8126   (eval $ac_compile) 2>&5
8127   ac_status=$?
8128   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8129   test $ac_status = 0; }; then
8130     case `/usr/bin/file conftest.o` in
8131       *32-bit*)
8132         case $host in
8133           x86_64-*kfreebsd*-gnu)
8134             LD="${LD-ld} -m elf_i386_fbsd"
8135             ;;
8136           x86_64-*linux*)
8137             case `/usr/bin/file conftest.o` in
8138               *x86-64*)
8139                 LD="${LD-ld} -m elf32_x86_64"
8140                 ;;
8141               *)
8142                 LD="${LD-ld} -m elf_i386"
8143                 ;;
8144             esac
8145             ;;
8146           powerpc64le-*)
8147             LD="${LD-ld} -m elf32lppclinux"
8148             ;;
8149           powerpc64-*)
8150             LD="${LD-ld} -m elf32ppclinux"
8151             ;;
8152           s390x-*linux*)
8153             LD="${LD-ld} -m elf_s390"
8154             ;;
8155           sparc64-*linux*)
8156             LD="${LD-ld} -m elf32_sparc"
8157             ;;
8158         esac
8159         ;;
8160       *64-bit*)
8161         case $host in
8162           x86_64-*kfreebsd*-gnu)
8163             LD="${LD-ld} -m elf_x86_64_fbsd"
8164             ;;
8165           x86_64-*linux*)
8166             LD="${LD-ld} -m elf_x86_64"
8167             ;;
8168           powerpcle-*)
8169             LD="${LD-ld} -m elf64lppc"
8170             ;;
8171           powerpc-*)
8172             LD="${LD-ld} -m elf64ppc"
8173             ;;
8174           s390*-*linux*|s390*-*tpf*)
8175             LD="${LD-ld} -m elf64_s390"
8176             ;;
8177           sparc*-*linux*)
8178             LD="${LD-ld} -m elf64_sparc"
8179             ;;
8180         esac
8181         ;;
8182     esac
8183   fi
8184   rm -rf conftest*
8185   ;;
8186
8187 *-*-sco3.2v5*)
8188   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8189   SAVE_CFLAGS="$CFLAGS"
8190   CFLAGS="$CFLAGS -belf"
8191   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8192 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8193 if ${lt_cv_cc_needs_belf+:} false; then :
8194   $as_echo_n "(cached) " >&6
8195 else
8196   ac_ext=c
8197 ac_cpp='$CPP $CPPFLAGS'
8198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8201
8202      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8203 /* end confdefs.h.  */
8204
8205 int
8206 main ()
8207 {
8208
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 if ac_fn_c_try_link "$LINENO"; then :
8214   lt_cv_cc_needs_belf=yes
8215 else
8216   lt_cv_cc_needs_belf=no
8217 fi
8218 rm -f core conftest.err conftest.$ac_objext \
8219     conftest$ac_exeext conftest.$ac_ext
8220      ac_ext=c
8221 ac_cpp='$CPP $CPPFLAGS'
8222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8225
8226 fi
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8228 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8229   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8230     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8231     CFLAGS="$SAVE_CFLAGS"
8232   fi
8233   ;;
8234 *-*solaris*)
8235   # Find out which ABI we are using.
8236   echo 'int i;' > conftest.$ac_ext
8237   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8238   (eval $ac_compile) 2>&5
8239   ac_status=$?
8240   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8241   test $ac_status = 0; }; then
8242     case `/usr/bin/file conftest.o` in
8243     *64-bit*)
8244       case $lt_cv_prog_gnu_ld in
8245       yes*)
8246         case $host in
8247         i?86-*-solaris*)
8248           LD="${LD-ld} -m elf_x86_64"
8249           ;;
8250         sparc*-*-solaris*)
8251           LD="${LD-ld} -m elf64_sparc"
8252           ;;
8253         esac
8254         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8255         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8256           LD="${LD-ld}_sol2"
8257         fi
8258         ;;
8259       *)
8260         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8261           LD="${LD-ld} -64"
8262         fi
8263         ;;
8264       esac
8265       ;;
8266     esac
8267   fi
8268   rm -rf conftest*
8269   ;;
8270 esac
8271
8272 need_locks="$enable_libtool_lock"
8273
8274 if test -n "$ac_tool_prefix"; then
8275   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8276 set dummy ${ac_tool_prefix}mt; ac_word=$2
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8278 $as_echo_n "checking for $ac_word... " >&6; }
8279 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8280   $as_echo_n "(cached) " >&6
8281 else
8282   if test -n "$MANIFEST_TOOL"; then
8283   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8284 else
8285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8286 for as_dir in $PATH
8287 do
8288   IFS=$as_save_IFS
8289   test -z "$as_dir" && as_dir=.
8290     for ac_exec_ext in '' $ac_executable_extensions; do
8291   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8292     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8293     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8294     break 2
8295   fi
8296 done
8297   done
8298 IFS=$as_save_IFS
8299
8300 fi
8301 fi
8302 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8303 if test -n "$MANIFEST_TOOL"; then
8304   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8305 $as_echo "$MANIFEST_TOOL" >&6; }
8306 else
8307   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8308 $as_echo "no" >&6; }
8309 fi
8310
8311
8312 fi
8313 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8314   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8315   # Extract the first word of "mt", so it can be a program name with args.
8316 set dummy mt; ac_word=$2
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 $as_echo_n "checking for $ac_word... " >&6; }
8319 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8320   $as_echo_n "(cached) " >&6
8321 else
8322   if test -n "$ac_ct_MANIFEST_TOOL"; then
8323   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8324 else
8325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8326 for as_dir in $PATH
8327 do
8328   IFS=$as_save_IFS
8329   test -z "$as_dir" && as_dir=.
8330     for ac_exec_ext in '' $ac_executable_extensions; do
8331   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8332     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8333     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334     break 2
8335   fi
8336 done
8337   done
8338 IFS=$as_save_IFS
8339
8340 fi
8341 fi
8342 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8343 if test -n "$ac_ct_MANIFEST_TOOL"; then
8344   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8345 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8346 else
8347   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348 $as_echo "no" >&6; }
8349 fi
8350
8351   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8352     MANIFEST_TOOL=":"
8353   else
8354     case $cross_compiling:$ac_tool_warned in
8355 yes:)
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8358 ac_tool_warned=yes ;;
8359 esac
8360     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8361   fi
8362 else
8363   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8364 fi
8365
8366 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8368 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8369 if ${lt_cv_path_mainfest_tool+:} false; then :
8370   $as_echo_n "(cached) " >&6
8371 else
8372   lt_cv_path_mainfest_tool=no
8373   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8374   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8375   cat conftest.err >&5
8376   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8377     lt_cv_path_mainfest_tool=yes
8378   fi
8379   rm -f conftest*
8380 fi
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8382 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8383 if test "x$lt_cv_path_mainfest_tool" != xyes; then
8384   MANIFEST_TOOL=:
8385 fi
8386
8387
8388
8389
8390
8391
8392   case $host_os in
8393     rhapsody* | darwin*)
8394     if test -n "$ac_tool_prefix"; then
8395   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8396 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8400   $as_echo_n "(cached) " >&6
8401 else
8402   if test -n "$DSYMUTIL"; then
8403   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8404 else
8405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8406 for as_dir in $PATH
8407 do
8408   IFS=$as_save_IFS
8409   test -z "$as_dir" && as_dir=.
8410     for ac_exec_ext in '' $ac_executable_extensions; do
8411   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8412     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8413     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414     break 2
8415   fi
8416 done
8417   done
8418 IFS=$as_save_IFS
8419
8420 fi
8421 fi
8422 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8423 if test -n "$DSYMUTIL"; then
8424   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8425 $as_echo "$DSYMUTIL" >&6; }
8426 else
8427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432 fi
8433 if test -z "$ac_cv_prog_DSYMUTIL"; then
8434   ac_ct_DSYMUTIL=$DSYMUTIL
8435   # Extract the first word of "dsymutil", so it can be a program name with args.
8436 set dummy dsymutil; ac_word=$2
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8438 $as_echo_n "checking for $ac_word... " >&6; }
8439 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8440   $as_echo_n "(cached) " >&6
8441 else
8442   if test -n "$ac_ct_DSYMUTIL"; then
8443   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8444 else
8445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8446 for as_dir in $PATH
8447 do
8448   IFS=$as_save_IFS
8449   test -z "$as_dir" && as_dir=.
8450     for ac_exec_ext in '' $ac_executable_extensions; do
8451   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8452     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8453     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8454     break 2
8455   fi
8456 done
8457   done
8458 IFS=$as_save_IFS
8459
8460 fi
8461 fi
8462 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8463 if test -n "$ac_ct_DSYMUTIL"; then
8464   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8465 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8466 else
8467   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8468 $as_echo "no" >&6; }
8469 fi
8470
8471   if test "x$ac_ct_DSYMUTIL" = x; then
8472     DSYMUTIL=":"
8473   else
8474     case $cross_compiling:$ac_tool_warned in
8475 yes:)
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8478 ac_tool_warned=yes ;;
8479 esac
8480     DSYMUTIL=$ac_ct_DSYMUTIL
8481   fi
8482 else
8483   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8484 fi
8485
8486     if test -n "$ac_tool_prefix"; then
8487   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8488 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8490 $as_echo_n "checking for $ac_word... " >&6; }
8491 if ${ac_cv_prog_NMEDIT+:} false; then :
8492   $as_echo_n "(cached) " >&6
8493 else
8494   if test -n "$NMEDIT"; then
8495   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8496 else
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8499 do
8500   IFS=$as_save_IFS
8501   test -z "$as_dir" && as_dir=.
8502     for ac_exec_ext in '' $ac_executable_extensions; do
8503   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8505     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506     break 2
8507   fi
8508 done
8509   done
8510 IFS=$as_save_IFS
8511
8512 fi
8513 fi
8514 NMEDIT=$ac_cv_prog_NMEDIT
8515 if test -n "$NMEDIT"; then
8516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8517 $as_echo "$NMEDIT" >&6; }
8518 else
8519   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 $as_echo "no" >&6; }
8521 fi
8522
8523
8524 fi
8525 if test -z "$ac_cv_prog_NMEDIT"; then
8526   ac_ct_NMEDIT=$NMEDIT
8527   # Extract the first word of "nmedit", so it can be a program name with args.
8528 set dummy nmedit; ac_word=$2
8529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8530 $as_echo_n "checking for $ac_word... " >&6; }
8531 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8532   $as_echo_n "(cached) " >&6
8533 else
8534   if test -n "$ac_ct_NMEDIT"; then
8535   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8536 else
8537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 for as_dir in $PATH
8539 do
8540   IFS=$as_save_IFS
8541   test -z "$as_dir" && as_dir=.
8542     for ac_exec_ext in '' $ac_executable_extensions; do
8543   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8544     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8545     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8546     break 2
8547   fi
8548 done
8549   done
8550 IFS=$as_save_IFS
8551
8552 fi
8553 fi
8554 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8555 if test -n "$ac_ct_NMEDIT"; then
8556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8557 $as_echo "$ac_ct_NMEDIT" >&6; }
8558 else
8559   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8560 $as_echo "no" >&6; }
8561 fi
8562
8563   if test "x$ac_ct_NMEDIT" = x; then
8564     NMEDIT=":"
8565   else
8566     case $cross_compiling:$ac_tool_warned in
8567 yes:)
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8569 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8570 ac_tool_warned=yes ;;
8571 esac
8572     NMEDIT=$ac_ct_NMEDIT
8573   fi
8574 else
8575   NMEDIT="$ac_cv_prog_NMEDIT"
8576 fi
8577
8578     if test -n "$ac_tool_prefix"; then
8579   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8580 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8582 $as_echo_n "checking for $ac_word... " >&6; }
8583 if ${ac_cv_prog_LIPO+:} false; then :
8584   $as_echo_n "(cached) " >&6
8585 else
8586   if test -n "$LIPO"; then
8587   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8588 else
8589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8590 for as_dir in $PATH
8591 do
8592   IFS=$as_save_IFS
8593   test -z "$as_dir" && as_dir=.
8594     for ac_exec_ext in '' $ac_executable_extensions; do
8595   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8596     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8597     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8598     break 2
8599   fi
8600 done
8601   done
8602 IFS=$as_save_IFS
8603
8604 fi
8605 fi
8606 LIPO=$ac_cv_prog_LIPO
8607 if test -n "$LIPO"; then
8608   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8609 $as_echo "$LIPO" >&6; }
8610 else
8611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8612 $as_echo "no" >&6; }
8613 fi
8614
8615
8616 fi
8617 if test -z "$ac_cv_prog_LIPO"; then
8618   ac_ct_LIPO=$LIPO
8619   # Extract the first word of "lipo", so it can be a program name with args.
8620 set dummy lipo; ac_word=$2
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8622 $as_echo_n "checking for $ac_word... " >&6; }
8623 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8624   $as_echo_n "(cached) " >&6
8625 else
8626   if test -n "$ac_ct_LIPO"; then
8627   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8628 else
8629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8630 for as_dir in $PATH
8631 do
8632   IFS=$as_save_IFS
8633   test -z "$as_dir" && as_dir=.
8634     for ac_exec_ext in '' $ac_executable_extensions; do
8635   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8636     ac_cv_prog_ac_ct_LIPO="lipo"
8637     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8638     break 2
8639   fi
8640 done
8641   done
8642 IFS=$as_save_IFS
8643
8644 fi
8645 fi
8646 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8647 if test -n "$ac_ct_LIPO"; then
8648   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8649 $as_echo "$ac_ct_LIPO" >&6; }
8650 else
8651   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8652 $as_echo "no" >&6; }
8653 fi
8654
8655   if test "x$ac_ct_LIPO" = x; then
8656     LIPO=":"
8657   else
8658     case $cross_compiling:$ac_tool_warned in
8659 yes:)
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8662 ac_tool_warned=yes ;;
8663 esac
8664     LIPO=$ac_ct_LIPO
8665   fi
8666 else
8667   LIPO="$ac_cv_prog_LIPO"
8668 fi
8669
8670     if test -n "$ac_tool_prefix"; then
8671   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8672 set dummy ${ac_tool_prefix}otool; ac_word=$2
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8674 $as_echo_n "checking for $ac_word... " >&6; }
8675 if ${ac_cv_prog_OTOOL+:} false; then :
8676   $as_echo_n "(cached) " >&6
8677 else
8678   if test -n "$OTOOL"; then
8679   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8680 else
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8683 do
8684   IFS=$as_save_IFS
8685   test -z "$as_dir" && as_dir=.
8686     for ac_exec_ext in '' $ac_executable_extensions; do
8687   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8689     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690     break 2
8691   fi
8692 done
8693   done
8694 IFS=$as_save_IFS
8695
8696 fi
8697 fi
8698 OTOOL=$ac_cv_prog_OTOOL
8699 if test -n "$OTOOL"; then
8700   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8701 $as_echo "$OTOOL" >&6; }
8702 else
8703   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8704 $as_echo "no" >&6; }
8705 fi
8706
8707
8708 fi
8709 if test -z "$ac_cv_prog_OTOOL"; then
8710   ac_ct_OTOOL=$OTOOL
8711   # Extract the first word of "otool", so it can be a program name with args.
8712 set dummy otool; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8716   $as_echo_n "(cached) " >&6
8717 else
8718   if test -n "$ac_ct_OTOOL"; then
8719   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8720 else
8721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8722 for as_dir in $PATH
8723 do
8724   IFS=$as_save_IFS
8725   test -z "$as_dir" && as_dir=.
8726     for ac_exec_ext in '' $ac_executable_extensions; do
8727   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8728     ac_cv_prog_ac_ct_OTOOL="otool"
8729     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8730     break 2
8731   fi
8732 done
8733   done
8734 IFS=$as_save_IFS
8735
8736 fi
8737 fi
8738 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8739 if test -n "$ac_ct_OTOOL"; then
8740   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8741 $as_echo "$ac_ct_OTOOL" >&6; }
8742 else
8743   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744 $as_echo "no" >&6; }
8745 fi
8746
8747   if test "x$ac_ct_OTOOL" = x; then
8748     OTOOL=":"
8749   else
8750     case $cross_compiling:$ac_tool_warned in
8751 yes:)
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8754 ac_tool_warned=yes ;;
8755 esac
8756     OTOOL=$ac_ct_OTOOL
8757   fi
8758 else
8759   OTOOL="$ac_cv_prog_OTOOL"
8760 fi
8761
8762     if test -n "$ac_tool_prefix"; then
8763   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8764 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8766 $as_echo_n "checking for $ac_word... " >&6; }
8767 if ${ac_cv_prog_OTOOL64+:} false; then :
8768   $as_echo_n "(cached) " >&6
8769 else
8770   if test -n "$OTOOL64"; then
8771   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8772 else
8773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8774 for as_dir in $PATH
8775 do
8776   IFS=$as_save_IFS
8777   test -z "$as_dir" && as_dir=.
8778     for ac_exec_ext in '' $ac_executable_extensions; do
8779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8780     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8782     break 2
8783   fi
8784 done
8785   done
8786 IFS=$as_save_IFS
8787
8788 fi
8789 fi
8790 OTOOL64=$ac_cv_prog_OTOOL64
8791 if test -n "$OTOOL64"; then
8792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8793 $as_echo "$OTOOL64" >&6; }
8794 else
8795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8796 $as_echo "no" >&6; }
8797 fi
8798
8799
8800 fi
8801 if test -z "$ac_cv_prog_OTOOL64"; then
8802   ac_ct_OTOOL64=$OTOOL64
8803   # Extract the first word of "otool64", so it can be a program name with args.
8804 set dummy otool64; ac_word=$2
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8806 $as_echo_n "checking for $ac_word... " >&6; }
8807 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8808   $as_echo_n "(cached) " >&6
8809 else
8810   if test -n "$ac_ct_OTOOL64"; then
8811   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8812 else
8813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8814 for as_dir in $PATH
8815 do
8816   IFS=$as_save_IFS
8817   test -z "$as_dir" && as_dir=.
8818     for ac_exec_ext in '' $ac_executable_extensions; do
8819   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8820     ac_cv_prog_ac_ct_OTOOL64="otool64"
8821     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8822     break 2
8823   fi
8824 done
8825   done
8826 IFS=$as_save_IFS
8827
8828 fi
8829 fi
8830 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8831 if test -n "$ac_ct_OTOOL64"; then
8832   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8833 $as_echo "$ac_ct_OTOOL64" >&6; }
8834 else
8835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8836 $as_echo "no" >&6; }
8837 fi
8838
8839   if test "x$ac_ct_OTOOL64" = x; then
8840     OTOOL64=":"
8841   else
8842     case $cross_compiling:$ac_tool_warned in
8843 yes:)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8846 ac_tool_warned=yes ;;
8847 esac
8848     OTOOL64=$ac_ct_OTOOL64
8849   fi
8850 else
8851   OTOOL64="$ac_cv_prog_OTOOL64"
8852 fi
8853
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8881 $as_echo_n "checking for -single_module linker flag... " >&6; }
8882 if ${lt_cv_apple_cc_single_mod+:} false; then :
8883   $as_echo_n "(cached) " >&6
8884 else
8885   lt_cv_apple_cc_single_mod=no
8886       if test -z "${LT_MULTI_MODULE}"; then
8887         # By default we will add the -single_module flag. You can override
8888         # by either setting the environment variable LT_MULTI_MODULE
8889         # non-empty at configure time, or by adding -multi_module to the
8890         # link flags.
8891         rm -rf libconftest.dylib*
8892         echo "int foo(void){return 1;}" > conftest.c
8893         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8894 -dynamiclib -Wl,-single_module conftest.c" >&5
8895         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8896           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8897         _lt_result=$?
8898         # If there is a non-empty error log, and "single_module"
8899         # appears in it, assume the flag caused a linker warning
8900         if test -s conftest.err && $GREP single_module conftest.err; then
8901           cat conftest.err >&5
8902         # Otherwise, if the output was created with a 0 exit code from
8903         # the compiler, it worked.
8904         elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8905           lt_cv_apple_cc_single_mod=yes
8906         else
8907           cat conftest.err >&5
8908         fi
8909         rm -rf libconftest.dylib*
8910         rm -f conftest.*
8911       fi
8912 fi
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8914 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8915
8916     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8917 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8918 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8919   $as_echo_n "(cached) " >&6
8920 else
8921   lt_cv_ld_exported_symbols_list=no
8922       save_LDFLAGS=$LDFLAGS
8923       echo "_main" > conftest.sym
8924       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8925       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8926 /* end confdefs.h.  */
8927
8928 int
8929 main ()
8930 {
8931
8932   ;
8933   return 0;
8934 }
8935 _ACEOF
8936 if ac_fn_c_try_link "$LINENO"; then :
8937   lt_cv_ld_exported_symbols_list=yes
8938 else
8939   lt_cv_ld_exported_symbols_list=no
8940 fi
8941 rm -f core conftest.err conftest.$ac_objext \
8942     conftest$ac_exeext conftest.$ac_ext
8943         LDFLAGS="$save_LDFLAGS"
8944
8945 fi
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8947 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8948
8949     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8950 $as_echo_n "checking for -force_load linker flag... " >&6; }
8951 if ${lt_cv_ld_force_load+:} false; then :
8952   $as_echo_n "(cached) " >&6
8953 else
8954   lt_cv_ld_force_load=no
8955       cat > conftest.c << _LT_EOF
8956 int forced_loaded() { return 2;}
8957 _LT_EOF
8958       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8959       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8960       echo "$AR cru libconftest.a conftest.o" >&5
8961       $AR cru libconftest.a conftest.o 2>&5
8962       echo "$RANLIB libconftest.a" >&5
8963       $RANLIB libconftest.a 2>&5
8964       cat > conftest.c << _LT_EOF
8965 int main() { return 0;}
8966 _LT_EOF
8967       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8968       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8969       _lt_result=$?
8970       if test -s conftest.err && $GREP force_load conftest.err; then
8971         cat conftest.err >&5
8972       elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8973         lt_cv_ld_force_load=yes
8974       else
8975         cat conftest.err >&5
8976       fi
8977         rm -f conftest.err libconftest.a conftest conftest.c
8978         rm -rf conftest.dSYM
8979
8980 fi
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8982 $as_echo "$lt_cv_ld_force_load" >&6; }
8983     case $host_os in
8984     rhapsody* | darwin1.[012])
8985       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8986     darwin1.*)
8987       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8988     darwin*) # darwin 5.x on
8989       # if running on 10.5 or later, the deployment target defaults
8990       # to the OS version, if on x86, and 10.4, the deployment
8991       # target defaults to 10.4. Don't you love it?
8992       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8993         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8994           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8995         10.[012]*)
8996           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8997         10.*)
8998           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8999       esac
9000     ;;
9001   esac
9002     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9003       _lt_dar_single_mod='$single_module'
9004     fi
9005     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9006       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9007     else
9008       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9009     fi
9010     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9011       _lt_dsymutil='~$DSYMUTIL $lib || :'
9012     else
9013       _lt_dsymutil=
9014     fi
9015     ;;
9016   esac
9017
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9019 $as_echo_n "checking for ANSI C header files... " >&6; }
9020 if ${ac_cv_header_stdc+:} false; then :
9021   $as_echo_n "(cached) " >&6
9022 else
9023   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9024 /* end confdefs.h.  */
9025 #include <stdlib.h>
9026 #include <stdarg.h>
9027 #include <string.h>
9028 #include <float.h>
9029
9030 int
9031 main ()
9032 {
9033
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 if ac_fn_c_try_compile "$LINENO"; then :
9039   ac_cv_header_stdc=yes
9040 else
9041   ac_cv_header_stdc=no
9042 fi
9043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9044
9045 if test $ac_cv_header_stdc = yes; then
9046   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h.  */
9049 #include <string.h>
9050
9051 _ACEOF
9052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9053   $EGREP "memchr" >/dev/null 2>&1; then :
9054
9055 else
9056   ac_cv_header_stdc=no
9057 fi
9058 rm -f conftest*
9059
9060 fi
9061
9062 if test $ac_cv_header_stdc = yes; then
9063   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9064   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9065 /* end confdefs.h.  */
9066 #include <stdlib.h>
9067
9068 _ACEOF
9069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9070   $EGREP "free" >/dev/null 2>&1; then :
9071
9072 else
9073   ac_cv_header_stdc=no
9074 fi
9075 rm -f conftest*
9076
9077 fi
9078
9079 if test $ac_cv_header_stdc = yes; then
9080   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9081   if test "$cross_compiling" = yes; then :
9082   :
9083 else
9084   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h.  */
9086 #include <ctype.h>
9087 #include <stdlib.h>
9088 #if ((' ' & 0x0FF) == 0x020)
9089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9091 #else
9092 # define ISLOWER(c) \
9093                    (('a' <= (c) && (c) <= 'i') \
9094                      || ('j' <= (c) && (c) <= 'r') \
9095                      || ('s' <= (c) && (c) <= 'z'))
9096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9097 #endif
9098
9099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9100 int
9101 main ()
9102 {
9103   int i;
9104   for (i = 0; i < 256; i++)
9105     if (XOR (islower (i), ISLOWER (i))
9106         || toupper (i) != TOUPPER (i))
9107       return 2;
9108   return 0;
9109 }
9110 _ACEOF
9111 if ac_fn_c_try_run "$LINENO"; then :
9112
9113 else
9114   ac_cv_header_stdc=no
9115 fi
9116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9117   conftest.$ac_objext conftest.beam conftest.$ac_ext
9118 fi
9119
9120 fi
9121 fi
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9123 $as_echo "$ac_cv_header_stdc" >&6; }
9124 if test $ac_cv_header_stdc = yes; then
9125
9126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9127
9128 fi
9129
9130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9131 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9132                   inttypes.h stdint.h unistd.h
9133 do :
9134   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
9136 "
9137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9138   cat >>confdefs.h <<_ACEOF
9139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9140 _ACEOF
9141
9142 fi
9143
9144 done
9145
9146
9147 for ac_header in dlfcn.h
9148 do :
9149   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9150 "
9151 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9152   cat >>confdefs.h <<_ACEOF
9153 #define HAVE_DLFCN_H 1
9154 _ACEOF
9155
9156 fi
9157
9158 done
9159
9160
9161
9162
9163 func_stripname_cnf ()
9164 {
9165   case ${2} in
9166   .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
9167   *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
9168   esac
9169 } # func_stripname_cnf
9170
9171
9172
9173
9174
9175 # Set options
9176 # Check whether --enable-shared was given.
9177 if test "${enable_shared+set}" = set; then :
9178   enableval=$enable_shared; p=${PACKAGE-default}
9179     case $enableval in
9180     yes) enable_shared=yes ;;
9181     no) enable_shared=no ;;
9182     *)
9183       enable_shared=no
9184       # Look at the argument we got.  We use all the common list separators.
9185       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9186       for pkg in $enableval; do
9187         IFS="$lt_save_ifs"
9188         if test "X$pkg" = "X$p"; then
9189           enable_shared=yes
9190         fi
9191       done
9192       IFS="$lt_save_ifs"
9193       ;;
9194     esac
9195 else
9196   enable_shared=yes
9197 fi
9198
9199
9200
9201
9202
9203
9204
9205 # Check whether --enable-static was given.
9206 if test "${enable_static+set}" = set; then :
9207   enableval=$enable_static; p=${PACKAGE-default}
9208     case $enableval in
9209     yes) enable_static=yes ;;
9210     no) enable_static=no ;;
9211     *)
9212      enable_static=no
9213       # Look at the argument we got.  We use all the common list separators.
9214       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9215       for pkg in $enableval; do
9216         IFS="$lt_save_ifs"
9217         if test "X$pkg" = "X$p"; then
9218           enable_static=yes
9219         fi
9220       done
9221       IFS="$lt_save_ifs"
9222       ;;
9223     esac
9224 else
9225   enable_static=no
9226 fi
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237         enable_dlopen=no
9238
9239
9240   enable_win32_dll=no
9241
9242
9243
9244
9245
9246 # Check whether --with-pic was given.
9247 if test "${with_pic+set}" = set; then :
9248   withval=$with_pic; lt_p=${PACKAGE-default}
9249     case $withval in
9250     yes|no) pic_mode=$withval ;;
9251     *)
9252       pic_mode=default
9253       # Look at the argument we got.  We use all the common list separators.
9254       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9255       for lt_pkg in $withval; do
9256         IFS="$lt_save_ifs"
9257         if test "X$lt_pkg" = "X$lt_p"; then
9258           pic_mode=yes
9259         fi
9260       done
9261       IFS="$lt_save_ifs"
9262       ;;
9263     esac
9264 else
9265   pic_mode=default
9266 fi
9267
9268
9269 test -z "$pic_mode" && pic_mode=default
9270
9271
9272
9273
9274
9275
9276
9277   # Check whether --enable-fast-install was given.
9278 if test "${enable_fast_install+set}" = set; then :
9279   enableval=$enable_fast_install; p=${PACKAGE-default}
9280     case $enableval in
9281     yes) enable_fast_install=yes ;;
9282     no) enable_fast_install=no ;;
9283     *)
9284       enable_fast_install=no
9285       # Look at the argument we got.  We use all the common list separators.
9286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9287       for pkg in $enableval; do
9288         IFS="$lt_save_ifs"
9289         if test "X$pkg" = "X$p"; then
9290           enable_fast_install=yes
9291         fi
9292       done
9293       IFS="$lt_save_ifs"
9294       ;;
9295     esac
9296 else
9297   enable_fast_install=yes
9298 fi
9299
9300
9301
9302
9303
9304
9305
9306
9307
9308
9309
9310 # This can be used to rebuild libtool when needed
9311 LIBTOOL_DEPS="$ltmain"
9312
9313 # Always use our own libtool.
9314 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9315
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 test -z "$LN_S" && LN_S="ln -s"
9346
9347
9348
9349
9350
9351
9352
9353
9354
9355
9356
9357
9358
9359
9360 if test -n "${ZSH_VERSION+set}" ; then
9361    setopt NO_GLOB_SUBST
9362 fi
9363
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9365 $as_echo_n "checking for objdir... " >&6; }
9366 if ${lt_cv_objdir+:} false; then :
9367   $as_echo_n "(cached) " >&6
9368 else
9369   rm -f .libs 2>/dev/null
9370 mkdir .libs 2>/dev/null
9371 if test -d .libs; then
9372   lt_cv_objdir=.libs
9373 else
9374   # MS-DOS does not allow filenames that begin with a dot.
9375   lt_cv_objdir=_libs
9376 fi
9377 rmdir .libs 2>/dev/null
9378 fi
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9380 $as_echo "$lt_cv_objdir" >&6; }
9381 objdir=$lt_cv_objdir
9382
9383
9384
9385
9386
9387 cat >>confdefs.h <<_ACEOF
9388 #define LT_OBJDIR "$lt_cv_objdir/"
9389 _ACEOF
9390
9391
9392
9393
9394 case $host_os in
9395 aix3*)
9396   # AIX sometimes has problems with the GCC collect2 program.  For some
9397   # reason, if we set the COLLECT_NAMES environment variable, the problems
9398   # vanish in a puff of smoke.
9399   if test "X${COLLECT_NAMES+set}" != Xset; then
9400     COLLECT_NAMES=
9401     export COLLECT_NAMES
9402   fi
9403   ;;
9404 esac
9405
9406 # Global variables:
9407 ofile=libtool
9408 can_build_shared=yes
9409
9410 # All known linkers require a `.a' archive for static linking (except MSVC,
9411 # which needs '.lib').
9412 libext=a
9413
9414 with_gnu_ld="$lt_cv_prog_gnu_ld"
9415
9416 old_CC="$CC"
9417 old_CFLAGS="$CFLAGS"
9418
9419 # Set sane defaults for various variables
9420 test -z "$CC" && CC=cc
9421 test -z "$LTCC" && LTCC=$CC
9422 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9423 test -z "$LD" && LD=ld
9424 test -z "$ac_objext" && ac_objext=o
9425
9426 for cc_temp in $compiler""; do
9427   case $cc_temp in
9428     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9429     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9430     \-*) ;;
9431     *) break;;
9432   esac
9433 done
9434 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9435
9436
9437 # Only perform the check for file, if the check method requires it
9438 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9439 case $deplibs_check_method in
9440 file_magic*)
9441   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9442     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9443 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9444 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9445   $as_echo_n "(cached) " >&6
9446 else
9447   case $MAGIC_CMD in
9448 [\\/*] |  ?:[\\/]*)
9449   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9450   ;;
9451 *)
9452   lt_save_MAGIC_CMD="$MAGIC_CMD"
9453   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9454   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9455   for ac_dir in $ac_dummy; do
9456     IFS="$lt_save_ifs"
9457     test -z "$ac_dir" && ac_dir=.
9458     if test -f $ac_dir/${ac_tool_prefix}file; then
9459       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9460       if test -n "$file_magic_test_file"; then
9461         case $deplibs_check_method in
9462         "file_magic "*)
9463           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9464           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9465           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9466             $EGREP "$file_magic_regex" > /dev/null; then
9467             :
9468           else
9469             cat <<_LT_EOF 1>&2
9470
9471 *** Warning: the command libtool uses to detect shared libraries,
9472 *** $file_magic_cmd, produces output that libtool cannot recognize.
9473 *** The result is that libtool may fail to recognize shared libraries
9474 *** as such.  This will affect the creation of libtool libraries that
9475 *** depend on shared libraries, but programs linked with such libtool
9476 *** libraries will work regardless of this problem.  Nevertheless, you
9477 *** may want to report the problem to your system manager and/or to
9478 *** bug-libtool@gnu.org
9479
9480 _LT_EOF
9481           fi ;;
9482         esac
9483       fi
9484       break
9485     fi
9486   done
9487   IFS="$lt_save_ifs"
9488   MAGIC_CMD="$lt_save_MAGIC_CMD"
9489   ;;
9490 esac
9491 fi
9492
9493 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9494 if test -n "$MAGIC_CMD"; then
9495   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9496 $as_echo "$MAGIC_CMD" >&6; }
9497 else
9498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9499 $as_echo "no" >&6; }
9500 fi
9501
9502
9503
9504
9505
9506 if test -z "$lt_cv_path_MAGIC_CMD"; then
9507   if test -n "$ac_tool_prefix"; then
9508     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9509 $as_echo_n "checking for file... " >&6; }
9510 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9511   $as_echo_n "(cached) " >&6
9512 else
9513   case $MAGIC_CMD in
9514 [\\/*] |  ?:[\\/]*)
9515   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9516   ;;
9517 *)
9518   lt_save_MAGIC_CMD="$MAGIC_CMD"
9519   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9520   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9521   for ac_dir in $ac_dummy; do
9522     IFS="$lt_save_ifs"
9523     test -z "$ac_dir" && ac_dir=.
9524     if test -f $ac_dir/file; then
9525       lt_cv_path_MAGIC_CMD="$ac_dir/file"
9526       if test -n "$file_magic_test_file"; then
9527         case $deplibs_check_method in
9528         "file_magic "*)
9529           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9530           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9531           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9532             $EGREP "$file_magic_regex" > /dev/null; then
9533             :
9534           else
9535             cat <<_LT_EOF 1>&2
9536
9537 *** Warning: the command libtool uses to detect shared libraries,
9538 *** $file_magic_cmd, produces output that libtool cannot recognize.
9539 *** The result is that libtool may fail to recognize shared libraries
9540 *** as such.  This will affect the creation of libtool libraries that
9541 *** depend on shared libraries, but programs linked with such libtool
9542 *** libraries will work regardless of this problem.  Nevertheless, you
9543 *** may want to report the problem to your system manager and/or to
9544 *** bug-libtool@gnu.org
9545
9546 _LT_EOF
9547           fi ;;
9548         esac
9549       fi
9550       break
9551     fi
9552   done
9553   IFS="$lt_save_ifs"
9554   MAGIC_CMD="$lt_save_MAGIC_CMD"
9555   ;;
9556 esac
9557 fi
9558
9559 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9560 if test -n "$MAGIC_CMD"; then
9561   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9562 $as_echo "$MAGIC_CMD" >&6; }
9563 else
9564   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9565 $as_echo "no" >&6; }
9566 fi
9567
9568
9569   else
9570     MAGIC_CMD=:
9571   fi
9572 fi
9573
9574   fi
9575   ;;
9576 esac
9577
9578 # Use C for the default configuration in the libtool script
9579
9580 lt_save_CC="$CC"
9581 ac_ext=c
9582 ac_cpp='$CPP $CPPFLAGS'
9583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586
9587
9588 # Source file extension for C test sources.
9589 ac_ext=c
9590
9591 # Object file extension for compiled C test sources.
9592 objext=o
9593 objext=$objext
9594
9595 # Code to be used in simple compile tests
9596 lt_simple_compile_test_code="int some_variable = 0;"
9597
9598 # Code to be used in simple link tests
9599 lt_simple_link_test_code='int main(){return(0);}'
9600
9601
9602
9603
9604
9605
9606
9607 # If no C compiler was specified, use CC.
9608 LTCC=${LTCC-"$CC"}
9609
9610 # If no C compiler flags were specified, use CFLAGS.
9611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9612
9613 # Allow CC to be a program name with arguments.
9614 compiler=$CC
9615
9616 # Save the default compiler, since it gets overwritten when the other
9617 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9618 compiler_DEFAULT=$CC
9619
9620 # save warnings/boilerplate of simple test code
9621 ac_outfile=conftest.$ac_objext
9622 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9623 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9624 _lt_compiler_boilerplate=`cat conftest.err`
9625 $RM conftest*
9626
9627 ac_outfile=conftest.$ac_objext
9628 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9629 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9630 _lt_linker_boilerplate=`cat conftest.err`
9631 $RM -r conftest*
9632
9633
9634 ## CAVEAT EMPTOR:
9635 ## There is no encapsulation within the following macros, do not change
9636 ## the running order or otherwise move them around unless you know exactly
9637 ## what you are doing...
9638 if test -n "$compiler"; then
9639
9640 lt_prog_compiler_no_builtin_flag=
9641
9642 if test "$GCC" = yes; then
9643   case $cc_basename in
9644   nvcc*)
9645     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9646   *)
9647     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9648   esac
9649
9650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9651 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9652 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9653   $as_echo_n "(cached) " >&6
9654 else
9655   lt_cv_prog_compiler_rtti_exceptions=no
9656    ac_outfile=conftest.$ac_objext
9657    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9658    lt_compiler_flag="-fno-rtti -fno-exceptions"
9659    # Insert the option either (1) after the last *FLAGS variable, or
9660    # (2) before a word containing "conftest.", or (3) at the end.
9661    # Note that $ac_compile itself does not contain backslashes and begins
9662    # with a dollar sign (not a hyphen), so the echo should work correctly.
9663    # The option is referenced via a variable to avoid confusing sed.
9664    lt_compile=`echo "$ac_compile" | $SED \
9665    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9666    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9667    -e 's:$: $lt_compiler_flag:'`
9668    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9669    (eval "$lt_compile" 2>conftest.err)
9670    ac_status=$?
9671    cat conftest.err >&5
9672    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9673    if (exit $ac_status) && test -s "$ac_outfile"; then
9674      # The compiler can only warn and ignore the option if not recognized
9675      # So say no if there are warnings other than the usual output.
9676      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9677      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9678      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9679        lt_cv_prog_compiler_rtti_exceptions=yes
9680      fi
9681    fi
9682    $RM conftest*
9683
9684 fi
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9686 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9687
9688 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9689     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9690 else
9691     :
9692 fi
9693
9694 fi
9695
9696
9697
9698
9699
9700
9701   lt_prog_compiler_wl=
9702 lt_prog_compiler_pic=
9703 lt_prog_compiler_static=
9704
9705
9706   if test "$GCC" = yes; then
9707     lt_prog_compiler_wl='-Wl,'
9708     lt_prog_compiler_static='-static'
9709
9710     case $host_os in
9711       aix*)
9712       # All AIX code is PIC.
9713       if test "$host_cpu" = ia64; then
9714         # AIX 5 now supports IA64 processor
9715         lt_prog_compiler_static='-Bstatic'
9716       fi
9717       ;;
9718
9719     amigaos*)
9720       case $host_cpu in
9721       powerpc)
9722             # see comment about AmigaOS4 .so support
9723             lt_prog_compiler_pic='-fPIC'
9724         ;;
9725       m68k)
9726             # FIXME: we need at least 68020 code to build shared libraries, but
9727             # adding the `-m68020' flag to GCC prevents building anything better,
9728             # like `-m68040'.
9729             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9730         ;;
9731       esac
9732       ;;
9733
9734     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9735       # PIC is the default for these OSes.
9736       ;;
9737
9738     mingw* | cygwin* | pw32* | os2* | cegcc*)
9739       # This hack is so that the source file can tell whether it is being
9740       # built for inclusion in a dll (and should export symbols for example).
9741       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9742       # (--disable-auto-import) libraries
9743       lt_prog_compiler_pic='-DDLL_EXPORT'
9744       ;;
9745
9746     darwin* | rhapsody*)
9747       # PIC is the default on this platform
9748       # Common symbols not allowed in MH_DYLIB files
9749       lt_prog_compiler_pic='-fno-common'
9750       ;;
9751
9752     haiku*)
9753       # PIC is the default for Haiku.
9754       # The "-static" flag exists, but is broken.
9755       lt_prog_compiler_static=
9756       ;;
9757
9758     hpux*)
9759       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9760       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9761       # sets the default TLS model and affects inlining.
9762       case $host_cpu in
9763       hppa*64*)
9764         # +Z the default
9765         ;;
9766       *)
9767         lt_prog_compiler_pic='-fPIC'
9768         ;;
9769       esac
9770       ;;
9771
9772     interix[3-9]*)
9773       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9774       # Instead, we relocate shared libraries at runtime.
9775       ;;
9776
9777     msdosdjgpp*)
9778       # Just because we use GCC doesn't mean we suddenly get shared libraries
9779       # on systems that don't support them.
9780       lt_prog_compiler_can_build_shared=no
9781       enable_shared=no
9782       ;;
9783
9784     *nto* | *qnx*)
9785       # QNX uses GNU C++, but need to define -shared option too, otherwise
9786       # it will coredump.
9787       lt_prog_compiler_pic='-fPIC -shared'
9788       ;;
9789
9790     sysv4*MP*)
9791       if test -d /usr/nec; then
9792         lt_prog_compiler_pic=-Kconform_pic
9793       fi
9794       ;;
9795
9796     *)
9797       lt_prog_compiler_pic='-fPIC'
9798       ;;
9799     esac
9800
9801     case $cc_basename in
9802     nvcc*) # Cuda Compiler Driver 2.2
9803       lt_prog_compiler_wl='-Xlinker '
9804       if test -n "$lt_prog_compiler_pic"; then
9805         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9806       fi
9807       ;;
9808     esac
9809   else
9810     # PORTME Check for flag to pass linker flags through the system compiler.
9811     case $host_os in
9812     aix*)
9813       lt_prog_compiler_wl='-Wl,'
9814       if test "$host_cpu" = ia64; then
9815         # AIX 5 now supports IA64 processor
9816         lt_prog_compiler_static='-Bstatic'
9817       else
9818         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9819       fi
9820       ;;
9821
9822     mingw* | cygwin* | pw32* | os2* | cegcc*)
9823       # This hack is so that the source file can tell whether it is being
9824       # built for inclusion in a dll (and should export symbols for example).
9825       lt_prog_compiler_pic='-DDLL_EXPORT'
9826       ;;
9827
9828     hpux9* | hpux10* | hpux11*)
9829       lt_prog_compiler_wl='-Wl,'
9830       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9831       # not for PA HP-UX.
9832       case $host_cpu in
9833       hppa*64*|ia64*)
9834         # +Z the default
9835         ;;
9836       *)
9837         lt_prog_compiler_pic='+Z'
9838         ;;
9839       esac
9840       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9841       lt_prog_compiler_static='${wl}-a ${wl}archive'
9842       ;;
9843
9844     irix5* | irix6* | nonstopux*)
9845       lt_prog_compiler_wl='-Wl,'
9846       # PIC (with -KPIC) is the default.
9847       lt_prog_compiler_static='-non_shared'
9848       ;;
9849
9850     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9851       case $cc_basename in
9852       # old Intel for x86_64 which still supported -KPIC.
9853       ecc*)
9854         lt_prog_compiler_wl='-Wl,'
9855         lt_prog_compiler_pic='-KPIC'
9856         lt_prog_compiler_static='-static'
9857         ;;
9858       # icc used to be incompatible with GCC.
9859       # ICC 10 doesn't accept -KPIC any more.
9860       icc* | ifort*)
9861         lt_prog_compiler_wl='-Wl,'
9862         lt_prog_compiler_pic='-fPIC'
9863         lt_prog_compiler_static='-static'
9864         ;;
9865       # Lahey Fortran 8.1.
9866       lf95*)
9867         lt_prog_compiler_wl='-Wl,'
9868         lt_prog_compiler_pic='--shared'
9869         lt_prog_compiler_static='--static'
9870         ;;
9871       nagfor*)
9872         # NAG Fortran compiler
9873         lt_prog_compiler_wl='-Wl,-Wl,,'
9874         lt_prog_compiler_pic='-PIC'
9875         lt_prog_compiler_static='-Bstatic'
9876         ;;
9877       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9878         # Portland Group compilers (*not* the Pentium gcc compiler,
9879         # which looks to be a dead project)
9880         lt_prog_compiler_wl='-Wl,'
9881         lt_prog_compiler_pic='-fpic'
9882         lt_prog_compiler_static='-Bstatic'
9883         ;;
9884       ccc*)
9885         lt_prog_compiler_wl='-Wl,'
9886         # All Alpha code is PIC.
9887         lt_prog_compiler_static='-non_shared'
9888         ;;
9889       xl* | bgxl* | bgf* | mpixl*)
9890         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9891         lt_prog_compiler_wl='-Wl,'
9892         lt_prog_compiler_pic='-qpic'
9893         lt_prog_compiler_static='-qstaticlink'
9894         ;;
9895       *)
9896         case `$CC -V 2>&1 | sed 5q` in
9897         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9898           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9899           lt_prog_compiler_pic='-KPIC'
9900           lt_prog_compiler_static='-Bstatic'
9901           lt_prog_compiler_wl=''
9902           ;;
9903         *Sun\ F* | *Sun*Fortran*)
9904           lt_prog_compiler_pic='-KPIC'
9905           lt_prog_compiler_static='-Bstatic'
9906           lt_prog_compiler_wl='-Qoption ld '
9907           ;;
9908         *Sun\ C*)
9909           # Sun C 5.9
9910           lt_prog_compiler_pic='-KPIC'
9911           lt_prog_compiler_static='-Bstatic'
9912           lt_prog_compiler_wl='-Wl,'
9913           ;;
9914         *Intel*\ [CF]*Compiler*)
9915           lt_prog_compiler_wl='-Wl,'
9916           lt_prog_compiler_pic='-fPIC'
9917           lt_prog_compiler_static='-static'
9918           ;;
9919         *Portland\ Group*)
9920           lt_prog_compiler_wl='-Wl,'
9921           lt_prog_compiler_pic='-fpic'
9922           lt_prog_compiler_static='-Bstatic'
9923           ;;
9924         esac
9925         ;;
9926       esac
9927       ;;
9928
9929     newsos6)
9930       lt_prog_compiler_pic='-KPIC'
9931       lt_prog_compiler_static='-Bstatic'
9932       ;;
9933
9934     *nto* | *qnx*)
9935       # QNX uses GNU C++, but need to define -shared option too, otherwise
9936       # it will coredump.
9937       lt_prog_compiler_pic='-fPIC -shared'
9938       ;;
9939
9940     osf3* | osf4* | osf5*)
9941       lt_prog_compiler_wl='-Wl,'
9942       # All OSF/1 code is PIC.
9943       lt_prog_compiler_static='-non_shared'
9944       ;;
9945
9946     rdos*)
9947       lt_prog_compiler_static='-non_shared'
9948       ;;
9949
9950     solaris*)
9951       lt_prog_compiler_pic='-KPIC'
9952       lt_prog_compiler_static='-Bstatic'
9953       case $cc_basename in
9954       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9955         lt_prog_compiler_wl='-Qoption ld ';;
9956       *)
9957         lt_prog_compiler_wl='-Wl,';;
9958       esac
9959       ;;
9960
9961     sunos4*)
9962       lt_prog_compiler_wl='-Qoption ld '
9963       lt_prog_compiler_pic='-PIC'
9964       lt_prog_compiler_static='-Bstatic'
9965       ;;
9966
9967     sysv4 | sysv4.2uw2* | sysv4.3*)
9968       lt_prog_compiler_wl='-Wl,'
9969       lt_prog_compiler_pic='-KPIC'
9970       lt_prog_compiler_static='-Bstatic'
9971       ;;
9972
9973     sysv4*MP*)
9974       if test -d /usr/nec ;then
9975         lt_prog_compiler_pic='-Kconform_pic'
9976         lt_prog_compiler_static='-Bstatic'
9977       fi
9978       ;;
9979
9980     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9981       lt_prog_compiler_wl='-Wl,'
9982       lt_prog_compiler_pic='-KPIC'
9983       lt_prog_compiler_static='-Bstatic'
9984       ;;
9985
9986     unicos*)
9987       lt_prog_compiler_wl='-Wl,'
9988       lt_prog_compiler_can_build_shared=no
9989       ;;
9990
9991     uts4*)
9992       lt_prog_compiler_pic='-pic'
9993       lt_prog_compiler_static='-Bstatic'
9994       ;;
9995
9996     *)
9997       lt_prog_compiler_can_build_shared=no
9998       ;;
9999     esac
10000   fi
10001
10002 case $host_os in
10003   # For platforms which do not support PIC, -DPIC is meaningless:
10004   *djgpp*)
10005     lt_prog_compiler_pic=
10006     ;;
10007   *)
10008     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10009     ;;
10010 esac
10011
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10013 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10014 if ${lt_cv_prog_compiler_pic+:} false; then :
10015   $as_echo_n "(cached) " >&6
10016 else
10017   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10018 fi
10019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10020 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10021 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10022
10023 #
10024 # Check to make sure the PIC flag actually works.
10025 #
10026 if test -n "$lt_prog_compiler_pic"; then
10027   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10028 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10029 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10030   $as_echo_n "(cached) " >&6
10031 else
10032   lt_cv_prog_compiler_pic_works=no
10033    ac_outfile=conftest.$ac_objext
10034    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10035    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10036    # Insert the option either (1) after the last *FLAGS variable, or
10037    # (2) before a word containing "conftest.", or (3) at the end.
10038    # Note that $ac_compile itself does not contain backslashes and begins
10039    # with a dollar sign (not a hyphen), so the echo should work correctly.
10040    # The option is referenced via a variable to avoid confusing sed.
10041    lt_compile=`echo "$ac_compile" | $SED \
10042    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10043    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10044    -e 's:$: $lt_compiler_flag:'`
10045    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10046    (eval "$lt_compile" 2>conftest.err)
10047    ac_status=$?
10048    cat conftest.err >&5
10049    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050    if (exit $ac_status) && test -s "$ac_outfile"; then
10051      # The compiler can only warn and ignore the option if not recognized
10052      # So say no if there are warnings other than the usual output.
10053      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10054      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10055      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10056        lt_cv_prog_compiler_pic_works=yes
10057      fi
10058    fi
10059    $RM conftest*
10060
10061 fi
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10063 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10064
10065 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10066     case $lt_prog_compiler_pic in
10067      "" | " "*) ;;
10068      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10069      esac
10070 else
10071     lt_prog_compiler_pic=
10072      lt_prog_compiler_can_build_shared=no
10073 fi
10074
10075 fi
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087 #
10088 # Check to make sure the static flag actually works.
10089 #
10090 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10092 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10093 if ${lt_cv_prog_compiler_static_works+:} false; then :
10094   $as_echo_n "(cached) " >&6
10095 else
10096   lt_cv_prog_compiler_static_works=no
10097    save_LDFLAGS="$LDFLAGS"
10098    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10099    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10100    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10101      # The linker can only warn and ignore the option if not recognized
10102      # So say no if there are warnings
10103      if test -s conftest.err; then
10104        # Append any errors to the config.log.
10105        cat conftest.err 1>&5
10106        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10107        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10108        if diff conftest.exp conftest.er2 >/dev/null; then
10109          lt_cv_prog_compiler_static_works=yes
10110        fi
10111      else
10112        lt_cv_prog_compiler_static_works=yes
10113      fi
10114    fi
10115    $RM -r conftest*
10116    LDFLAGS="$save_LDFLAGS"
10117
10118 fi
10119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10120 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10121
10122 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10123     :
10124 else
10125     lt_prog_compiler_static=
10126 fi
10127
10128
10129
10130
10131
10132
10133
10134   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10136 if ${lt_cv_prog_compiler_c_o+:} false; then :
10137   $as_echo_n "(cached) " >&6
10138 else
10139   lt_cv_prog_compiler_c_o=no
10140    $RM -r conftest 2>/dev/null
10141    mkdir conftest
10142    cd conftest
10143    mkdir out
10144    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10145
10146    lt_compiler_flag="-o out/conftest2.$ac_objext"
10147    # Insert the option either (1) after the last *FLAGS variable, or
10148    # (2) before a word containing "conftest.", or (3) at the end.
10149    # Note that $ac_compile itself does not contain backslashes and begins
10150    # with a dollar sign (not a hyphen), so the echo should work correctly.
10151    lt_compile=`echo "$ac_compile" | $SED \
10152    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10153    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10154    -e 's:$: $lt_compiler_flag:'`
10155    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10156    (eval "$lt_compile" 2>out/conftest.err)
10157    ac_status=$?
10158    cat out/conftest.err >&5
10159    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10160    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10161    then
10162      # The compiler can only warn and ignore the option if not recognized
10163      # So say no if there are warnings
10164      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10165      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10166      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10167        lt_cv_prog_compiler_c_o=yes
10168      fi
10169    fi
10170    chmod u+w . 2>&5
10171    $RM conftest*
10172    # SGI C++ compiler will create directory out/ii_files/ for
10173    # template instantiation
10174    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10175    $RM out/* && rmdir out
10176    cd ..
10177    $RM -r conftest
10178    $RM conftest*
10179
10180 fi
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10183
10184
10185
10186
10187
10188
10189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10190 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10191 if ${lt_cv_prog_compiler_c_o+:} false; then :
10192   $as_echo_n "(cached) " >&6
10193 else
10194   lt_cv_prog_compiler_c_o=no
10195    $RM -r conftest 2>/dev/null
10196    mkdir conftest
10197    cd conftest
10198    mkdir out
10199    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10200
10201    lt_compiler_flag="-o out/conftest2.$ac_objext"
10202    # Insert the option either (1) after the last *FLAGS variable, or
10203    # (2) before a word containing "conftest.", or (3) at the end.
10204    # Note that $ac_compile itself does not contain backslashes and begins
10205    # with a dollar sign (not a hyphen), so the echo should work correctly.
10206    lt_compile=`echo "$ac_compile" | $SED \
10207    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10208    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10209    -e 's:$: $lt_compiler_flag:'`
10210    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10211    (eval "$lt_compile" 2>out/conftest.err)
10212    ac_status=$?
10213    cat out/conftest.err >&5
10214    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10216    then
10217      # The compiler can only warn and ignore the option if not recognized
10218      # So say no if there are warnings
10219      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10220      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10221      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10222        lt_cv_prog_compiler_c_o=yes
10223      fi
10224    fi
10225    chmod u+w . 2>&5
10226    $RM conftest*
10227    # SGI C++ compiler will create directory out/ii_files/ for
10228    # template instantiation
10229    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10230    $RM out/* && rmdir out
10231    cd ..
10232    $RM -r conftest
10233    $RM conftest*
10234
10235 fi
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10237 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10238
10239
10240
10241
10242 hard_links="nottested"
10243 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10244   # do not overwrite the value of need_locks provided by the user
10245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10246 $as_echo_n "checking if we can lock with hard links... " >&6; }
10247   hard_links=yes
10248   $RM conftest*
10249   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10250   touch conftest.a
10251   ln conftest.a conftest.b 2>&5 || hard_links=no
10252   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10253   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10254 $as_echo "$hard_links" >&6; }
10255   if test "$hard_links" = no; then
10256     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10257 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10258     need_locks=warn
10259   fi
10260 else
10261   need_locks=no
10262 fi
10263
10264
10265
10266
10267
10268
10269   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10270 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10271
10272   runpath_var=
10273   allow_undefined_flag=
10274   always_export_symbols=no
10275   archive_cmds=
10276   archive_expsym_cmds=
10277   compiler_needs_object=no
10278   enable_shared_with_static_runtimes=no
10279   export_dynamic_flag_spec=
10280   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10281   hardcode_automatic=no
10282   hardcode_direct=no
10283   hardcode_direct_absolute=no
10284   hardcode_libdir_flag_spec=
10285   hardcode_libdir_separator=
10286   hardcode_minus_L=no
10287   hardcode_shlibpath_var=unsupported
10288   inherit_rpath=no
10289   link_all_deplibs=unknown
10290   module_cmds=
10291   module_expsym_cmds=
10292   old_archive_from_new_cmds=
10293   old_archive_from_expsyms_cmds=
10294   thread_safe_flag_spec=
10295   whole_archive_flag_spec=
10296   # include_expsyms should be a list of space-separated symbols to be *always*
10297   # included in the symbol list
10298   include_expsyms=
10299   # exclude_expsyms can be an extended regexp of symbols to exclude
10300   # it will be wrapped by ` (' and `)$', so one must not match beginning or
10301   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10302   # as well as any symbol that contains `d'.
10303   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10304   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10305   # platforms (ab)use it in PIC code, but their linkers get confused if
10306   # the symbol is explicitly referenced.  Since portable code cannot
10307   # rely on this symbol name, it's probably fine to never include it in
10308   # preloaded symbol tables.
10309   # Exclude shared library initialization/finalization symbols.
10310   extract_expsyms_cmds=
10311
10312   case $host_os in
10313   cygwin* | mingw* | pw32* | cegcc*)
10314     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10315     # When not using gcc, we currently assume that we are using
10316     # Microsoft Visual C++.
10317     if test "$GCC" != yes; then
10318       with_gnu_ld=no
10319     fi
10320     ;;
10321   interix*)
10322     # we just hope/assume this is gcc and not c89 (= MSVC++)
10323     with_gnu_ld=yes
10324     ;;
10325   openbsd*)
10326     with_gnu_ld=no
10327     ;;
10328   linux* | k*bsd*-gnu | gnu*)
10329     link_all_deplibs=no
10330     ;;
10331   esac
10332
10333   ld_shlibs=yes
10334
10335   # On some targets, GNU ld is compatible enough with the native linker
10336   # that we're better off using the native interface for both.
10337   lt_use_gnu_ld_interface=no
10338   if test "$with_gnu_ld" = yes; then
10339     case $host_os in
10340       aix*)
10341         # The AIX port of GNU ld has always aspired to compatibility
10342         # with the native linker.  However, as the warning in the GNU ld
10343         # block says, versions before 2.19.5* couldn't really create working
10344         # shared libraries, regardless of the interface used.
10345         case `$LD -v 2>&1` in
10346           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10347           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10348           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10349           *)
10350             lt_use_gnu_ld_interface=yes
10351             ;;
10352         esac
10353         ;;
10354       *)
10355         lt_use_gnu_ld_interface=yes
10356         ;;
10357     esac
10358   fi
10359
10360   if test "$lt_use_gnu_ld_interface" = yes; then
10361     # If archive_cmds runs LD, not CC, wlarc should be empty
10362     wlarc='${wl}'
10363
10364     # Set some defaults for GNU ld with shared library support. These
10365     # are reset later if shared libraries are not supported. Putting them
10366     # here allows them to be overridden if necessary.
10367     runpath_var=LD_RUN_PATH
10368     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10369     export_dynamic_flag_spec='${wl}--export-dynamic'
10370     # ancient GNU ld didn't support --whole-archive et. al.
10371     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10372       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10373     else
10374       whole_archive_flag_spec=
10375     fi
10376     supports_anon_versioning=no
10377     case `$LD -v 2>&1` in
10378       *GNU\ gold*) supports_anon_versioning=yes ;;
10379       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10380       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10381       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10382       *\ 2.11.*) ;; # other 2.11 versions
10383       *) supports_anon_versioning=yes ;;
10384     esac
10385
10386     # See if GNU ld supports shared libraries.
10387     case $host_os in
10388     aix[3-9]*)
10389       # On AIX/PPC, the GNU linker is very broken
10390       if test "$host_cpu" != ia64; then
10391         ld_shlibs=no
10392         cat <<_LT_EOF 1>&2
10393
10394 *** Warning: the GNU linker, at least up to release 2.19, is reported
10395 *** to be unable to reliably create shared libraries on AIX.
10396 *** Therefore, libtool is disabling shared libraries support.  If you
10397 *** really care for shared libraries, you may want to install binutils
10398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10399 *** You will then need to restart the configuration process.
10400
10401 _LT_EOF
10402       fi
10403       ;;
10404
10405     amigaos*)
10406       case $host_cpu in
10407       powerpc)
10408             # see comment about AmigaOS4 .so support
10409             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10410             archive_expsym_cmds=''
10411         ;;
10412       m68k)
10413             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)'
10414             hardcode_libdir_flag_spec='-L$libdir'
10415             hardcode_minus_L=yes
10416         ;;
10417       esac
10418       ;;
10419
10420     beos*)
10421       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10422         allow_undefined_flag=unsupported
10423         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424         # support --undefined.  This deserves some investigation.  FIXME
10425         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426       else
10427         ld_shlibs=no
10428       fi
10429       ;;
10430
10431     cygwin* | mingw* | pw32* | cegcc*)
10432       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10433       # as there is no search path for DLLs.
10434       hardcode_libdir_flag_spec='-L$libdir'
10435       export_dynamic_flag_spec='${wl}--export-all-symbols'
10436       allow_undefined_flag=unsupported
10437       always_export_symbols=no
10438       enable_shared_with_static_runtimes=yes
10439       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'
10440       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10441
10442       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10443         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10444         # If the export-symbols file already is a .def file (1st line
10445         # is EXPORTS), use it as is; otherwise, prepend...
10446         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10447           cp $export_symbols $output_objdir/$soname.def;
10448         else
10449           echo EXPORTS > $output_objdir/$soname.def;
10450           cat $export_symbols >> $output_objdir/$soname.def;
10451         fi~
10452         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10453       else
10454         ld_shlibs=no
10455       fi
10456       ;;
10457
10458     haiku*)
10459       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10460       link_all_deplibs=yes
10461       ;;
10462
10463     interix[3-9]*)
10464       hardcode_direct=no
10465       hardcode_shlibpath_var=no
10466       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10467       export_dynamic_flag_spec='${wl}-E'
10468       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10469       # Instead, shared libraries are loaded at an image base (0x10000000 by
10470       # default) and relocated if they conflict, which is a slow very memory
10471       # consuming and fragmenting process.  To avoid this, we pick a random,
10472       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10473       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10474       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10475       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'
10476       ;;
10477
10478     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10479       tmp_diet=no
10480       if test "$host_os" = linux-dietlibc; then
10481         case $cc_basename in
10482           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10483         esac
10484       fi
10485       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10486          && test "$tmp_diet" = no
10487       then
10488         tmp_addflag=' $pic_flag'
10489         tmp_sharedflag='-shared'
10490         case $cc_basename,$host_cpu in
10491         pgcc*)                          # Portland Group C compiler
10492           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'
10493           tmp_addflag=' $pic_flag'
10494           ;;
10495         pgf77* | pgf90* | pgf95* | pgfortran*)
10496                                         # Portland Group f77 and f90 compilers
10497           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'
10498           tmp_addflag=' $pic_flag -Mnomain' ;;
10499         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10500           tmp_addflag=' -i_dynamic' ;;
10501         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10502           tmp_addflag=' -i_dynamic -nofor_main' ;;
10503         ifc* | ifort*)                  # Intel Fortran compiler
10504           tmp_addflag=' -nofor_main' ;;
10505         lf95*)                          # Lahey Fortran 8.1
10506           whole_archive_flag_spec=
10507           tmp_sharedflag='--shared' ;;
10508         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10509           tmp_sharedflag='-qmkshrobj'
10510           tmp_addflag= ;;
10511         nvcc*)  # Cuda Compiler Driver 2.2
10512           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'
10513           compiler_needs_object=yes
10514           ;;
10515         esac
10516         case `$CC -V 2>&1 | sed 5q` in
10517         *Sun\ C*)                       # Sun C 5.9
10518           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'
10519           compiler_needs_object=yes
10520           tmp_sharedflag='-G' ;;
10521         *Sun\ F*)                       # Sun Fortran 8.3
10522           tmp_sharedflag='-G' ;;
10523         esac
10524         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10525
10526         if test "x$supports_anon_versioning" = xyes; then
10527           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10528             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10529             echo "local: *; };" >> $output_objdir/$libname.ver~
10530             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10531         fi
10532
10533         case $cc_basename in
10534         xlf* | bgf* | bgxlf* | mpixlf*)
10535           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10536           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10537           hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10538           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10539           if test "x$supports_anon_versioning" = xyes; then
10540             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10541               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10542               echo "local: *; };" >> $output_objdir/$libname.ver~
10543               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10544           fi
10545           ;;
10546         esac
10547       else
10548         ld_shlibs=no
10549       fi
10550       ;;
10551
10552     netbsd* | netbsdelf*-gnu)
10553       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10554         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10555         wlarc=
10556       else
10557         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10558         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10559       fi
10560       ;;
10561
10562     solaris*)
10563       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10564         ld_shlibs=no
10565         cat <<_LT_EOF 1>&2
10566
10567 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10568 *** create shared libraries on Solaris systems.  Therefore, libtool
10569 *** is disabling shared libraries support.  We urge you to upgrade GNU
10570 *** binutils to release 2.9.1 or newer.  Another option is to modify
10571 *** your PATH or compiler configuration so that the native linker is
10572 *** used, and then restart.
10573
10574 _LT_EOF
10575       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10576         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10577         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10578       else
10579         ld_shlibs=no
10580       fi
10581       ;;
10582
10583     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10584       case `$LD -v 2>&1` in
10585         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10586         ld_shlibs=no
10587         cat <<_LT_EOF 1>&2
10588
10589 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10590 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10591 *** is disabling shared libraries support.  We urge you to upgrade GNU
10592 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10593 *** your PATH or compiler configuration so that the native linker is
10594 *** used, and then restart.
10595
10596 _LT_EOF
10597         ;;
10598         *)
10599           # For security reasons, it is highly recommended that you always
10600           # use absolute paths for naming shared libraries, and exclude the
10601           # DT_RUNPATH tag from executables and libraries.  But doing so
10602           # requires that you compile everything twice, which is a pain.
10603           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10604             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10605             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10606             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10607           else
10608             ld_shlibs=no
10609           fi
10610         ;;
10611       esac
10612       ;;
10613
10614     sunos4*)
10615       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10616       wlarc=
10617       hardcode_direct=yes
10618       hardcode_shlibpath_var=no
10619       ;;
10620
10621     *)
10622       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10623         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10624         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10625       else
10626         ld_shlibs=no
10627       fi
10628       ;;
10629     esac
10630
10631     if test "$ld_shlibs" = no; then
10632       runpath_var=
10633       hardcode_libdir_flag_spec=
10634       export_dynamic_flag_spec=
10635       whole_archive_flag_spec=
10636     fi
10637   else
10638     # PORTME fill in a description of your system's linker (not GNU ld)
10639     case $host_os in
10640     aix3*)
10641       allow_undefined_flag=unsupported
10642       always_export_symbols=yes
10643       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'
10644       # Note: this linker hardcodes the directories in LIBPATH if there
10645       # are no directories specified by -L.
10646       hardcode_minus_L=yes
10647       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10648         # Neither direct hardcoding nor static linking is supported with a
10649         # broken collect2.
10650         hardcode_direct=unsupported
10651       fi
10652       ;;
10653
10654     aix[4-9]*)
10655       if test "$host_cpu" = ia64; then
10656         # On IA64, the linker does run time linking by default, so we don't
10657         # have to do anything special.
10658         aix_use_runtimelinking=no
10659         exp_sym_flag='-Bexport'
10660         no_entry_flag=""
10661       else
10662         # If we're using GNU nm, then we don't want the "-C" option.
10663         # -C means demangle to AIX nm, but means don't demangle with GNU nm
10664         # Also, AIX nm treats weak defined symbols like other global
10665         # defined symbols, whereas GNU nm marks them as "W".
10666         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10667           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'
10668         else
10669           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'
10670         fi
10671         aix_use_runtimelinking=no
10672
10673         # Test if we are trying to use run time linking or normal
10674         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10675         # need to do runtime linking.
10676         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10677           for ld_flag in $LDFLAGS; do
10678           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10679             aix_use_runtimelinking=yes
10680             break
10681           fi
10682           done
10683           ;;
10684         esac
10685
10686         exp_sym_flag='-bexport'
10687         no_entry_flag='-bnoentry'
10688       fi
10689
10690       # When large executables or shared objects are built, AIX ld can
10691       # have problems creating the table of contents.  If linking a library
10692       # or program results in "error TOC overflow" add -mminimal-toc to
10693       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10694       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10695
10696       archive_cmds=''
10697       hardcode_direct=yes
10698       hardcode_direct_absolute=yes
10699       hardcode_libdir_separator=':'
10700       link_all_deplibs=yes
10701       file_list_spec='${wl}-f,'
10702
10703       if test "$GCC" = yes; then
10704         case $host_os in aix4.[012]|aix4.[012].*)
10705         # We only want to do this on AIX 4.2 and lower, the check
10706         # below for broken collect2 doesn't work under 4.3+
10707           collect2name=`${CC} -print-prog-name=collect2`
10708           if test -f "$collect2name" &&
10709            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10710           then
10711           # We have reworked collect2
10712           :
10713           else
10714           # We have old collect2
10715           hardcode_direct=unsupported
10716           # It fails to find uninstalled libraries when the uninstalled
10717           # path is not listed in the libpath.  Setting hardcode_minus_L
10718           # to unsupported forces relinking
10719           hardcode_minus_L=yes
10720           hardcode_libdir_flag_spec='-L$libdir'
10721           hardcode_libdir_separator=
10722           fi
10723           ;;
10724         esac
10725         shared_flag='-shared'
10726         if test "$aix_use_runtimelinking" = yes; then
10727           shared_flag="$shared_flag "'${wl}-G'
10728         fi
10729         link_all_deplibs=no
10730       else
10731         # not using gcc
10732         if test "$host_cpu" = ia64; then
10733         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10734         # chokes on -Wl,-G. The following line is correct:
10735           shared_flag='-G'
10736         else
10737           if test "$aix_use_runtimelinking" = yes; then
10738             shared_flag='${wl}-G'
10739           else
10740             shared_flag='${wl}-bM:SRE'
10741           fi
10742         fi
10743       fi
10744
10745       export_dynamic_flag_spec='${wl}-bexpall'
10746       # It seems that -bexpall does not export symbols beginning with
10747       # underscore (_), so it is better to generate a list of symbols to export.
10748       always_export_symbols=yes
10749       if test "$aix_use_runtimelinking" = yes; then
10750         # Warning - without using the other runtime loading flags (-brtl),
10751         # -berok will link without error, but may produce a broken library.
10752         allow_undefined_flag='-berok'
10753         # Determine the default libpath from the value encoded in an
10754         # empty executable.
10755         if test "${lt_cv_aix_libpath+set}" = set; then
10756   aix_libpath=$lt_cv_aix_libpath
10757 else
10758   if ${lt_cv_aix_libpath_+:} false; then :
10759   $as_echo_n "(cached) " >&6
10760 else
10761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10762 /* end confdefs.h.  */
10763
10764 int
10765 main ()
10766 {
10767
10768   ;
10769   return 0;
10770 }
10771 _ACEOF
10772 if ac_fn_c_try_link "$LINENO"; then :
10773
10774   lt_aix_libpath_sed='
10775       /Import File Strings/,/^$/ {
10776           /^0/ {
10777               s/^0  *\([^ ]*\) *$/\1/
10778               p
10779           }
10780       }'
10781   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782   # Check for a 64-bit object if we didn't find anything.
10783   if test -z "$lt_cv_aix_libpath_"; then
10784     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10785   fi
10786 fi
10787 rm -f core conftest.err conftest.$ac_objext \
10788     conftest$ac_exeext conftest.$ac_ext
10789   if test -z "$lt_cv_aix_libpath_"; then
10790     lt_cv_aix_libpath_="/usr/lib:/lib"
10791   fi
10792
10793 fi
10794
10795   aix_libpath=$lt_cv_aix_libpath_
10796 fi
10797
10798         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10799         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"
10800       else
10801         if test "$host_cpu" = ia64; then
10802           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10803           allow_undefined_flag="-z nodefs"
10804           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"
10805         else
10806          # Determine the default libpath from the value encoded in an
10807          # empty executable.
10808          if test "${lt_cv_aix_libpath+set}" = set; then
10809   aix_libpath=$lt_cv_aix_libpath
10810 else
10811   if ${lt_cv_aix_libpath_+:} false; then :
10812   $as_echo_n "(cached) " >&6
10813 else
10814   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10815 /* end confdefs.h.  */
10816
10817 int
10818 main ()
10819 {
10820
10821   ;
10822   return 0;
10823 }
10824 _ACEOF
10825 if ac_fn_c_try_link "$LINENO"; then :
10826
10827   lt_aix_libpath_sed='
10828       /Import File Strings/,/^$/ {
10829           /^0/ {
10830               s/^0  *\([^ ]*\) *$/\1/
10831               p
10832           }
10833       }'
10834   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10835   # Check for a 64-bit object if we didn't find anything.
10836   if test -z "$lt_cv_aix_libpath_"; then
10837     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10838   fi
10839 fi
10840 rm -f core conftest.err conftest.$ac_objext \
10841     conftest$ac_exeext conftest.$ac_ext
10842   if test -z "$lt_cv_aix_libpath_"; then
10843     lt_cv_aix_libpath_="/usr/lib:/lib"
10844   fi
10845
10846 fi
10847
10848   aix_libpath=$lt_cv_aix_libpath_
10849 fi
10850
10851          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10852           # Warning - without using the other run time loading flags,
10853           # -berok will link without error, but may produce a broken library.
10854           no_undefined_flag=' ${wl}-bernotok'
10855           allow_undefined_flag=' ${wl}-berok'
10856           if test "$with_gnu_ld" = yes; then
10857             # We only use this code for GNU lds that support --whole-archive.
10858             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10859           else
10860             # Exported symbols can be pulled into shared objects from archives
10861             whole_archive_flag_spec='$convenience'
10862           fi
10863           archive_cmds_need_lc=yes
10864           # This is similar to how AIX traditionally builds its shared libraries.
10865           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'
10866         fi
10867       fi
10868       ;;
10869
10870     amigaos*)
10871       case $host_cpu in
10872       powerpc)
10873             # see comment about AmigaOS4 .so support
10874             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10875             archive_expsym_cmds=''
10876         ;;
10877       m68k)
10878             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)'
10879             hardcode_libdir_flag_spec='-L$libdir'
10880             hardcode_minus_L=yes
10881         ;;
10882       esac
10883       ;;
10884
10885     bsdi[45]*)
10886       export_dynamic_flag_spec=-rdynamic
10887       ;;
10888
10889     cygwin* | mingw* | pw32* | cegcc*)
10890       # When not using gcc, we currently assume that we are using
10891       # Microsoft Visual C++.
10892       # hardcode_libdir_flag_spec is actually meaningless, as there is
10893       # no search path for DLLs.
10894       case $cc_basename in
10895       cl*)
10896         # Native MSVC
10897         hardcode_libdir_flag_spec=' '
10898         allow_undefined_flag=unsupported
10899         always_export_symbols=yes
10900         file_list_spec='@'
10901         # Tell ltmain to make .lib files, not .a files.
10902         libext=lib
10903         # Tell ltmain to make .dll files, not .so files.
10904         shrext_cmds=".dll"
10905         # FIXME: Setting linknames here is a bad hack.
10906         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10907         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10908             sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10909           else
10910             sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10911           fi~
10912           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10913           linknames='
10914         # The linker will not automatically build a static lib if we build a DLL.
10915         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10916         enable_shared_with_static_runtimes=yes
10917         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10918         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10919         # Don't use ranlib
10920         old_postinstall_cmds='chmod 644 $oldlib'
10921         postlink_cmds='lt_outputfile="@OUTPUT@"~
10922           lt_tool_outputfile="@TOOL_OUTPUT@"~
10923           case $lt_outputfile in
10924             *.exe|*.EXE) ;;
10925             *)
10926               lt_outputfile="$lt_outputfile.exe"
10927               lt_tool_outputfile="$lt_tool_outputfile.exe"
10928               ;;
10929           esac~
10930           if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10931             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10932             $RM "$lt_outputfile.manifest";
10933           fi'
10934         ;;
10935       *)
10936         # Assume MSVC wrapper
10937         hardcode_libdir_flag_spec=' '
10938         allow_undefined_flag=unsupported
10939         # Tell ltmain to make .lib files, not .a files.
10940         libext=lib
10941         # Tell ltmain to make .dll files, not .so files.
10942         shrext_cmds=".dll"
10943         # FIXME: Setting linknames here is a bad hack.
10944         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10945         # The linker will automatically build a .lib file if we build a DLL.
10946         old_archive_from_new_cmds='true'
10947         # FIXME: Should let the user specify the lib program.
10948         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10949         enable_shared_with_static_runtimes=yes
10950         ;;
10951       esac
10952       ;;
10953
10954     darwin* | rhapsody*)
10955
10956
10957   archive_cmds_need_lc=no
10958   hardcode_direct=no
10959   hardcode_automatic=yes
10960   hardcode_shlibpath_var=unsupported
10961   if test "$lt_cv_ld_force_load" = "yes"; then
10962     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\"`'
10963
10964   else
10965     whole_archive_flag_spec=''
10966   fi
10967   link_all_deplibs=yes
10968   allow_undefined_flag="$_lt_dar_allow_undefined"
10969   case $cc_basename in
10970      ifort*) _lt_dar_can_shared=yes ;;
10971      *) _lt_dar_can_shared=$GCC ;;
10972   esac
10973   if test "$_lt_dar_can_shared" = "yes"; then
10974     output_verbose_link_cmd=func_echo_all
10975     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10976     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10977     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}"
10978     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}"
10979
10980   else
10981   ld_shlibs=no
10982   fi
10983
10984       ;;
10985
10986     dgux*)
10987       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10988       hardcode_libdir_flag_spec='-L$libdir'
10989       hardcode_shlibpath_var=no
10990       ;;
10991
10992     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10993     # support.  Future versions do this automatically, but an explicit c++rt0.o
10994     # does not break anything, and helps significantly (at the cost of a little
10995     # extra space).
10996     freebsd2.2*)
10997       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10998       hardcode_libdir_flag_spec='-R$libdir'
10999       hardcode_direct=yes
11000       hardcode_shlibpath_var=no
11001       ;;
11002
11003     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11004     freebsd2.*)
11005       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11006       hardcode_direct=yes
11007       hardcode_minus_L=yes
11008       hardcode_shlibpath_var=no
11009       ;;
11010
11011     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11012     freebsd* | dragonfly*)
11013       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11014       hardcode_libdir_flag_spec='-R$libdir'
11015       hardcode_direct=yes
11016       hardcode_shlibpath_var=no
11017       ;;
11018
11019     hpux9*)
11020       if test "$GCC" = yes; then
11021         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'
11022       else
11023         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'
11024       fi
11025       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11026       hardcode_libdir_separator=:
11027       hardcode_direct=yes
11028
11029       # hardcode_minus_L: Not really in the search PATH,
11030       # but as the default location of the library.
11031       hardcode_minus_L=yes
11032       export_dynamic_flag_spec='${wl}-E'
11033       ;;
11034
11035     hpux10*)
11036       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11037         archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11038       else
11039         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11040       fi
11041       if test "$with_gnu_ld" = no; then
11042         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11043         hardcode_libdir_separator=:
11044         hardcode_direct=yes
11045         hardcode_direct_absolute=yes
11046         export_dynamic_flag_spec='${wl}-E'
11047         # hardcode_minus_L: Not really in the search PATH,
11048         # but as the default location of the library.
11049         hardcode_minus_L=yes
11050       fi
11051       ;;
11052
11053     hpux11*)
11054       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11055         case $host_cpu in
11056         hppa*64*)
11057           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11058           ;;
11059         ia64*)
11060           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11061           ;;
11062         *)
11063           archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11064           ;;
11065         esac
11066       else
11067         case $host_cpu in
11068         hppa*64*)
11069           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11070           ;;
11071         ia64*)
11072           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11073           ;;
11074         *)
11075
11076           # Older versions of the 11.00 compiler do not understand -b yet
11077           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11078           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11079 $as_echo_n "checking if $CC understands -b... " >&6; }
11080 if ${lt_cv_prog_compiler__b+:} false; then :
11081   $as_echo_n "(cached) " >&6
11082 else
11083   lt_cv_prog_compiler__b=no
11084    save_LDFLAGS="$LDFLAGS"
11085    LDFLAGS="$LDFLAGS -b"
11086    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11087    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11088      # The linker can only warn and ignore the option if not recognized
11089      # So say no if there are warnings
11090      if test -s conftest.err; then
11091        # Append any errors to the config.log.
11092        cat conftest.err 1>&5
11093        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11094        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11095        if diff conftest.exp conftest.er2 >/dev/null; then
11096          lt_cv_prog_compiler__b=yes
11097        fi
11098      else
11099        lt_cv_prog_compiler__b=yes
11100      fi
11101    fi
11102    $RM -r conftest*
11103    LDFLAGS="$save_LDFLAGS"
11104
11105 fi
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11107 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11108
11109 if test x"$lt_cv_prog_compiler__b" = xyes; then
11110     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11111 else
11112     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11113 fi
11114
11115           ;;
11116         esac
11117       fi
11118       if test "$with_gnu_ld" = no; then
11119         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11120         hardcode_libdir_separator=:
11121
11122         case $host_cpu in
11123         hppa*64*|ia64*)
11124           hardcode_direct=no
11125           hardcode_shlibpath_var=no
11126           ;;
11127         *)
11128           hardcode_direct=yes
11129           hardcode_direct_absolute=yes
11130           export_dynamic_flag_spec='${wl}-E'
11131
11132           # hardcode_minus_L: Not really in the search PATH,
11133           # but as the default location of the library.
11134           hardcode_minus_L=yes
11135           ;;
11136         esac
11137       fi
11138       ;;
11139
11140     irix5* | irix6* | nonstopux*)
11141       if test "$GCC" = yes; then
11142         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'
11143         # Try to use the -exported_symbol ld option, if it does not
11144         # work, assume that -exports_file does not work either and
11145         # implicitly export all symbols.
11146         # This should be the same for all languages, so no per-tag cache variable.
11147         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11148 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11149 if ${lt_cv_irix_exported_symbol+:} false; then :
11150   $as_echo_n "(cached) " >&6
11151 else
11152   save_LDFLAGS="$LDFLAGS"
11153            LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11154            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155 /* end confdefs.h.  */
11156 int foo (void) { return 0; }
11157 _ACEOF
11158 if ac_fn_c_try_link "$LINENO"; then :
11159   lt_cv_irix_exported_symbol=yes
11160 else
11161   lt_cv_irix_exported_symbol=no
11162 fi
11163 rm -f core conftest.err conftest.$ac_objext \
11164     conftest$ac_exeext conftest.$ac_ext
11165            LDFLAGS="$save_LDFLAGS"
11166 fi
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11168 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11169         if test "$lt_cv_irix_exported_symbol" = yes; then
11170           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'
11171         fi
11172       else
11173         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'
11174         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'
11175       fi
11176       archive_cmds_need_lc='no'
11177       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11178       hardcode_libdir_separator=:
11179       inherit_rpath=yes
11180       link_all_deplibs=yes
11181       ;;
11182
11183     netbsd* | netbsdelf*-gnu)
11184       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11185         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11186       else
11187         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11188       fi
11189       hardcode_libdir_flag_spec='-R$libdir'
11190       hardcode_direct=yes
11191       hardcode_shlibpath_var=no
11192       ;;
11193
11194     newsos6)
11195       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11196       hardcode_direct=yes
11197       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11198       hardcode_libdir_separator=:
11199       hardcode_shlibpath_var=no
11200       ;;
11201
11202     *nto* | *qnx*)
11203       ;;
11204
11205     openbsd*)
11206       if test -f /usr/libexec/ld.so; then
11207         hardcode_direct=yes
11208         hardcode_shlibpath_var=no
11209         hardcode_direct_absolute=yes
11210         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11211           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11212           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11213           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11214           export_dynamic_flag_spec='${wl}-E'
11215         else
11216           case $host_os in
11217            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11218              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11219              hardcode_libdir_flag_spec='-R$libdir'
11220              ;;
11221            *)
11222              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11223              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11224              ;;
11225           esac
11226         fi
11227       else
11228         ld_shlibs=no
11229       fi
11230       ;;
11231
11232     os2*)
11233       hardcode_libdir_flag_spec='-L$libdir'
11234       hardcode_minus_L=yes
11235       allow_undefined_flag=unsupported
11236       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'
11237       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11238       ;;
11239
11240     osf3*)
11241       if test "$GCC" = yes; then
11242         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11243         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'
11244       else
11245         allow_undefined_flag=' -expect_unresolved \*'
11246         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'
11247       fi
11248       archive_cmds_need_lc='no'
11249       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11250       hardcode_libdir_separator=:
11251       ;;
11252
11253     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11254       if test "$GCC" = yes; then
11255         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11256         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'
11257         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11258       else
11259         allow_undefined_flag=' -expect_unresolved \*'
11260         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'
11261         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~
11262         $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'
11263
11264         # Both c and cxx compiler support -rpath directly
11265         hardcode_libdir_flag_spec='-rpath $libdir'
11266       fi
11267       archive_cmds_need_lc='no'
11268       hardcode_libdir_separator=:
11269       ;;
11270
11271     solaris*)
11272       no_undefined_flag=' -z defs'
11273       if test "$GCC" = yes; then
11274         wlarc='${wl}'
11275         archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11276         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11277           $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'
11278       else
11279         case `$CC -V 2>&1` in
11280         *"Compilers 5.0"*)
11281           wlarc=''
11282           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11283           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11284           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11285           ;;
11286         *)
11287           wlarc='${wl}'
11288           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11289           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11290           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11291           ;;
11292         esac
11293       fi
11294       hardcode_libdir_flag_spec='-R$libdir'
11295       hardcode_shlibpath_var=no
11296       case $host_os in
11297       solaris2.[0-5] | solaris2.[0-5].*) ;;
11298       *)
11299         # The compiler driver will combine and reorder linker options,
11300         # but understands `-z linker_flag'.  GCC discards it without `$wl',
11301         # but is careful enough not to reorder.
11302         # Supported since Solaris 2.6 (maybe 2.5.1?)
11303         if test "$GCC" = yes; then
11304           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11305         else
11306           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11307         fi
11308         ;;
11309       esac
11310       link_all_deplibs=yes
11311       ;;
11312
11313     sunos4*)
11314       if test "x$host_vendor" = xsequent; then
11315         # Use $CC to link under sequent, because it throws in some extra .o
11316         # files that make .init and .fini sections work.
11317         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11318       else
11319         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11320       fi
11321       hardcode_libdir_flag_spec='-L$libdir'
11322       hardcode_direct=yes
11323       hardcode_minus_L=yes
11324       hardcode_shlibpath_var=no
11325       ;;
11326
11327     sysv4)
11328       case $host_vendor in
11329         sni)
11330           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11331           hardcode_direct=yes # is this really true???
11332         ;;
11333         siemens)
11334           ## LD is ld it makes a PLAMLIB
11335           ## CC just makes a GrossModule.
11336           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11337           reload_cmds='$CC -r -o $output$reload_objs'
11338           hardcode_direct=no
11339         ;;
11340         motorola)
11341           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11342           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11343         ;;
11344       esac
11345       runpath_var='LD_RUN_PATH'
11346       hardcode_shlibpath_var=no
11347       ;;
11348
11349     sysv4.3*)
11350       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11351       hardcode_shlibpath_var=no
11352       export_dynamic_flag_spec='-Bexport'
11353       ;;
11354
11355     sysv4*MP*)
11356       if test -d /usr/nec; then
11357         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11358         hardcode_shlibpath_var=no
11359         runpath_var=LD_RUN_PATH
11360         hardcode_runpath_var=yes
11361         ld_shlibs=yes
11362       fi
11363       ;;
11364
11365     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11366       no_undefined_flag='${wl}-z,text'
11367       archive_cmds_need_lc=no
11368       hardcode_shlibpath_var=no
11369       runpath_var='LD_RUN_PATH'
11370
11371       if test "$GCC" = yes; then
11372         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11373         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11374       else
11375         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11376         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377       fi
11378       ;;
11379
11380     sysv5* | sco3.2v5* | sco5v6*)
11381       # Note: We can NOT use -z defs as we might desire, because we do not
11382       # link with -lc, and that would cause any symbols used from libc to
11383       # always be unresolved, which means just about no library would
11384       # ever link correctly.  If we're not using GNU ld we use -z text
11385       # though, which does catch some bad symbols but isn't as heavy-handed
11386       # as -z defs.
11387       no_undefined_flag='${wl}-z,text'
11388       allow_undefined_flag='${wl}-z,nodefs'
11389       archive_cmds_need_lc=no
11390       hardcode_shlibpath_var=no
11391       hardcode_libdir_flag_spec='${wl}-R,$libdir'
11392       hardcode_libdir_separator=':'
11393       link_all_deplibs=yes
11394       export_dynamic_flag_spec='${wl}-Bexport'
11395       runpath_var='LD_RUN_PATH'
11396
11397       if test "$GCC" = yes; then
11398         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11399         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11400       else
11401         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11402         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11403       fi
11404       ;;
11405
11406     uts4*)
11407       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11408       hardcode_libdir_flag_spec='-L$libdir'
11409       hardcode_shlibpath_var=no
11410       ;;
11411
11412     *)
11413       ld_shlibs=no
11414       ;;
11415     esac
11416
11417     if test x$host_vendor = xsni; then
11418       case $host in
11419       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11420         export_dynamic_flag_spec='${wl}-Blargedynsym'
11421         ;;
11422       esac
11423     fi
11424   fi
11425
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11427 $as_echo "$ld_shlibs" >&6; }
11428 test "$ld_shlibs" = no && can_build_shared=no
11429
11430 with_gnu_ld=$with_gnu_ld
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446 #
11447 # Do we need to explicitly link libc?
11448 #
11449 case "x$archive_cmds_need_lc" in
11450 x|xyes)
11451   # Assume -lc should be added
11452   archive_cmds_need_lc=yes
11453
11454   if test "$enable_shared" = yes && test "$GCC" = yes; then
11455     case $archive_cmds in
11456     *'~'*)
11457       # FIXME: we may have to deal with multi-command sequences.
11458       ;;
11459     '$CC '*)
11460       # Test whether the compiler implicitly links with -lc since on some
11461       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11462       # to ld, don't add -lc before -lgcc.
11463       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11464 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11465 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11466   $as_echo_n "(cached) " >&6
11467 else
11468   $RM conftest*
11469         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11470
11471         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11472   (eval $ac_compile) 2>&5
11473   ac_status=$?
11474   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11475   test $ac_status = 0; } 2>conftest.err; then
11476           soname=conftest
11477           lib=conftest
11478           libobjs=conftest.$ac_objext
11479           deplibs=
11480           wl=$lt_prog_compiler_wl
11481           pic_flag=$lt_prog_compiler_pic
11482           compiler_flags=-v
11483           linker_flags=-v
11484           verstring=
11485           output_objdir=.
11486           libname=conftest
11487           lt_save_allow_undefined_flag=$allow_undefined_flag
11488           allow_undefined_flag=
11489           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11490   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11491   ac_status=$?
11492   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11493   test $ac_status = 0; }
11494           then
11495             lt_cv_archive_cmds_need_lc=no
11496           else
11497             lt_cv_archive_cmds_need_lc=yes
11498           fi
11499           allow_undefined_flag=$lt_save_allow_undefined_flag
11500         else
11501           cat conftest.err 1>&5
11502         fi
11503         $RM conftest*
11504
11505 fi
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11507 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11508       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11509       ;;
11510     esac
11511   fi
11512   ;;
11513 esac
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11667 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11668
11669 if test "$GCC" = yes; then
11670   case $host_os in
11671     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11672     *) lt_awk_arg="/^libraries:/" ;;
11673   esac
11674   case $host_os in
11675     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11676     *) lt_sed_strip_eq="s,=/,/,g" ;;
11677   esac
11678   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11679   case $lt_search_path_spec in
11680   *\;*)
11681     # if the path contains ";" then we assume it to be the separator
11682     # otherwise default to the standard path separator (i.e. ":") - it is
11683     # assumed that no part of a normal pathname contains ";" but that should
11684     # okay in the real world where ";" in dirpaths is itself problematic.
11685     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11686     ;;
11687   *)
11688     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11689     ;;
11690   esac
11691   # Ok, now we have the path, separated by spaces, we can step through it
11692   # and add multilib dir if necessary.
11693   lt_tmp_lt_search_path_spec=
11694   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11695   for lt_sys_path in $lt_search_path_spec; do
11696     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11697       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11698     else
11699       test -d "$lt_sys_path" && \
11700         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11701     fi
11702   done
11703   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11704 BEGIN {RS=" "; FS="/|\n";} {
11705   lt_foo="";
11706   lt_count=0;
11707   for (lt_i = NF; lt_i > 0; lt_i--) {
11708     if ($lt_i != "" && $lt_i != ".") {
11709       if ($lt_i == "..") {
11710         lt_count++;
11711       } else {
11712         if (lt_count == 0) {
11713           lt_foo="/" $lt_i lt_foo;
11714         } else {
11715           lt_count--;
11716         }
11717       }
11718     }
11719   }
11720   if (lt_foo != "") { lt_freq[lt_foo]++; }
11721   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11722 }'`
11723   # AWK program above erroneously prepends '/' to C:/dos/paths
11724   # for these hosts.
11725   case $host_os in
11726     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11727       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11728   esac
11729   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11730 else
11731   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11732 fi
11733 library_names_spec=
11734 libname_spec='lib$name'
11735 soname_spec=
11736 shrext_cmds=".so"
11737 postinstall_cmds=
11738 postuninstall_cmds=
11739 finish_cmds=
11740 finish_eval=
11741 shlibpath_var=
11742 shlibpath_overrides_runpath=unknown
11743 version_type=none
11744 dynamic_linker="$host_os ld.so"
11745 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11746 need_lib_prefix=unknown
11747 hardcode_into_libs=no
11748
11749 # when you set need_version to no, make sure it does not cause -set_version
11750 # flags to be left without arguments
11751 need_version=unknown
11752
11753 case $host_os in
11754 aix3*)
11755   version_type=linux # correct to gnu/linux during the next big refactor
11756   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11757   shlibpath_var=LIBPATH
11758
11759   # AIX 3 has no versioning support, so we append a major version to the name.
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   ;;
11762
11763 aix[4-9]*)
11764   version_type=linux # correct to gnu/linux during the next big refactor
11765   need_lib_prefix=no
11766   need_version=no
11767   hardcode_into_libs=yes
11768   if test "$host_cpu" = ia64; then
11769     # AIX 5 supports IA64
11770     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11771     shlibpath_var=LD_LIBRARY_PATH
11772   else
11773     # With GCC up to 2.95.x, collect2 would create an import file
11774     # for dependence libraries.  The import file would start with
11775     # the line `#! .'.  This would cause the generated library to
11776     # depend on `.', always an invalid library.  This was fixed in
11777     # development snapshots of GCC prior to 3.0.
11778     case $host_os in
11779       aix4 | aix4.[01] | aix4.[01].*)
11780       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11781            echo ' yes '
11782            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11783         :
11784       else
11785         can_build_shared=no
11786       fi
11787       ;;
11788     esac
11789     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11790     # soname into executable. Probably we can add versioning support to
11791     # collect2, so additional links can be useful in future.
11792     if test "$aix_use_runtimelinking" = yes; then
11793       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11794       # instead of lib<name>.a to let people know that these are not
11795       # typical AIX shared libraries.
11796       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797     else
11798       # We preserve .a as extension for shared libraries through AIX4.2
11799       # and later when we are not doing run time linking.
11800       library_names_spec='${libname}${release}.a $libname.a'
11801       soname_spec='${libname}${release}${shared_ext}$major'
11802     fi
11803     shlibpath_var=LIBPATH
11804   fi
11805   ;;
11806
11807 amigaos*)
11808   case $host_cpu in
11809   powerpc)
11810     # Since July 2007 AmigaOS4 officially supports .so libraries.
11811     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11813     ;;
11814   m68k)
11815     library_names_spec='$libname.ixlibrary $libname.a'
11816     # Create ${libname}_ixlibrary.a entries in /sys/libs.
11817     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'
11818     ;;
11819   esac
11820   ;;
11821
11822 beos*)
11823   library_names_spec='${libname}${shared_ext}'
11824   dynamic_linker="$host_os ld.so"
11825   shlibpath_var=LIBRARY_PATH
11826   ;;
11827
11828 bsdi[45]*)
11829   version_type=linux # correct to gnu/linux during the next big refactor
11830   need_version=no
11831   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832   soname_spec='${libname}${release}${shared_ext}$major'
11833   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11834   shlibpath_var=LD_LIBRARY_PATH
11835   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11836   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11837   # the default ld.so.conf also contains /usr/contrib/lib and
11838   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11839   # libtool to hard-code these into programs
11840   ;;
11841
11842 cygwin* | mingw* | pw32* | cegcc*)
11843   version_type=windows
11844   shrext_cmds=".dll"
11845   need_version=no
11846   need_lib_prefix=no
11847
11848   case $GCC,$cc_basename in
11849   yes,*)
11850     # gcc
11851     library_names_spec='$libname.dll.a'
11852     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11853     postinstall_cmds='base_file=`basename \${file}`~
11854       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11855       dldir=$destdir/`dirname \$dlpath`~
11856       test -d \$dldir || mkdir -p \$dldir~
11857       $install_prog $dir/$dlname \$dldir/$dlname~
11858       chmod a+x \$dldir/$dlname~
11859       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11860         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11861       fi'
11862     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11863       dlpath=$dir/\$dldll~
11864        $RM \$dlpath'
11865     shlibpath_overrides_runpath=yes
11866
11867     case $host_os in
11868     cygwin*)
11869       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11870       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11871
11872       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11873       ;;
11874     mingw* | cegcc*)
11875       # MinGW DLLs use traditional 'lib' prefix
11876       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11877       ;;
11878     pw32*)
11879       # pw32 DLLs use 'pw' prefix rather than 'lib'
11880       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11881       ;;
11882     esac
11883     dynamic_linker='Win32 ld.exe'
11884     ;;
11885
11886   *,cl*)
11887     # Native MSVC
11888     libname_spec='$name'
11889     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11890     library_names_spec='${libname}.dll.lib'
11891
11892     case $build_os in
11893     mingw*)
11894       sys_lib_search_path_spec=
11895       lt_save_ifs=$IFS
11896       IFS=';'
11897       for lt_path in $LIB
11898       do
11899         IFS=$lt_save_ifs
11900         # Let DOS variable expansion print the short 8.3 style file name.
11901         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11902         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11903       done
11904       IFS=$lt_save_ifs
11905       # Convert to MSYS style.
11906       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11907       ;;
11908     cygwin*)
11909       # Convert to unix form, then to dos form, then back to unix form
11910       # but this time dos style (no spaces!) so that the unix form looks
11911       # like /cygdrive/c/PROGRA~1:/cygdr...
11912       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11913       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11914       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11915       ;;
11916     *)
11917       sys_lib_search_path_spec="$LIB"
11918       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11919         # It is most probably a Windows format PATH.
11920         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11921       else
11922         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11923       fi
11924       # FIXME: find the short name or the path components, as spaces are
11925       # common. (e.g. "Program Files" -> "PROGRA~1")
11926       ;;
11927     esac
11928
11929     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11930     postinstall_cmds='base_file=`basename \${file}`~
11931       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11932       dldir=$destdir/`dirname \$dlpath`~
11933       test -d \$dldir || mkdir -p \$dldir~
11934       $install_prog $dir/$dlname \$dldir/$dlname'
11935     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11936       dlpath=$dir/\$dldll~
11937        $RM \$dlpath'
11938     shlibpath_overrides_runpath=yes
11939     dynamic_linker='Win32 link.exe'
11940     ;;
11941
11942   *)
11943     # Assume MSVC wrapper
11944     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11945     dynamic_linker='Win32 ld.exe'
11946     ;;
11947   esac
11948   # FIXME: first we should search . and the directory the executable is in
11949   shlibpath_var=PATH
11950   ;;
11951
11952 darwin* | rhapsody*)
11953   dynamic_linker="$host_os dyld"
11954   version_type=darwin
11955   need_lib_prefix=no
11956   need_version=no
11957   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11958   soname_spec='${libname}${release}${major}$shared_ext'
11959   shlibpath_overrides_runpath=yes
11960   shlibpath_var=DYLD_LIBRARY_PATH
11961   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11962
11963   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11964   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11965   ;;
11966
11967 dgux*)
11968   version_type=linux # correct to gnu/linux during the next big refactor
11969   need_lib_prefix=no
11970   need_version=no
11971   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11972   soname_spec='${libname}${release}${shared_ext}$major'
11973   shlibpath_var=LD_LIBRARY_PATH
11974   ;;
11975
11976 freebsd* | dragonfly*)
11977   # DragonFly does not have aout.  When/if they implement a new
11978   # versioning mechanism, adjust this.
11979   if test -x /usr/bin/objformat; then
11980     objformat=`/usr/bin/objformat`
11981   else
11982     case $host_os in
11983     freebsd[23].*) objformat=aout ;;
11984     *) objformat=elf ;;
11985     esac
11986   fi
11987   version_type=freebsd-$objformat
11988   case $version_type in
11989     freebsd-elf*)
11990       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11991       need_version=no
11992       need_lib_prefix=no
11993       ;;
11994     freebsd-*)
11995       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11996       need_version=yes
11997       ;;
11998   esac
11999   shlibpath_var=LD_LIBRARY_PATH
12000   case $host_os in
12001   freebsd2.*)
12002     shlibpath_overrides_runpath=yes
12003     ;;
12004   freebsd3.[01]* | freebsdelf3.[01]*)
12005     shlibpath_overrides_runpath=yes
12006     hardcode_into_libs=yes
12007     ;;
12008   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12009   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12010     shlibpath_overrides_runpath=no
12011     hardcode_into_libs=yes
12012     ;;
12013   *) # from 4.6 on, and DragonFly
12014     shlibpath_overrides_runpath=yes
12015     hardcode_into_libs=yes
12016     ;;
12017   esac
12018   ;;
12019
12020 haiku*)
12021   version_type=linux # correct to gnu/linux during the next big refactor
12022   need_lib_prefix=no
12023   need_version=no
12024   dynamic_linker="$host_os runtime_loader"
12025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12026   soname_spec='${libname}${release}${shared_ext}$major'
12027   shlibpath_var=LIBRARY_PATH
12028   shlibpath_overrides_runpath=yes
12029   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12030   hardcode_into_libs=yes
12031   ;;
12032
12033 hpux9* | hpux10* | hpux11*)
12034   # Give a soname corresponding to the major version so that dld.sl refuses to
12035   # link against other versions.
12036   version_type=sunos
12037   need_lib_prefix=no
12038   need_version=no
12039   case $host_cpu in
12040   ia64*)
12041     shrext_cmds='.so'
12042     hardcode_into_libs=yes
12043     dynamic_linker="$host_os dld.so"
12044     shlibpath_var=LD_LIBRARY_PATH
12045     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12046     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12047     soname_spec='${libname}${release}${shared_ext}$major'
12048     if test "X$HPUX_IA64_MODE" = X32; then
12049       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12050     else
12051       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12052     fi
12053     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12054     ;;
12055   hppa*64*)
12056     shrext_cmds='.sl'
12057     hardcode_into_libs=yes
12058     dynamic_linker="$host_os dld.sl"
12059     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12060     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12061     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12062     soname_spec='${libname}${release}${shared_ext}$major'
12063     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12064     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12065     ;;
12066   *)
12067     shrext_cmds='.sl'
12068     dynamic_linker="$host_os dld.sl"
12069     shlibpath_var=SHLIB_PATH
12070     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072     soname_spec='${libname}${release}${shared_ext}$major'
12073     ;;
12074   esac
12075   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12076   postinstall_cmds='chmod 555 $lib'
12077   # or fails outright, so override atomically:
12078   install_override_mode=555
12079   ;;
12080
12081 interix[3-9]*)
12082   version_type=linux # correct to gnu/linux during the next big refactor
12083   need_lib_prefix=no
12084   need_version=no
12085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12086   soname_spec='${libname}${release}${shared_ext}$major'
12087   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12088   shlibpath_var=LD_LIBRARY_PATH
12089   shlibpath_overrides_runpath=no
12090   hardcode_into_libs=yes
12091   ;;
12092
12093 irix5* | irix6* | nonstopux*)
12094   case $host_os in
12095     nonstopux*) version_type=nonstopux ;;
12096     *)
12097         if test "$lt_cv_prog_gnu_ld" = yes; then
12098                 version_type=linux # correct to gnu/linux during the next big refactor
12099         else
12100                 version_type=irix
12101         fi ;;
12102   esac
12103   need_lib_prefix=no
12104   need_version=no
12105   soname_spec='${libname}${release}${shared_ext}$major'
12106   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12107   case $host_os in
12108   irix5* | nonstopux*)
12109     libsuff= shlibsuff=
12110     ;;
12111   *)
12112     case $LD in # libtool.m4 will add one of these switches to LD
12113     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12114       libsuff= shlibsuff= libmagic=32-bit;;
12115     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12116       libsuff=32 shlibsuff=N32 libmagic=N32;;
12117     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12118       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12119     *) libsuff= shlibsuff= libmagic=never-match;;
12120     esac
12121     ;;
12122   esac
12123   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12124   shlibpath_overrides_runpath=no
12125   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12126   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12127   hardcode_into_libs=yes
12128   ;;
12129
12130 # No shared lib support for Linux oldld, aout, or coff.
12131 linux*oldld* | linux*aout* | linux*coff*)
12132   dynamic_linker=no
12133   ;;
12134
12135 # This must be glibc/ELF.
12136 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12137   version_type=linux # correct to gnu/linux during the next big refactor
12138   need_lib_prefix=no
12139   need_version=no
12140   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12141   soname_spec='${libname}${release}${shared_ext}$major'
12142   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12143   shlibpath_var=LD_LIBRARY_PATH
12144   shlibpath_overrides_runpath=no
12145
12146   # Some binutils ld are patched to set DT_RUNPATH
12147   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12148   $as_echo_n "(cached) " >&6
12149 else
12150   lt_cv_shlibpath_overrides_runpath=no
12151     save_LDFLAGS=$LDFLAGS
12152     save_libdir=$libdir
12153     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12154          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12155     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12156 /* end confdefs.h.  */
12157
12158 int
12159 main ()
12160 {
12161
12162   ;
12163   return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_link "$LINENO"; then :
12167   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12168   lt_cv_shlibpath_overrides_runpath=yes
12169 fi
12170 fi
12171 rm -f core conftest.err conftest.$ac_objext \
12172     conftest$ac_exeext conftest.$ac_ext
12173     LDFLAGS=$save_LDFLAGS
12174     libdir=$save_libdir
12175
12176 fi
12177
12178   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12179
12180   # This implies no fast_install, which is unacceptable.
12181   # Some rework will be needed to allow for fast_install
12182   # before this can be enabled.
12183   hardcode_into_libs=yes
12184
12185   # Append ld.so.conf contents to the search path
12186   if test -f /etc/ld.so.conf; then
12187     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' ' '`
12188     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12189   fi
12190
12191   # We used to test for /lib/ld.so.1 and disable shared libraries on
12192   # powerpc, because MkLinux only supported shared libraries with the
12193   # GNU dynamic linker.  Since this was broken with cross compilers,
12194   # most powerpc-linux boxes support dynamic linking these days and
12195   # people can always --disable-shared, the test was removed, and we
12196   # assume the GNU/Linux dynamic linker is in use.
12197   dynamic_linker='GNU/Linux ld.so'
12198   ;;
12199
12200 netbsdelf*-gnu)
12201   version_type=linux
12202   need_lib_prefix=no
12203   need_version=no
12204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12205   soname_spec='${libname}${release}${shared_ext}$major'
12206   shlibpath_var=LD_LIBRARY_PATH
12207   shlibpath_overrides_runpath=no
12208   hardcode_into_libs=yes
12209   dynamic_linker='NetBSD ld.elf_so'
12210   ;;
12211
12212 netbsd*)
12213   version_type=sunos
12214   need_lib_prefix=no
12215   need_version=no
12216   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12217     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12218     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12219     dynamic_linker='NetBSD (a.out) ld.so'
12220   else
12221     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12222     soname_spec='${libname}${release}${shared_ext}$major'
12223     dynamic_linker='NetBSD ld.elf_so'
12224   fi
12225   shlibpath_var=LD_LIBRARY_PATH
12226   shlibpath_overrides_runpath=yes
12227   hardcode_into_libs=yes
12228   ;;
12229
12230 newsos6)
12231   version_type=linux # correct to gnu/linux during the next big refactor
12232   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12233   shlibpath_var=LD_LIBRARY_PATH
12234   shlibpath_overrides_runpath=yes
12235   ;;
12236
12237 *nto* | *qnx*)
12238   version_type=qnx
12239   need_lib_prefix=no
12240   need_version=no
12241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242   soname_spec='${libname}${release}${shared_ext}$major'
12243   shlibpath_var=LD_LIBRARY_PATH
12244   shlibpath_overrides_runpath=no
12245   hardcode_into_libs=yes
12246   dynamic_linker='ldqnx.so'
12247   ;;
12248
12249 openbsd*)
12250   version_type=sunos
12251   sys_lib_dlsearch_path_spec="/usr/lib"
12252   need_lib_prefix=no
12253   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12254   case $host_os in
12255     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
12256     *)                          need_version=no  ;;
12257   esac
12258   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12259   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12260   shlibpath_var=LD_LIBRARY_PATH
12261   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12262     case $host_os in
12263       openbsd2.[89] | openbsd2.[89].*)
12264         shlibpath_overrides_runpath=no
12265         ;;
12266       *)
12267         shlibpath_overrides_runpath=yes
12268         ;;
12269       esac
12270   else
12271     shlibpath_overrides_runpath=yes
12272   fi
12273   ;;
12274
12275 os2*)
12276   libname_spec='$name'
12277   shrext_cmds=".dll"
12278   need_lib_prefix=no
12279   library_names_spec='$libname${shared_ext} $libname.a'
12280   dynamic_linker='OS/2 ld.exe'
12281   shlibpath_var=LIBPATH
12282   ;;
12283
12284 osf3* | osf4* | osf5*)
12285   version_type=osf
12286   need_lib_prefix=no
12287   need_version=no
12288   soname_spec='${libname}${release}${shared_ext}$major'
12289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12290   shlibpath_var=LD_LIBRARY_PATH
12291   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12292   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12293   ;;
12294
12295 rdos*)
12296   dynamic_linker=no
12297   ;;
12298
12299 solaris*)
12300   version_type=linux # correct to gnu/linux during the next big refactor
12301   need_lib_prefix=no
12302   need_version=no
12303   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304   soname_spec='${libname}${release}${shared_ext}$major'
12305   shlibpath_var=LD_LIBRARY_PATH
12306   shlibpath_overrides_runpath=yes
12307   hardcode_into_libs=yes
12308   # ldd complains unless libraries are executable
12309   postinstall_cmds='chmod +x $lib'
12310   ;;
12311
12312 sunos4*)
12313   version_type=sunos
12314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12315   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12316   shlibpath_var=LD_LIBRARY_PATH
12317   shlibpath_overrides_runpath=yes
12318   if test "$with_gnu_ld" = yes; then
12319     need_lib_prefix=no
12320   fi
12321   need_version=yes
12322   ;;
12323
12324 sysv4 | sysv4.3*)
12325   version_type=linux # correct to gnu/linux during the next big refactor
12326   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12327   soname_spec='${libname}${release}${shared_ext}$major'
12328   shlibpath_var=LD_LIBRARY_PATH
12329   case $host_vendor in
12330     sni)
12331       shlibpath_overrides_runpath=no
12332       need_lib_prefix=no
12333       runpath_var=LD_RUN_PATH
12334       ;;
12335     siemens)
12336       need_lib_prefix=no
12337       ;;
12338     motorola)
12339       need_lib_prefix=no
12340       need_version=no
12341       shlibpath_overrides_runpath=no
12342       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12343       ;;
12344   esac
12345   ;;
12346
12347 sysv4*MP*)
12348   if test -d /usr/nec ;then
12349     version_type=linux # correct to gnu/linux during the next big refactor
12350     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12351     soname_spec='$libname${shared_ext}.$major'
12352     shlibpath_var=LD_LIBRARY_PATH
12353   fi
12354   ;;
12355
12356 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12357   version_type=freebsd-elf
12358   need_lib_prefix=no
12359   need_version=no
12360   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12361   soname_spec='${libname}${release}${shared_ext}$major'
12362   shlibpath_var=LD_LIBRARY_PATH
12363   shlibpath_overrides_runpath=yes
12364   hardcode_into_libs=yes
12365   if test "$with_gnu_ld" = yes; then
12366     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12367   else
12368     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12369     case $host_os in
12370       sco3.2v5*)
12371         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12372         ;;
12373     esac
12374   fi
12375   sys_lib_dlsearch_path_spec='/usr/lib'
12376   ;;
12377
12378 tpf*)
12379   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12380   version_type=linux # correct to gnu/linux during the next big refactor
12381   need_lib_prefix=no
12382   need_version=no
12383   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12384   shlibpath_var=LD_LIBRARY_PATH
12385   shlibpath_overrides_runpath=no
12386   hardcode_into_libs=yes
12387   ;;
12388
12389 uts4*)
12390   version_type=linux # correct to gnu/linux during the next big refactor
12391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12392   soname_spec='${libname}${release}${shared_ext}$major'
12393   shlibpath_var=LD_LIBRARY_PATH
12394   ;;
12395
12396 *)
12397   dynamic_linker=no
12398   ;;
12399 esac
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12401 $as_echo "$dynamic_linker" >&6; }
12402 test "$dynamic_linker" = no && can_build_shared=no
12403
12404 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12405 if test "$GCC" = yes; then
12406   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12407 fi
12408
12409 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12410   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12411 fi
12412 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12413   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12414 fi
12415
12416
12417
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460
12461
12462
12463
12464
12465
12466
12467
12468
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493
12494
12495
12496
12497
12498
12499
12500
12501
12502
12503
12504
12505
12506
12507   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12508 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12509 hardcode_action=
12510 if test -n "$hardcode_libdir_flag_spec" ||
12511    test -n "$runpath_var" ||
12512    test "X$hardcode_automatic" = "Xyes" ; then
12513
12514   # We can hardcode non-existent directories.
12515   if test "$hardcode_direct" != no &&
12516      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12517      # have to relink, otherwise we might link with an installed library
12518      # when we should be linking with a yet-to-be-installed one
12519      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12520      test "$hardcode_minus_L" != no; then
12521     # Linking always hardcodes the temporary library directory.
12522     hardcode_action=relink
12523   else
12524     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12525     hardcode_action=immediate
12526   fi
12527 else
12528   # We cannot hardcode anything, or else we can only hardcode existing
12529   # directories.
12530   hardcode_action=unsupported
12531 fi
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12533 $as_echo "$hardcode_action" >&6; }
12534
12535 if test "$hardcode_action" = relink ||
12536    test "$inherit_rpath" = yes; then
12537   # Fast installation is not supported
12538   enable_fast_install=no
12539 elif test "$shlibpath_overrides_runpath" = yes ||
12540      test "$enable_shared" = no; then
12541   # Fast installation is not necessary
12542   enable_fast_install=needless
12543 fi
12544
12545
12546
12547
12548
12549
12550   if test "x$enable_dlopen" != xyes; then
12551   enable_dlopen=unknown
12552   enable_dlopen_self=unknown
12553   enable_dlopen_self_static=unknown
12554 else
12555   lt_cv_dlopen=no
12556   lt_cv_dlopen_libs=
12557
12558   case $host_os in
12559   beos*)
12560     lt_cv_dlopen="load_add_on"
12561     lt_cv_dlopen_libs=
12562     lt_cv_dlopen_self=yes
12563     ;;
12564
12565   mingw* | pw32* | cegcc*)
12566     lt_cv_dlopen="LoadLibrary"
12567     lt_cv_dlopen_libs=
12568     ;;
12569
12570   cygwin*)
12571     lt_cv_dlopen="dlopen"
12572     lt_cv_dlopen_libs=
12573     ;;
12574
12575   darwin*)
12576   # if libdl is installed we need to link against it
12577     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12578 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12579 if ${ac_cv_lib_dl_dlopen+:} false; then :
12580   $as_echo_n "(cached) " >&6
12581 else
12582   ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-ldl  $LIBS"
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h.  */
12586
12587 /* Override any GCC internal prototype to avoid an error.
12588    Use char because int might match the return type of a GCC
12589    builtin and then its argument prototype would still apply.  */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char dlopen ();
12594 int
12595 main ()
12596 {
12597 return dlopen ();
12598   ;
12599   return 0;
12600 }
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603   ac_cv_lib_dl_dlopen=yes
12604 else
12605   ac_cv_lib_dl_dlopen=no
12606 fi
12607 rm -f core conftest.err conftest.$ac_objext \
12608     conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12610 fi
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12612 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12613 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12614   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12615 else
12616
12617     lt_cv_dlopen="dyld"
12618     lt_cv_dlopen_libs=
12619     lt_cv_dlopen_self=yes
12620
12621 fi
12622
12623     ;;
12624
12625   *)
12626     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12627 if test "x$ac_cv_func_shl_load" = xyes; then :
12628   lt_cv_dlopen="shl_load"
12629 else
12630   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12631 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12632 if ${ac_cv_lib_dld_shl_load+:} false; then :
12633   $as_echo_n "(cached) " >&6
12634 else
12635   ac_check_lib_save_LIBS=$LIBS
12636 LIBS="-ldld  $LIBS"
12637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12638 /* end confdefs.h.  */
12639
12640 /* Override any GCC internal prototype to avoid an error.
12641    Use char because int might match the return type of a GCC
12642    builtin and then its argument prototype would still apply.  */
12643 #ifdef __cplusplus
12644 extern "C"
12645 #endif
12646 char shl_load ();
12647 int
12648 main ()
12649 {
12650 return shl_load ();
12651   ;
12652   return 0;
12653 }
12654 _ACEOF
12655 if ac_fn_c_try_link "$LINENO"; then :
12656   ac_cv_lib_dld_shl_load=yes
12657 else
12658   ac_cv_lib_dld_shl_load=no
12659 fi
12660 rm -f core conftest.err conftest.$ac_objext \
12661     conftest$ac_exeext conftest.$ac_ext
12662 LIBS=$ac_check_lib_save_LIBS
12663 fi
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12665 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12666 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12667   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12668 else
12669   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12670 if test "x$ac_cv_func_dlopen" = xyes; then :
12671   lt_cv_dlopen="dlopen"
12672 else
12673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12674 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12675 if ${ac_cv_lib_dl_dlopen+:} false; then :
12676   $as_echo_n "(cached) " >&6
12677 else
12678   ac_check_lib_save_LIBS=$LIBS
12679 LIBS="-ldl  $LIBS"
12680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h.  */
12682
12683 /* Override any GCC internal prototype to avoid an error.
12684    Use char because int might match the return type of a GCC
12685    builtin and then its argument prototype would still apply.  */
12686 #ifdef __cplusplus
12687 extern "C"
12688 #endif
12689 char dlopen ();
12690 int
12691 main ()
12692 {
12693 return dlopen ();
12694   ;
12695   return 0;
12696 }
12697 _ACEOF
12698 if ac_fn_c_try_link "$LINENO"; then :
12699   ac_cv_lib_dl_dlopen=yes
12700 else
12701   ac_cv_lib_dl_dlopen=no
12702 fi
12703 rm -f core conftest.err conftest.$ac_objext \
12704     conftest$ac_exeext conftest.$ac_ext
12705 LIBS=$ac_check_lib_save_LIBS
12706 fi
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12708 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12709 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12710   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12711 else
12712   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12713 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12714 if ${ac_cv_lib_svld_dlopen+:} false; then :
12715   $as_echo_n "(cached) " >&6
12716 else
12717   ac_check_lib_save_LIBS=$LIBS
12718 LIBS="-lsvld  $LIBS"
12719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12720 /* end confdefs.h.  */
12721
12722 /* Override any GCC internal prototype to avoid an error.
12723    Use char because int might match the return type of a GCC
12724    builtin and then its argument prototype would still apply.  */
12725 #ifdef __cplusplus
12726 extern "C"
12727 #endif
12728 char dlopen ();
12729 int
12730 main ()
12731 {
12732 return dlopen ();
12733   ;
12734   return 0;
12735 }
12736 _ACEOF
12737 if ac_fn_c_try_link "$LINENO"; then :
12738   ac_cv_lib_svld_dlopen=yes
12739 else
12740   ac_cv_lib_svld_dlopen=no
12741 fi
12742 rm -f core conftest.err conftest.$ac_objext \
12743     conftest$ac_exeext conftest.$ac_ext
12744 LIBS=$ac_check_lib_save_LIBS
12745 fi
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12747 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12748 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12749   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12750 else
12751   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12752 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12753 if ${ac_cv_lib_dld_dld_link+:} false; then :
12754   $as_echo_n "(cached) " >&6
12755 else
12756   ac_check_lib_save_LIBS=$LIBS
12757 LIBS="-ldld  $LIBS"
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h.  */
12760
12761 /* Override any GCC internal prototype to avoid an error.
12762    Use char because int might match the return type of a GCC
12763    builtin and then its argument prototype would still apply.  */
12764 #ifdef __cplusplus
12765 extern "C"
12766 #endif
12767 char dld_link ();
12768 int
12769 main ()
12770 {
12771 return dld_link ();
12772   ;
12773   return 0;
12774 }
12775 _ACEOF
12776 if ac_fn_c_try_link "$LINENO"; then :
12777   ac_cv_lib_dld_dld_link=yes
12778 else
12779   ac_cv_lib_dld_dld_link=no
12780 fi
12781 rm -f core conftest.err conftest.$ac_objext \
12782     conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12786 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12787 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12788   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12789 fi
12790
12791
12792 fi
12793
12794
12795 fi
12796
12797
12798 fi
12799
12800
12801 fi
12802
12803
12804 fi
12805
12806     ;;
12807   esac
12808
12809   if test "x$lt_cv_dlopen" != xno; then
12810     enable_dlopen=yes
12811   else
12812     enable_dlopen=no
12813   fi
12814
12815   case $lt_cv_dlopen in
12816   dlopen)
12817     save_CPPFLAGS="$CPPFLAGS"
12818     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12819
12820     save_LDFLAGS="$LDFLAGS"
12821     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12822
12823     save_LIBS="$LIBS"
12824     LIBS="$lt_cv_dlopen_libs $LIBS"
12825
12826     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12827 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12828 if ${lt_cv_dlopen_self+:} false; then :
12829   $as_echo_n "(cached) " >&6
12830 else
12831           if test "$cross_compiling" = yes; then :
12832   lt_cv_dlopen_self=cross
12833 else
12834   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12835   lt_status=$lt_dlunknown
12836   cat > conftest.$ac_ext <<_LT_EOF
12837 #line $LINENO "configure"
12838 #include "confdefs.h"
12839
12840 #if HAVE_DLFCN_H
12841 #include <dlfcn.h>
12842 #endif
12843
12844 #include <stdio.h>
12845
12846 #ifdef RTLD_GLOBAL
12847 #  define LT_DLGLOBAL           RTLD_GLOBAL
12848 #else
12849 #  ifdef DL_GLOBAL
12850 #    define LT_DLGLOBAL         DL_GLOBAL
12851 #  else
12852 #    define LT_DLGLOBAL         0
12853 #  endif
12854 #endif
12855
12856 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12857    find out it does not work in some platform. */
12858 #ifndef LT_DLLAZY_OR_NOW
12859 #  ifdef RTLD_LAZY
12860 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12861 #  else
12862 #    ifdef DL_LAZY
12863 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12864 #    else
12865 #      ifdef RTLD_NOW
12866 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12867 #      else
12868 #        ifdef DL_NOW
12869 #          define LT_DLLAZY_OR_NOW      DL_NOW
12870 #        else
12871 #          define LT_DLLAZY_OR_NOW      0
12872 #        endif
12873 #      endif
12874 #    endif
12875 #  endif
12876 #endif
12877
12878 /* When -fvisbility=hidden is used, assume the code has been annotated
12879    correspondingly for the symbols needed.  */
12880 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12881 int fnord () __attribute__((visibility("default")));
12882 #endif
12883
12884 int fnord () { return 42; }
12885 int main ()
12886 {
12887   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12888   int status = $lt_dlunknown;
12889
12890   if (self)
12891     {
12892       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12893       else
12894         {
12895           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
12896           else puts (dlerror ());
12897         }
12898       /* dlclose (self); */
12899     }
12900   else
12901     puts (dlerror ());
12902
12903   return status;
12904 }
12905 _LT_EOF
12906   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12907   (eval $ac_link) 2>&5
12908   ac_status=$?
12909   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12911     (./conftest; exit; ) >&5 2>/dev/null
12912     lt_status=$?
12913     case x$lt_status in
12914       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12915       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12916       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12917     esac
12918   else :
12919     # compilation failed
12920     lt_cv_dlopen_self=no
12921   fi
12922 fi
12923 rm -fr conftest*
12924
12925
12926 fi
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12928 $as_echo "$lt_cv_dlopen_self" >&6; }
12929
12930     if test "x$lt_cv_dlopen_self" = xyes; then
12931       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12932       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12933 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12934 if ${lt_cv_dlopen_self_static+:} false; then :
12935   $as_echo_n "(cached) " >&6
12936 else
12937           if test "$cross_compiling" = yes; then :
12938   lt_cv_dlopen_self_static=cross
12939 else
12940   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12941   lt_status=$lt_dlunknown
12942   cat > conftest.$ac_ext <<_LT_EOF
12943 #line $LINENO "configure"
12944 #include "confdefs.h"
12945
12946 #if HAVE_DLFCN_H
12947 #include <dlfcn.h>
12948 #endif
12949
12950 #include <stdio.h>
12951
12952 #ifdef RTLD_GLOBAL
12953 #  define LT_DLGLOBAL           RTLD_GLOBAL
12954 #else
12955 #  ifdef DL_GLOBAL
12956 #    define LT_DLGLOBAL         DL_GLOBAL
12957 #  else
12958 #    define LT_DLGLOBAL         0
12959 #  endif
12960 #endif
12961
12962 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12963    find out it does not work in some platform. */
12964 #ifndef LT_DLLAZY_OR_NOW
12965 #  ifdef RTLD_LAZY
12966 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12967 #  else
12968 #    ifdef DL_LAZY
12969 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12970 #    else
12971 #      ifdef RTLD_NOW
12972 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12973 #      else
12974 #        ifdef DL_NOW
12975 #          define LT_DLLAZY_OR_NOW      DL_NOW
12976 #        else
12977 #          define LT_DLLAZY_OR_NOW      0
12978 #        endif
12979 #      endif
12980 #    endif
12981 #  endif
12982 #endif
12983
12984 /* When -fvisbility=hidden is used, assume the code has been annotated
12985    correspondingly for the symbols needed.  */
12986 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12987 int fnord () __attribute__((visibility("default")));
12988 #endif
12989
12990 int fnord () { return 42; }
12991 int main ()
12992 {
12993   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12994   int status = $lt_dlunknown;
12995
12996   if (self)
12997     {
12998       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12999       else
13000         {
13001           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13002           else puts (dlerror ());
13003         }
13004       /* dlclose (self); */
13005     }
13006   else
13007     puts (dlerror ());
13008
13009   return status;
13010 }
13011 _LT_EOF
13012   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13013   (eval $ac_link) 2>&5
13014   ac_status=$?
13015   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13016   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
13017     (./conftest; exit; ) >&5 2>/dev/null
13018     lt_status=$?
13019     case x$lt_status in
13020       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13021       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13022       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13023     esac
13024   else :
13025     # compilation failed
13026     lt_cv_dlopen_self_static=no
13027   fi
13028 fi
13029 rm -fr conftest*
13030
13031
13032 fi
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13034 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13035     fi
13036
13037     CPPFLAGS="$save_CPPFLAGS"
13038     LDFLAGS="$save_LDFLAGS"
13039     LIBS="$save_LIBS"
13040     ;;
13041   esac
13042
13043   case $lt_cv_dlopen_self in
13044   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13045   *) enable_dlopen_self=unknown ;;
13046   esac
13047
13048   case $lt_cv_dlopen_self_static in
13049   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13050   *) enable_dlopen_self_static=unknown ;;
13051   esac
13052 fi
13053
13054
13055
13056
13057
13058
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070 striplib=
13071 old_striplib=
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13073 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13074 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13075   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13076   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13078 $as_echo "yes" >&6; }
13079 else
13080 # FIXME - insert some real tests, host_os isn't really good enough
13081   case $host_os in
13082   darwin*)
13083     if test -n "$STRIP" ; then
13084       striplib="$STRIP -x"
13085       old_striplib="$STRIP -S"
13086       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087 $as_echo "yes" >&6; }
13088     else
13089       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13090 $as_echo "no" >&6; }
13091     fi
13092     ;;
13093   *)
13094     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13096     ;;
13097   esac
13098 fi
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111   # Report which library types will actually be built
13112   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13114   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13115 $as_echo "$can_build_shared" >&6; }
13116
13117   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13118 $as_echo_n "checking whether to build shared libraries... " >&6; }
13119   test "$can_build_shared" = "no" && enable_shared=no
13120
13121   # On AIX, shared libraries and static libraries use the same namespace, and
13122   # are all built from PIC.
13123   case $host_os in
13124   aix3*)
13125     test "$enable_shared" = yes && enable_static=no
13126     if test -n "$RANLIB"; then
13127       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13128       postinstall_cmds='$RANLIB $lib'
13129     fi
13130     ;;
13131
13132   aix[4-9]*)
13133     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13134       test "$enable_shared" = yes && enable_static=no
13135     fi
13136     ;;
13137   esac
13138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13139 $as_echo "$enable_shared" >&6; }
13140
13141   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13142 $as_echo_n "checking whether to build static libraries... " >&6; }
13143   # Make sure either enable_shared or enable_static is yes.
13144   test "$enable_shared" = yes || enable_static=yes
13145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13146 $as_echo "$enable_static" >&6; }
13147
13148
13149
13150
13151 fi
13152 ac_ext=c
13153 ac_cpp='$CPP $CPPFLAGS'
13154 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13155 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13156 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13157
13158 CC="$lt_save_CC"
13159
13160       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13161     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13162     (test "X$CXX" != "Xg++"))) ; then
13163   ac_ext=cpp
13164 ac_cpp='$CXXCPP $CPPFLAGS'
13165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13169 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13170 if test -z "$CXXCPP"; then
13171   if ${ac_cv_prog_CXXCPP+:} false; then :
13172   $as_echo_n "(cached) " >&6
13173 else
13174       # Double quotes because CXXCPP needs to be expanded
13175     for CXXCPP in "$CXX -E" "/lib/cpp"
13176     do
13177       ac_preproc_ok=false
13178 for ac_cxx_preproc_warn_flag in '' yes
13179 do
13180   # Use a header file that comes with gcc, so configuring glibc
13181   # with a fresh cross-compiler works.
13182   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13183   # <limits.h> exists even on freestanding compilers.
13184   # On the NeXT, cc -E runs the code through the compiler's parser,
13185   # not just through cpp. "Syntax error" is here to catch this case.
13186   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13187 /* end confdefs.h.  */
13188 #ifdef __STDC__
13189 # include <limits.h>
13190 #else
13191 # include <assert.h>
13192 #endif
13193                      Syntax error
13194 _ACEOF
13195 if ac_fn_cxx_try_cpp "$LINENO"; then :
13196
13197 else
13198   # Broken: fails on valid input.
13199 continue
13200 fi
13201 rm -f conftest.err conftest.i conftest.$ac_ext
13202
13203   # OK, works on sane cases.  Now check whether nonexistent headers
13204   # can be detected and how.
13205   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13206 /* end confdefs.h.  */
13207 #include <ac_nonexistent.h>
13208 _ACEOF
13209 if ac_fn_cxx_try_cpp "$LINENO"; then :
13210   # Broken: success on invalid input.
13211 continue
13212 else
13213   # Passes both tests.
13214 ac_preproc_ok=:
13215 break
13216 fi
13217 rm -f conftest.err conftest.i conftest.$ac_ext
13218
13219 done
13220 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13221 rm -f conftest.i conftest.err conftest.$ac_ext
13222 if $ac_preproc_ok; then :
13223   break
13224 fi
13225
13226     done
13227     ac_cv_prog_CXXCPP=$CXXCPP
13228
13229 fi
13230   CXXCPP=$ac_cv_prog_CXXCPP
13231 else
13232   ac_cv_prog_CXXCPP=$CXXCPP
13233 fi
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13235 $as_echo "$CXXCPP" >&6; }
13236 ac_preproc_ok=false
13237 for ac_cxx_preproc_warn_flag in '' yes
13238 do
13239   # Use a header file that comes with gcc, so configuring glibc
13240   # with a fresh cross-compiler works.
13241   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13242   # <limits.h> exists even on freestanding compilers.
13243   # On the NeXT, cc -E runs the code through the compiler's parser,
13244   # not just through cpp. "Syntax error" is here to catch this case.
13245   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246 /* end confdefs.h.  */
13247 #ifdef __STDC__
13248 # include <limits.h>
13249 #else
13250 # include <assert.h>
13251 #endif
13252                      Syntax error
13253 _ACEOF
13254 if ac_fn_cxx_try_cpp "$LINENO"; then :
13255
13256 else
13257   # Broken: fails on valid input.
13258 continue
13259 fi
13260 rm -f conftest.err conftest.i conftest.$ac_ext
13261
13262   # OK, works on sane cases.  Now check whether nonexistent headers
13263   # can be detected and how.
13264   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h.  */
13266 #include <ac_nonexistent.h>
13267 _ACEOF
13268 if ac_fn_cxx_try_cpp "$LINENO"; then :
13269   # Broken: success on invalid input.
13270 continue
13271 else
13272   # Passes both tests.
13273 ac_preproc_ok=:
13274 break
13275 fi
13276 rm -f conftest.err conftest.i conftest.$ac_ext
13277
13278 done
13279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13280 rm -f conftest.i conftest.err conftest.$ac_ext
13281 if $ac_preproc_ok; then :
13282
13283 else
13284   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13285 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13286 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13287 See \`config.log' for more details" "$LINENO" 5; }
13288 fi
13289
13290 ac_ext=c
13291 ac_cpp='$CPP $CPPFLAGS'
13292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13295
13296 else
13297   _lt_caught_CXX_error=yes
13298 fi
13299
13300 ac_ext=cpp
13301 ac_cpp='$CXXCPP $CPPFLAGS'
13302 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13303 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13304 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13305
13306 archive_cmds_need_lc_CXX=no
13307 allow_undefined_flag_CXX=
13308 always_export_symbols_CXX=no
13309 archive_expsym_cmds_CXX=
13310 compiler_needs_object_CXX=no
13311 export_dynamic_flag_spec_CXX=
13312 hardcode_direct_CXX=no
13313 hardcode_direct_absolute_CXX=no
13314 hardcode_libdir_flag_spec_CXX=
13315 hardcode_libdir_separator_CXX=
13316 hardcode_minus_L_CXX=no
13317 hardcode_shlibpath_var_CXX=unsupported
13318 hardcode_automatic_CXX=no
13319 inherit_rpath_CXX=no
13320 module_cmds_CXX=
13321 module_expsym_cmds_CXX=
13322 link_all_deplibs_CXX=unknown
13323 old_archive_cmds_CXX=$old_archive_cmds
13324 reload_flag_CXX=$reload_flag
13325 reload_cmds_CXX=$reload_cmds
13326 no_undefined_flag_CXX=
13327 whole_archive_flag_spec_CXX=
13328 enable_shared_with_static_runtimes_CXX=no
13329
13330 # Source file extension for C++ test sources.
13331 ac_ext=cpp
13332
13333 # Object file extension for compiled C++ test sources.
13334 objext=o
13335 objext_CXX=$objext
13336
13337 # No sense in running all these tests if we already determined that
13338 # the CXX compiler isn't working.  Some variables (like enable_shared)
13339 # are currently assumed to apply to all compilers on this platform,
13340 # and will be corrupted by setting them based on a non-working compiler.
13341 if test "$_lt_caught_CXX_error" != yes; then
13342   # Code to be used in simple compile tests
13343   lt_simple_compile_test_code="int some_variable = 0;"
13344
13345   # Code to be used in simple link tests
13346   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13347
13348   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13349
13350
13351
13352
13353
13354
13355 # If no C compiler was specified, use CC.
13356 LTCC=${LTCC-"$CC"}
13357
13358 # If no C compiler flags were specified, use CFLAGS.
13359 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13360
13361 # Allow CC to be a program name with arguments.
13362 compiler=$CC
13363
13364
13365   # save warnings/boilerplate of simple test code
13366   ac_outfile=conftest.$ac_objext
13367 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13368 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13369 _lt_compiler_boilerplate=`cat conftest.err`
13370 $RM conftest*
13371
13372   ac_outfile=conftest.$ac_objext
13373 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13374 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13375 _lt_linker_boilerplate=`cat conftest.err`
13376 $RM -r conftest*
13377
13378
13379   # Allow CC to be a program name with arguments.
13380   lt_save_CC=$CC
13381   lt_save_CFLAGS=$CFLAGS
13382   lt_save_LD=$LD
13383   lt_save_GCC=$GCC
13384   GCC=$GXX
13385   lt_save_with_gnu_ld=$with_gnu_ld
13386   lt_save_path_LD=$lt_cv_path_LD
13387   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13388     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13389   else
13390     $as_unset lt_cv_prog_gnu_ld
13391   fi
13392   if test -n "${lt_cv_path_LDCXX+set}"; then
13393     lt_cv_path_LD=$lt_cv_path_LDCXX
13394   else
13395     $as_unset lt_cv_path_LD
13396   fi
13397   test -z "${LDCXX+set}" || LD=$LDCXX
13398   CC=${CXX-"c++"}
13399   CFLAGS=$CXXFLAGS
13400   compiler=$CC
13401   compiler_CXX=$CC
13402   for cc_temp in $compiler""; do
13403   case $cc_temp in
13404     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13405     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13406     \-*) ;;
13407     *) break;;
13408   esac
13409 done
13410 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13411
13412
13413   if test -n "$compiler"; then
13414     # We don't want -fno-exception when compiling C++ code, so set the
13415     # no_builtin_flag separately
13416     if test "$GXX" = yes; then
13417       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13418     else
13419       lt_prog_compiler_no_builtin_flag_CXX=
13420     fi
13421
13422     if test "$GXX" = yes; then
13423       # Set up default GNU C++ configuration
13424
13425
13426
13427 # Check whether --with-gnu-ld was given.
13428 if test "${with_gnu_ld+set}" = set; then :
13429   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13430 else
13431   with_gnu_ld=no
13432 fi
13433
13434 ac_prog=ld
13435 if test "$GCC" = yes; then
13436   # Check if gcc -print-prog-name=ld gives a path.
13437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13438 $as_echo_n "checking for ld used by $CC... " >&6; }
13439   case $host in
13440   *-*-mingw*)
13441     # gcc leaves a trailing carriage return which upsets mingw
13442     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13443   *)
13444     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13445   esac
13446   case $ac_prog in
13447     # Accept absolute paths.
13448     [\\/]* | ?:[\\/]*)
13449       re_direlt='/[^/][^/]*/\.\./'
13450       # Canonicalize the pathname of ld
13451       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13452       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13453         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13454       done
13455       test -z "$LD" && LD="$ac_prog"
13456       ;;
13457   "")
13458     # If it fails, then pretend we aren't using GCC.
13459     ac_prog=ld
13460     ;;
13461   *)
13462     # If it is relative, then search for the first ld in PATH.
13463     with_gnu_ld=unknown
13464     ;;
13465   esac
13466 elif test "$with_gnu_ld" = yes; then
13467   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13468 $as_echo_n "checking for GNU ld... " >&6; }
13469 else
13470   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13471 $as_echo_n "checking for non-GNU ld... " >&6; }
13472 fi
13473 if ${lt_cv_path_LD+:} false; then :
13474   $as_echo_n "(cached) " >&6
13475 else
13476   if test -z "$LD"; then
13477   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13478   for ac_dir in $PATH; do
13479     IFS="$lt_save_ifs"
13480     test -z "$ac_dir" && ac_dir=.
13481     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13482       lt_cv_path_LD="$ac_dir/$ac_prog"
13483       # Check to see if the program is GNU ld.  I'd rather use --version,
13484       # but apparently some variants of GNU ld only accept -v.
13485       # Break only if it was the GNU/non-GNU ld that we prefer.
13486       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13487       *GNU* | *'with BFD'*)
13488         test "$with_gnu_ld" != no && break
13489         ;;
13490       *)
13491         test "$with_gnu_ld" != yes && break
13492         ;;
13493       esac
13494     fi
13495   done
13496   IFS="$lt_save_ifs"
13497 else
13498   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13499 fi
13500 fi
13501
13502 LD="$lt_cv_path_LD"
13503 if test -n "$LD"; then
13504   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13505 $as_echo "$LD" >&6; }
13506 else
13507   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13508 $as_echo "no" >&6; }
13509 fi
13510 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13512 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13513 if ${lt_cv_prog_gnu_ld+:} false; then :
13514   $as_echo_n "(cached) " >&6
13515 else
13516   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13517 case `$LD -v 2>&1 </dev/null` in
13518 *GNU* | *'with BFD'*)
13519   lt_cv_prog_gnu_ld=yes
13520   ;;
13521 *)
13522   lt_cv_prog_gnu_ld=no
13523   ;;
13524 esac
13525 fi
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13527 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13528 with_gnu_ld=$lt_cv_prog_gnu_ld
13529
13530
13531
13532
13533
13534
13535
13536       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13537       # archiving commands below assume that GNU ld is being used.
13538       if test "$with_gnu_ld" = yes; then
13539         archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13540         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'
13541
13542         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13543         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13544
13545         # If archive_cmds runs LD, not CC, wlarc should be empty
13546         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13547         #     investigate it a little bit more. (MM)
13548         wlarc='${wl}'
13549
13550         # ancient GNU ld didn't support --whole-archive et. al.
13551         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13552           $GREP 'no-whole-archive' > /dev/null; then
13553           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13554         else
13555           whole_archive_flag_spec_CXX=
13556         fi
13557       else
13558         with_gnu_ld=no
13559         wlarc=
13560
13561         # A generic and very simple default shared library creation
13562         # command for GNU C++ for the case where it uses the native
13563         # linker, instead of GNU ld.  If possible, this setting should
13564         # overridden to take advantage of the native linker features on
13565         # the platform it is being used on.
13566         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13567       fi
13568
13569       # Commands to make compiler produce verbose output that lists
13570       # what "hidden" libraries, object files and flags are used when
13571       # linking a shared library.
13572       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13573
13574     else
13575       GXX=no
13576       with_gnu_ld=no
13577       wlarc=
13578     fi
13579
13580     # PORTME: fill in a description of your system's C++ link characteristics
13581     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13582 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13583     ld_shlibs_CXX=yes
13584     case $host_os in
13585       aix3*)
13586         # FIXME: insert proper C++ library support
13587         ld_shlibs_CXX=no
13588         ;;
13589       aix[4-9]*)
13590         if test "$host_cpu" = ia64; then
13591           # On IA64, the linker does run time linking by default, so we don't
13592           # have to do anything special.
13593           aix_use_runtimelinking=no
13594           exp_sym_flag='-Bexport'
13595           no_entry_flag=""
13596         else
13597           aix_use_runtimelinking=no
13598
13599           # Test if we are trying to use run time linking or normal
13600           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13601           # need to do runtime linking.
13602           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13603             for ld_flag in $LDFLAGS; do
13604               case $ld_flag in
13605               *-brtl*)
13606                 aix_use_runtimelinking=yes
13607                 break
13608                 ;;
13609               esac
13610             done
13611             ;;
13612           esac
13613
13614           exp_sym_flag='-bexport'
13615           no_entry_flag='-bnoentry'
13616         fi
13617
13618         # When large executables or shared objects are built, AIX ld can
13619         # have problems creating the table of contents.  If linking a library
13620         # or program results in "error TOC overflow" add -mminimal-toc to
13621         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13622         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13623
13624         archive_cmds_CXX=''
13625         hardcode_direct_CXX=yes
13626         hardcode_direct_absolute_CXX=yes
13627         hardcode_libdir_separator_CXX=':'
13628         link_all_deplibs_CXX=yes
13629         file_list_spec_CXX='${wl}-f,'
13630
13631         if test "$GXX" = yes; then
13632           case $host_os in aix4.[012]|aix4.[012].*)
13633           # We only want to do this on AIX 4.2 and lower, the check
13634           # below for broken collect2 doesn't work under 4.3+
13635           collect2name=`${CC} -print-prog-name=collect2`
13636           if test -f "$collect2name" &&
13637              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13638           then
13639             # We have reworked collect2
13640             :
13641           else
13642             # We have old collect2
13643             hardcode_direct_CXX=unsupported
13644             # It fails to find uninstalled libraries when the uninstalled
13645             # path is not listed in the libpath.  Setting hardcode_minus_L
13646             # to unsupported forces relinking
13647             hardcode_minus_L_CXX=yes
13648             hardcode_libdir_flag_spec_CXX='-L$libdir'
13649             hardcode_libdir_separator_CXX=
13650           fi
13651           esac
13652           shared_flag='-shared'
13653           if test "$aix_use_runtimelinking" = yes; then
13654             shared_flag="$shared_flag "'${wl}-G'
13655           fi
13656         else
13657           # not using gcc
13658           if test "$host_cpu" = ia64; then
13659           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13660           # chokes on -Wl,-G. The following line is correct:
13661           shared_flag='-G'
13662           else
13663             if test "$aix_use_runtimelinking" = yes; then
13664               shared_flag='${wl}-G'
13665             else
13666               shared_flag='${wl}-bM:SRE'
13667             fi
13668           fi
13669         fi
13670
13671         export_dynamic_flag_spec_CXX='${wl}-bexpall'
13672         # It seems that -bexpall does not export symbols beginning with
13673         # underscore (_), so it is better to generate a list of symbols to
13674         # export.
13675         always_export_symbols_CXX=yes
13676         if test "$aix_use_runtimelinking" = yes; then
13677           # Warning - without using the other runtime loading flags (-brtl),
13678           # -berok will link without error, but may produce a broken library.
13679           allow_undefined_flag_CXX='-berok'
13680           # Determine the default libpath from the value encoded in an empty
13681           # executable.
13682           if test "${lt_cv_aix_libpath+set}" = set; then
13683   aix_libpath=$lt_cv_aix_libpath
13684 else
13685   if ${lt_cv_aix_libpath__CXX+:} false; then :
13686   $as_echo_n "(cached) " >&6
13687 else
13688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690
13691 int
13692 main ()
13693 {
13694
13695   ;
13696   return 0;
13697 }
13698 _ACEOF
13699 if ac_fn_cxx_try_link "$LINENO"; then :
13700
13701   lt_aix_libpath_sed='
13702       /Import File Strings/,/^$/ {
13703           /^0/ {
13704               s/^0  *\([^ ]*\) *$/\1/
13705               p
13706           }
13707       }'
13708   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13709   # Check for a 64-bit object if we didn't find anything.
13710   if test -z "$lt_cv_aix_libpath__CXX"; then
13711     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13712   fi
13713 fi
13714 rm -f core conftest.err conftest.$ac_objext \
13715     conftest$ac_exeext conftest.$ac_ext
13716   if test -z "$lt_cv_aix_libpath__CXX"; then
13717     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13718   fi
13719
13720 fi
13721
13722   aix_libpath=$lt_cv_aix_libpath__CXX
13723 fi
13724
13725           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13726
13727           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"
13728         else
13729           if test "$host_cpu" = ia64; then
13730             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13731             allow_undefined_flag_CXX="-z nodefs"
13732             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"
13733           else
13734             # Determine the default libpath from the value encoded in an
13735             # empty executable.
13736             if test "${lt_cv_aix_libpath+set}" = set; then
13737   aix_libpath=$lt_cv_aix_libpath
13738 else
13739   if ${lt_cv_aix_libpath__CXX+:} false; then :
13740   $as_echo_n "(cached) " >&6
13741 else
13742   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h.  */
13744
13745 int
13746 main ()
13747 {
13748
13749   ;
13750   return 0;
13751 }
13752 _ACEOF
13753 if ac_fn_cxx_try_link "$LINENO"; then :
13754
13755   lt_aix_libpath_sed='
13756       /Import File Strings/,/^$/ {
13757           /^0/ {
13758               s/^0  *\([^ ]*\) *$/\1/
13759               p
13760           }
13761       }'
13762   lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13763   # Check for a 64-bit object if we didn't find anything.
13764   if test -z "$lt_cv_aix_libpath__CXX"; then
13765     lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13766   fi
13767 fi
13768 rm -f core conftest.err conftest.$ac_objext \
13769     conftest$ac_exeext conftest.$ac_ext
13770   if test -z "$lt_cv_aix_libpath__CXX"; then
13771     lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13772   fi
13773
13774 fi
13775
13776   aix_libpath=$lt_cv_aix_libpath__CXX
13777 fi
13778
13779             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13780             # Warning - without using the other run time loading flags,
13781             # -berok will link without error, but may produce a broken library.
13782             no_undefined_flag_CXX=' ${wl}-bernotok'
13783             allow_undefined_flag_CXX=' ${wl}-berok'
13784             if test "$with_gnu_ld" = yes; then
13785               # We only use this code for GNU lds that support --whole-archive.
13786               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13787             else
13788               # Exported symbols can be pulled into shared objects from archives
13789               whole_archive_flag_spec_CXX='$convenience'
13790             fi
13791             archive_cmds_need_lc_CXX=yes
13792             # This is similar to how AIX traditionally builds its shared
13793             # libraries.
13794             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'
13795           fi
13796         fi
13797         ;;
13798
13799       beos*)
13800         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13801           allow_undefined_flag_CXX=unsupported
13802           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13803           # support --undefined.  This deserves some investigation.  FIXME
13804           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13805         else
13806           ld_shlibs_CXX=no
13807         fi
13808         ;;
13809
13810       chorus*)
13811         case $cc_basename in
13812           *)
13813           # FIXME: insert proper C++ library support
13814           ld_shlibs_CXX=no
13815           ;;
13816         esac
13817         ;;
13818
13819       cygwin* | mingw* | pw32* | cegcc*)
13820         case $GXX,$cc_basename in
13821         ,cl* | no,cl*)
13822           # Native MSVC
13823           # hardcode_libdir_flag_spec is actually meaningless, as there is
13824           # no search path for DLLs.
13825           hardcode_libdir_flag_spec_CXX=' '
13826           allow_undefined_flag_CXX=unsupported
13827           always_export_symbols_CXX=yes
13828           file_list_spec_CXX='@'
13829           # Tell ltmain to make .lib files, not .a files.
13830           libext=lib
13831           # Tell ltmain to make .dll files, not .so files.
13832           shrext_cmds=".dll"
13833           # FIXME: Setting linknames here is a bad hack.
13834           archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13835           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13836               $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13837             else
13838               $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13839             fi~
13840             $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13841             linknames='
13842           # The linker will not automatically build a static lib if we build a DLL.
13843           # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13844           enable_shared_with_static_runtimes_CXX=yes
13845           # Don't use ranlib
13846           old_postinstall_cmds_CXX='chmod 644 $oldlib'
13847           postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13848             lt_tool_outputfile="@TOOL_OUTPUT@"~
13849             case $lt_outputfile in
13850               *.exe|*.EXE) ;;
13851               *)
13852                 lt_outputfile="$lt_outputfile.exe"
13853                 lt_tool_outputfile="$lt_tool_outputfile.exe"
13854                 ;;
13855             esac~
13856             func_to_tool_file "$lt_outputfile"~
13857             if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13858               $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13859               $RM "$lt_outputfile.manifest";
13860             fi'
13861           ;;
13862         *)
13863           # g++
13864           # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13865           # as there is no search path for DLLs.
13866           hardcode_libdir_flag_spec_CXX='-L$libdir'
13867           export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13868           allow_undefined_flag_CXX=unsupported
13869           always_export_symbols_CXX=no
13870           enable_shared_with_static_runtimes_CXX=yes
13871
13872           if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13873             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'
13874             # If the export-symbols file already is a .def file (1st line
13875             # is EXPORTS), use it as is; otherwise, prepend...
13876             archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13877               cp $export_symbols $output_objdir/$soname.def;
13878             else
13879               echo EXPORTS > $output_objdir/$soname.def;
13880               cat $export_symbols >> $output_objdir/$soname.def;
13881             fi~
13882             $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'
13883           else
13884             ld_shlibs_CXX=no
13885           fi
13886           ;;
13887         esac
13888         ;;
13889       darwin* | rhapsody*)
13890
13891
13892   archive_cmds_need_lc_CXX=no
13893   hardcode_direct_CXX=no
13894   hardcode_automatic_CXX=yes
13895   hardcode_shlibpath_var_CXX=unsupported
13896   if test "$lt_cv_ld_force_load" = "yes"; then
13897     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\"`'
13898
13899   else
13900     whole_archive_flag_spec_CXX=''
13901   fi
13902   link_all_deplibs_CXX=yes
13903   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13904   case $cc_basename in
13905      ifort*) _lt_dar_can_shared=yes ;;
13906      *) _lt_dar_can_shared=$GCC ;;
13907   esac
13908   if test "$_lt_dar_can_shared" = "yes"; then
13909     output_verbose_link_cmd=func_echo_all
13910     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}"
13911     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13912     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}"
13913     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}"
13914        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13915       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}"
13916       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}"
13917     fi
13918
13919   else
13920   ld_shlibs_CXX=no
13921   fi
13922
13923         ;;
13924
13925       dgux*)
13926         case $cc_basename in
13927           ec++*)
13928             # FIXME: insert proper C++ library support
13929             ld_shlibs_CXX=no
13930             ;;
13931           ghcx*)
13932             # Green Hills C++ Compiler
13933             # FIXME: insert proper C++ library support
13934             ld_shlibs_CXX=no
13935             ;;
13936           *)
13937             # FIXME: insert proper C++ library support
13938             ld_shlibs_CXX=no
13939             ;;
13940         esac
13941         ;;
13942
13943       freebsd2.*)
13944         # C++ shared libraries reported to be fairly broken before
13945         # switch to ELF
13946         ld_shlibs_CXX=no
13947         ;;
13948
13949       freebsd-elf*)
13950         archive_cmds_need_lc_CXX=no
13951         ;;
13952
13953       freebsd* | dragonfly*)
13954         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13955         # conventions
13956         ld_shlibs_CXX=yes
13957         ;;
13958
13959       haiku*)
13960         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13961         link_all_deplibs_CXX=yes
13962         ;;
13963
13964       hpux9*)
13965         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13966         hardcode_libdir_separator_CXX=:
13967         export_dynamic_flag_spec_CXX='${wl}-E'
13968         hardcode_direct_CXX=yes
13969         hardcode_minus_L_CXX=yes # Not in the search PATH,
13970                                              # but as the default
13971                                              # location of the library.
13972
13973         case $cc_basename in
13974           CC*)
13975             # FIXME: insert proper C++ library support
13976             ld_shlibs_CXX=no
13977             ;;
13978           aCC*)
13979             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'
13980             # Commands to make compiler produce verbose output that lists
13981             # what "hidden" libraries, object files and flags are used when
13982             # linking a shared library.
13983             #
13984             # There doesn't appear to be a way to prevent this compiler from
13985             # explicitly linking system object files so we need to strip them
13986             # from the output so that they don't get included in the library
13987             # dependencies.
13988             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"'
13989             ;;
13990           *)
13991             if test "$GXX" = yes; then
13992               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'
13993             else
13994               # FIXME: insert proper C++ library support
13995               ld_shlibs_CXX=no
13996             fi
13997             ;;
13998         esac
13999         ;;
14000
14001       hpux10*|hpux11*)
14002         if test $with_gnu_ld = no; then
14003           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14004           hardcode_libdir_separator_CXX=:
14005
14006           case $host_cpu in
14007             hppa*64*|ia64*)
14008               ;;
14009             *)
14010               export_dynamic_flag_spec_CXX='${wl}-E'
14011               ;;
14012           esac
14013         fi
14014         case $host_cpu in
14015           hppa*64*|ia64*)
14016             hardcode_direct_CXX=no
14017             hardcode_shlibpath_var_CXX=no
14018             ;;
14019           *)
14020             hardcode_direct_CXX=yes
14021             hardcode_direct_absolute_CXX=yes
14022             hardcode_minus_L_CXX=yes # Not in the search PATH,
14023                                                  # but as the default
14024                                                  # location of the library.
14025             ;;
14026         esac
14027
14028         case $cc_basename in
14029           CC*)
14030             # FIXME: insert proper C++ library support
14031             ld_shlibs_CXX=no
14032             ;;
14033           aCC*)
14034             case $host_cpu in
14035               hppa*64*)
14036                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14037                 ;;
14038               ia64*)
14039                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14040                 ;;
14041               *)
14042                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14043                 ;;
14044             esac
14045             # Commands to make compiler produce verbose output that lists
14046             # what "hidden" libraries, object files and flags are used when
14047             # linking a shared library.
14048             #
14049             # There doesn't appear to be a way to prevent this compiler from
14050             # explicitly linking system object files so we need to strip them
14051             # from the output so that they don't get included in the library
14052             # dependencies.
14053             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"'
14054             ;;
14055           *)
14056             if test "$GXX" = yes; then
14057               if test $with_gnu_ld = no; then
14058                 case $host_cpu in
14059                   hppa*64*)
14060                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14061                     ;;
14062                   ia64*)
14063                     archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14064                     ;;
14065                   *)
14066                     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'
14067                     ;;
14068                 esac
14069               fi
14070             else
14071               # FIXME: insert proper C++ library support
14072               ld_shlibs_CXX=no
14073             fi
14074             ;;
14075         esac
14076         ;;
14077
14078       interix[3-9]*)
14079         hardcode_direct_CXX=no
14080         hardcode_shlibpath_var_CXX=no
14081         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14082         export_dynamic_flag_spec_CXX='${wl}-E'
14083         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14084         # Instead, shared libraries are loaded at an image base (0x10000000 by
14085         # default) and relocated if they conflict, which is a slow very memory
14086         # consuming and fragmenting process.  To avoid this, we pick a random,
14087         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14088         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14089         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'
14090         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'
14091         ;;
14092       irix5* | irix6*)
14093         case $cc_basename in
14094           CC*)
14095             # SGI C++
14096             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'
14097
14098             # Archives containing C++ object files must be created using
14099             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14100             # necessary to make sure instantiated templates are included
14101             # in the archive.
14102             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14103             ;;
14104           *)
14105             if test "$GXX" = yes; then
14106               if test "$with_gnu_ld" = no; then
14107                 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'
14108               else
14109                 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'
14110               fi
14111             fi
14112             link_all_deplibs_CXX=yes
14113             ;;
14114         esac
14115         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14116         hardcode_libdir_separator_CXX=:
14117         inherit_rpath_CXX=yes
14118         ;;
14119
14120       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14121         case $cc_basename in
14122           KCC*)
14123             # Kuck and Associates, Inc. (KAI) C++ Compiler
14124
14125             # KCC will only create a shared library if the output file
14126             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14127             # to its proper name (with version) after linking.
14128             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'
14129             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'
14130             # Commands to make compiler produce verbose output that lists
14131             # what "hidden" libraries, object files and flags are used when
14132             # linking a shared library.
14133             #
14134             # There doesn't appear to be a way to prevent this compiler from
14135             # explicitly linking system object files so we need to strip them
14136             # from the output so that they don't get included in the library
14137             # dependencies.
14138             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"'
14139
14140             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14141             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14142
14143             # Archives containing C++ object files must be created using
14144             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14145             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14146             ;;
14147           icpc* | ecpc* )
14148             # Intel C++
14149             with_gnu_ld=yes
14150             # version 8.0 and above of icpc choke on multiply defined symbols
14151             # if we add $predep_objects and $postdep_objects, however 7.1 and
14152             # earlier do not add the objects themselves.
14153             case `$CC -V 2>&1` in
14154               *"Version 7."*)
14155                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14156                 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'
14157                 ;;
14158               *)  # Version 8.0 or newer
14159                 tmp_idyn=
14160                 case $host_cpu in
14161                   ia64*) tmp_idyn=' -i_dynamic';;
14162                 esac
14163                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14164                 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'
14165                 ;;
14166             esac
14167             archive_cmds_need_lc_CXX=no
14168             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14169             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14170             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14171             ;;
14172           pgCC* | pgcpp*)
14173             # Portland Group C++ compiler
14174             case `$CC -V` in
14175             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14176               prelink_cmds_CXX='tpldir=Template.dir~
14177                 rm -rf $tpldir~
14178                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14179                 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14180               old_archive_cmds_CXX='tpldir=Template.dir~
14181                 rm -rf $tpldir~
14182                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14183                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14184                 $RANLIB $oldlib'
14185               archive_cmds_CXX='tpldir=Template.dir~
14186                 rm -rf $tpldir~
14187                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14188                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14189               archive_expsym_cmds_CXX='tpldir=Template.dir~
14190                 rm -rf $tpldir~
14191                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14192                 $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'
14193               ;;
14194             *) # Version 6 and above use weak symbols
14195               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14196               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'
14197               ;;
14198             esac
14199
14200             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14201             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14202             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'
14203             ;;
14204           cxx*)
14205             # Compaq C++
14206             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14207             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'
14208
14209             runpath_var=LD_RUN_PATH
14210             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14211             hardcode_libdir_separator_CXX=:
14212
14213             # Commands to make compiler produce verbose output that lists
14214             # what "hidden" libraries, object files and flags are used when
14215             # linking a shared library.
14216             #
14217             # There doesn't appear to be a way to prevent this compiler from
14218             # explicitly linking system object files so we need to strip them
14219             # from the output so that they don't get included in the library
14220             # dependencies.
14221             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'
14222             ;;
14223           xl* | mpixl* | bgxl*)
14224             # IBM XL 8.0 on PPC, with GNU ld
14225             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14226             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14227             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14228             if test "x$supports_anon_versioning" = xyes; then
14229               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14230                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14231                 echo "local: *; };" >> $output_objdir/$libname.ver~
14232                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14233             fi
14234             ;;
14235           *)
14236             case `$CC -V 2>&1 | sed 5q` in
14237             *Sun\ C*)
14238               # Sun C++ 5.9
14239               no_undefined_flag_CXX=' -zdefs'
14240               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241               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'
14242               hardcode_libdir_flag_spec_CXX='-R$libdir'
14243               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'
14244               compiler_needs_object_CXX=yes
14245
14246               # Not sure whether something based on
14247               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14248               # would be better.
14249               output_verbose_link_cmd='func_echo_all'
14250
14251               # Archives containing C++ object files must be created using
14252               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14253               # necessary to make sure instantiated templates are included
14254               # in the archive.
14255               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14256               ;;
14257             esac
14258             ;;
14259         esac
14260         ;;
14261
14262       lynxos*)
14263         # FIXME: insert proper C++ library support
14264         ld_shlibs_CXX=no
14265         ;;
14266
14267       m88k*)
14268         # FIXME: insert proper C++ library support
14269         ld_shlibs_CXX=no
14270         ;;
14271
14272       mvs*)
14273         case $cc_basename in
14274           cxx*)
14275             # FIXME: insert proper C++ library support
14276             ld_shlibs_CXX=no
14277             ;;
14278           *)
14279             # FIXME: insert proper C++ library support
14280             ld_shlibs_CXX=no
14281             ;;
14282         esac
14283         ;;
14284
14285       netbsd*)
14286         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14288           wlarc=
14289           hardcode_libdir_flag_spec_CXX='-R$libdir'
14290           hardcode_direct_CXX=yes
14291           hardcode_shlibpath_var_CXX=no
14292         fi
14293         # Workaround some broken pre-1.5 toolchains
14294         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14295         ;;
14296
14297       *nto* | *qnx*)
14298         ld_shlibs_CXX=yes
14299         ;;
14300
14301       openbsd2*)
14302         # C++ shared libraries are fairly broken
14303         ld_shlibs_CXX=no
14304         ;;
14305
14306       openbsd*)
14307         if test -f /usr/libexec/ld.so; then
14308           hardcode_direct_CXX=yes
14309           hardcode_shlibpath_var_CXX=no
14310           hardcode_direct_absolute_CXX=yes
14311           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14312           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14313           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14314             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14315             export_dynamic_flag_spec_CXX='${wl}-E'
14316             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14317           fi
14318           output_verbose_link_cmd=func_echo_all
14319         else
14320           ld_shlibs_CXX=no
14321         fi
14322         ;;
14323
14324       osf3* | osf4* | osf5*)
14325         case $cc_basename in
14326           KCC*)
14327             # Kuck and Associates, Inc. (KAI) C++ Compiler
14328
14329             # KCC will only create a shared library if the output file
14330             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14331             # to its proper name (with version) after linking.
14332             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'
14333
14334             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14335             hardcode_libdir_separator_CXX=:
14336
14337             # Archives containing C++ object files must be created using
14338             # the KAI C++ compiler.
14339             case $host in
14340               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14341               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14342             esac
14343             ;;
14344           RCC*)
14345             # Rational C++ 2.4.1
14346             # FIXME: insert proper C++ library support
14347             ld_shlibs_CXX=no
14348             ;;
14349           cxx*)
14350             case $host in
14351               osf3*)
14352                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14353                 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'
14354                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14355                 ;;
14356               *)
14357                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14358                 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'
14359                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14360                   echo "-hidden">> $lib.exp~
14361                   $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~
14362                   $RM $lib.exp'
14363                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14364                 ;;
14365             esac
14366
14367             hardcode_libdir_separator_CXX=:
14368
14369             # Commands to make compiler produce verbose output that lists
14370             # what "hidden" libraries, object files and flags are used when
14371             # linking a shared library.
14372             #
14373             # There doesn't appear to be a way to prevent this compiler from
14374             # explicitly linking system object files so we need to strip them
14375             # from the output so that they don't get included in the library
14376             # dependencies.
14377             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"'
14378             ;;
14379           *)
14380             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14381               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14382               case $host in
14383                 osf3*)
14384                   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'
14385                   ;;
14386                 *)
14387                   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'
14388                   ;;
14389               esac
14390
14391               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14392               hardcode_libdir_separator_CXX=:
14393
14394               # Commands to make compiler produce verbose output that lists
14395               # what "hidden" libraries, object files and flags are used when
14396               # linking a shared library.
14397               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14398
14399             else
14400               # FIXME: insert proper C++ library support
14401               ld_shlibs_CXX=no
14402             fi
14403             ;;
14404         esac
14405         ;;
14406
14407       psos*)
14408         # FIXME: insert proper C++ library support
14409         ld_shlibs_CXX=no
14410         ;;
14411
14412       sunos4*)
14413         case $cc_basename in
14414           CC*)
14415             # Sun C++ 4.x
14416             # FIXME: insert proper C++ library support
14417             ld_shlibs_CXX=no
14418             ;;
14419           lcc*)
14420             # Lucid
14421             # FIXME: insert proper C++ library support
14422             ld_shlibs_CXX=no
14423             ;;
14424           *)
14425             # FIXME: insert proper C++ library support
14426             ld_shlibs_CXX=no
14427             ;;
14428         esac
14429         ;;
14430
14431       solaris*)
14432         case $cc_basename in
14433           CC* | sunCC*)
14434             # Sun C++ 4.2, 5.x and Centerline C++
14435             archive_cmds_need_lc_CXX=yes
14436             no_undefined_flag_CXX=' -zdefs'
14437             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14438             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14439               $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'
14440
14441             hardcode_libdir_flag_spec_CXX='-R$libdir'
14442             hardcode_shlibpath_var_CXX=no
14443             case $host_os in
14444               solaris2.[0-5] | solaris2.[0-5].*) ;;
14445               *)
14446                 # The compiler driver will combine and reorder linker options,
14447                 # but understands `-z linker_flag'.
14448                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14449                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14450                 ;;
14451             esac
14452             link_all_deplibs_CXX=yes
14453
14454             output_verbose_link_cmd='func_echo_all'
14455
14456             # Archives containing C++ object files must be created using
14457             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14458             # necessary to make sure instantiated templates are included
14459             # in the archive.
14460             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14461             ;;
14462           gcx*)
14463             # Green Hills C++ Compiler
14464             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14465
14466             # The C++ compiler must be used to create the archive.
14467             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14468             ;;
14469           *)
14470             # GNU C++ compiler with Solaris linker
14471             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14472               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14473               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14474                 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14475                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14476                   $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14477
14478                 # Commands to make compiler produce verbose output that lists
14479                 # what "hidden" libraries, object files and flags are used when
14480                 # linking a shared library.
14481                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14482               else
14483                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14484                 # platform.
14485                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14486                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14487                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14488
14489                 # Commands to make compiler produce verbose output that lists
14490                 # what "hidden" libraries, object files and flags are used when
14491                 # linking a shared library.
14492                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14493               fi
14494
14495               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14496               case $host_os in
14497                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14498                 *)
14499                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14500                   ;;
14501               esac
14502             fi
14503             ;;
14504         esac
14505         ;;
14506
14507     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14508       no_undefined_flag_CXX='${wl}-z,text'
14509       archive_cmds_need_lc_CXX=no
14510       hardcode_shlibpath_var_CXX=no
14511       runpath_var='LD_RUN_PATH'
14512
14513       case $cc_basename in
14514         CC*)
14515           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517           ;;
14518         *)
14519           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14520           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14521           ;;
14522       esac
14523       ;;
14524
14525       sysv5* | sco3.2v5* | sco5v6*)
14526         # Note: We can NOT use -z defs as we might desire, because we do not
14527         # link with -lc, and that would cause any symbols used from libc to
14528         # always be unresolved, which means just about no library would
14529         # ever link correctly.  If we're not using GNU ld we use -z text
14530         # though, which does catch some bad symbols but isn't as heavy-handed
14531         # as -z defs.
14532         no_undefined_flag_CXX='${wl}-z,text'
14533         allow_undefined_flag_CXX='${wl}-z,nodefs'
14534         archive_cmds_need_lc_CXX=no
14535         hardcode_shlibpath_var_CXX=no
14536         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14537         hardcode_libdir_separator_CXX=':'
14538         link_all_deplibs_CXX=yes
14539         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14540         runpath_var='LD_RUN_PATH'
14541
14542         case $cc_basename in
14543           CC*)
14544             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14545             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14546             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14547               '"$old_archive_cmds_CXX"
14548             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14549               '"$reload_cmds_CXX"
14550             ;;
14551           *)
14552             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14553             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14554             ;;
14555         esac
14556       ;;
14557
14558       tandem*)
14559         case $cc_basename in
14560           NCC*)
14561             # NonStop-UX NCC 3.20
14562             # FIXME: insert proper C++ library support
14563             ld_shlibs_CXX=no
14564             ;;
14565           *)
14566             # FIXME: insert proper C++ library support
14567             ld_shlibs_CXX=no
14568             ;;
14569         esac
14570         ;;
14571
14572       vxworks*)
14573         # FIXME: insert proper C++ library support
14574         ld_shlibs_CXX=no
14575         ;;
14576
14577       *)
14578         # FIXME: insert proper C++ library support
14579         ld_shlibs_CXX=no
14580         ;;
14581     esac
14582
14583     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14584 $as_echo "$ld_shlibs_CXX" >&6; }
14585     test "$ld_shlibs_CXX" = no && can_build_shared=no
14586
14587     GCC_CXX="$GXX"
14588     LD_CXX="$LD"
14589
14590     ## CAVEAT EMPTOR:
14591     ## There is no encapsulation within the following macros, do not change
14592     ## the running order or otherwise move them around unless you know exactly
14593     ## what you are doing...
14594     # Dependencies to place before and after the object being linked:
14595 predep_objects_CXX=
14596 postdep_objects_CXX=
14597 predeps_CXX=
14598 postdeps_CXX=
14599 compiler_lib_search_path_CXX=
14600
14601 cat > conftest.$ac_ext <<_LT_EOF
14602 class Foo
14603 {
14604 public:
14605   Foo (void) { a = 0; }
14606 private:
14607   int a;
14608 };
14609 _LT_EOF
14610
14611
14612 _lt_libdeps_save_CFLAGS=$CFLAGS
14613 case "$CC $CFLAGS " in #(
14614 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14615 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14616 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14617 esac
14618
14619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14620   (eval $ac_compile) 2>&5
14621   ac_status=$?
14622   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14623   test $ac_status = 0; }; then
14624   # Parse the compiler output and extract the necessary
14625   # objects, libraries and library flags.
14626
14627   # Sentinel used to keep track of whether or not we are before
14628   # the conftest object file.
14629   pre_test_object_deps_done=no
14630
14631   for p in `eval "$output_verbose_link_cmd"`; do
14632     case ${prev}${p} in
14633
14634     -L* | -R* | -l*)
14635        # Some compilers place space between "-{L,R}" and the path.
14636        # Remove the space.
14637        if test $p = "-L" ||
14638           test $p = "-R"; then
14639          prev=$p
14640          continue
14641        fi
14642
14643        # Expand the sysroot to ease extracting the directories later.
14644        if test -z "$prev"; then
14645          case $p in
14646          -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14647          -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14648          -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14649          esac
14650        fi
14651        case $p in
14652        =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14653        esac
14654        if test "$pre_test_object_deps_done" = no; then
14655          case ${prev} in
14656          -L | -R)
14657            # Internal compiler library paths should come after those
14658            # provided the user.  The postdeps already come after the
14659            # user supplied libs so there is no need to process them.
14660            if test -z "$compiler_lib_search_path_CXX"; then
14661              compiler_lib_search_path_CXX="${prev}${p}"
14662            else
14663              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14664            fi
14665            ;;
14666          # The "-l" case would never come before the object being
14667          # linked, so don't bother handling this case.
14668          esac
14669        else
14670          if test -z "$postdeps_CXX"; then
14671            postdeps_CXX="${prev}${p}"
14672          else
14673            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14674          fi
14675        fi
14676        prev=
14677        ;;
14678
14679     *.lto.$objext) ;; # Ignore GCC LTO objects
14680     *.$objext)
14681        # This assumes that the test object file only shows up
14682        # once in the compiler output.
14683        if test "$p" = "conftest.$objext"; then
14684          pre_test_object_deps_done=yes
14685          continue
14686        fi
14687
14688        if test "$pre_test_object_deps_done" = no; then
14689          if test -z "$predep_objects_CXX"; then
14690            predep_objects_CXX="$p"
14691          else
14692            predep_objects_CXX="$predep_objects_CXX $p"
14693          fi
14694        else
14695          if test -z "$postdep_objects_CXX"; then
14696            postdep_objects_CXX="$p"
14697          else
14698            postdep_objects_CXX="$postdep_objects_CXX $p"
14699          fi
14700        fi
14701        ;;
14702
14703     *) ;; # Ignore the rest.
14704
14705     esac
14706   done
14707
14708   # Clean up.
14709   rm -f a.out a.exe
14710 else
14711   echo "libtool.m4: error: problem compiling CXX test program"
14712 fi
14713
14714 $RM -f confest.$objext
14715 CFLAGS=$_lt_libdeps_save_CFLAGS
14716
14717 # PORTME: override above test on systems where it is broken
14718 case $host_os in
14719 interix[3-9]*)
14720   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14721   # hack all around it, let's just trust "g++" to DTRT.
14722   predep_objects_CXX=
14723   postdep_objects_CXX=
14724   postdeps_CXX=
14725   ;;
14726
14727 linux*)
14728   case `$CC -V 2>&1 | sed 5q` in
14729   *Sun\ C*)
14730     # Sun C++ 5.9
14731
14732     # The more standards-conforming stlport4 library is
14733     # incompatible with the Cstd library. Avoid specifying
14734     # it if it's in CXXFLAGS. Ignore libCrun as
14735     # -library=stlport4 depends on it.
14736     case " $CXX $CXXFLAGS " in
14737     *" -library=stlport4 "*)
14738       solaris_use_stlport4=yes
14739       ;;
14740     esac
14741
14742     if test "$solaris_use_stlport4" != yes; then
14743       postdeps_CXX='-library=Cstd -library=Crun'
14744     fi
14745     ;;
14746   esac
14747   ;;
14748
14749 solaris*)
14750   case $cc_basename in
14751   CC* | sunCC*)
14752     # The more standards-conforming stlport4 library is
14753     # incompatible with the Cstd library. Avoid specifying
14754     # it if it's in CXXFLAGS. Ignore libCrun as
14755     # -library=stlport4 depends on it.
14756     case " $CXX $CXXFLAGS " in
14757     *" -library=stlport4 "*)
14758       solaris_use_stlport4=yes
14759       ;;
14760     esac
14761
14762     # Adding this requires a known-good setup of shared libraries for
14763     # Sun compiler versions before 5.6, else PIC objects from an old
14764     # archive will be linked into the output, leading to subtle bugs.
14765     if test "$solaris_use_stlport4" != yes; then
14766       postdeps_CXX='-library=Cstd -library=Crun'
14767     fi
14768     ;;
14769   esac
14770   ;;
14771 esac
14772
14773
14774 case " $postdeps_CXX " in
14775 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14776 esac
14777  compiler_lib_search_dirs_CXX=
14778 if test -n "${compiler_lib_search_path_CXX}"; then
14779  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14780 fi
14781
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     lt_prog_compiler_wl_CXX=
14813 lt_prog_compiler_pic_CXX=
14814 lt_prog_compiler_static_CXX=
14815
14816
14817   # C++ specific cases for pic, static, wl, etc.
14818   if test "$GXX" = yes; then
14819     lt_prog_compiler_wl_CXX='-Wl,'
14820     lt_prog_compiler_static_CXX='-static'
14821
14822     case $host_os in
14823     aix*)
14824       # All AIX code is PIC.
14825       if test "$host_cpu" = ia64; then
14826         # AIX 5 now supports IA64 processor
14827         lt_prog_compiler_static_CXX='-Bstatic'
14828       fi
14829       ;;
14830
14831     amigaos*)
14832       case $host_cpu in
14833       powerpc)
14834             # see comment about AmigaOS4 .so support
14835             lt_prog_compiler_pic_CXX='-fPIC'
14836         ;;
14837       m68k)
14838             # FIXME: we need at least 68020 code to build shared libraries, but
14839             # adding the `-m68020' flag to GCC prevents building anything better,
14840             # like `-m68040'.
14841             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14842         ;;
14843       esac
14844       ;;
14845
14846     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14847       # PIC is the default for these OSes.
14848       ;;
14849     mingw* | cygwin* | os2* | pw32* | cegcc*)
14850       # This hack is so that the source file can tell whether it is being
14851       # built for inclusion in a dll (and should export symbols for example).
14852       # Although the cygwin gcc ignores -fPIC, still need this for old-style
14853       # (--disable-auto-import) libraries
14854       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14855       ;;
14856     darwin* | rhapsody*)
14857       # PIC is the default on this platform
14858       # Common symbols not allowed in MH_DYLIB files
14859       lt_prog_compiler_pic_CXX='-fno-common'
14860       ;;
14861     *djgpp*)
14862       # DJGPP does not support shared libraries at all
14863       lt_prog_compiler_pic_CXX=
14864       ;;
14865     haiku*)
14866       # PIC is the default for Haiku.
14867       # The "-static" flag exists, but is broken.
14868       lt_prog_compiler_static_CXX=
14869       ;;
14870     interix[3-9]*)
14871       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14872       # Instead, we relocate shared libraries at runtime.
14873       ;;
14874     sysv4*MP*)
14875       if test -d /usr/nec; then
14876         lt_prog_compiler_pic_CXX=-Kconform_pic
14877       fi
14878       ;;
14879     hpux*)
14880       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14881       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
14882       # sets the default TLS model and affects inlining.
14883       case $host_cpu in
14884       hppa*64*)
14885         ;;
14886       *)
14887         lt_prog_compiler_pic_CXX='-fPIC'
14888         ;;
14889       esac
14890       ;;
14891     *qnx* | *nto*)
14892       # QNX uses GNU C++, but need to define -shared option too, otherwise
14893       # it will coredump.
14894       lt_prog_compiler_pic_CXX='-fPIC -shared'
14895       ;;
14896     *)
14897       lt_prog_compiler_pic_CXX='-fPIC'
14898       ;;
14899     esac
14900   else
14901     case $host_os in
14902       aix[4-9]*)
14903         # All AIX code is PIC.
14904         if test "$host_cpu" = ia64; then
14905           # AIX 5 now supports IA64 processor
14906           lt_prog_compiler_static_CXX='-Bstatic'
14907         else
14908           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14909         fi
14910         ;;
14911       chorus*)
14912         case $cc_basename in
14913         cxch68*)
14914           # Green Hills C++ Compiler
14915           # _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"
14916           ;;
14917         esac
14918         ;;
14919       mingw* | cygwin* | os2* | pw32* | cegcc*)
14920         # This hack is so that the source file can tell whether it is being
14921         # built for inclusion in a dll (and should export symbols for example).
14922         lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14923         ;;
14924       dgux*)
14925         case $cc_basename in
14926           ec++*)
14927             lt_prog_compiler_pic_CXX='-KPIC'
14928             ;;
14929           ghcx*)
14930             # Green Hills C++ Compiler
14931             lt_prog_compiler_pic_CXX='-pic'
14932             ;;
14933           *)
14934             ;;
14935         esac
14936         ;;
14937       freebsd* | dragonfly*)
14938         # FreeBSD uses GNU C++
14939         ;;
14940       hpux9* | hpux10* | hpux11*)
14941         case $cc_basename in
14942           CC*)
14943             lt_prog_compiler_wl_CXX='-Wl,'
14944             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14945             if test "$host_cpu" != ia64; then
14946               lt_prog_compiler_pic_CXX='+Z'
14947             fi
14948             ;;
14949           aCC*)
14950             lt_prog_compiler_wl_CXX='-Wl,'
14951             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14952             case $host_cpu in
14953             hppa*64*|ia64*)
14954               # +Z the default
14955               ;;
14956             *)
14957               lt_prog_compiler_pic_CXX='+Z'
14958               ;;
14959             esac
14960             ;;
14961           *)
14962             ;;
14963         esac
14964         ;;
14965       interix*)
14966         # This is c89, which is MS Visual C++ (no shared libs)
14967         # Anyone wants to do a port?
14968         ;;
14969       irix5* | irix6* | nonstopux*)
14970         case $cc_basename in
14971           CC*)
14972             lt_prog_compiler_wl_CXX='-Wl,'
14973             lt_prog_compiler_static_CXX='-non_shared'
14974             # CC pic flag -KPIC is the default.
14975             ;;
14976           *)
14977             ;;
14978         esac
14979         ;;
14980       linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14981         case $cc_basename in
14982           KCC*)
14983             # KAI C++ Compiler
14984             lt_prog_compiler_wl_CXX='--backend -Wl,'
14985             lt_prog_compiler_pic_CXX='-fPIC'
14986             ;;
14987           ecpc* )
14988             # old Intel C++ for x86_64 which still supported -KPIC.
14989             lt_prog_compiler_wl_CXX='-Wl,'
14990             lt_prog_compiler_pic_CXX='-KPIC'
14991             lt_prog_compiler_static_CXX='-static'
14992             ;;
14993           icpc* )
14994             # Intel C++, used to be incompatible with GCC.
14995             # ICC 10 doesn't accept -KPIC any more.
14996             lt_prog_compiler_wl_CXX='-Wl,'
14997             lt_prog_compiler_pic_CXX='-fPIC'
14998             lt_prog_compiler_static_CXX='-static'
14999             ;;
15000           pgCC* | pgcpp*)
15001             # Portland Group C++ compiler
15002             lt_prog_compiler_wl_CXX='-Wl,'
15003             lt_prog_compiler_pic_CXX='-fpic'
15004             lt_prog_compiler_static_CXX='-Bstatic'
15005             ;;
15006           cxx*)
15007             # Compaq C++
15008             # Make sure the PIC flag is empty.  It appears that all Alpha
15009             # Linux and Compaq Tru64 Unix objects are PIC.
15010             lt_prog_compiler_pic_CXX=
15011             lt_prog_compiler_static_CXX='-non_shared'
15012             ;;
15013           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15014             # IBM XL 8.0, 9.0 on PPC and BlueGene
15015             lt_prog_compiler_wl_CXX='-Wl,'
15016             lt_prog_compiler_pic_CXX='-qpic'
15017             lt_prog_compiler_static_CXX='-qstaticlink'
15018             ;;
15019           *)
15020             case `$CC -V 2>&1 | sed 5q` in
15021             *Sun\ C*)
15022               # Sun C++ 5.9
15023               lt_prog_compiler_pic_CXX='-KPIC'
15024               lt_prog_compiler_static_CXX='-Bstatic'
15025               lt_prog_compiler_wl_CXX='-Qoption ld '
15026               ;;
15027             esac
15028             ;;
15029         esac
15030         ;;
15031       lynxos*)
15032         ;;
15033       m88k*)
15034         ;;
15035       mvs*)
15036         case $cc_basename in
15037           cxx*)
15038             lt_prog_compiler_pic_CXX='-W c,exportall'
15039             ;;
15040           *)
15041             ;;
15042         esac
15043         ;;
15044       netbsd* | netbsdelf*-gnu)
15045         ;;
15046       *qnx* | *nto*)
15047         # QNX uses GNU C++, but need to define -shared option too, otherwise
15048         # it will coredump.
15049         lt_prog_compiler_pic_CXX='-fPIC -shared'
15050         ;;
15051       osf3* | osf4* | osf5*)
15052         case $cc_basename in
15053           KCC*)
15054             lt_prog_compiler_wl_CXX='--backend -Wl,'
15055             ;;
15056           RCC*)
15057             # Rational C++ 2.4.1
15058             lt_prog_compiler_pic_CXX='-pic'
15059             ;;
15060           cxx*)
15061             # Digital/Compaq C++
15062             lt_prog_compiler_wl_CXX='-Wl,'
15063             # Make sure the PIC flag is empty.  It appears that all Alpha
15064             # Linux and Compaq Tru64 Unix objects are PIC.
15065             lt_prog_compiler_pic_CXX=
15066             lt_prog_compiler_static_CXX='-non_shared'
15067             ;;
15068           *)
15069             ;;
15070         esac
15071         ;;
15072       psos*)
15073         ;;
15074       solaris*)
15075         case $cc_basename in
15076           CC* | sunCC*)
15077             # Sun C++ 4.2, 5.x and Centerline C++
15078             lt_prog_compiler_pic_CXX='-KPIC'
15079             lt_prog_compiler_static_CXX='-Bstatic'
15080             lt_prog_compiler_wl_CXX='-Qoption ld '
15081             ;;
15082           gcx*)
15083             # Green Hills C++ Compiler
15084             lt_prog_compiler_pic_CXX='-PIC'
15085             ;;
15086           *)
15087             ;;
15088         esac
15089         ;;
15090       sunos4*)
15091         case $cc_basename in
15092           CC*)
15093             # Sun C++ 4.x
15094             lt_prog_compiler_pic_CXX='-pic'
15095             lt_prog_compiler_static_CXX='-Bstatic'
15096             ;;
15097           lcc*)
15098             # Lucid
15099             lt_prog_compiler_pic_CXX='-pic'
15100             ;;
15101           *)
15102             ;;
15103         esac
15104         ;;
15105       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15106         case $cc_basename in
15107           CC*)
15108             lt_prog_compiler_wl_CXX='-Wl,'
15109             lt_prog_compiler_pic_CXX='-KPIC'
15110             lt_prog_compiler_static_CXX='-Bstatic'
15111             ;;
15112         esac
15113         ;;
15114       tandem*)
15115         case $cc_basename in
15116           NCC*)
15117             # NonStop-UX NCC 3.20
15118             lt_prog_compiler_pic_CXX='-KPIC'
15119             ;;
15120           *)
15121             ;;
15122         esac
15123         ;;
15124       vxworks*)
15125         ;;
15126       *)
15127         lt_prog_compiler_can_build_shared_CXX=no
15128         ;;
15129     esac
15130   fi
15131
15132 case $host_os in
15133   # For platforms which do not support PIC, -DPIC is meaningless:
15134   *djgpp*)
15135     lt_prog_compiler_pic_CXX=
15136     ;;
15137   *)
15138     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15139     ;;
15140 esac
15141
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15144 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
15145   $as_echo_n "(cached) " >&6
15146 else
15147   lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
15148 fi
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
15150 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
15151 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
15152
15153 #
15154 # Check to make sure the PIC flag actually works.
15155 #
15156 if test -n "$lt_prog_compiler_pic_CXX"; then
15157   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15158 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15159 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15160   $as_echo_n "(cached) " >&6
15161 else
15162   lt_cv_prog_compiler_pic_works_CXX=no
15163    ac_outfile=conftest.$ac_objext
15164    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15165    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15166    # Insert the option either (1) after the last *FLAGS variable, or
15167    # (2) before a word containing "conftest.", or (3) at the end.
15168    # Note that $ac_compile itself does not contain backslashes and begins
15169    # with a dollar sign (not a hyphen), so the echo should work correctly.
15170    # The option is referenced via a variable to avoid confusing sed.
15171    lt_compile=`echo "$ac_compile" | $SED \
15172    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15174    -e 's:$: $lt_compiler_flag:'`
15175    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15176    (eval "$lt_compile" 2>conftest.err)
15177    ac_status=$?
15178    cat conftest.err >&5
15179    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15180    if (exit $ac_status) && test -s "$ac_outfile"; then
15181      # The compiler can only warn and ignore the option if not recognized
15182      # So say no if there are warnings other than the usual output.
15183      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15184      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15185      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15186        lt_cv_prog_compiler_pic_works_CXX=yes
15187      fi
15188    fi
15189    $RM conftest*
15190
15191 fi
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15193 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15194
15195 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15196     case $lt_prog_compiler_pic_CXX in
15197      "" | " "*) ;;
15198      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15199      esac
15200 else
15201     lt_prog_compiler_pic_CXX=
15202      lt_prog_compiler_can_build_shared_CXX=no
15203 fi
15204
15205 fi
15206
15207
15208
15209
15210
15211 #
15212 # Check to make sure the static flag actually works.
15213 #
15214 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15216 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15217 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15218   $as_echo_n "(cached) " >&6
15219 else
15220   lt_cv_prog_compiler_static_works_CXX=no
15221    save_LDFLAGS="$LDFLAGS"
15222    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15223    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15224    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15225      # The linker can only warn and ignore the option if not recognized
15226      # So say no if there are warnings
15227      if test -s conftest.err; then
15228        # Append any errors to the config.log.
15229        cat conftest.err 1>&5
15230        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15231        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15232        if diff conftest.exp conftest.er2 >/dev/null; then
15233          lt_cv_prog_compiler_static_works_CXX=yes
15234        fi
15235      else
15236        lt_cv_prog_compiler_static_works_CXX=yes
15237      fi
15238    fi
15239    $RM -r conftest*
15240    LDFLAGS="$save_LDFLAGS"
15241
15242 fi
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15244 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15245
15246 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15247     :
15248 else
15249     lt_prog_compiler_static_CXX=
15250 fi
15251
15252
15253
15254
15255     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15257 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15258   $as_echo_n "(cached) " >&6
15259 else
15260   lt_cv_prog_compiler_c_o_CXX=no
15261    $RM -r conftest 2>/dev/null
15262    mkdir conftest
15263    cd conftest
15264    mkdir out
15265    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15266
15267    lt_compiler_flag="-o out/conftest2.$ac_objext"
15268    # Insert the option either (1) after the last *FLAGS variable, or
15269    # (2) before a word containing "conftest.", or (3) at the end.
15270    # Note that $ac_compile itself does not contain backslashes and begins
15271    # with a dollar sign (not a hyphen), so the echo should work correctly.
15272    lt_compile=`echo "$ac_compile" | $SED \
15273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15275    -e 's:$: $lt_compiler_flag:'`
15276    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15277    (eval "$lt_compile" 2>out/conftest.err)
15278    ac_status=$?
15279    cat out/conftest.err >&5
15280    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15281    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15282    then
15283      # The compiler can only warn and ignore the option if not recognized
15284      # So say no if there are warnings
15285      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15286      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15287      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15288        lt_cv_prog_compiler_c_o_CXX=yes
15289      fi
15290    fi
15291    chmod u+w . 2>&5
15292    $RM conftest*
15293    # SGI C++ compiler will create directory out/ii_files/ for
15294    # template instantiation
15295    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15296    $RM out/* && rmdir out
15297    cd ..
15298    $RM -r conftest
15299    $RM conftest*
15300
15301 fi
15302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15303 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15304
15305
15306
15307     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15308 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15309 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15310   $as_echo_n "(cached) " >&6
15311 else
15312   lt_cv_prog_compiler_c_o_CXX=no
15313    $RM -r conftest 2>/dev/null
15314    mkdir conftest
15315    cd conftest
15316    mkdir out
15317    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15318
15319    lt_compiler_flag="-o out/conftest2.$ac_objext"
15320    # Insert the option either (1) after the last *FLAGS variable, or
15321    # (2) before a word containing "conftest.", or (3) at the end.
15322    # Note that $ac_compile itself does not contain backslashes and begins
15323    # with a dollar sign (not a hyphen), so the echo should work correctly.
15324    lt_compile=`echo "$ac_compile" | $SED \
15325    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15326    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15327    -e 's:$: $lt_compiler_flag:'`
15328    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15329    (eval "$lt_compile" 2>out/conftest.err)
15330    ac_status=$?
15331    cat out/conftest.err >&5
15332    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15333    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15334    then
15335      # The compiler can only warn and ignore the option if not recognized
15336      # So say no if there are warnings
15337      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15338      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15339      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15340        lt_cv_prog_compiler_c_o_CXX=yes
15341      fi
15342    fi
15343    chmod u+w . 2>&5
15344    $RM conftest*
15345    # SGI C++ compiler will create directory out/ii_files/ for
15346    # template instantiation
15347    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15348    $RM out/* && rmdir out
15349    cd ..
15350    $RM -r conftest
15351    $RM conftest*
15352
15353 fi
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15355 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15356
15357
15358
15359
15360 hard_links="nottested"
15361 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15362   # do not overwrite the value of need_locks provided by the user
15363   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15364 $as_echo_n "checking if we can lock with hard links... " >&6; }
15365   hard_links=yes
15366   $RM conftest*
15367   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15368   touch conftest.a
15369   ln conftest.a conftest.b 2>&5 || hard_links=no
15370   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15371   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15372 $as_echo "$hard_links" >&6; }
15373   if test "$hard_links" = no; then
15374     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15375 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15376     need_locks=warn
15377   fi
15378 else
15379   need_locks=no
15380 fi
15381
15382
15383
15384     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15385 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15386
15387   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15388   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15389   case $host_os in
15390   aix[4-9]*)
15391     # If we're using GNU nm, then we don't want the "-C" option.
15392     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15393     # Also, AIX nm treats weak defined symbols like other global defined
15394     # symbols, whereas GNU nm marks them as "W".
15395     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15396       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'
15397     else
15398       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'
15399     fi
15400     ;;
15401   pw32*)
15402     export_symbols_cmds_CXX="$ltdll_cmds"
15403     ;;
15404   cygwin* | mingw* | cegcc*)
15405     case $cc_basename in
15406     cl*)
15407       exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15408       ;;
15409     *)
15410       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'
15411       exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15412       ;;
15413     esac
15414     ;;
15415   linux* | k*bsd*-gnu | gnu*)
15416     link_all_deplibs_CXX=no
15417     ;;
15418   *)
15419     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15420     ;;
15421   esac
15422
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15424 $as_echo "$ld_shlibs_CXX" >&6; }
15425 test "$ld_shlibs_CXX" = no && can_build_shared=no
15426
15427 with_gnu_ld_CXX=$with_gnu_ld
15428
15429
15430
15431
15432
15433
15434 #
15435 # Do we need to explicitly link libc?
15436 #
15437 case "x$archive_cmds_need_lc_CXX" in
15438 x|xyes)
15439   # Assume -lc should be added
15440   archive_cmds_need_lc_CXX=yes
15441
15442   if test "$enable_shared" = yes && test "$GCC" = yes; then
15443     case $archive_cmds_CXX in
15444     *'~'*)
15445       # FIXME: we may have to deal with multi-command sequences.
15446       ;;
15447     '$CC '*)
15448       # Test whether the compiler implicitly links with -lc since on some
15449       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15450       # to ld, don't add -lc before -lgcc.
15451       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15452 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15453 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15454   $as_echo_n "(cached) " >&6
15455 else
15456   $RM conftest*
15457         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15458
15459         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15460   (eval $ac_compile) 2>&5
15461   ac_status=$?
15462   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463   test $ac_status = 0; } 2>conftest.err; then
15464           soname=conftest
15465           lib=conftest
15466           libobjs=conftest.$ac_objext
15467           deplibs=
15468           wl=$lt_prog_compiler_wl_CXX
15469           pic_flag=$lt_prog_compiler_pic_CXX
15470           compiler_flags=-v
15471           linker_flags=-v
15472           verstring=
15473           output_objdir=.
15474           libname=conftest
15475           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15476           allow_undefined_flag_CXX=
15477           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15478   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15479   ac_status=$?
15480   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15481   test $ac_status = 0; }
15482           then
15483             lt_cv_archive_cmds_need_lc_CXX=no
15484           else
15485             lt_cv_archive_cmds_need_lc_CXX=yes
15486           fi
15487           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15488         else
15489           cat conftest.err 1>&5
15490         fi
15491         $RM conftest*
15492
15493 fi
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15495 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15496       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15497       ;;
15498     esac
15499   fi
15500   ;;
15501 esac
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15565 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15566
15567 library_names_spec=
15568 libname_spec='lib$name'
15569 soname_spec=
15570 shrext_cmds=".so"
15571 postinstall_cmds=
15572 postuninstall_cmds=
15573 finish_cmds=
15574 finish_eval=
15575 shlibpath_var=
15576 shlibpath_overrides_runpath=unknown
15577 version_type=none
15578 dynamic_linker="$host_os ld.so"
15579 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15580 need_lib_prefix=unknown
15581 hardcode_into_libs=no
15582
15583 # when you set need_version to no, make sure it does not cause -set_version
15584 # flags to be left without arguments
15585 need_version=unknown
15586
15587 case $host_os in
15588 aix3*)
15589   version_type=linux # correct to gnu/linux during the next big refactor
15590   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15591   shlibpath_var=LIBPATH
15592
15593   # AIX 3 has no versioning support, so we append a major version to the name.
15594   soname_spec='${libname}${release}${shared_ext}$major'
15595   ;;
15596
15597 aix[4-9]*)
15598   version_type=linux # correct to gnu/linux during the next big refactor
15599   need_lib_prefix=no
15600   need_version=no
15601   hardcode_into_libs=yes
15602   if test "$host_cpu" = ia64; then
15603     # AIX 5 supports IA64
15604     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15605     shlibpath_var=LD_LIBRARY_PATH
15606   else
15607     # With GCC up to 2.95.x, collect2 would create an import file
15608     # for dependence libraries.  The import file would start with
15609     # the line `#! .'.  This would cause the generated library to
15610     # depend on `.', always an invalid library.  This was fixed in
15611     # development snapshots of GCC prior to 3.0.
15612     case $host_os in
15613       aix4 | aix4.[01] | aix4.[01].*)
15614       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15615            echo ' yes '
15616            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15617         :
15618       else
15619         can_build_shared=no
15620       fi
15621       ;;
15622     esac
15623     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15624     # soname into executable. Probably we can add versioning support to
15625     # collect2, so additional links can be useful in future.
15626     if test "$aix_use_runtimelinking" = yes; then
15627       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15628       # instead of lib<name>.a to let people know that these are not
15629       # typical AIX shared libraries.
15630       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15631     else
15632       # We preserve .a as extension for shared libraries through AIX4.2
15633       # and later when we are not doing run time linking.
15634       library_names_spec='${libname}${release}.a $libname.a'
15635       soname_spec='${libname}${release}${shared_ext}$major'
15636     fi
15637     shlibpath_var=LIBPATH
15638   fi
15639   ;;
15640
15641 amigaos*)
15642   case $host_cpu in
15643   powerpc)
15644     # Since July 2007 AmigaOS4 officially supports .so libraries.
15645     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15646     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15647     ;;
15648   m68k)
15649     library_names_spec='$libname.ixlibrary $libname.a'
15650     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15651     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'
15652     ;;
15653   esac
15654   ;;
15655
15656 beos*)
15657   library_names_spec='${libname}${shared_ext}'
15658   dynamic_linker="$host_os ld.so"
15659   shlibpath_var=LIBRARY_PATH
15660   ;;
15661
15662 bsdi[45]*)
15663   version_type=linux # correct to gnu/linux during the next big refactor
15664   need_version=no
15665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15666   soname_spec='${libname}${release}${shared_ext}$major'
15667   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15668   shlibpath_var=LD_LIBRARY_PATH
15669   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15670   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15671   # the default ld.so.conf also contains /usr/contrib/lib and
15672   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15673   # libtool to hard-code these into programs
15674   ;;
15675
15676 cygwin* | mingw* | pw32* | cegcc*)
15677   version_type=windows
15678   shrext_cmds=".dll"
15679   need_version=no
15680   need_lib_prefix=no
15681
15682   case $GCC,$cc_basename in
15683   yes,*)
15684     # gcc
15685     library_names_spec='$libname.dll.a'
15686     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15687     postinstall_cmds='base_file=`basename \${file}`~
15688       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15689       dldir=$destdir/`dirname \$dlpath`~
15690       test -d \$dldir || mkdir -p \$dldir~
15691       $install_prog $dir/$dlname \$dldir/$dlname~
15692       chmod a+x \$dldir/$dlname~
15693       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15694         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15695       fi'
15696     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15697       dlpath=$dir/\$dldll~
15698        $RM \$dlpath'
15699     shlibpath_overrides_runpath=yes
15700
15701     case $host_os in
15702     cygwin*)
15703       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15704       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15705
15706       ;;
15707     mingw* | cegcc*)
15708       # MinGW DLLs use traditional 'lib' prefix
15709       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15710       ;;
15711     pw32*)
15712       # pw32 DLLs use 'pw' prefix rather than 'lib'
15713       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714       ;;
15715     esac
15716     dynamic_linker='Win32 ld.exe'
15717     ;;
15718
15719   *,cl*)
15720     # Native MSVC
15721     libname_spec='$name'
15722     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15723     library_names_spec='${libname}.dll.lib'
15724
15725     case $build_os in
15726     mingw*)
15727       sys_lib_search_path_spec=
15728       lt_save_ifs=$IFS
15729       IFS=';'
15730       for lt_path in $LIB
15731       do
15732         IFS=$lt_save_ifs
15733         # Let DOS variable expansion print the short 8.3 style file name.
15734         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15735         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15736       done
15737       IFS=$lt_save_ifs
15738       # Convert to MSYS style.
15739       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15740       ;;
15741     cygwin*)
15742       # Convert to unix form, then to dos form, then back to unix form
15743       # but this time dos style (no spaces!) so that the unix form looks
15744       # like /cygdrive/c/PROGRA~1:/cygdr...
15745       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15746       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15747       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15748       ;;
15749     *)
15750       sys_lib_search_path_spec="$LIB"
15751       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15752         # It is most probably a Windows format PATH.
15753         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15754       else
15755         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15756       fi
15757       # FIXME: find the short name or the path components, as spaces are
15758       # common. (e.g. "Program Files" -> "PROGRA~1")
15759       ;;
15760     esac
15761
15762     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15763     postinstall_cmds='base_file=`basename \${file}`~
15764       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15765       dldir=$destdir/`dirname \$dlpath`~
15766       test -d \$dldir || mkdir -p \$dldir~
15767       $install_prog $dir/$dlname \$dldir/$dlname'
15768     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15769       dlpath=$dir/\$dldll~
15770        $RM \$dlpath'
15771     shlibpath_overrides_runpath=yes
15772     dynamic_linker='Win32 link.exe'
15773     ;;
15774
15775   *)
15776     # Assume MSVC wrapper
15777     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15778     dynamic_linker='Win32 ld.exe'
15779     ;;
15780   esac
15781   # FIXME: first we should search . and the directory the executable is in
15782   shlibpath_var=PATH
15783   ;;
15784
15785 darwin* | rhapsody*)
15786   dynamic_linker="$host_os dyld"
15787   version_type=darwin
15788   need_lib_prefix=no
15789   need_version=no
15790   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15791   soname_spec='${libname}${release}${major}$shared_ext'
15792   shlibpath_overrides_runpath=yes
15793   shlibpath_var=DYLD_LIBRARY_PATH
15794   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15795
15796   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15797   ;;
15798
15799 dgux*)
15800   version_type=linux # correct to gnu/linux during the next big refactor
15801   need_lib_prefix=no
15802   need_version=no
15803   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15804   soname_spec='${libname}${release}${shared_ext}$major'
15805   shlibpath_var=LD_LIBRARY_PATH
15806   ;;
15807
15808 freebsd* | dragonfly*)
15809   # DragonFly does not have aout.  When/if they implement a new
15810   # versioning mechanism, adjust this.
15811   if test -x /usr/bin/objformat; then
15812     objformat=`/usr/bin/objformat`
15813   else
15814     case $host_os in
15815     freebsd[23].*) objformat=aout ;;
15816     *) objformat=elf ;;
15817     esac
15818   fi
15819   version_type=freebsd-$objformat
15820   case $version_type in
15821     freebsd-elf*)
15822       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15823       need_version=no
15824       need_lib_prefix=no
15825       ;;
15826     freebsd-*)
15827       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15828       need_version=yes
15829       ;;
15830   esac
15831   shlibpath_var=LD_LIBRARY_PATH
15832   case $host_os in
15833   freebsd2.*)
15834     shlibpath_overrides_runpath=yes
15835     ;;
15836   freebsd3.[01]* | freebsdelf3.[01]*)
15837     shlibpath_overrides_runpath=yes
15838     hardcode_into_libs=yes
15839     ;;
15840   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15841   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15842     shlibpath_overrides_runpath=no
15843     hardcode_into_libs=yes
15844     ;;
15845   *) # from 4.6 on, and DragonFly
15846     shlibpath_overrides_runpath=yes
15847     hardcode_into_libs=yes
15848     ;;
15849   esac
15850   ;;
15851
15852 haiku*)
15853   version_type=linux # correct to gnu/linux during the next big refactor
15854   need_lib_prefix=no
15855   need_version=no
15856   dynamic_linker="$host_os runtime_loader"
15857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15858   soname_spec='${libname}${release}${shared_ext}$major'
15859   shlibpath_var=LIBRARY_PATH
15860   shlibpath_overrides_runpath=yes
15861   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15862   hardcode_into_libs=yes
15863   ;;
15864
15865 hpux9* | hpux10* | hpux11*)
15866   # Give a soname corresponding to the major version so that dld.sl refuses to
15867   # link against other versions.
15868   version_type=sunos
15869   need_lib_prefix=no
15870   need_version=no
15871   case $host_cpu in
15872   ia64*)
15873     shrext_cmds='.so'
15874     hardcode_into_libs=yes
15875     dynamic_linker="$host_os dld.so"
15876     shlibpath_var=LD_LIBRARY_PATH
15877     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15878     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15879     soname_spec='${libname}${release}${shared_ext}$major'
15880     if test "X$HPUX_IA64_MODE" = X32; then
15881       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15882     else
15883       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15884     fi
15885     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15886     ;;
15887   hppa*64*)
15888     shrext_cmds='.sl'
15889     hardcode_into_libs=yes
15890     dynamic_linker="$host_os dld.sl"
15891     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15892     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15894     soname_spec='${libname}${release}${shared_ext}$major'
15895     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15896     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15897     ;;
15898   *)
15899     shrext_cmds='.sl'
15900     dynamic_linker="$host_os dld.sl"
15901     shlibpath_var=SHLIB_PATH
15902     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904     soname_spec='${libname}${release}${shared_ext}$major'
15905     ;;
15906   esac
15907   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15908   postinstall_cmds='chmod 555 $lib'
15909   # or fails outright, so override atomically:
15910   install_override_mode=555
15911   ;;
15912
15913 interix[3-9]*)
15914   version_type=linux # correct to gnu/linux during the next big refactor
15915   need_lib_prefix=no
15916   need_version=no
15917   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15918   soname_spec='${libname}${release}${shared_ext}$major'
15919   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15920   shlibpath_var=LD_LIBRARY_PATH
15921   shlibpath_overrides_runpath=no
15922   hardcode_into_libs=yes
15923   ;;
15924
15925 irix5* | irix6* | nonstopux*)
15926   case $host_os in
15927     nonstopux*) version_type=nonstopux ;;
15928     *)
15929         if test "$lt_cv_prog_gnu_ld" = yes; then
15930                 version_type=linux # correct to gnu/linux during the next big refactor
15931         else
15932                 version_type=irix
15933         fi ;;
15934   esac
15935   need_lib_prefix=no
15936   need_version=no
15937   soname_spec='${libname}${release}${shared_ext}$major'
15938   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15939   case $host_os in
15940   irix5* | nonstopux*)
15941     libsuff= shlibsuff=
15942     ;;
15943   *)
15944     case $LD in # libtool.m4 will add one of these switches to LD
15945     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15946       libsuff= shlibsuff= libmagic=32-bit;;
15947     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15948       libsuff=32 shlibsuff=N32 libmagic=N32;;
15949     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15950       libsuff=64 shlibsuff=64 libmagic=64-bit;;
15951     *) libsuff= shlibsuff= libmagic=never-match;;
15952     esac
15953     ;;
15954   esac
15955   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15956   shlibpath_overrides_runpath=no
15957   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15958   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15959   hardcode_into_libs=yes
15960   ;;
15961
15962 # No shared lib support for Linux oldld, aout, or coff.
15963 linux*oldld* | linux*aout* | linux*coff*)
15964   dynamic_linker=no
15965   ;;
15966
15967 # This must be glibc/ELF.
15968 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15969   version_type=linux # correct to gnu/linux during the next big refactor
15970   need_lib_prefix=no
15971   need_version=no
15972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15973   soname_spec='${libname}${release}${shared_ext}$major'
15974   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15975   shlibpath_var=LD_LIBRARY_PATH
15976   shlibpath_overrides_runpath=no
15977
15978   # Some binutils ld are patched to set DT_RUNPATH
15979   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15980   $as_echo_n "(cached) " >&6
15981 else
15982   lt_cv_shlibpath_overrides_runpath=no
15983     save_LDFLAGS=$LDFLAGS
15984     save_libdir=$libdir
15985     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15986          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15987     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h.  */
15989
15990 int
15991 main ()
15992 {
15993
15994   ;
15995   return 0;
15996 }
15997 _ACEOF
15998 if ac_fn_cxx_try_link "$LINENO"; then :
15999   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16000   lt_cv_shlibpath_overrides_runpath=yes
16001 fi
16002 fi
16003 rm -f core conftest.err conftest.$ac_objext \
16004     conftest$ac_exeext conftest.$ac_ext
16005     LDFLAGS=$save_LDFLAGS
16006     libdir=$save_libdir
16007
16008 fi
16009
16010   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16011
16012   # This implies no fast_install, which is unacceptable.
16013   # Some rework will be needed to allow for fast_install
16014   # before this can be enabled.
16015   hardcode_into_libs=yes
16016
16017   # Append ld.so.conf contents to the search path
16018   if test -f /etc/ld.so.conf; then
16019     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' ' '`
16020     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16021   fi
16022
16023   # We used to test for /lib/ld.so.1 and disable shared libraries on
16024   # powerpc, because MkLinux only supported shared libraries with the
16025   # GNU dynamic linker.  Since this was broken with cross compilers,
16026   # most powerpc-linux boxes support dynamic linking these days and
16027   # people can always --disable-shared, the test was removed, and we
16028   # assume the GNU/Linux dynamic linker is in use.
16029   dynamic_linker='GNU/Linux ld.so'
16030   ;;
16031
16032 netbsdelf*-gnu)
16033   version_type=linux
16034   need_lib_prefix=no
16035   need_version=no
16036   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16037   soname_spec='${libname}${release}${shared_ext}$major'
16038   shlibpath_var=LD_LIBRARY_PATH
16039   shlibpath_overrides_runpath=no
16040   hardcode_into_libs=yes
16041   dynamic_linker='NetBSD ld.elf_so'
16042   ;;
16043
16044 netbsd*)
16045   version_type=sunos
16046   need_lib_prefix=no
16047   need_version=no
16048   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16049     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16050     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16051     dynamic_linker='NetBSD (a.out) ld.so'
16052   else
16053     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16054     soname_spec='${libname}${release}${shared_ext}$major'
16055     dynamic_linker='NetBSD ld.elf_so'
16056   fi
16057   shlibpath_var=LD_LIBRARY_PATH
16058   shlibpath_overrides_runpath=yes
16059   hardcode_into_libs=yes
16060   ;;
16061
16062 newsos6)
16063   version_type=linux # correct to gnu/linux during the next big refactor
16064   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16065   shlibpath_var=LD_LIBRARY_PATH
16066   shlibpath_overrides_runpath=yes
16067   ;;
16068
16069 *nto* | *qnx*)
16070   version_type=qnx
16071   need_lib_prefix=no
16072   need_version=no
16073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16074   soname_spec='${libname}${release}${shared_ext}$major'
16075   shlibpath_var=LD_LIBRARY_PATH
16076   shlibpath_overrides_runpath=no
16077   hardcode_into_libs=yes
16078   dynamic_linker='ldqnx.so'
16079   ;;
16080
16081 openbsd*)
16082   version_type=sunos
16083   sys_lib_dlsearch_path_spec="/usr/lib"
16084   need_lib_prefix=no
16085   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16086   case $host_os in
16087     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16088     *)                          need_version=no  ;;
16089   esac
16090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16091   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16092   shlibpath_var=LD_LIBRARY_PATH
16093   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16094     case $host_os in
16095       openbsd2.[89] | openbsd2.[89].*)
16096         shlibpath_overrides_runpath=no
16097         ;;
16098       *)
16099         shlibpath_overrides_runpath=yes
16100         ;;
16101       esac
16102   else
16103     shlibpath_overrides_runpath=yes
16104   fi
16105   ;;
16106
16107 os2*)
16108   libname_spec='$name'
16109   shrext_cmds=".dll"
16110   need_lib_prefix=no
16111   library_names_spec='$libname${shared_ext} $libname.a'
16112   dynamic_linker='OS/2 ld.exe'
16113   shlibpath_var=LIBPATH
16114   ;;
16115
16116 osf3* | osf4* | osf5*)
16117   version_type=osf
16118   need_lib_prefix=no
16119   need_version=no
16120   soname_spec='${libname}${release}${shared_ext}$major'
16121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16122   shlibpath_var=LD_LIBRARY_PATH
16123   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16124   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16125   ;;
16126
16127 rdos*)
16128   dynamic_linker=no
16129   ;;
16130
16131 solaris*)
16132   version_type=linux # correct to gnu/linux during the next big refactor
16133   need_lib_prefix=no
16134   need_version=no
16135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16136   soname_spec='${libname}${release}${shared_ext}$major'
16137   shlibpath_var=LD_LIBRARY_PATH
16138   shlibpath_overrides_runpath=yes
16139   hardcode_into_libs=yes
16140   # ldd complains unless libraries are executable
16141   postinstall_cmds='chmod +x $lib'
16142   ;;
16143
16144 sunos4*)
16145   version_type=sunos
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16147   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16148   shlibpath_var=LD_LIBRARY_PATH
16149   shlibpath_overrides_runpath=yes
16150   if test "$with_gnu_ld" = yes; then
16151     need_lib_prefix=no
16152   fi
16153   need_version=yes
16154   ;;
16155
16156 sysv4 | sysv4.3*)
16157   version_type=linux # correct to gnu/linux during the next big refactor
16158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16159   soname_spec='${libname}${release}${shared_ext}$major'
16160   shlibpath_var=LD_LIBRARY_PATH
16161   case $host_vendor in
16162     sni)
16163       shlibpath_overrides_runpath=no
16164       need_lib_prefix=no
16165       runpath_var=LD_RUN_PATH
16166       ;;
16167     siemens)
16168       need_lib_prefix=no
16169       ;;
16170     motorola)
16171       need_lib_prefix=no
16172       need_version=no
16173       shlibpath_overrides_runpath=no
16174       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16175       ;;
16176   esac
16177   ;;
16178
16179 sysv4*MP*)
16180   if test -d /usr/nec ;then
16181     version_type=linux # correct to gnu/linux during the next big refactor
16182     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16183     soname_spec='$libname${shared_ext}.$major'
16184     shlibpath_var=LD_LIBRARY_PATH
16185   fi
16186   ;;
16187
16188 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16189   version_type=freebsd-elf
16190   need_lib_prefix=no
16191   need_version=no
16192   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16193   soname_spec='${libname}${release}${shared_ext}$major'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   shlibpath_overrides_runpath=yes
16196   hardcode_into_libs=yes
16197   if test "$with_gnu_ld" = yes; then
16198     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16199   else
16200     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16201     case $host_os in
16202       sco3.2v5*)
16203         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16204         ;;
16205     esac
16206   fi
16207   sys_lib_dlsearch_path_spec='/usr/lib'
16208   ;;
16209
16210 tpf*)
16211   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16212   version_type=linux # correct to gnu/linux during the next big refactor
16213   need_lib_prefix=no
16214   need_version=no
16215   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16216   shlibpath_var=LD_LIBRARY_PATH
16217   shlibpath_overrides_runpath=no
16218   hardcode_into_libs=yes
16219   ;;
16220
16221 uts4*)
16222   version_type=linux # correct to gnu/linux during the next big refactor
16223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16224   soname_spec='${libname}${release}${shared_ext}$major'
16225   shlibpath_var=LD_LIBRARY_PATH
16226   ;;
16227
16228 *)
16229   dynamic_linker=no
16230   ;;
16231 esac
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16233 $as_echo "$dynamic_linker" >&6; }
16234 test "$dynamic_linker" = no && can_build_shared=no
16235
16236 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16237 if test "$GCC" = yes; then
16238   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16239 fi
16240
16241 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16242   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16243 fi
16244 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16245   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16246 fi
16247
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16286 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16287 hardcode_action_CXX=
16288 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16289    test -n "$runpath_var_CXX" ||
16290    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16291
16292   # We can hardcode non-existent directories.
16293   if test "$hardcode_direct_CXX" != no &&
16294      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16295      # have to relink, otherwise we might link with an installed library
16296      # when we should be linking with a yet-to-be-installed one
16297      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16298      test "$hardcode_minus_L_CXX" != no; then
16299     # Linking always hardcodes the temporary library directory.
16300     hardcode_action_CXX=relink
16301   else
16302     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16303     hardcode_action_CXX=immediate
16304   fi
16305 else
16306   # We cannot hardcode anything, or else we can only hardcode existing
16307   # directories.
16308   hardcode_action_CXX=unsupported
16309 fi
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16311 $as_echo "$hardcode_action_CXX" >&6; }
16312
16313 if test "$hardcode_action_CXX" = relink ||
16314    test "$inherit_rpath_CXX" = yes; then
16315   # Fast installation is not supported
16316   enable_fast_install=no
16317 elif test "$shlibpath_overrides_runpath" = yes ||
16318      test "$enable_shared" = no; then
16319   # Fast installation is not necessary
16320   enable_fast_install=needless
16321 fi
16322
16323
16324
16325
16326
16327
16328
16329   fi # test -n "$compiler"
16330
16331   CC=$lt_save_CC
16332   CFLAGS=$lt_save_CFLAGS
16333   LDCXX=$LD
16334   LD=$lt_save_LD
16335   GCC=$lt_save_GCC
16336   with_gnu_ld=$lt_save_with_gnu_ld
16337   lt_cv_path_LDCXX=$lt_cv_path_LD
16338   lt_cv_path_LD=$lt_save_path_LD
16339   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16340   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16341 fi # test "$_lt_caught_CXX_error" != yes
16342
16343 ac_ext=c
16344 ac_cpp='$CPP $CPPFLAGS'
16345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363         ac_config_commands="$ac_config_commands libtool"
16364
16365
16366
16367
16368 # Only expand once:
16369
16370
16371
16372 LT_DLLOADERS=
16373
16374
16375 ac_ext=c
16376 ac_cpp='$CPP $CPPFLAGS'
16377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16380
16381
16382 LIBADD_DLOPEN=
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
16384 $as_echo_n "checking for library containing dlopen... " >&6; }
16385 if ${ac_cv_search_dlopen+:} false; then :
16386   $as_echo_n "(cached) " >&6
16387 else
16388   ac_func_search_save_LIBS=$LIBS
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390 /* end confdefs.h.  */
16391
16392 /* Override any GCC internal prototype to avoid an error.
16393    Use char because int might match the return type of a GCC
16394    builtin and then its argument prototype would still apply.  */
16395 #ifdef __cplusplus
16396 extern "C"
16397 #endif
16398 char dlopen ();
16399 int
16400 main ()
16401 {
16402 return dlopen ();
16403   ;
16404   return 0;
16405 }
16406 _ACEOF
16407 for ac_lib in '' dl; do
16408   if test -z "$ac_lib"; then
16409     ac_res="none required"
16410   else
16411     ac_res=-l$ac_lib
16412     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
16413   fi
16414   if ac_fn_c_try_link "$LINENO"; then :
16415   ac_cv_search_dlopen=$ac_res
16416 fi
16417 rm -f core conftest.err conftest.$ac_objext \
16418     conftest$ac_exeext
16419   if ${ac_cv_search_dlopen+:} false; then :
16420   break
16421 fi
16422 done
16423 if ${ac_cv_search_dlopen+:} false; then :
16424
16425 else
16426   ac_cv_search_dlopen=no
16427 fi
16428 rm conftest.$ac_ext
16429 LIBS=$ac_func_search_save_LIBS
16430 fi
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
16432 $as_echo "$ac_cv_search_dlopen" >&6; }
16433 ac_res=$ac_cv_search_dlopen
16434 if test "$ac_res" != no; then :
16435   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16436
16437 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16438
16439         if test "$ac_cv_search_dlopen" != "none required" ; then
16440           LIBADD_DLOPEN="-ldl"
16441         fi
16442         libltdl_cv_lib_dl_dlopen="yes"
16443         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16444 else
16445   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16446 /* end confdefs.h.  */
16447 #if HAVE_DLFCN_H
16448 #  include <dlfcn.h>
16449 #endif
16450
16451 int
16452 main ()
16453 {
16454 dlopen(0, 0);
16455   ;
16456   return 0;
16457 }
16458 _ACEOF
16459 if ac_fn_c_try_link "$LINENO"; then :
16460
16461 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16462
16463             libltdl_cv_func_dlopen="yes"
16464             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16465 else
16466   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16467 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
16468 if ${ac_cv_lib_svld_dlopen+:} false; then :
16469   $as_echo_n "(cached) " >&6
16470 else
16471   ac_check_lib_save_LIBS=$LIBS
16472 LIBS="-lsvld  $LIBS"
16473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16474 /* end confdefs.h.  */
16475
16476 /* Override any GCC internal prototype to avoid an error.
16477    Use char because int might match the return type of a GCC
16478    builtin and then its argument prototype would still apply.  */
16479 #ifdef __cplusplus
16480 extern "C"
16481 #endif
16482 char dlopen ();
16483 int
16484 main ()
16485 {
16486 return dlopen ();
16487   ;
16488   return 0;
16489 }
16490 _ACEOF
16491 if ac_fn_c_try_link "$LINENO"; then :
16492   ac_cv_lib_svld_dlopen=yes
16493 else
16494   ac_cv_lib_svld_dlopen=no
16495 fi
16496 rm -f core conftest.err conftest.$ac_objext \
16497     conftest$ac_exeext conftest.$ac_ext
16498 LIBS=$ac_check_lib_save_LIBS
16499 fi
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
16501 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
16502 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
16503
16504 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
16505
16506                 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
16507                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
16508 fi
16509
16510 fi
16511 rm -f core conftest.err conftest.$ac_objext \
16512     conftest$ac_exeext conftest.$ac_ext
16513 fi
16514
16515 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
16516 then
16517   lt_save_LIBS="$LIBS"
16518   LIBS="$LIBS $LIBADD_DLOPEN"
16519   for ac_func in dlerror
16520 do :
16521   ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
16522 if test "x$ac_cv_func_dlerror" = xyes; then :
16523   cat >>confdefs.h <<_ACEOF
16524 #define HAVE_DLERROR 1
16525 _ACEOF
16526
16527 fi
16528 done
16529
16530   LIBS="$lt_save_LIBS"
16531 fi
16532
16533
16534 LIBADD_SHL_LOAD=
16535 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
16536 if test "x$ac_cv_func_shl_load" = xyes; then :
16537
16538 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16539
16540         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16541 else
16542   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16543 $as_echo_n "checking for shl_load in -ldld... " >&6; }
16544 if ${ac_cv_lib_dld_shl_load+:} false; then :
16545   $as_echo_n "(cached) " >&6
16546 else
16547   ac_check_lib_save_LIBS=$LIBS
16548 LIBS="-ldld  $LIBS"
16549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16550 /* end confdefs.h.  */
16551
16552 /* Override any GCC internal prototype to avoid an error.
16553    Use char because int might match the return type of a GCC
16554    builtin and then its argument prototype would still apply.  */
16555 #ifdef __cplusplus
16556 extern "C"
16557 #endif
16558 char shl_load ();
16559 int
16560 main ()
16561 {
16562 return shl_load ();
16563   ;
16564   return 0;
16565 }
16566 _ACEOF
16567 if ac_fn_c_try_link "$LINENO"; then :
16568   ac_cv_lib_dld_shl_load=yes
16569 else
16570   ac_cv_lib_dld_shl_load=no
16571 fi
16572 rm -f core conftest.err conftest.$ac_objext \
16573     conftest$ac_exeext conftest.$ac_ext
16574 LIBS=$ac_check_lib_save_LIBS
16575 fi
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16577 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
16578 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
16579
16580 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
16581
16582             LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
16583             LIBADD_SHL_LOAD="-ldld"
16584 fi
16585
16586 fi
16587
16588
16589
16590 case $host_os in
16591 darwin[1567].*)
16592 # We only want this for pre-Mac OS X 10.4.
16593   ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
16594 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
16595
16596 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
16597
16598         LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
16599 fi
16600
16601   ;;
16602 beos*)
16603   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
16604   ;;
16605 cygwin* | mingw* | os2* | pw32*)
16606   ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
16607 "
16608 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
16609   ac_have_decl=1
16610 else
16611   ac_have_decl=0
16612 fi
16613
16614 cat >>confdefs.h <<_ACEOF
16615 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
16616 _ACEOF
16617
16618   LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
16619   ;;
16620 esac
16621
16622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
16623 $as_echo_n "checking for dld_link in -ldld... " >&6; }
16624 if ${ac_cv_lib_dld_dld_link+:} false; then :
16625   $as_echo_n "(cached) " >&6
16626 else
16627   ac_check_lib_save_LIBS=$LIBS
16628 LIBS="-ldld  $LIBS"
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h.  */
16631
16632 /* Override any GCC internal prototype to avoid an error.
16633    Use char because int might match the return type of a GCC
16634    builtin and then its argument prototype would still apply.  */
16635 #ifdef __cplusplus
16636 extern "C"
16637 #endif
16638 char dld_link ();
16639 int
16640 main ()
16641 {
16642 return dld_link ();
16643   ;
16644   return 0;
16645 }
16646 _ACEOF
16647 if ac_fn_c_try_link "$LINENO"; then :
16648   ac_cv_lib_dld_dld_link=yes
16649 else
16650   ac_cv_lib_dld_dld_link=no
16651 fi
16652 rm -f core conftest.err conftest.$ac_objext \
16653     conftest$ac_exeext conftest.$ac_ext
16654 LIBS=$ac_check_lib_save_LIBS
16655 fi
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16657 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
16658 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
16659
16660 $as_echo "#define HAVE_DLD 1" >>confdefs.h
16661
16662                 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
16663 fi
16664
16665
16666
16667
16668 LT_DLPREOPEN=
16669 if test -n "$LT_DLLOADERS"
16670 then
16671   for lt_loader in $LT_DLLOADERS; do
16672     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
16673   done
16674
16675 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
16676
16677 fi
16678
16679
16680 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
16681
16682
16683 ac_ext=c
16684 ac_cpp='$CPP $CPPFLAGS'
16685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16688
16689
16690
16691
16692 if test x$use_libtool != xno; then
16693    DEFAULT_OBJECT_TYPE=".lo"
16694    DEFAULT_ARCHIVE_TYPE=".la"
16695    DEFAULT_SHARED_OBJECT_TYPE=".la"
16696    LIBTOOL="\$(LIBTOOL)"
16697    LIBTOOL_INSTALL_TARGET="libtool-install"
16698    LIBTOOL_UNINSTALL_TARGET="libtool-uninstall"
16699    LIBTOOL_CLEAN_TARGET="libtool-clean"
16700    QMAKE_LIBTOOL="${BUILD_DIR}/libtool"
16701    FD_PLUGIN_DIR="src/plugins/fd"
16702    have_plugins=yes
16703 else
16704    DEFAULT_OBJECT_TYPE=".o"
16705    DEFAULT_ARCHIVE_TYPE=".a"
16706    DEFAULT_SHARED_OBJECT_TYPE=".so"
16707    LIBTOOL="# \$(LIBTOOL)"
16708    LIBTOOL_INSTALL_TARGET=""
16709    LIBTOOL_UNINSTALL_TARGET=""
16710    LIBTOOL_CLEAN_TARGET=""
16711    QMAKE_LIBTOOL="# ${BUILD_DIR}/libtool"
16712    FD_PLUGIN_DIR=""
16713    have_plugins=no
16714 fi
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726 # Check whether --enable-includes was given.
16727 if test "${enable_includes+set}" = set; then :
16728   enableval=$enable_includes;
16729        if test x$enableval = xyes; then
16730           install_includes=yes
16731        fi
16732
16733
16734 fi
16735
16736
16737
16738 if test x$use_libtool != xno -a x$install_includes = xyes; then
16739    INCLUDE_INSTALL_TARGET="install-includes"
16740    INCLUDE_UNINSTALL_TARGET="uninstall-includes"
16741 else
16742    INCLUDE_INSTALL_TARGET=""
16743    INCLUDE_UNINSTALL_TARGET=""
16744 fi
16745
16746
16747
16748
16749
16750 case $host_os in
16751   *cygwin* ) CYGWIN=yes;;
16752          * ) CYGWIN=no;;
16753 esac
16754
16755 if test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
16756 then
16757
16758
16759 if $TRUEPRG; then
16760   HAVE_SUN_OS_TRUE=
16761   HAVE_SUN_OS_FALSE='#'
16762 else
16763   HAVE_SUN_OS_TRUE='#'
16764   HAVE_SUN_OS_FALSE=
16765 fi
16766         $as_echo "#define HAVE_SUN_OS 1" >>confdefs.h
16767
16768 else
16769
16770
16771 if $FALSEPRG; then
16772   HAVE_SUN_OS_TRUE=
16773   HAVE_SUN_OS_FALSE='#'
16774 else
16775   HAVE_SUN_OS_TRUE='#'
16776   HAVE_SUN_OS_FALSE=
16777 fi
16778 fi
16779
16780 if test $HAVE_UNAME=yes -a x`uname -s` = xGNU
16781 then
16782
16783
16784 if $TRUEPRG; then
16785   HAVE_HURD_OS_TRUE=
16786   HAVE_HURD_OS_FALSE='#'
16787 else
16788   HAVE_HURD_OS_TRUE='#'
16789   HAVE_HURD_OS_FALSE=
16790 fi
16791         $as_echo "#define HAVE_HURD_OS 1" >>confdefs.h
16792
16793 else
16794
16795
16796 if $FALSEPRG; then
16797   HAVE_HURD_OS_TRUE=
16798   HAVE_HURD_OS_FALSE='#'
16799 else
16800   HAVE_HURD_OS_TRUE='#'
16801   HAVE_HURD_OS_FALSE=
16802 fi
16803 fi
16804
16805 if test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
16806 then
16807
16808
16809 if $TRUEPRG; then
16810   HAVE_OSF1_OS_TRUE=
16811   HAVE_OSF1_OS_FALSE='#'
16812 else
16813   HAVE_OSF1_OS_TRUE='#'
16814   HAVE_OSF1_OS_FALSE=
16815 fi
16816         $as_echo "#define HAVE_OSF1_OS 1" >>confdefs.h
16817
16818 else
16819
16820
16821 if $FALSEPRG; then
16822   HAVE_OSF1_OS_TRUE=
16823   HAVE_OSF1_OS_FALSE='#'
16824 else
16825   HAVE_OSF1_OS_TRUE='#'
16826   HAVE_OSF1_OS_FALSE=
16827 fi
16828 fi
16829
16830 if test $HAVE_UNAME=yes -a x`uname -s` = xAIX
16831 then
16832
16833
16834 if $TRUEPRG; then
16835   HAVE_AIX_OS_TRUE=
16836   HAVE_AIX_OS_FALSE='#'
16837 else
16838   HAVE_AIX_OS_TRUE='#'
16839   HAVE_AIX_OS_FALSE=
16840 fi
16841         $as_echo "#define HAVE_AIX_OS 1" >>confdefs.h
16842
16843 else
16844
16845
16846 if $FALSEPRG; then
16847   HAVE_AIX_OS_TRUE=
16848   HAVE_AIX_OS_FALSE='#'
16849 else
16850   HAVE_AIX_OS_TRUE='#'
16851   HAVE_AIX_OS_FALSE=
16852 fi
16853 fi
16854
16855 if test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
16856 then
16857
16858
16859 if $TRUEPRG; then
16860   HAVE_HPUX_OS_TRUE=
16861   HAVE_HPUX_OS_FALSE='#'
16862 else
16863   HAVE_HPUX_OS_TRUE='#'
16864   HAVE_HPUX_OS_FALSE=
16865 fi
16866         $as_echo "#define HAVE_HPUX_OS 1" >>confdefs.h
16867
16868 else
16869
16870
16871 if $FALSEPRG; then
16872   HAVE_HPUX_OS_TRUE=
16873   HAVE_HPUX_OS_FALSE='#'
16874 else
16875   HAVE_HPUX_OS_TRUE='#'
16876   HAVE_HPUX_OS_FALSE=
16877 fi
16878 fi
16879
16880 if test $HAVE_UNAME=yes -a x`uname -s` = xLinux
16881 then
16882
16883
16884 if $TRUEPRG; then
16885   HAVE_LINUX_OS_TRUE=
16886   HAVE_LINUX_OS_FALSE='#'
16887 else
16888   HAVE_LINUX_OS_TRUE='#'
16889   HAVE_LINUX_OS_FALSE=
16890 fi
16891         $as_echo "#define HAVE_LINUX_OS 1" >>confdefs.h
16892
16893 else
16894
16895
16896 if $FALSEPRG; then
16897   HAVE_LINUX_OS_TRUE=
16898   HAVE_LINUX_OS_FALSE='#'
16899 else
16900   HAVE_LINUX_OS_TRUE='#'
16901   HAVE_LINUX_OS_FALSE=
16902 fi
16903 fi
16904
16905 if test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
16906 then
16907
16908
16909 if $TRUEPRG; then
16910   HAVE_FREEBSD_OS_TRUE=
16911   HAVE_FREEBSD_OS_FALSE='#'
16912 else
16913   HAVE_FREEBSD_OS_TRUE='#'
16914   HAVE_FREEBSD_OS_FALSE=
16915 fi
16916         $as_echo "#define HAVE_FREEBSD_OS 1" >>confdefs.h
16917
16918 else
16919
16920
16921 if $FALSEPRG; then
16922   HAVE_FREEBSD_OS_TRUE=
16923   HAVE_FREEBSD_OS_FALSE='#'
16924 else
16925   HAVE_FREEBSD_OS_TRUE='#'
16926   HAVE_FREEBSD_OS_FALSE=
16927 fi
16928 fi
16929
16930 if test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
16931 then
16932
16933
16934 if $TRUEPRG; then
16935   HAVE_NETBSD_OS_TRUE=
16936   HAVE_NETBSD_OS_FALSE='#'
16937 else
16938   HAVE_NETBSD_OS_TRUE='#'
16939   HAVE_NETBSD_OS_FALSE=
16940 fi
16941         $as_echo "#define HAVE_NETBSD_OS 1" >>confdefs.h
16942
16943 else
16944
16945
16946 if $FALSEPRG; then
16947   HAVE_NETBSD_OS_TRUE=
16948   HAVE_NETBSD_OS_FALSE='#'
16949 else
16950   HAVE_NETBSD_OS_TRUE='#'
16951   HAVE_NETBSD_OS_FALSE=
16952 fi
16953 fi
16954
16955 if test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
16956 then
16957
16958
16959 if $TRUEPRG; then
16960   HAVE_OPENBSD_OS_TRUE=
16961   HAVE_OPENBSD_OS_FALSE='#'
16962 else
16963   HAVE_OPENBSD_OS_TRUE='#'
16964   HAVE_OPENBSD_OS_FALSE=
16965 fi
16966         $as_echo "#define HAVE_OPENBSD_OS 1" >>confdefs.h
16967
16968 else
16969
16970
16971 if $FALSEPRG; then
16972   HAVE_OPENBSD_OS_TRUE=
16973   HAVE_OPENBSD_OS_FALSE='#'
16974 else
16975   HAVE_OPENBSD_OS_TRUE='#'
16976   HAVE_OPENBSD_OS_FALSE=
16977 fi
16978 fi
16979
16980 if test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
16981 then
16982
16983
16984 if $TRUEPRG; then
16985   HAVE_BSDI_OS_TRUE=
16986   HAVE_BSDI_OS_FALSE='#'
16987 else
16988   HAVE_BSDI_OS_TRUE='#'
16989   HAVE_BSDI_OS_FALSE=
16990 fi
16991         $as_echo "#define HAVE_BSDI_OS 1" >>confdefs.h
16992
16993 else
16994
16995
16996 if $FALSEPRG; then
16997   HAVE_BSDI_OS_TRUE=
16998   HAVE_BSDI_OS_FALSE='#'
16999 else
17000   HAVE_BSDI_OS_TRUE='#'
17001   HAVE_BSDI_OS_FALSE=
17002 fi
17003 fi
17004
17005 if test $HAVE_UNAME=yes -a x`uname -s` = xSGI
17006 then
17007
17008
17009 if $TRUEPRG; then
17010   HAVE_SGI_OS_TRUE=
17011   HAVE_SGI_OS_FALSE='#'
17012 else
17013   HAVE_SGI_OS_TRUE='#'
17014   HAVE_SGI_OS_FALSE=
17015 fi
17016         $as_echo "#define HAVE_SGI_OS 1" >>confdefs.h
17017
17018 else
17019
17020
17021 if $FALSEPRG; then
17022   HAVE_SGI_OS_TRUE=
17023   HAVE_SGI_OS_FALSE='#'
17024 else
17025   HAVE_SGI_OS_TRUE='#'
17026   HAVE_SGI_OS_FALSE=
17027 fi
17028 fi
17029
17030 if test $HAVE_UNAME=yes -a x`uname -s` = xIRIX -o x`uname -s` = xIRIX64
17031 then
17032
17033
17034 if $TRUEPRG; then
17035   HAVE_IRIX_OS_TRUE=
17036   HAVE_IRIX_OS_FALSE='#'
17037 else
17038   HAVE_IRIX_OS_TRUE='#'
17039   HAVE_IRIX_OS_FALSE=
17040 fi
17041         $as_echo "#define HAVE_IRIX_OS 1" >>confdefs.h
17042
17043 else
17044
17045
17046 if $FALSEPRG; then
17047   HAVE_IRIX_OS_TRUE=
17048   HAVE_IRIX_OS_FALSE='#'
17049 else
17050   HAVE_IRIX_OS_TRUE='#'
17051   HAVE_IRIX_OS_FALSE=
17052 fi
17053 fi
17054
17055 if test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17056 then
17057
17058
17059 if $TRUEPRG; then
17060   HAVE_DARWIN_OS_TRUE=
17061   HAVE_DARWIN_OS_FALSE='#'
17062 else
17063   HAVE_DARWIN_OS_TRUE='#'
17064   HAVE_DARWIN_OS_FALSE=
17065 fi
17066     $as_echo "#define HAVE_DARWIN_OS 1" >>confdefs.h
17067
17068 else
17069
17070
17071 if $FALSEPRG; then
17072   HAVE_DARWIN_OS_TRUE=
17073   HAVE_DARWIN_OS_FALSE='#'
17074 else
17075   HAVE_DARWIN_OS_TRUE='#'
17076   HAVE_DARWIN_OS_FALSE=
17077 fi
17078 fi
17079
17080
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Operating System Distribution" >&5
17082 $as_echo_n "checking for Operating System Distribution... " >&6; }
17083 if test "x$DISTNAME" != "x"
17084 then
17085         echo "distname set to $DISTNAME"
17086 elif test $HAVE_UNAME=yes -a x`uname -s` = xOSF1
17087 then
17088         DISTNAME=alpha
17089 elif test $HAVE_UNAME=yes -a x`uname -s` = xAIX
17090 then
17091         DISTNAME=aix
17092 elif test $HAVE_UNAME=yes -a x`uname -s` = xHP-UX
17093 then
17094         DISTNAME=hpux
17095 elif test $HAVE_UNAME=yes -a x`uname -s` = xSunOS
17096 then
17097         DISTNAME=solaris
17098 elif test $HAVE_UNAME=yes -a x`uname -s` = xGNU
17099 then
17100         DISTNAME=hurd
17101 elif test $HAVE_UNAME=yes -a x`uname -s` = xFreeBSD
17102 then
17103         DISTNAME=freebsd
17104 elif test $HAVE_UNAME=yes -a x`uname -s` = xNetBSD
17105 then
17106         DISTNAME=netbsd
17107 elif test $HAVE_UNAME=yes -a x`uname -s` = xOpenBSD
17108 then
17109         DISTNAME=openbsd
17110 elif test $HAVE_UNAME=yes -a x`uname -s` = xIRIX
17111 then
17112         DISTNAME=irix
17113 elif test $HAVE_UNAME=yes -a x`uname -s` = xBSD/OS
17114 then
17115         DISTNAME=bsdi
17116 elif test -f /etc/SuSE-release
17117 then
17118         DISTNAME=suse
17119 elif test -d /etc/SuSEconfig
17120 then
17121         DISTNAME=suse5
17122 elif test -f /etc/mandrake-release
17123 then
17124         DISTNAME=mandrake
17125 elif test -f /etc/whitebox-release
17126 then
17127        DISTNAME=redhat
17128 elif test -f /etc/redhat-release
17129 then
17130         DISTNAME=redhat
17131 elif test -f /etc/gentoo-release
17132 then
17133         DISTNAME=gentoo
17134 elif test -f /etc/debian_version
17135 then
17136         DISTNAME=debian
17137 elif test -f /etc/slackware-version
17138 then
17139         DISTNAME=slackware
17140 elif test x$host_vendor = xapple
17141 then
17142     DISTNAME=osx
17143 elif test $HAVE_UNAME=yes -a x`uname -s` = xDarwin
17144 then
17145     DISTNAME=darwin
17146 elif test -f /etc/engarde-version
17147 then
17148         DISTNAME=engarde
17149 elif test -f /etc/arch-release
17150 then
17151         DISTNAME=archlinux
17152 elif test "$CYGWIN" = yes
17153 then
17154         DISTNAME=cygwin
17155         $as_echo "#define HAVE_CYGWIN 1" >>confdefs.h
17156
17157 else
17158         DISTNAME=unknown
17159 fi
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17161 $as_echo "done" >&6; }
17162
17163
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
17165 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
17166 set x ${MAKE-make}
17167 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
17168 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
17169   $as_echo_n "(cached) " >&6
17170 else
17171   cat >conftest.make <<\_ACEOF
17172 SHELL = /bin/sh
17173 all:
17174         @echo '@@@%%%=$(MAKE)=@@@%%%'
17175 _ACEOF
17176 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
17177 case `${MAKE-make} -f conftest.make 2>/dev/null` in
17178   *@@@%%%=?*=@@@%%%*)
17179     eval ac_cv_prog_make_${ac_make}_set=yes;;
17180   *)
17181     eval ac_cv_prog_make_${ac_make}_set=no;;
17182 esac
17183 rm -f conftest.make
17184 fi
17185 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
17186   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187 $as_echo "yes" >&6; }
17188   SET_MAKE=
17189 else
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17191 $as_echo "no" >&6; }
17192   SET_MAKE="MAKE=${MAKE-make}"
17193 fi
17194
17195
17196
17197         MKINSTALLDIRS=
17198   if test -n "$ac_aux_dir"; then
17199     case "$ac_aux_dir" in
17200       /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
17201       *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
17202     esac
17203   fi
17204   if test -z "$MKINSTALLDIRS"; then
17205     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
17206   fi
17207
17208
17209
17210   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
17211 $as_echo_n "checking whether NLS is requested... " >&6; }
17212     # Check whether --enable-nls was given.
17213 if test "${enable_nls+set}" = set; then :
17214   enableval=$enable_nls; USE_NLS=$enableval
17215 else
17216   USE_NLS=yes
17217 fi
17218
17219   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
17220 $as_echo "$USE_NLS" >&6; }
17221
17222
17223
17224
17225
17226
17227 # Prepare PATH_SEPARATOR.
17228 # The user is always right.
17229 if test "${PATH_SEPARATOR+set}" != set; then
17230   echo "#! /bin/sh" >conf$$.sh
17231   echo  "exit 0"   >>conf$$.sh
17232   chmod +x conf$$.sh
17233   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17234     PATH_SEPARATOR=';'
17235   else
17236     PATH_SEPARATOR=:
17237   fi
17238   rm -f conf$$.sh
17239 fi
17240
17241 # Find out how to test for executable files. Don't use a zero-byte file,
17242 # as systems may use methods other than mode bits to determine executability.
17243 cat >conf$$.file <<_ASEOF
17244 #! /bin/sh
17245 exit 0
17246 _ASEOF
17247 chmod +x conf$$.file
17248 if test -x conf$$.file >/dev/null 2>&1; then
17249   ac_executable_p="test -x"
17250 else
17251   ac_executable_p="test -f"
17252 fi
17253 rm -f conf$$.file
17254
17255 # Extract the first word of "msgfmt", so it can be a program name with args.
17256 set dummy msgfmt; ac_word=$2
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17258 $as_echo_n "checking for $ac_word... " >&6; }
17259 if ${ac_cv_path_MSGFMT+:} false; then :
17260   $as_echo_n "(cached) " >&6
17261 else
17262   case "$MSGFMT" in
17263   [\\/]* | ?:[\\/]*)
17264     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
17265     ;;
17266   *)
17267     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17268     for ac_dir in $PATH; do
17269       IFS="$ac_save_IFS"
17270       test -z "$ac_dir" && ac_dir=.
17271       for ac_exec_ext in '' $ac_executable_extensions; do
17272         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17273           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17274           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
17275      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17276             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
17277             break 2
17278           fi
17279         fi
17280       done
17281     done
17282     IFS="$ac_save_IFS"
17283   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
17284     ;;
17285 esac
17286 fi
17287 MSGFMT="$ac_cv_path_MSGFMT"
17288 if test "$MSGFMT" != ":"; then
17289   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
17290 $as_echo "$MSGFMT" >&6; }
17291 else
17292   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17293 $as_echo "no" >&6; }
17294 fi
17295
17296   # Extract the first word of "gmsgfmt", so it can be a program name with args.
17297 set dummy gmsgfmt; ac_word=$2
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17299 $as_echo_n "checking for $ac_word... " >&6; }
17300 if ${ac_cv_path_GMSGFMT+:} false; then :
17301   $as_echo_n "(cached) " >&6
17302 else
17303   case $GMSGFMT in
17304   [\\/]* | ?:[\\/]*)
17305   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
17306   ;;
17307   *)
17308   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17309 for as_dir in $PATH
17310 do
17311   IFS=$as_save_IFS
17312   test -z "$as_dir" && as_dir=.
17313     for ac_exec_ext in '' $ac_executable_extensions; do
17314   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17315     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
17316     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17317     break 2
17318   fi
17319 done
17320   done
17321 IFS=$as_save_IFS
17322
17323   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
17324   ;;
17325 esac
17326 fi
17327 GMSGFMT=$ac_cv_path_GMSGFMT
17328 if test -n "$GMSGFMT"; then
17329   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
17330 $as_echo "$GMSGFMT" >&6; }
17331 else
17332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17334 fi
17335
17336
17337
17338
17339 # Prepare PATH_SEPARATOR.
17340 # The user is always right.
17341 if test "${PATH_SEPARATOR+set}" != set; then
17342   echo "#! /bin/sh" >conf$$.sh
17343   echo  "exit 0"   >>conf$$.sh
17344   chmod +x conf$$.sh
17345   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17346     PATH_SEPARATOR=';'
17347   else
17348     PATH_SEPARATOR=:
17349   fi
17350   rm -f conf$$.sh
17351 fi
17352
17353 # Find out how to test for executable files. Don't use a zero-byte file,
17354 # as systems may use methods other than mode bits to determine executability.
17355 cat >conf$$.file <<_ASEOF
17356 #! /bin/sh
17357 exit 0
17358 _ASEOF
17359 chmod +x conf$$.file
17360 if test -x conf$$.file >/dev/null 2>&1; then
17361   ac_executable_p="test -x"
17362 else
17363   ac_executable_p="test -f"
17364 fi
17365 rm -f conf$$.file
17366
17367 # Extract the first word of "xgettext", so it can be a program name with args.
17368 set dummy xgettext; ac_word=$2
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17370 $as_echo_n "checking for $ac_word... " >&6; }
17371 if ${ac_cv_path_XGETTEXT+:} false; then :
17372   $as_echo_n "(cached) " >&6
17373 else
17374   case "$XGETTEXT" in
17375   [\\/]* | ?:[\\/]*)
17376     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
17377     ;;
17378   *)
17379     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17380     for ac_dir in $PATH; do
17381       IFS="$ac_save_IFS"
17382       test -z "$ac_dir" && ac_dir=.
17383       for ac_exec_ext in '' $ac_executable_extensions; do
17384         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17385           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17386           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
17387      (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
17388             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
17389             break 2
17390           fi
17391         fi
17392       done
17393     done
17394     IFS="$ac_save_IFS"
17395   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
17396     ;;
17397 esac
17398 fi
17399 XGETTEXT="$ac_cv_path_XGETTEXT"
17400 if test "$XGETTEXT" != ":"; then
17401   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
17402 $as_echo "$XGETTEXT" >&6; }
17403 else
17404   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17405 $as_echo "no" >&6; }
17406 fi
17407
17408     rm -f messages.po
17409
17410
17411 # Prepare PATH_SEPARATOR.
17412 # The user is always right.
17413 if test "${PATH_SEPARATOR+set}" != set; then
17414   echo "#! /bin/sh" >conf$$.sh
17415   echo  "exit 0"   >>conf$$.sh
17416   chmod +x conf$$.sh
17417   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17418     PATH_SEPARATOR=';'
17419   else
17420     PATH_SEPARATOR=:
17421   fi
17422   rm -f conf$$.sh
17423 fi
17424
17425 # Find out how to test for executable files. Don't use a zero-byte file,
17426 # as systems may use methods other than mode bits to determine executability.
17427 cat >conf$$.file <<_ASEOF
17428 #! /bin/sh
17429 exit 0
17430 _ASEOF
17431 chmod +x conf$$.file
17432 if test -x conf$$.file >/dev/null 2>&1; then
17433   ac_executable_p="test -x"
17434 else
17435   ac_executable_p="test -f"
17436 fi
17437 rm -f conf$$.file
17438
17439 # Extract the first word of "msgmerge", so it can be a program name with args.
17440 set dummy msgmerge; ac_word=$2
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17442 $as_echo_n "checking for $ac_word... " >&6; }
17443 if ${ac_cv_path_MSGMERGE+:} false; then :
17444   $as_echo_n "(cached) " >&6
17445 else
17446   case "$MSGMERGE" in
17447   [\\/]* | ?:[\\/]*)
17448     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
17449     ;;
17450   *)
17451     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
17452     for ac_dir in $PATH; do
17453       IFS="$ac_save_IFS"
17454       test -z "$ac_dir" && ac_dir=.
17455       for ac_exec_ext in '' $ac_executable_extensions; do
17456         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
17457           echo "$as_me: trying $ac_dir/$ac_word..." >&5
17458           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
17459             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
17460             break 2
17461           fi
17462         fi
17463       done
17464     done
17465     IFS="$ac_save_IFS"
17466   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
17467     ;;
17468 esac
17469 fi
17470 MSGMERGE="$ac_cv_path_MSGMERGE"
17471 if test "$MSGMERGE" != ":"; then
17472   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
17473 $as_echo "$MSGMERGE" >&6; }
17474 else
17475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17476 $as_echo "no" >&6; }
17477 fi
17478
17479
17480       if test "$GMSGFMT" != ":"; then
17481             if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
17482        (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
17483       : ;
17484     else
17485       GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
17486       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
17487 $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
17488       GMSGFMT=":"
17489     fi
17490   fi
17491
17492       if test "$XGETTEXT" != ":"; then
17493             if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
17494        (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
17495       : ;
17496     else
17497       { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
17498 $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
17499       XGETTEXT=":"
17500     fi
17501         rm -f messages.po
17502   fi
17503
17504   ac_config_commands="$ac_config_commands default-1"
17505
17506
17507
17508       if test "X$prefix" = "XNONE"; then
17509     acl_final_prefix="$ac_default_prefix"
17510   else
17511     acl_final_prefix="$prefix"
17512   fi
17513   if test "X$exec_prefix" = "XNONE"; then
17514     acl_final_exec_prefix='${prefix}'
17515   else
17516     acl_final_exec_prefix="$exec_prefix"
17517   fi
17518   acl_save_prefix="$prefix"
17519   prefix="$acl_final_prefix"
17520   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17521   prefix="$acl_save_prefix"
17522
17523
17524 # Check whether --with-gnu-ld was given.
17525 if test "${with_gnu_ld+set}" = set; then :
17526   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17527 else
17528   with_gnu_ld=no
17529 fi
17530
17531 # Prepare PATH_SEPARATOR.
17532 # The user is always right.
17533 if test "${PATH_SEPARATOR+set}" != set; then
17534   echo "#! /bin/sh" >conf$$.sh
17535   echo  "exit 0"   >>conf$$.sh
17536   chmod +x conf$$.sh
17537   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17538     PATH_SEPARATOR=';'
17539   else
17540     PATH_SEPARATOR=:
17541   fi
17542   rm -f conf$$.sh
17543 fi
17544 ac_prog=ld
17545 if test "$GCC" = yes; then
17546   # Check if gcc -print-prog-name=ld gives a path.
17547   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17548 $as_echo_n "checking for ld used by GCC... " >&6; }
17549   case $host in
17550   *-*-mingw*)
17551     # gcc leaves a trailing carriage return which upsets mingw
17552     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17553   *)
17554     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17555   esac
17556   case $ac_prog in
17557     # Accept absolute paths.
17558     [\\/]* | [A-Za-z]:[\\/]*)
17559       re_direlt='/[^/][^/]*/\.\./'
17560       # Canonicalize the path of ld
17561       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17562       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17563         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17564       done
17565       test -z "$LD" && LD="$ac_prog"
17566       ;;
17567   "")
17568     # If it fails, then pretend we aren't using GCC.
17569     ac_prog=ld
17570     ;;
17571   *)
17572     # If it is relative, then search for the first ld in PATH.
17573     with_gnu_ld=unknown
17574     ;;
17575   esac
17576 elif test "$with_gnu_ld" = yes; then
17577   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17578 $as_echo_n "checking for GNU ld... " >&6; }
17579 else
17580   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17581 $as_echo_n "checking for non-GNU ld... " >&6; }
17582 fi
17583 if ${acl_cv_path_LD+:} false; then :
17584   $as_echo_n "(cached) " >&6
17585 else
17586   if test -z "$LD"; then
17587   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17588   for ac_dir in $PATH; do
17589     test -z "$ac_dir" && ac_dir=.
17590     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17591       acl_cv_path_LD="$ac_dir/$ac_prog"
17592       # Check to see if the program is GNU ld.  I'd rather use --version,
17593       # but apparently some GNU ld's only accept -v.
17594       # Break only if it was the GNU/non-GNU ld that we prefer.
17595       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17596       *GNU* | *'with BFD'*)
17597         test "$with_gnu_ld" != no && break ;;
17598       *)
17599         test "$with_gnu_ld" != yes && break ;;
17600       esac
17601     fi
17602   done
17603   IFS="$ac_save_ifs"
17604 else
17605   acl_cv_path_LD="$LD" # Let the user override the test with a path.
17606 fi
17607 fi
17608
17609 LD="$acl_cv_path_LD"
17610 if test -n "$LD"; then
17611   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17612 $as_echo "$LD" >&6; }
17613 else
17614   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17615 $as_echo "no" >&6; }
17616 fi
17617 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17619 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
17620 if ${acl_cv_prog_gnu_ld+:} false; then :
17621   $as_echo_n "(cached) " >&6
17622 else
17623   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
17624 case `$LD -v 2>&1 </dev/null` in
17625 *GNU* | *'with BFD'*)
17626   acl_cv_prog_gnu_ld=yes ;;
17627 *)
17628   acl_cv_prog_gnu_ld=no ;;
17629 esac
17630 fi
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
17632 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
17633 with_gnu_ld=$acl_cv_prog_gnu_ld
17634
17635
17636
17637
17638                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
17639 $as_echo_n "checking for shared library run path origin... " >&6; }
17640 if ${acl_cv_rpath+:} false; then :
17641   $as_echo_n "(cached) " >&6
17642 else
17643
17644     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
17645     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
17646     . ./conftest.sh
17647     rm -f ./conftest.sh
17648     acl_cv_rpath=done
17649
17650 fi
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
17652 $as_echo "$acl_cv_rpath" >&6; }
17653   wl="$acl_cv_wl"
17654   libext="$acl_cv_libext"
17655   shlibext="$acl_cv_shlibext"
17656   hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
17657   hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
17658   hardcode_direct="$acl_cv_hardcode_direct"
17659   hardcode_minus_L="$acl_cv_hardcode_minus_L"
17660     # Check whether --enable-rpath was given.
17661 if test "${enable_rpath+set}" = set; then :
17662   enableval=$enable_rpath; :
17663 else
17664   enable_rpath=yes
17665 fi
17666
17667
17668
17669
17670
17671
17672
17673
17674     use_additional=yes
17675
17676   acl_save_prefix="$prefix"
17677   prefix="$acl_final_prefix"
17678   acl_save_exec_prefix="$exec_prefix"
17679   exec_prefix="$acl_final_exec_prefix"
17680
17681     eval additional_includedir=\"$includedir\"
17682     eval additional_libdir=\"$libdir\"
17683
17684   exec_prefix="$acl_save_exec_prefix"
17685   prefix="$acl_save_prefix"
17686
17687
17688 # Check whether --with-libiconv-prefix was given.
17689 if test "${with_libiconv_prefix+set}" = set; then :
17690   withval=$with_libiconv_prefix;
17691     if test "X$withval" = "Xno"; then
17692       use_additional=no
17693     else
17694       if test "X$withval" = "X"; then
17695
17696   acl_save_prefix="$prefix"
17697   prefix="$acl_final_prefix"
17698   acl_save_exec_prefix="$exec_prefix"
17699   exec_prefix="$acl_final_exec_prefix"
17700
17701           eval additional_includedir=\"$includedir\"
17702           eval additional_libdir=\"$libdir\"
17703
17704   exec_prefix="$acl_save_exec_prefix"
17705   prefix="$acl_save_prefix"
17706
17707       else
17708         additional_includedir="$withval/include"
17709         additional_libdir="$withval/lib"
17710       fi
17711     fi
17712
17713 fi
17714
17715       LIBICONV=
17716   LTLIBICONV=
17717   INCICONV=
17718   rpathdirs=
17719   ltrpathdirs=
17720   names_already_handled=
17721   names_next_round='iconv '
17722   while test -n "$names_next_round"; do
17723     names_this_round="$names_next_round"
17724     names_next_round=
17725     for name in $names_this_round; do
17726       already_handled=
17727       for n in $names_already_handled; do
17728         if test "$n" = "$name"; then
17729           already_handled=yes
17730           break
17731         fi
17732       done
17733       if test -z "$already_handled"; then
17734         names_already_handled="$names_already_handled $name"
17735                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
17736         eval value=\"\$HAVE_LIB$uppername\"
17737         if test -n "$value"; then
17738           if test "$value" = yes; then
17739             eval value=\"\$LIB$uppername\"
17740             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
17741             eval value=\"\$LTLIB$uppername\"
17742             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
17743           else
17744                                     :
17745           fi
17746         else
17747                               found_dir=
17748           found_la=
17749           found_so=
17750           found_a=
17751           if test $use_additional = yes; then
17752             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
17753               found_dir="$additional_libdir"
17754               found_so="$additional_libdir/lib$name.$shlibext"
17755               if test -f "$additional_libdir/lib$name.la"; then
17756                 found_la="$additional_libdir/lib$name.la"
17757               fi
17758             else
17759               if test -f "$additional_libdir/lib$name.$libext"; then
17760                 found_dir="$additional_libdir"
17761                 found_a="$additional_libdir/lib$name.$libext"
17762                 if test -f "$additional_libdir/lib$name.la"; then
17763                   found_la="$additional_libdir/lib$name.la"
17764                 fi
17765               fi
17766             fi
17767           fi
17768           if test "X$found_dir" = "X"; then
17769             for x in $LDFLAGS $LTLIBICONV; do
17770
17771   acl_save_prefix="$prefix"
17772   prefix="$acl_final_prefix"
17773   acl_save_exec_prefix="$exec_prefix"
17774   exec_prefix="$acl_final_exec_prefix"
17775   eval x=\"$x\"
17776   exec_prefix="$acl_save_exec_prefix"
17777   prefix="$acl_save_prefix"
17778
17779               case "$x" in
17780                 -L*)
17781                   dir=`echo "X$x" | sed -e 's/^X-L//'`
17782                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
17783                     found_dir="$dir"
17784                     found_so="$dir/lib$name.$shlibext"
17785                     if test -f "$dir/lib$name.la"; then
17786                       found_la="$dir/lib$name.la"
17787                     fi
17788                   else
17789                     if test -f "$dir/lib$name.$libext"; then
17790                       found_dir="$dir"
17791                       found_a="$dir/lib$name.$libext"
17792                       if test -f "$dir/lib$name.la"; then
17793                         found_la="$dir/lib$name.la"
17794                       fi
17795                     fi
17796                   fi
17797                   ;;
17798               esac
17799               if test "X$found_dir" != "X"; then
17800                 break
17801               fi
17802             done
17803           fi
17804           if test "X$found_dir" != "X"; then
17805                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
17806             if test "X$found_so" != "X"; then
17807                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
17808                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17809               else
17810                                                                                 haveit=
17811                 for x in $ltrpathdirs; do
17812                   if test "X$x" = "X$found_dir"; then
17813                     haveit=yes
17814                     break
17815                   fi
17816                 done
17817                 if test -z "$haveit"; then
17818                   ltrpathdirs="$ltrpathdirs $found_dir"
17819                 fi
17820                                 if test "$hardcode_direct" = yes; then
17821                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17822                 else
17823                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
17824                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17825                                                             haveit=
17826                     for x in $rpathdirs; do
17827                       if test "X$x" = "X$found_dir"; then
17828                         haveit=yes
17829                         break
17830                       fi
17831                     done
17832                     if test -z "$haveit"; then
17833                       rpathdirs="$rpathdirs $found_dir"
17834                     fi
17835                   else
17836                                                                                 haveit=
17837                     for x in $LDFLAGS $LIBICONV; do
17838
17839   acl_save_prefix="$prefix"
17840   prefix="$acl_final_prefix"
17841   acl_save_exec_prefix="$exec_prefix"
17842   exec_prefix="$acl_final_exec_prefix"
17843   eval x=\"$x\"
17844   exec_prefix="$acl_save_exec_prefix"
17845   prefix="$acl_save_prefix"
17846
17847                       if test "X$x" = "X-L$found_dir"; then
17848                         haveit=yes
17849                         break
17850                       fi
17851                     done
17852                     if test -z "$haveit"; then
17853                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
17854                     fi
17855                     if test "$hardcode_minus_L" != no; then
17856                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
17857                     else
17858                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
17859                     fi
17860                   fi
17861                 fi
17862               fi
17863             else
17864               if test "X$found_a" != "X"; then
17865                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
17866               else
17867                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
17868               fi
17869             fi
17870                         additional_includedir=
17871             case "$found_dir" in
17872               */lib | */lib/)
17873                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
17874                 additional_includedir="$basedir/include"
17875                 ;;
17876             esac
17877             if test "X$additional_includedir" != "X"; then
17878                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
17879                 haveit=
17880                 if test "X$additional_includedir" = "X/usr/local/include"; then
17881                   if test -n "$GCC"; then
17882                     case $host_os in
17883                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17884                     esac
17885                   fi
17886                 fi
17887                 if test -z "$haveit"; then
17888                   for x in $CPPFLAGS $INCICONV; do
17889
17890   acl_save_prefix="$prefix"
17891   prefix="$acl_final_prefix"
17892   acl_save_exec_prefix="$exec_prefix"
17893   exec_prefix="$acl_final_exec_prefix"
17894   eval x=\"$x\"
17895   exec_prefix="$acl_save_exec_prefix"
17896   prefix="$acl_save_prefix"
17897
17898                     if test "X$x" = "X-I$additional_includedir"; then
17899                       haveit=yes
17900                       break
17901                     fi
17902                   done
17903                   if test -z "$haveit"; then
17904                     if test -d "$additional_includedir"; then
17905                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
17906                     fi
17907                   fi
17908                 fi
17909               fi
17910             fi
17911                         if test -n "$found_la"; then
17912                                                         save_libdir="$libdir"
17913               case "$found_la" in
17914                 */* | *\\*) . "$found_la" ;;
17915                 *) . "./$found_la" ;;
17916               esac
17917               libdir="$save_libdir"
17918                             for dep in $dependency_libs; do
17919                 case "$dep" in
17920                   -L*)
17921                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
17922                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
17923                       haveit=
17924                       if test "X$additional_libdir" = "X/usr/local/lib"; then
17925                         if test -n "$GCC"; then
17926                           case $host_os in
17927                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
17928                           esac
17929                         fi
17930                       fi
17931                       if test -z "$haveit"; then
17932                         haveit=
17933                         for x in $LDFLAGS $LIBICONV; do
17934
17935   acl_save_prefix="$prefix"
17936   prefix="$acl_final_prefix"
17937   acl_save_exec_prefix="$exec_prefix"
17938   exec_prefix="$acl_final_exec_prefix"
17939   eval x=\"$x\"
17940   exec_prefix="$acl_save_exec_prefix"
17941   prefix="$acl_save_prefix"
17942
17943                           if test "X$x" = "X-L$additional_libdir"; then
17944                             haveit=yes
17945                             break
17946                           fi
17947                         done
17948                         if test -z "$haveit"; then
17949                           if test -d "$additional_libdir"; then
17950                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
17951                           fi
17952                         fi
17953                         haveit=
17954                         for x in $LDFLAGS $LTLIBICONV; do
17955
17956   acl_save_prefix="$prefix"
17957   prefix="$acl_final_prefix"
17958   acl_save_exec_prefix="$exec_prefix"
17959   exec_prefix="$acl_final_exec_prefix"
17960   eval x=\"$x\"
17961   exec_prefix="$acl_save_exec_prefix"
17962   prefix="$acl_save_prefix"
17963
17964                           if test "X$x" = "X-L$additional_libdir"; then
17965                             haveit=yes
17966                             break
17967                           fi
17968                         done
17969                         if test -z "$haveit"; then
17970                           if test -d "$additional_libdir"; then
17971                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
17972                           fi
17973                         fi
17974                       fi
17975                     fi
17976                     ;;
17977                   -R*)
17978                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
17979                     if test "$enable_rpath" != no; then
17980                                                                   haveit=
17981                       for x in $rpathdirs; do
17982                         if test "X$x" = "X$dir"; then
17983                           haveit=yes
17984                           break
17985                         fi
17986                       done
17987                       if test -z "$haveit"; then
17988                         rpathdirs="$rpathdirs $dir"
17989                       fi
17990                                                                   haveit=
17991                       for x in $ltrpathdirs; do
17992                         if test "X$x" = "X$dir"; then
17993                           haveit=yes
17994                           break
17995                         fi
17996                       done
17997                       if test -z "$haveit"; then
17998                         ltrpathdirs="$ltrpathdirs $dir"
17999                       fi
18000                     fi
18001                     ;;
18002                   -l*)
18003                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18004                     ;;
18005                   *.la)
18006                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18007                     ;;
18008                   *)
18009                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18010                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18011                     ;;
18012                 esac
18013               done
18014             fi
18015           else
18016                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18017             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18018           fi
18019         fi
18020       fi
18021     done
18022   done
18023   if test "X$rpathdirs" != "X"; then
18024     if test -n "$hardcode_libdir_separator"; then
18025                         alldirs=
18026       for found_dir in $rpathdirs; do
18027         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18028       done
18029             acl_save_libdir="$libdir"
18030       libdir="$alldirs"
18031       eval flag=\"$hardcode_libdir_flag_spec\"
18032       libdir="$acl_save_libdir"
18033       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18034     else
18035             for found_dir in $rpathdirs; do
18036         acl_save_libdir="$libdir"
18037         libdir="$found_dir"
18038         eval flag=\"$hardcode_libdir_flag_spec\"
18039         libdir="$acl_save_libdir"
18040         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18041       done
18042     fi
18043   fi
18044   if test "X$ltrpathdirs" != "X"; then
18045             for found_dir in $ltrpathdirs; do
18046       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18047     done
18048   fi
18049
18050
18051
18052
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066
18067     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
18068 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
18069 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
18070   $as_echo_n "(cached) " >&6
18071 else
18072   gt_save_CPPFLAGS="$CPPFLAGS"
18073      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18074      gt_save_LIBS="$LIBS"
18075      LIBS="$LIBS -framework CoreFoundation"
18076      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h.  */
18078 #include <CFPreferences.h>
18079 int
18080 main ()
18081 {
18082 CFPreferencesCopyAppValue(NULL, NULL)
18083   ;
18084   return 0;
18085 }
18086 _ACEOF
18087 if ac_fn_c_try_link "$LINENO"; then :
18088   gt_cv_func_CFPreferencesCopyAppValue=yes
18089 else
18090   gt_cv_func_CFPreferencesCopyAppValue=no
18091 fi
18092 rm -f core conftest.err conftest.$ac_objext \
18093     conftest$ac_exeext conftest.$ac_ext
18094      CPPFLAGS="$gt_save_CPPFLAGS"
18095      LIBS="$gt_save_LIBS"
18096 fi
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
18098 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
18099   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
18100
18101 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
18102
18103   fi
18104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
18105 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
18106 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
18107   $as_echo_n "(cached) " >&6
18108 else
18109   gt_save_CPPFLAGS="$CPPFLAGS"
18110      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
18111      gt_save_LIBS="$LIBS"
18112      LIBS="$LIBS -framework CoreFoundation"
18113      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18114 /* end confdefs.h.  */
18115 #include <CFLocale.h>
18116 int
18117 main ()
18118 {
18119 CFLocaleCopyCurrent();
18120   ;
18121   return 0;
18122 }
18123 _ACEOF
18124 if ac_fn_c_try_link "$LINENO"; then :
18125   gt_cv_func_CFLocaleCopyCurrent=yes
18126 else
18127   gt_cv_func_CFLocaleCopyCurrent=no
18128 fi
18129 rm -f core conftest.err conftest.$ac_objext \
18130     conftest$ac_exeext conftest.$ac_ext
18131      CPPFLAGS="$gt_save_CPPFLAGS"
18132      LIBS="$gt_save_LIBS"
18133 fi
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
18135 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
18136   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18137
18138 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
18139
18140   fi
18141   INTL_MACOSX_LIBS=
18142   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
18143     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
18144   fi
18145
18146
18147
18148
18149   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
18150 $as_echo_n "checking whether NLS is requested... " >&6; }
18151     # Check whether --enable-nls was given.
18152 if test "${enable_nls+set}" = set; then :
18153   enableval=$enable_nls; USE_NLS=$enableval
18154 else
18155   USE_NLS=yes
18156 fi
18157
18158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18159 $as_echo "$USE_NLS" >&6; }
18160
18161
18162
18163
18164   LIBINTL=
18165   LTLIBINTL=
18166   POSUB=
18167
18168     if test "$USE_NLS" = "yes"; then
18169     gt_use_preinstalled_gnugettext=no
18170
18171
18172
18173
18174
18175
18176         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
18177 $as_echo_n "checking for GNU gettext in libc... " >&6; }
18178 if ${gt_cv_func_gnugettext1_libc+:} false; then :
18179   $as_echo_n "(cached) " >&6
18180 else
18181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18182 /* end confdefs.h.  */
18183 #include <libintl.h>
18184 extern int _nl_msg_cat_cntr;
18185 extern int *_nl_domain_bindings;
18186 int
18187 main ()
18188 {
18189 bindtextdomain ("", "");
18190 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
18191   ;
18192   return 0;
18193 }
18194 _ACEOF
18195 if ac_fn_c_try_link "$LINENO"; then :
18196   gt_cv_func_gnugettext1_libc=yes
18197 else
18198   gt_cv_func_gnugettext1_libc=no
18199 fi
18200 rm -f core conftest.err conftest.$ac_objext \
18201     conftest$ac_exeext conftest.$ac_ext
18202 fi
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
18204 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
18205
18206         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
18207
18208
18209
18210
18211
18212           am_save_CPPFLAGS="$CPPFLAGS"
18213
18214   for element in $INCICONV; do
18215     haveit=
18216     for x in $CPPFLAGS; do
18217
18218   acl_save_prefix="$prefix"
18219   prefix="$acl_final_prefix"
18220   acl_save_exec_prefix="$exec_prefix"
18221   exec_prefix="$acl_final_exec_prefix"
18222   eval x=\"$x\"
18223   exec_prefix="$acl_save_exec_prefix"
18224   prefix="$acl_save_prefix"
18225
18226       if test "X$x" = "X$element"; then
18227         haveit=yes
18228         break
18229       fi
18230     done
18231     if test -z "$haveit"; then
18232       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18233     fi
18234   done
18235
18236
18237   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18238 $as_echo_n "checking for iconv... " >&6; }
18239 if ${am_cv_func_iconv+:} false; then :
18240   $as_echo_n "(cached) " >&6
18241 else
18242
18243     am_cv_func_iconv="no, consider installing GNU libiconv"
18244     am_cv_lib_iconv=no
18245     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18246 /* end confdefs.h.  */
18247 #include <stdlib.h>
18248 #include <iconv.h>
18249 int
18250 main ()
18251 {
18252 iconv_t cd = iconv_open("","");
18253        iconv(cd,NULL,NULL,NULL,NULL);
18254        iconv_close(cd);
18255   ;
18256   return 0;
18257 }
18258 _ACEOF
18259 if ac_fn_c_try_link "$LINENO"; then :
18260   am_cv_func_iconv=yes
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext \
18263     conftest$ac_exeext conftest.$ac_ext
18264     if test "$am_cv_func_iconv" != yes; then
18265       am_save_LIBS="$LIBS"
18266       LIBS="$LIBS $LIBICONV"
18267       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18268 /* end confdefs.h.  */
18269 #include <stdlib.h>
18270 #include <iconv.h>
18271 int
18272 main ()
18273 {
18274 iconv_t cd = iconv_open("","");
18275          iconv(cd,NULL,NULL,NULL,NULL);
18276          iconv_close(cd);
18277   ;
18278   return 0;
18279 }
18280 _ACEOF
18281 if ac_fn_c_try_link "$LINENO"; then :
18282   am_cv_lib_iconv=yes
18283         am_cv_func_iconv=yes
18284 fi
18285 rm -f core conftest.err conftest.$ac_objext \
18286     conftest$ac_exeext conftest.$ac_ext
18287       LIBS="$am_save_LIBS"
18288     fi
18289
18290 fi
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18292 $as_echo "$am_cv_func_iconv" >&6; }
18293   if test "$am_cv_func_iconv" = yes; then
18294
18295 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18296
18297   fi
18298   if test "$am_cv_lib_iconv" = yes; then
18299     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18300 $as_echo_n "checking how to link with libiconv... " >&6; }
18301     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18302 $as_echo "$LIBICONV" >&6; }
18303   else
18304             CPPFLAGS="$am_save_CPPFLAGS"
18305     LIBICONV=
18306     LTLIBICONV=
18307   fi
18308
18309
18310
18311
18312
18313
18314     use_additional=yes
18315
18316   acl_save_prefix="$prefix"
18317   prefix="$acl_final_prefix"
18318   acl_save_exec_prefix="$exec_prefix"
18319   exec_prefix="$acl_final_exec_prefix"
18320
18321     eval additional_includedir=\"$includedir\"
18322     eval additional_libdir=\"$libdir\"
18323
18324   exec_prefix="$acl_save_exec_prefix"
18325   prefix="$acl_save_prefix"
18326
18327
18328 # Check whether --with-libintl-prefix was given.
18329 if test "${with_libintl_prefix+set}" = set; then :
18330   withval=$with_libintl_prefix;
18331     if test "X$withval" = "Xno"; then
18332       use_additional=no
18333     else
18334       if test "X$withval" = "X"; then
18335
18336   acl_save_prefix="$prefix"
18337   prefix="$acl_final_prefix"
18338   acl_save_exec_prefix="$exec_prefix"
18339   exec_prefix="$acl_final_exec_prefix"
18340
18341           eval additional_includedir=\"$includedir\"
18342           eval additional_libdir=\"$libdir\"
18343
18344   exec_prefix="$acl_save_exec_prefix"
18345   prefix="$acl_save_prefix"
18346
18347       else
18348         additional_includedir="$withval/include"
18349         additional_libdir="$withval/lib"
18350       fi
18351     fi
18352
18353 fi
18354
18355       LIBINTL=
18356   LTLIBINTL=
18357   INCINTL=
18358   rpathdirs=
18359   ltrpathdirs=
18360   names_already_handled=
18361   names_next_round='intl '
18362   while test -n "$names_next_round"; do
18363     names_this_round="$names_next_round"
18364     names_next_round=
18365     for name in $names_this_round; do
18366       already_handled=
18367       for n in $names_already_handled; do
18368         if test "$n" = "$name"; then
18369           already_handled=yes
18370           break
18371         fi
18372       done
18373       if test -z "$already_handled"; then
18374         names_already_handled="$names_already_handled $name"
18375                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18376         eval value=\"\$HAVE_LIB$uppername\"
18377         if test -n "$value"; then
18378           if test "$value" = yes; then
18379             eval value=\"\$LIB$uppername\"
18380             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
18381             eval value=\"\$LTLIB$uppername\"
18382             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
18383           else
18384                                     :
18385           fi
18386         else
18387                               found_dir=
18388           found_la=
18389           found_so=
18390           found_a=
18391           if test $use_additional = yes; then
18392             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
18393               found_dir="$additional_libdir"
18394               found_so="$additional_libdir/lib$name.$shlibext"
18395               if test -f "$additional_libdir/lib$name.la"; then
18396                 found_la="$additional_libdir/lib$name.la"
18397               fi
18398             else
18399               if test -f "$additional_libdir/lib$name.$libext"; then
18400                 found_dir="$additional_libdir"
18401                 found_a="$additional_libdir/lib$name.$libext"
18402                 if test -f "$additional_libdir/lib$name.la"; then
18403                   found_la="$additional_libdir/lib$name.la"
18404                 fi
18405               fi
18406             fi
18407           fi
18408           if test "X$found_dir" = "X"; then
18409             for x in $LDFLAGS $LTLIBINTL; do
18410
18411   acl_save_prefix="$prefix"
18412   prefix="$acl_final_prefix"
18413   acl_save_exec_prefix="$exec_prefix"
18414   exec_prefix="$acl_final_exec_prefix"
18415   eval x=\"$x\"
18416   exec_prefix="$acl_save_exec_prefix"
18417   prefix="$acl_save_prefix"
18418
18419               case "$x" in
18420                 -L*)
18421                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18422                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
18423                     found_dir="$dir"
18424                     found_so="$dir/lib$name.$shlibext"
18425                     if test -f "$dir/lib$name.la"; then
18426                       found_la="$dir/lib$name.la"
18427                     fi
18428                   else
18429                     if test -f "$dir/lib$name.$libext"; then
18430                       found_dir="$dir"
18431                       found_a="$dir/lib$name.$libext"
18432                       if test -f "$dir/lib$name.la"; then
18433                         found_la="$dir/lib$name.la"
18434                       fi
18435                     fi
18436                   fi
18437                   ;;
18438               esac
18439               if test "X$found_dir" != "X"; then
18440                 break
18441               fi
18442             done
18443           fi
18444           if test "X$found_dir" != "X"; then
18445                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
18446             if test "X$found_so" != "X"; then
18447                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
18448                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18449               else
18450                                                                                 haveit=
18451                 for x in $ltrpathdirs; do
18452                   if test "X$x" = "X$found_dir"; then
18453                     haveit=yes
18454                     break
18455                   fi
18456                 done
18457                 if test -z "$haveit"; then
18458                   ltrpathdirs="$ltrpathdirs $found_dir"
18459                 fi
18460                                 if test "$hardcode_direct" = yes; then
18461                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18462                 else
18463                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
18464                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18465                                                             haveit=
18466                     for x in $rpathdirs; do
18467                       if test "X$x" = "X$found_dir"; then
18468                         haveit=yes
18469                         break
18470                       fi
18471                     done
18472                     if test -z "$haveit"; then
18473                       rpathdirs="$rpathdirs $found_dir"
18474                     fi
18475                   else
18476                                                                                 haveit=
18477                     for x in $LDFLAGS $LIBINTL; do
18478
18479   acl_save_prefix="$prefix"
18480   prefix="$acl_final_prefix"
18481   acl_save_exec_prefix="$exec_prefix"
18482   exec_prefix="$acl_final_exec_prefix"
18483   eval x=\"$x\"
18484   exec_prefix="$acl_save_exec_prefix"
18485   prefix="$acl_save_prefix"
18486
18487                       if test "X$x" = "X-L$found_dir"; then
18488                         haveit=yes
18489                         break
18490                       fi
18491                     done
18492                     if test -z "$haveit"; then
18493                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
18494                     fi
18495                     if test "$hardcode_minus_L" != no; then
18496                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
18497                     else
18498                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18499                     fi
18500                   fi
18501                 fi
18502               fi
18503             else
18504               if test "X$found_a" != "X"; then
18505                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
18506               else
18507                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
18508               fi
18509             fi
18510                         additional_includedir=
18511             case "$found_dir" in
18512               */lib | */lib/)
18513                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
18514                 additional_includedir="$basedir/include"
18515                 ;;
18516             esac
18517             if test "X$additional_includedir" != "X"; then
18518                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18519                 haveit=
18520                 if test "X$additional_includedir" = "X/usr/local/include"; then
18521                   if test -n "$GCC"; then
18522                     case $host_os in
18523                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18524                     esac
18525                   fi
18526                 fi
18527                 if test -z "$haveit"; then
18528                   for x in $CPPFLAGS $INCINTL; do
18529
18530   acl_save_prefix="$prefix"
18531   prefix="$acl_final_prefix"
18532   acl_save_exec_prefix="$exec_prefix"
18533   exec_prefix="$acl_final_exec_prefix"
18534   eval x=\"$x\"
18535   exec_prefix="$acl_save_exec_prefix"
18536   prefix="$acl_save_prefix"
18537
18538                     if test "X$x" = "X-I$additional_includedir"; then
18539                       haveit=yes
18540                       break
18541                     fi
18542                   done
18543                   if test -z "$haveit"; then
18544                     if test -d "$additional_includedir"; then
18545                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
18546                     fi
18547                   fi
18548                 fi
18549               fi
18550             fi
18551                         if test -n "$found_la"; then
18552                                                         save_libdir="$libdir"
18553               case "$found_la" in
18554                 */* | *\\*) . "$found_la" ;;
18555                 *) . "./$found_la" ;;
18556               esac
18557               libdir="$save_libdir"
18558                             for dep in $dependency_libs; do
18559                 case "$dep" in
18560                   -L*)
18561                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18562                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
18563                       haveit=
18564                       if test "X$additional_libdir" = "X/usr/local/lib"; then
18565                         if test -n "$GCC"; then
18566                           case $host_os in
18567                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18568                           esac
18569                         fi
18570                       fi
18571                       if test -z "$haveit"; then
18572                         haveit=
18573                         for x in $LDFLAGS $LIBINTL; do
18574
18575   acl_save_prefix="$prefix"
18576   prefix="$acl_final_prefix"
18577   acl_save_exec_prefix="$exec_prefix"
18578   exec_prefix="$acl_final_exec_prefix"
18579   eval x=\"$x\"
18580   exec_prefix="$acl_save_exec_prefix"
18581   prefix="$acl_save_prefix"
18582
18583                           if test "X$x" = "X-L$additional_libdir"; then
18584                             haveit=yes
18585                             break
18586                           fi
18587                         done
18588                         if test -z "$haveit"; then
18589                           if test -d "$additional_libdir"; then
18590                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
18591                           fi
18592                         fi
18593                         haveit=
18594                         for x in $LDFLAGS $LTLIBINTL; do
18595
18596   acl_save_prefix="$prefix"
18597   prefix="$acl_final_prefix"
18598   acl_save_exec_prefix="$exec_prefix"
18599   exec_prefix="$acl_final_exec_prefix"
18600   eval x=\"$x\"
18601   exec_prefix="$acl_save_exec_prefix"
18602   prefix="$acl_save_prefix"
18603
18604                           if test "X$x" = "X-L$additional_libdir"; then
18605                             haveit=yes
18606                             break
18607                           fi
18608                         done
18609                         if test -z "$haveit"; then
18610                           if test -d "$additional_libdir"; then
18611                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
18612                           fi
18613                         fi
18614                       fi
18615                     fi
18616                     ;;
18617                   -R*)
18618                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18619                     if test "$enable_rpath" != no; then
18620                                                                   haveit=
18621                       for x in $rpathdirs; do
18622                         if test "X$x" = "X$dir"; then
18623                           haveit=yes
18624                           break
18625                         fi
18626                       done
18627                       if test -z "$haveit"; then
18628                         rpathdirs="$rpathdirs $dir"
18629                       fi
18630                                                                   haveit=
18631                       for x in $ltrpathdirs; do
18632                         if test "X$x" = "X$dir"; then
18633                           haveit=yes
18634                           break
18635                         fi
18636                       done
18637                       if test -z "$haveit"; then
18638                         ltrpathdirs="$ltrpathdirs $dir"
18639                       fi
18640                     fi
18641                     ;;
18642                   -l*)
18643                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18644                     ;;
18645                   *.la)
18646                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18647                     ;;
18648                   *)
18649                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
18650                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
18651                     ;;
18652                 esac
18653               done
18654             fi
18655           else
18656                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
18657             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
18658           fi
18659         fi
18660       fi
18661     done
18662   done
18663   if test "X$rpathdirs" != "X"; then
18664     if test -n "$hardcode_libdir_separator"; then
18665                         alldirs=
18666       for found_dir in $rpathdirs; do
18667         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
18668       done
18669             acl_save_libdir="$libdir"
18670       libdir="$alldirs"
18671       eval flag=\"$hardcode_libdir_flag_spec\"
18672       libdir="$acl_save_libdir"
18673       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18674     else
18675             for found_dir in $rpathdirs; do
18676         acl_save_libdir="$libdir"
18677         libdir="$found_dir"
18678         eval flag=\"$hardcode_libdir_flag_spec\"
18679         libdir="$acl_save_libdir"
18680         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
18681       done
18682     fi
18683   fi
18684   if test "X$ltrpathdirs" != "X"; then
18685             for found_dir in $ltrpathdirs; do
18686       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
18687     done
18688   fi
18689
18690           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
18691 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
18692 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
18693   $as_echo_n "(cached) " >&6
18694 else
18695   gt_save_CPPFLAGS="$CPPFLAGS"
18696             CPPFLAGS="$CPPFLAGS $INCINTL"
18697             gt_save_LIBS="$LIBS"
18698             LIBS="$LIBS $LIBINTL"
18699                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18700 /* end confdefs.h.  */
18701 #include <libintl.h>
18702 extern int _nl_msg_cat_cntr;
18703 extern
18704 #ifdef __cplusplus
18705 "C"
18706 #endif
18707 const char *_nl_expand_alias (const char *);
18708 int
18709 main ()
18710 {
18711 bindtextdomain ("", "");
18712 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18713   ;
18714   return 0;
18715 }
18716 _ACEOF
18717 if ac_fn_c_try_link "$LINENO"; then :
18718   gt_cv_func_gnugettext1_libintl=yes
18719 else
18720   gt_cv_func_gnugettext1_libintl=no
18721 fi
18722 rm -f core conftest.err conftest.$ac_objext \
18723     conftest$ac_exeext conftest.$ac_ext
18724                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
18725               LIBS="$LIBS $LIBICONV"
18726               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h.  */
18728 #include <libintl.h>
18729 extern int _nl_msg_cat_cntr;
18730 extern
18731 #ifdef __cplusplus
18732 "C"
18733 #endif
18734 const char *_nl_expand_alias (const char *);
18735 int
18736 main ()
18737 {
18738 bindtextdomain ("", "");
18739 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
18740   ;
18741   return 0;
18742 }
18743 _ACEOF
18744 if ac_fn_c_try_link "$LINENO"; then :
18745   LIBINTL="$LIBINTL $LIBICONV"
18746                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
18747                 gt_cv_func_gnugettext1_libintl=yes
18748
18749 fi
18750 rm -f core conftest.err conftest.$ac_objext \
18751     conftest$ac_exeext conftest.$ac_ext
18752             fi
18753             CPPFLAGS="$gt_save_CPPFLAGS"
18754             LIBS="$gt_save_LIBS"
18755 fi
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
18757 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
18758         fi
18759
18760                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
18761            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
18762                 && test "$PACKAGE" != gettext-runtime \
18763                 && test "$PACKAGE" != gettext-tools; }; then
18764           gt_use_preinstalled_gnugettext=yes
18765         else
18766                     LIBINTL=
18767           LTLIBINTL=
18768           INCINTL=
18769         fi
18770
18771
18772
18773     if test -n "$INTL_MACOSX_LIBS"; then
18774       if test "$gt_use_preinstalled_gnugettext" = "yes" \
18775          || test "$nls_cv_use_gnu_gettext" = "yes"; then
18776                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
18777         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
18778       fi
18779     fi
18780
18781     if test "$gt_use_preinstalled_gnugettext" = "yes" \
18782        || test "$nls_cv_use_gnu_gettext" = "yes"; then
18783
18784 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
18785
18786     else
18787       USE_NLS=no
18788     fi
18789   fi
18790
18791   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
18792 $as_echo_n "checking whether to use NLS... " >&6; }
18793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
18794 $as_echo "$USE_NLS" >&6; }
18795   if test "$USE_NLS" = "yes"; then
18796     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
18797 $as_echo_n "checking where the gettext function comes from... " >&6; }
18798     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18799       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18800         gt_source="external libintl"
18801       else
18802         gt_source="libc"
18803       fi
18804     else
18805       gt_source="included intl directory"
18806     fi
18807     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
18808 $as_echo "$gt_source" >&6; }
18809   fi
18810
18811   if test "$USE_NLS" = "yes"; then
18812
18813     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
18814       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
18815         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
18816 $as_echo_n "checking how to link with libintl... " >&6; }
18817         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
18818 $as_echo "$LIBINTL" >&6; }
18819
18820   for element in $INCINTL; do
18821     haveit=
18822     for x in $CPPFLAGS; do
18823
18824   acl_save_prefix="$prefix"
18825   prefix="$acl_final_prefix"
18826   acl_save_exec_prefix="$exec_prefix"
18827   exec_prefix="$acl_final_exec_prefix"
18828   eval x=\"$x\"
18829   exec_prefix="$acl_save_exec_prefix"
18830   prefix="$acl_save_prefix"
18831
18832       if test "X$x" = "X$element"; then
18833         haveit=yes
18834         break
18835       fi
18836     done
18837     if test -z "$haveit"; then
18838       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18839     fi
18840   done
18841
18842       fi
18843
18844
18845 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
18846
18847
18848 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
18849
18850     fi
18851
18852         POSUB=po
18853   fi
18854
18855
18856
18857     INTLLIBS="$LIBINTL"
18858
18859
18860
18861
18862
18863
18864
18865 os_name=`uname -s 2>/dev/null`
18866 if test x${prefix} = xNONE ; then
18867    if test `eval echo ${sysconfdir}` = NONE/etc ; then
18868       sysconfdir=/etc/bacula
18869    fi
18870
18871    if test `eval echo ${libdir}` = NONE/lib ; then
18872       case ${os_name} in
18873       Linux)
18874          os_processor=`uname -p 2>/dev/null`
18875          case ${os_processor} in
18876          x86_64)
18877             libdir=/usr/lib64
18878             ;;
18879          *)
18880             libdir=/usr/lib
18881             ;;
18882          esac
18883          ;;
18884       *)
18885          libdir=/usr/lib
18886          ;;
18887       esac
18888    fi
18889
18890    if test `eval echo ${includedir}` = NONE/include ; then
18891       includedir=/usr/include
18892    fi
18893
18894    if test `eval echo ${datarootdir}` = NONE/share ; then
18895       datarootdir=/usr/share
18896    fi
18897    prefix=
18898 fi
18899
18900 if test x${exec_prefix} = xNONE ; then
18901    exec_prefix=${prefix}
18902 fi
18903
18904 sysconfdir=`eval echo ${sysconfdir}`
18905 datarootdir=`eval echo ${datarootdir}`
18906 docdir=`eval echo ${docdir}`
18907 htmldir=`eval echo ${htmldir}`
18908 libdir=`eval echo ${libdir}`
18909 includedir=`eval echo ${includedir}`
18910 localedir=`eval echo ${datarootdir}/locale`
18911 cat >>confdefs.h <<_ACEOF
18912 #define SYSCONFDIR "$sysconfdir"
18913 _ACEOF
18914
18915 cat >>confdefs.h <<_ACEOF
18916 #define LOCALEDIR "$localedir"
18917 _ACEOF
18918
18919
18920 if test x$sbindir = x'${exec_prefix}/sbin' ; then
18921    sbindir=${exec_prefix}/sbin
18922 fi
18923 sbindir=`eval echo ${sbindir}`
18924
18925 if test x$mandir = x'${prefix}/man' ; then
18926    mandir=/usr/share/man
18927 fi
18928
18929 if test x$htmldir = x'/usr/share/doc/bacula/' ; then
18930    htmldir=`eval echo ${docdir}html`
18931 fi
18932
18933 if test x$docdir = x'/usr/share/doc/' ; then
18934    docdir=`eval echo ${docdir}bacula`
18935 fi
18936
18937
18938 for ac_prog in msgfmt
18939 do
18940   # Extract the first word of "$ac_prog", so it can be a program name with args.
18941 set dummy $ac_prog; ac_word=$2
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18943 $as_echo_n "checking for $ac_word... " >&6; }
18944 if ${ac_cv_path_MSGFMT+:} false; then :
18945   $as_echo_n "(cached) " >&6
18946 else
18947   case $MSGFMT in
18948   [\\/]* | ?:[\\/]*)
18949   ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
18950   ;;
18951   *)
18952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18953 for as_dir in $PATH
18954 do
18955   IFS=$as_save_IFS
18956   test -z "$as_dir" && as_dir=.
18957     for ac_exec_ext in '' $ac_executable_extensions; do
18958   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18959     ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
18960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18961     break 2
18962   fi
18963 done
18964   done
18965 IFS=$as_save_IFS
18966
18967   ;;
18968 esac
18969 fi
18970 MSGFMT=$ac_cv_path_MSGFMT
18971 if test -n "$MSGFMT"; then
18972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
18973 $as_echo "$MSGFMT" >&6; }
18974 else
18975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18976 $as_echo "no" >&6; }
18977 fi
18978
18979
18980   test -n "$MSGFMT" && break
18981 done
18982 test -n "$MSGFMT" || MSGFMT="no"
18983
18984 if test "$MSGFMT" = "no"
18985 then
18986    echo 'msgfmt program not found, disabling NLS !'
18987    USE_NLS=no
18988    USE_INCLUDED_LIBINTL=no
18989 #else
18990
18991     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
18992 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
18993 if ${ac_cv_gnu_library_2+:} false; then :
18994   $as_echo_n "(cached) " >&6
18995 else
18996   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18997 /* end confdefs.h.  */
18998
18999 #include <features.h>
19000 #ifdef __GNU_LIBRARY__
19001  #if (__GLIBC__ >= 2)
19002   Lucky GNU user
19003  #endif
19004 #endif
19005
19006 _ACEOF
19007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19008   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
19009   ac_cv_gnu_library_2=yes
19010 else
19011   ac_cv_gnu_library_2=no
19012 fi
19013 rm -f conftest*
19014
19015
19016
19017 fi
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
19019 $as_echo "$ac_cv_gnu_library_2" >&6; }
19020
19021     GLIBC2="$ac_cv_gnu_library_2"
19022
19023
19024 if test -n "$ac_tool_prefix"; then
19025   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19026 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19028 $as_echo_n "checking for $ac_word... " >&6; }
19029 if ${ac_cv_prog_RANLIB+:} false; then :
19030   $as_echo_n "(cached) " >&6
19031 else
19032   if test -n "$RANLIB"; then
19033   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19034 else
19035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19036 for as_dir in $PATH
19037 do
19038   IFS=$as_save_IFS
19039   test -z "$as_dir" && as_dir=.
19040     for ac_exec_ext in '' $ac_executable_extensions; do
19041   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19042     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19043     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19044     break 2
19045   fi
19046 done
19047   done
19048 IFS=$as_save_IFS
19049
19050 fi
19051 fi
19052 RANLIB=$ac_cv_prog_RANLIB
19053 if test -n "$RANLIB"; then
19054   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
19055 $as_echo "$RANLIB" >&6; }
19056 else
19057   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19058 $as_echo "no" >&6; }
19059 fi
19060
19061
19062 fi
19063 if test -z "$ac_cv_prog_RANLIB"; then
19064   ac_ct_RANLIB=$RANLIB
19065   # Extract the first word of "ranlib", so it can be a program name with args.
19066 set dummy ranlib; ac_word=$2
19067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19068 $as_echo_n "checking for $ac_word... " >&6; }
19069 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
19070   $as_echo_n "(cached) " >&6
19071 else
19072   if test -n "$ac_ct_RANLIB"; then
19073   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19074 else
19075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19076 for as_dir in $PATH
19077 do
19078   IFS=$as_save_IFS
19079   test -z "$as_dir" && as_dir=.
19080     for ac_exec_ext in '' $ac_executable_extensions; do
19081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19082     ac_cv_prog_ac_ct_RANLIB="ranlib"
19083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19084     break 2
19085   fi
19086 done
19087   done
19088 IFS=$as_save_IFS
19089
19090 fi
19091 fi
19092 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19093 if test -n "$ac_ct_RANLIB"; then
19094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
19095 $as_echo "$ac_ct_RANLIB" >&6; }
19096 else
19097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19099 fi
19100
19101   if test "x$ac_ct_RANLIB" = x; then
19102     RANLIB=":"
19103   else
19104     case $cross_compiling:$ac_tool_warned in
19105 yes:)
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
19107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
19108 ac_tool_warned=yes ;;
19109 esac
19110     RANLIB=$ac_ct_RANLIB
19111   fi
19112 else
19113   RANLIB="$ac_cv_prog_RANLIB"
19114 fi
19115
19116
19117         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5
19118 $as_echo_n "checking for strerror in -lcposix... " >&6; }
19119 if ${ac_cv_lib_cposix_strerror+:} false; then :
19120   $as_echo_n "(cached) " >&6
19121 else
19122   ac_check_lib_save_LIBS=$LIBS
19123 LIBS="-lcposix  $LIBS"
19124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19125 /* end confdefs.h.  */
19126
19127 /* Override any GCC internal prototype to avoid an error.
19128    Use char because int might match the return type of a GCC
19129    builtin and then its argument prototype would still apply.  */
19130 #ifdef __cplusplus
19131 extern "C"
19132 #endif
19133 char strerror ();
19134 int
19135 main ()
19136 {
19137 return strerror ();
19138   ;
19139   return 0;
19140 }
19141 _ACEOF
19142 if ac_fn_c_try_link "$LINENO"; then :
19143   ac_cv_lib_cposix_strerror=yes
19144 else
19145   ac_cv_lib_cposix_strerror=no
19146 fi
19147 rm -f core conftest.err conftest.$ac_objext \
19148     conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19150 fi
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5
19152 $as_echo "$ac_cv_lib_cposix_strerror" >&6; }
19153 if test "x$ac_cv_lib_cposix_strerror" = xyes; then :
19154   LIBS="$LIBS -lcposix"
19155 fi
19156
19157
19158
19159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
19160 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
19161 if ${ac_cv_c_const+:} false; then :
19162   $as_echo_n "(cached) " >&6
19163 else
19164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19165 /* end confdefs.h.  */
19166
19167 int
19168 main ()
19169 {
19170
19171 #ifndef __cplusplus
19172   /* Ultrix mips cc rejects this sort of thing.  */
19173   typedef int charset[2];
19174   const charset cs = { 0, 0 };
19175   /* SunOS 4.1.1 cc rejects this.  */
19176   char const *const *pcpcc;
19177   char **ppc;
19178   /* NEC SVR4.0.2 mips cc rejects this.  */
19179   struct point {int x, y;};
19180   static struct point const zero = {0,0};
19181   /* AIX XL C 1.02.0.0 rejects this.
19182      It does not let you subtract one const X* pointer from another in
19183      an arm of an if-expression whose if-part is not a constant
19184      expression */
19185   const char *g = "string";
19186   pcpcc = &g + (g ? g-g : 0);
19187   /* HPUX 7.0 cc rejects these. */
19188   ++pcpcc;
19189   ppc = (char**) pcpcc;
19190   pcpcc = (char const *const *) ppc;
19191   { /* SCO 3.2v4 cc rejects this sort of thing.  */
19192     char tx;
19193     char *t = &tx;
19194     char const *s = 0 ? (char *) 0 : (char const *) 0;
19195
19196     *t++ = 0;
19197     if (s) return 0;
19198   }
19199   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19200     int x[] = {25, 17};
19201     const int *foo = &x[0];
19202     ++foo;
19203   }
19204   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19205     typedef const int *iptr;
19206     iptr p = 0;
19207     ++p;
19208   }
19209   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19210        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19211     struct s { int j; const int *ap[3]; } bx;
19212     struct s *b = &bx; b->j = 5;
19213   }
19214   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19215     const int foo = 10;
19216     if (!foo) return 0;
19217   }
19218   return !cs[0] && !zero.x;
19219 #endif
19220
19221   ;
19222   return 0;
19223 }
19224 _ACEOF
19225 if ac_fn_c_try_compile "$LINENO"; then :
19226   ac_cv_c_const=yes
19227 else
19228   ac_cv_c_const=no
19229 fi
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 fi
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19233 $as_echo "$ac_cv_c_const" >&6; }
19234 if test $ac_cv_c_const = no; then
19235
19236 $as_echo "#define const /**/" >>confdefs.h
19237
19238 fi
19239
19240
19241   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5
19242 $as_echo_n "checking for signed... " >&6; }
19243 if ${bh_cv_c_signed+:} false; then :
19244   $as_echo_n "(cached) " >&6
19245 else
19246   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19247 /* end confdefs.h.  */
19248
19249 int
19250 main ()
19251 {
19252 signed char x;
19253   ;
19254   return 0;
19255 }
19256 _ACEOF
19257 if ac_fn_c_try_compile "$LINENO"; then :
19258   bh_cv_c_signed=yes
19259 else
19260   bh_cv_c_signed=no
19261 fi
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263 fi
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5
19265 $as_echo "$bh_cv_c_signed" >&6; }
19266   if test $bh_cv_c_signed = no; then
19267
19268 $as_echo "#define signed /**/" >>confdefs.h
19269
19270   fi
19271
19272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
19273 $as_echo_n "checking for inline... " >&6; }
19274 if ${ac_cv_c_inline+:} false; then :
19275   $as_echo_n "(cached) " >&6
19276 else
19277   ac_cv_c_inline=no
19278 for ac_kw in inline __inline__ __inline; do
19279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h.  */
19281 #ifndef __cplusplus
19282 typedef int foo_t;
19283 static $ac_kw foo_t static_foo () {return 0; }
19284 $ac_kw foo_t foo () {return 0; }
19285 #endif
19286
19287 _ACEOF
19288 if ac_fn_c_try_compile "$LINENO"; then :
19289   ac_cv_c_inline=$ac_kw
19290 fi
19291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19292   test "$ac_cv_c_inline" != no && break
19293 done
19294
19295 fi
19296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
19297 $as_echo "$ac_cv_c_inline" >&6; }
19298
19299 case $ac_cv_c_inline in
19300   inline | yes) ;;
19301   *)
19302     case $ac_cv_c_inline in
19303       no) ac_val=;;
19304       *) ac_val=$ac_cv_c_inline;;
19305     esac
19306     cat >>confdefs.h <<_ACEOF
19307 #ifndef __cplusplus
19308 #define inline $ac_val
19309 #endif
19310 _ACEOF
19311     ;;
19312 esac
19313
19314 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
19315 if test "x$ac_cv_type_off_t" = xyes; then :
19316
19317 else
19318
19319 cat >>confdefs.h <<_ACEOF
19320 #define off_t long int
19321 _ACEOF
19322
19323 fi
19324
19325 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
19326 if test "x$ac_cv_type_size_t" = xyes; then :
19327
19328 else
19329
19330 cat >>confdefs.h <<_ACEOF
19331 #define size_t unsigned int
19332 _ACEOF
19333
19334 fi
19335
19336
19337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5
19338 $as_echo_n "checking for long long... " >&6; }
19339 if ${ac_cv_type_long_long+:} false; then :
19340   $as_echo_n "(cached) " >&6
19341 else
19342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19343 /* end confdefs.h.  */
19344 long long ll = 1LL; int i = 63;
19345 int
19346 main ()
19347 {
19348 long long llmax = (long long) -1;
19349      return ll << i | ll >> i | llmax / ll | llmax % ll;
19350   ;
19351   return 0;
19352 }
19353 _ACEOF
19354 if ac_fn_c_try_link "$LINENO"; then :
19355   ac_cv_type_long_long=yes
19356 else
19357   ac_cv_type_long_long=no
19358 fi
19359 rm -f core conftest.err conftest.$ac_objext \
19360     conftest$ac_exeext conftest.$ac_ext
19361 fi
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5
19363 $as_echo "$ac_cv_type_long_long" >&6; }
19364   if test $ac_cv_type_long_long = yes; then
19365
19366 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
19367
19368   fi
19369
19370
19371   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
19372 $as_echo_n "checking for long double... " >&6; }
19373 if ${gt_cv_c_long_double+:} false; then :
19374   $as_echo_n "(cached) " >&6
19375 else
19376   if test "$GCC" = yes; then
19377        gt_cv_c_long_double=yes
19378      else
19379        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19380 /* end confdefs.h.  */
19381
19382          /* The Stardent Vistra knows sizeof(long double), but does not support it.  */
19383          long double foo = 0.0;
19384          /* On Ultrix 4.3 cc, long double is 4 and double is 8.  */
19385          int array [2*(sizeof(long double) >= sizeof(double)) - 1];
19386
19387 int
19388 main ()
19389 {
19390
19391   ;
19392   return 0;
19393 }
19394 _ACEOF
19395 if ac_fn_c_try_compile "$LINENO"; then :
19396   gt_cv_c_long_double=yes
19397 else
19398   gt_cv_c_long_double=no
19399 fi
19400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19401      fi
19402 fi
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5
19404 $as_echo "$gt_cv_c_long_double" >&6; }
19405   if test $gt_cv_c_long_double = yes; then
19406
19407 $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
19408
19409   fi
19410
19411
19412   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
19413 $as_echo_n "checking for wchar_t... " >&6; }
19414 if ${gt_cv_c_wchar_t+:} false; then :
19415   $as_echo_n "(cached) " >&6
19416 else
19417   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19418 /* end confdefs.h.  */
19419 #include <stddef.h>
19420        wchar_t foo = (wchar_t)'\0';
19421 int
19422 main ()
19423 {
19424
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 if ac_fn_c_try_compile "$LINENO"; then :
19430   gt_cv_c_wchar_t=yes
19431 else
19432   gt_cv_c_wchar_t=no
19433 fi
19434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19435 fi
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
19437 $as_echo "$gt_cv_c_wchar_t" >&6; }
19438   if test $gt_cv_c_wchar_t = yes; then
19439
19440 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
19441
19442   fi
19443
19444
19445   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
19446 $as_echo_n "checking for wint_t... " >&6; }
19447 if ${gt_cv_c_wint_t+:} false; then :
19448   $as_echo_n "(cached) " >&6
19449 else
19450   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h.  */
19452 #include <wchar.h>
19453        wint_t foo = (wchar_t)'\0';
19454 int
19455 main ()
19456 {
19457
19458   ;
19459   return 0;
19460 }
19461 _ACEOF
19462 if ac_fn_c_try_compile "$LINENO"; then :
19463   gt_cv_c_wint_t=yes
19464 else
19465   gt_cv_c_wint_t=no
19466 fi
19467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19468 fi
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
19470 $as_echo "$gt_cv_c_wint_t" >&6; }
19471   if test $gt_cv_c_wint_t = yes; then
19472
19473 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h
19474
19475   fi
19476
19477
19478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
19479 $as_echo_n "checking for inttypes.h... " >&6; }
19480 if ${gl_cv_header_inttypes_h+:} false; then :
19481   $as_echo_n "(cached) " >&6
19482 else
19483   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19484 /* end confdefs.h.  */
19485 #include <sys/types.h>
19486 #include <inttypes.h>
19487 int
19488 main ()
19489 {
19490 uintmax_t i = (uintmax_t) -1;
19491   ;
19492   return 0;
19493 }
19494 _ACEOF
19495 if ac_fn_c_try_compile "$LINENO"; then :
19496   gl_cv_header_inttypes_h=yes
19497 else
19498   gl_cv_header_inttypes_h=no
19499 fi
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501 fi
19502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
19503 $as_echo "$gl_cv_header_inttypes_h" >&6; }
19504   if test $gl_cv_header_inttypes_h = yes; then
19505
19506 cat >>confdefs.h <<_ACEOF
19507 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
19508 _ACEOF
19509
19510   fi
19511
19512
19513   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
19514 $as_echo_n "checking for stdint.h... " >&6; }
19515 if ${gl_cv_header_stdint_h+:} false; then :
19516   $as_echo_n "(cached) " >&6
19517 else
19518   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19519 /* end confdefs.h.  */
19520 #include <sys/types.h>
19521 #include <stdint.h>
19522 int
19523 main ()
19524 {
19525 uintmax_t i = (uintmax_t) -1;
19526   ;
19527   return 0;
19528 }
19529 _ACEOF
19530 if ac_fn_c_try_compile "$LINENO"; then :
19531   gl_cv_header_stdint_h=yes
19532 else
19533   gl_cv_header_stdint_h=no
19534 fi
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 fi
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
19538 $as_echo "$gl_cv_header_stdint_h" >&6; }
19539   if test $gl_cv_header_stdint_h = yes; then
19540
19541 cat >>confdefs.h <<_ACEOF
19542 #define HAVE_STDINT_H_WITH_UINTMAX 1
19543 _ACEOF
19544
19545   fi
19546
19547
19548
19549
19550   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
19551 $as_echo_n "checking for intmax_t... " >&6; }
19552 if ${gt_cv_c_intmax_t+:} false; then :
19553   $as_echo_n "(cached) " >&6
19554 else
19555   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19556 /* end confdefs.h.  */
19557
19558 #include <stddef.h>
19559 #include <stdlib.h>
19560 #if HAVE_STDINT_H_WITH_UINTMAX
19561 #include <stdint.h>
19562 #endif
19563 #if HAVE_INTTYPES_H_WITH_UINTMAX
19564 #include <inttypes.h>
19565 #endif
19566
19567 int
19568 main ()
19569 {
19570 intmax_t x = -1;
19571   ;
19572   return 0;
19573 }
19574 _ACEOF
19575 if ac_fn_c_try_compile "$LINENO"; then :
19576   gt_cv_c_intmax_t=yes
19577 else
19578   gt_cv_c_intmax_t=no
19579 fi
19580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19581 fi
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
19583 $as_echo "$gt_cv_c_intmax_t" >&6; }
19584   if test $gt_cv_c_intmax_t = yes; then
19585
19586 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
19587
19588   fi
19589
19590
19591
19592   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
19593 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
19594 if ${gt_cv_func_printf_posix+:} false; then :
19595   $as_echo_n "(cached) " >&6
19596 else
19597
19598       if test "$cross_compiling" = yes; then :
19599
19600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h.  */
19602
19603 #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
19604   notposix
19605 #endif
19606
19607 _ACEOF
19608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19609   $EGREP "notposix" >/dev/null 2>&1; then :
19610   gt_cv_func_printf_posix="guessing no"
19611 else
19612   gt_cv_func_printf_posix="guessing yes"
19613 fi
19614 rm -f conftest*
19615
19616
19617 else
19618   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h.  */
19620
19621 #include <stdio.h>
19622 #include <string.h>
19623 /* The string "%2$d %1$d", with dollar characters protected from the shell's
19624    dollar expansion (possibly an autoconf bug).  */
19625 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
19626 static char buf[100];
19627 int main ()
19628 {
19629   sprintf (buf, format, 33, 55);
19630   return (strcmp (buf, "55 33") != 0);
19631 }
19632 _ACEOF
19633 if ac_fn_c_try_run "$LINENO"; then :
19634   gt_cv_func_printf_posix=yes
19635 else
19636   gt_cv_func_printf_posix=no
19637 fi
19638 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19639   conftest.$ac_objext conftest.beam conftest.$ac_ext
19640 fi
19641
19642
19643 fi
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
19645 $as_echo "$gt_cv_func_printf_posix" >&6; }
19646   case $gt_cv_func_printf_posix in
19647     *yes)
19648
19649 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
19650
19651       ;;
19652   esac
19653
19654 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19655 # for constant arguments.  Useless!
19656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
19657 $as_echo_n "checking for working alloca.h... " >&6; }
19658 if ${ac_cv_working_alloca_h+:} false; then :
19659   $as_echo_n "(cached) " >&6
19660 else
19661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h.  */
19663 #include <alloca.h>
19664 int
19665 main ()
19666 {
19667 char *p = (char *) alloca (2 * sizeof (int));
19668                           if (p) return 0;
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 if ac_fn_c_try_link "$LINENO"; then :
19674   ac_cv_working_alloca_h=yes
19675 else
19676   ac_cv_working_alloca_h=no
19677 fi
19678 rm -f core conftest.err conftest.$ac_objext \
19679     conftest$ac_exeext conftest.$ac_ext
19680 fi
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
19682 $as_echo "$ac_cv_working_alloca_h" >&6; }
19683 if test $ac_cv_working_alloca_h = yes; then
19684
19685 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
19686
19687 fi
19688
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
19690 $as_echo_n "checking for alloca... " >&6; }
19691 if ${ac_cv_func_alloca_works+:} false; then :
19692   $as_echo_n "(cached) " >&6
19693 else
19694   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h.  */
19696 #ifdef __GNUC__
19697 # define alloca __builtin_alloca
19698 #else
19699 # ifdef _MSC_VER
19700 #  include <malloc.h>
19701 #  define alloca _alloca
19702 # else
19703 #  ifdef HAVE_ALLOCA_H
19704 #   include <alloca.h>
19705 #  else
19706 #   ifdef _AIX
19707  #pragma alloca
19708 #   else
19709 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19710 void *alloca (size_t);
19711 #    endif
19712 #   endif
19713 #  endif
19714 # endif
19715 #endif
19716
19717 int
19718 main ()
19719 {
19720 char *p = (char *) alloca (1);
19721                                     if (p) return 0;
19722   ;
19723   return 0;
19724 }
19725 _ACEOF
19726 if ac_fn_c_try_link "$LINENO"; then :
19727   ac_cv_func_alloca_works=yes
19728 else
19729   ac_cv_func_alloca_works=no
19730 fi
19731 rm -f core conftest.err conftest.$ac_objext \
19732     conftest$ac_exeext conftest.$ac_ext
19733 fi
19734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
19735 $as_echo "$ac_cv_func_alloca_works" >&6; }
19736
19737 if test $ac_cv_func_alloca_works = yes; then
19738
19739 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
19740
19741 else
19742   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19743 # that cause trouble.  Some versions do not even contain alloca or
19744 # contain a buggy version.  If you still want to use their alloca,
19745 # use ar to extract alloca.o from them instead of compiling alloca.c.
19746
19747 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19748
19749 $as_echo "#define C_ALLOCA 1" >>confdefs.h
19750
19751
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
19753 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
19754 if ${ac_cv_os_cray+:} false; then :
19755   $as_echo_n "(cached) " >&6
19756 else
19757   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19758 /* end confdefs.h.  */
19759 #if defined CRAY && ! defined CRAY2
19760 webecray
19761 #else
19762 wenotbecray
19763 #endif
19764
19765 _ACEOF
19766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19767   $EGREP "webecray" >/dev/null 2>&1; then :
19768   ac_cv_os_cray=yes
19769 else
19770   ac_cv_os_cray=no
19771 fi
19772 rm -f conftest*
19773
19774 fi
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
19776 $as_echo "$ac_cv_os_cray" >&6; }
19777 if test $ac_cv_os_cray = yes; then
19778   for ac_func in _getb67 GETB67 getb67; do
19779     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19780 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
19781 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19782
19783 cat >>confdefs.h <<_ACEOF
19784 #define CRAY_STACKSEG_END $ac_func
19785 _ACEOF
19786
19787     break
19788 fi
19789
19790   done
19791 fi
19792
19793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
19794 $as_echo_n "checking stack direction for C alloca... " >&6; }
19795 if ${ac_cv_c_stack_direction+:} false; then :
19796   $as_echo_n "(cached) " >&6
19797 else
19798   if test "$cross_compiling" = yes; then :
19799   ac_cv_c_stack_direction=0
19800 else
19801   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h.  */
19803 $ac_includes_default
19804 int
19805 find_stack_direction (int *addr, int depth)
19806 {
19807   int dir, dummy = 0;
19808   if (! addr)
19809     addr = &dummy;
19810   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
19811   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
19812   return dir + dummy;
19813 }
19814
19815 int
19816 main (int argc, char **argv)
19817 {
19818   return find_stack_direction (0, argc + !argv + 20) < 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_run "$LINENO"; then :
19822   ac_cv_c_stack_direction=1
19823 else
19824   ac_cv_c_stack_direction=-1
19825 fi
19826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19827   conftest.$ac_objext conftest.beam conftest.$ac_ext
19828 fi
19829
19830 fi
19831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
19832 $as_echo "$ac_cv_c_stack_direction" >&6; }
19833 cat >>confdefs.h <<_ACEOF
19834 #define STACK_DIRECTION $ac_cv_c_stack_direction
19835 _ACEOF
19836
19837
19838 fi
19839
19840
19841
19842
19843   for ac_header in $ac_header_list
19844 do :
19845   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19846 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
19847 "
19848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19849   cat >>confdefs.h <<_ACEOF
19850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19851 _ACEOF
19852
19853 fi
19854
19855 done
19856
19857
19858
19859
19860
19861
19862
19863
19864 for ac_func in getpagesize
19865 do :
19866   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
19867 if test "x$ac_cv_func_getpagesize" = xyes; then :
19868   cat >>confdefs.h <<_ACEOF
19869 #define HAVE_GETPAGESIZE 1
19870 _ACEOF
19871
19872 fi
19873 done
19874
19875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
19876 $as_echo_n "checking for working mmap... " >&6; }
19877 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
19878   $as_echo_n "(cached) " >&6
19879 else
19880   if test "$cross_compiling" = yes; then :
19881   ac_cv_func_mmap_fixed_mapped=no
19882 else
19883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19884 /* end confdefs.h.  */
19885 $ac_includes_default
19886 /* malloc might have been renamed as rpl_malloc. */
19887 #undef malloc
19888
19889 /* Thanks to Mike Haertel and Jim Avera for this test.
19890    Here is a matrix of mmap possibilities:
19891         mmap private not fixed
19892         mmap private fixed at somewhere currently unmapped
19893         mmap private fixed at somewhere already mapped
19894         mmap shared not fixed
19895         mmap shared fixed at somewhere currently unmapped
19896         mmap shared fixed at somewhere already mapped
19897    For private mappings, we should verify that changes cannot be read()
19898    back from the file, nor mmap's back from the file at a different
19899    address.  (There have been systems where private was not correctly
19900    implemented like the infamous i386 svr4.0, and systems where the
19901    VM page cache was not coherent with the file system buffer cache
19902    like early versions of FreeBSD and possibly contemporary NetBSD.)
19903    For shared mappings, we should conversely verify that changes get
19904    propagated back to all the places they're supposed to be.
19905
19906    Grep wants private fixed already mapped.
19907    The main things grep needs to know about mmap are:
19908    * does it exist and is it safe to write into the mmap'd area
19909    * how to use it (BSD variants)  */
19910
19911 #include <fcntl.h>
19912 #include <sys/mman.h>
19913
19914 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
19915 char *malloc ();
19916 #endif
19917
19918 /* This mess was copied from the GNU getpagesize.h.  */
19919 #ifndef HAVE_GETPAGESIZE
19920 # ifdef _SC_PAGESIZE
19921 #  define getpagesize() sysconf(_SC_PAGESIZE)
19922 # else /* no _SC_PAGESIZE */
19923 #  ifdef HAVE_SYS_PARAM_H
19924 #   include <sys/param.h>
19925 #   ifdef EXEC_PAGESIZE
19926 #    define getpagesize() EXEC_PAGESIZE
19927 #   else /* no EXEC_PAGESIZE */
19928 #    ifdef NBPG
19929 #     define getpagesize() NBPG * CLSIZE
19930 #     ifndef CLSIZE
19931 #      define CLSIZE 1
19932 #     endif /* no CLSIZE */
19933 #    else /* no NBPG */
19934 #     ifdef NBPC
19935 #      define getpagesize() NBPC
19936 #     else /* no NBPC */
19937 #      ifdef PAGESIZE
19938 #       define getpagesize() PAGESIZE
19939 #      endif /* PAGESIZE */
19940 #     endif /* no NBPC */
19941 #    endif /* no NBPG */
19942 #   endif /* no EXEC_PAGESIZE */
19943 #  else /* no HAVE_SYS_PARAM_H */
19944 #   define getpagesize() 8192   /* punt totally */
19945 #  endif /* no HAVE_SYS_PARAM_H */
19946 # endif /* no _SC_PAGESIZE */
19947
19948 #endif /* no HAVE_GETPAGESIZE */
19949
19950 int
19951 main ()
19952 {
19953   char *data, *data2, *data3;
19954   const char *cdata2;
19955   int i, pagesize;
19956   int fd, fd2;
19957
19958   pagesize = getpagesize ();
19959
19960   /* First, make a file with some known garbage in it. */
19961   data = (char *) malloc (pagesize);
19962   if (!data)
19963     return 1;
19964   for (i = 0; i < pagesize; ++i)
19965     *(data + i) = rand ();
19966   umask (0);
19967   fd = creat ("conftest.mmap", 0600);
19968   if (fd < 0)
19969     return 2;
19970   if (write (fd, data, pagesize) != pagesize)
19971     return 3;
19972   close (fd);
19973
19974   /* Next, check that the tail of a page is zero-filled.  File must have
19975      non-zero length, otherwise we risk SIGBUS for entire page.  */
19976   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
19977   if (fd2 < 0)
19978     return 4;
19979   cdata2 = "";
19980   if (write (fd2, cdata2, 1) != 1)
19981     return 5;
19982   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
19983   if (data2 == MAP_FAILED)
19984     return 6;
19985   for (i = 0; i < pagesize; ++i)
19986     if (*(data2 + i))
19987       return 7;
19988   close (fd2);
19989   if (munmap (data2, pagesize))
19990     return 8;
19991
19992   /* Next, try to mmap the file at a fixed address which already has
19993      something else allocated at it.  If we can, also make sure that
19994      we see the same garbage.  */
19995   fd = open ("conftest.mmap", O_RDWR);
19996   if (fd < 0)
19997     return 9;
19998   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19999                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20000     return 10;
20001   for (i = 0; i < pagesize; ++i)
20002     if (*(data + i) != *(data2 + i))
20003       return 11;
20004
20005   /* Finally, make sure that changes to the mapped area do not
20006      percolate back to the file as seen by read().  (This is a bug on
20007      some variants of i386 svr4.0.)  */
20008   for (i = 0; i < pagesize; ++i)
20009     *(data2 + i) = *(data2 + i) + 1;
20010   data3 = (char *) malloc (pagesize);
20011   if (!data3)
20012     return 12;
20013   if (read (fd, data3, pagesize) != pagesize)
20014     return 13;
20015   for (i = 0; i < pagesize; ++i)
20016     if (*(data + i) != *(data3 + i))
20017       return 14;
20018   close (fd);
20019   return 0;
20020 }
20021 _ACEOF
20022 if ac_fn_c_try_run "$LINENO"; then :
20023   ac_cv_func_mmap_fixed_mapped=yes
20024 else
20025   ac_cv_func_mmap_fixed_mapped=no
20026 fi
20027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20028   conftest.$ac_objext conftest.beam conftest.$ac_ext
20029 fi
20030
20031 fi
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
20033 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
20034 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20035
20036 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
20037
20038 fi
20039 rm -f conftest.mmap conftest.txt
20040
20041
20042     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5
20043 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
20044 if ${ac_cv_gnu_library_2_1+:} false; then :
20045   $as_echo_n "(cached) " >&6
20046 else
20047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20048 /* end confdefs.h.  */
20049
20050 #include <features.h>
20051 #ifdef __GNU_LIBRARY__
20052  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20053   Lucky GNU user
20054  #endif
20055 #endif
20056
20057 _ACEOF
20058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059   $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
20060   ac_cv_gnu_library_2_1=yes
20061 else
20062   ac_cv_gnu_library_2_1=no
20063 fi
20064 rm -f conftest*
20065
20066
20067
20068 fi
20069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
20070 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20071
20072     GLIBC21="$ac_cv_gnu_library_2_1"
20073
20074
20075
20076
20077   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
20078 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
20079 if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
20080   $as_echo_n "(cached) " >&6
20081 else
20082
20083       if test "$cross_compiling" = yes; then :
20084
20085           # Guess based on the CPU.
20086           case "$host_cpu" in
20087             alpha* | i3456786 | m68k | s390*)
20088               gt_cv_int_divbyzero_sigfpe="guessing yes";;
20089             *)
20090               gt_cv_int_divbyzero_sigfpe="guessing no";;
20091           esac
20092
20093 else
20094   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20095 /* end confdefs.h.  */
20096
20097 #include <stdlib.h>
20098 #include <signal.h>
20099
20100 static void
20101 #ifdef __cplusplus
20102 sigfpe_handler (int sig)
20103 #else
20104 sigfpe_handler (sig) int sig;
20105 #endif
20106 {
20107   /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
20108   exit (sig != SIGFPE);
20109 }
20110
20111 int x = 1;
20112 int y = 0;
20113 int z;
20114 int nan;
20115
20116 int main ()
20117 {
20118   signal (SIGFPE, sigfpe_handler);
20119 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
20120 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
20121   signal (SIGTRAP, sigfpe_handler);
20122 #endif
20123 /* Linux/SPARC yields signal SIGILL.  */
20124 #if defined (__sparc__) && defined (__linux__)
20125   signal (SIGILL, sigfpe_handler);
20126 #endif
20127
20128   z = x / y;
20129   nan = y / y;
20130   exit (1);
20131 }
20132
20133 _ACEOF
20134 if ac_fn_c_try_run "$LINENO"; then :
20135   gt_cv_int_divbyzero_sigfpe=yes
20136 else
20137   gt_cv_int_divbyzero_sigfpe=no
20138 fi
20139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20140   conftest.$ac_objext conftest.beam conftest.$ac_ext
20141 fi
20142
20143
20144 fi
20145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
20146 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
20147   case "$gt_cv_int_divbyzero_sigfpe" in
20148     *yes) value=1;;
20149     *) value=0;;
20150   esac
20151
20152 cat >>confdefs.h <<_ACEOF
20153 #define INTDIV0_RAISES_SIGFPE $value
20154 _ACEOF
20155
20156
20157
20158   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5
20159 $as_echo_n "checking for unsigned long long... " >&6; }
20160 if ${ac_cv_type_unsigned_long_long+:} false; then :
20161   $as_echo_n "(cached) " >&6
20162 else
20163   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h.  */
20165 unsigned long long ull = 1ULL; int i = 63;
20166 int
20167 main ()
20168 {
20169 unsigned long long ullmax = (unsigned long long) -1;
20170      return ull << i | ull >> i | ullmax / ull | ullmax % ull;
20171   ;
20172   return 0;
20173 }
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176   ac_cv_type_unsigned_long_long=yes
20177 else
20178   ac_cv_type_unsigned_long_long=no
20179 fi
20180 rm -f core conftest.err conftest.$ac_objext \
20181     conftest$ac_exeext conftest.$ac_ext
20182 fi
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5
20184 $as_echo "$ac_cv_type_unsigned_long_long" >&6; }
20185   if test $ac_cv_type_unsigned_long_long = yes; then
20186
20187 $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h
20188
20189   fi
20190
20191
20192
20193
20194   if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
20195
20196     test $ac_cv_type_unsigned_long_long = yes \
20197       && ac_type='unsigned long long' \
20198       || ac_type='unsigned long'
20199
20200 cat >>confdefs.h <<_ACEOF
20201 #define uintmax_t $ac_type
20202 _ACEOF
20203
20204   else
20205
20206 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
20207
20208   fi
20209
20210
20211   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
20212 $as_echo_n "checking for inttypes.h... " >&6; }
20213 if ${gt_cv_header_inttypes_h+:} false; then :
20214   $as_echo_n "(cached) " >&6
20215 else
20216
20217     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h.  */
20219 #include <sys/types.h>
20220 #include <inttypes.h>
20221 int
20222 main ()
20223 {
20224
20225   ;
20226   return 0;
20227 }
20228 _ACEOF
20229 if ac_fn_c_try_compile "$LINENO"; then :
20230   gt_cv_header_inttypes_h=yes
20231 else
20232   gt_cv_header_inttypes_h=no
20233 fi
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20235
20236 fi
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5
20238 $as_echo "$gt_cv_header_inttypes_h" >&6; }
20239   if test $gt_cv_header_inttypes_h = yes; then
20240
20241 cat >>confdefs.h <<_ACEOF
20242 #define HAVE_INTTYPES_H 1
20243 _ACEOF
20244
20245   fi
20246
20247
20248
20249   if test $gt_cv_header_inttypes_h = yes; then
20250     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
20251 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
20252 if ${gt_cv_inttypes_pri_broken+:} false; then :
20253   $as_echo_n "(cached) " >&6
20254 else
20255
20256         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20257 /* end confdefs.h.  */
20258 #include <inttypes.h>
20259 #ifdef PRId32
20260 char *p = PRId32;
20261 #endif
20262
20263 int
20264 main ()
20265 {
20266
20267   ;
20268   return 0;
20269 }
20270 _ACEOF
20271 if ac_fn_c_try_compile "$LINENO"; then :
20272   gt_cv_inttypes_pri_broken=no
20273 else
20274   gt_cv_inttypes_pri_broken=yes
20275 fi
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277
20278 fi
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
20280 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
20281   fi
20282   if test "$gt_cv_inttypes_pri_broken" = yes; then
20283
20284 cat >>confdefs.h <<_ACEOF
20285 #define PRI_MACROS_BROKEN 1
20286 _ACEOF
20287
20288   fi
20289
20290
20291   for ac_header in stdint.h
20292 do :
20293   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20294 if test "x$ac_cv_header_stdint_h" = xyes; then :
20295   cat >>confdefs.h <<_ACEOF
20296 #define HAVE_STDINT_H 1
20297 _ACEOF
20298
20299 fi
20300
20301 done
20302
20303     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
20304 $as_echo_n "checking for SIZE_MAX... " >&6; }
20305   result=
20306   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h.  */
20308
20309 #include <limits.h>
20310 #if HAVE_STDINT_H
20311 #include <stdint.h>
20312 #endif
20313 #ifdef SIZE_MAX
20314 Found it
20315 #endif
20316
20317 _ACEOF
20318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20319   $EGREP "Found it" >/dev/null 2>&1; then :
20320   result=yes
20321 fi
20322 rm -f conftest*
20323
20324   if test -z "$result"; then
20325                     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi"        "#include <stddef.h>"; then :
20326
20327 else
20328   result=?
20329 fi
20330
20331
20332     if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo"        "#include <stddef.h>"; then :
20333
20334 else
20335   result=?
20336 fi
20337
20338
20339     if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"; then :
20340
20341 else
20342   result=?
20343 fi
20344
20345
20346     if test "$fits_in_uint" = 1; then
20347                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20348 /* end confdefs.h.  */
20349 #include <stddef.h>
20350         extern size_t foo;
20351         extern unsigned long foo;
20352
20353 int
20354 main ()
20355 {
20356
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 if ac_fn_c_try_compile "$LINENO"; then :
20362   fits_in_uint=0
20363 fi
20364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20365     fi
20366     if test -z "$result"; then
20367       if test "$fits_in_uint" = 1; then
20368         result="$res_hi$res_lo"U
20369       else
20370         result="$res_hi$res_lo"UL
20371       fi
20372     else
20373             result='~(size_t)0'
20374     fi
20375   fi
20376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
20377 $as_echo "$result" >&6; }
20378   if test "$result" != yes; then
20379
20380 cat >>confdefs.h <<_ACEOF
20381 #define SIZE_MAX $result
20382 _ACEOF
20383
20384   fi
20385
20386
20387
20388
20389   for ac_header in stdint.h
20390 do :
20391   ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20392 if test "x$ac_cv_header_stdint_h" = xyes; then :
20393   cat >>confdefs.h <<_ACEOF
20394 #define HAVE_STDINT_H 1
20395 _ACEOF
20396
20397 fi
20398
20399 done
20400
20401
20402
20403
20404
20405
20406
20407
20408   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
20409 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
20410
20411 else
20412
20413 $as_echo "#define ptrdiff_t long" >>confdefs.h
20414
20415
20416 fi
20417
20418   for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
20419 stdlib.h string.h unistd.h sys/param.h
20420 do :
20421   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20422 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20423 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20424   cat >>confdefs.h <<_ACEOF
20425 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20426 _ACEOF
20427
20428 fi
20429
20430 done
20431
20432   for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
20433 mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
20434 strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
20435 __fsetlocking
20436 do :
20437   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20438 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20439 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20440   cat >>confdefs.h <<_ACEOF
20441 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20442 _ACEOF
20443
20444 fi
20445 done
20446
20447
20448
20449   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5
20450 $as_echo_n "checking whether _snprintf is declared... " >&6; }
20451 if ${ac_cv_have_decl__snprintf+:} false; then :
20452   $as_echo_n "(cached) " >&6
20453 else
20454   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20455 /* end confdefs.h.  */
20456 #include <stdio.h>
20457 int
20458 main ()
20459 {
20460
20461 #ifndef _snprintf
20462   char *p = (char *) _snprintf;
20463 #endif
20464
20465   ;
20466   return 0;
20467 }
20468 _ACEOF
20469 if ac_fn_c_try_compile "$LINENO"; then :
20470   ac_cv_have_decl__snprintf=yes
20471 else
20472   ac_cv_have_decl__snprintf=no
20473 fi
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 fi
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5
20477 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
20478   if test $ac_cv_have_decl__snprintf = yes; then
20479     gt_value=1
20480   else
20481     gt_value=0
20482   fi
20483
20484 cat >>confdefs.h <<_ACEOF
20485 #define HAVE_DECL__SNPRINTF $gt_value
20486 _ACEOF
20487
20488
20489
20490   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5
20491 $as_echo_n "checking whether _snwprintf is declared... " >&6; }
20492 if ${ac_cv_have_decl__snwprintf+:} false; then :
20493   $as_echo_n "(cached) " >&6
20494 else
20495   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20496 /* end confdefs.h.  */
20497 #include <stdio.h>
20498 int
20499 main ()
20500 {
20501
20502 #ifndef _snwprintf
20503   char *p = (char *) _snwprintf;
20504 #endif
20505
20506   ;
20507   return 0;
20508 }
20509 _ACEOF
20510 if ac_fn_c_try_compile "$LINENO"; then :
20511   ac_cv_have_decl__snwprintf=yes
20512 else
20513   ac_cv_have_decl__snwprintf=no
20514 fi
20515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20516 fi
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5
20518 $as_echo "$ac_cv_have_decl__snwprintf" >&6; }
20519   if test $ac_cv_have_decl__snwprintf = yes; then
20520     gt_value=1
20521   else
20522     gt_value=0
20523   fi
20524
20525 cat >>confdefs.h <<_ACEOF
20526 #define HAVE_DECL__SNWPRINTF $gt_value
20527 _ACEOF
20528
20529
20530
20531
20532   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5
20533 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
20534 if ${ac_cv_have_decl_feof_unlocked+:} false; then :
20535   $as_echo_n "(cached) " >&6
20536 else
20537   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h.  */
20539 #include <stdio.h>
20540 int
20541 main ()
20542 {
20543
20544 #ifndef feof_unlocked
20545   char *p = (char *) feof_unlocked;
20546 #endif
20547
20548   ;
20549   return 0;
20550 }
20551 _ACEOF
20552 if ac_fn_c_try_compile "$LINENO"; then :
20553   ac_cv_have_decl_feof_unlocked=yes
20554 else
20555   ac_cv_have_decl_feof_unlocked=no
20556 fi
20557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20558 fi
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5
20560 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
20561   if test $ac_cv_have_decl_feof_unlocked = yes; then
20562     gt_value=1
20563   else
20564     gt_value=0
20565   fi
20566
20567 cat >>confdefs.h <<_ACEOF
20568 #define HAVE_DECL_FEOF_UNLOCKED $gt_value
20569 _ACEOF
20570
20571
20572
20573   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5
20574 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
20575 if ${ac_cv_have_decl_fgets_unlocked+:} false; then :
20576   $as_echo_n "(cached) " >&6
20577 else
20578   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h.  */
20580 #include <stdio.h>
20581 int
20582 main ()
20583 {
20584
20585 #ifndef fgets_unlocked
20586   char *p = (char *) fgets_unlocked;
20587 #endif
20588
20589   ;
20590   return 0;
20591 }
20592 _ACEOF
20593 if ac_fn_c_try_compile "$LINENO"; then :
20594   ac_cv_have_decl_fgets_unlocked=yes
20595 else
20596   ac_cv_have_decl_fgets_unlocked=no
20597 fi
20598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20599 fi
20600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5
20601 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
20602   if test $ac_cv_have_decl_fgets_unlocked = yes; then
20603     gt_value=1
20604   else
20605     gt_value=0
20606   fi
20607
20608 cat >>confdefs.h <<_ACEOF
20609 #define HAVE_DECL_FGETS_UNLOCKED $gt_value
20610 _ACEOF
20611
20612
20613
20614   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5
20615 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
20616 if ${ac_cv_have_decl_getc_unlocked+:} false; then :
20617   $as_echo_n "(cached) " >&6
20618 else
20619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20620 /* end confdefs.h.  */
20621 #include <stdio.h>
20622 int
20623 main ()
20624 {
20625
20626 #ifndef getc_unlocked
20627   char *p = (char *) getc_unlocked;
20628 #endif
20629
20630   ;
20631   return 0;
20632 }
20633 _ACEOF
20634 if ac_fn_c_try_compile "$LINENO"; then :
20635   ac_cv_have_decl_getc_unlocked=yes
20636 else
20637   ac_cv_have_decl_getc_unlocked=no
20638 fi
20639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20640 fi
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5
20642 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
20643   if test $ac_cv_have_decl_getc_unlocked = yes; then
20644     gt_value=1
20645   else
20646     gt_value=0
20647   fi
20648
20649 cat >>confdefs.h <<_ACEOF
20650 #define HAVE_DECL_GETC_UNLOCKED $gt_value
20651 _ACEOF
20652
20653
20654
20655   case $gt_cv_func_printf_posix in
20656     *yes) HAVE_POSIX_PRINTF=1 ;;
20657     *) HAVE_POSIX_PRINTF=0 ;;
20658   esac
20659
20660   if test "$ac_cv_func_asprintf" = yes; then
20661     HAVE_ASPRINTF=1
20662   else
20663     HAVE_ASPRINTF=0
20664   fi
20665
20666   if test "$ac_cv_func_snprintf" = yes; then
20667     HAVE_SNPRINTF=1
20668   else
20669     HAVE_SNPRINTF=0
20670   fi
20671
20672   if test "$ac_cv_func_wprintf" = yes; then
20673     HAVE_WPRINTF=1
20674   else
20675     HAVE_WPRINTF=0
20676   fi
20677
20678
20679
20680
20681
20682
20683
20684           am_save_CPPFLAGS="$CPPFLAGS"
20685
20686   for element in $INCICONV; do
20687     haveit=
20688     for x in $CPPFLAGS; do
20689
20690   acl_save_prefix="$prefix"
20691   prefix="$acl_final_prefix"
20692   acl_save_exec_prefix="$exec_prefix"
20693   exec_prefix="$acl_final_exec_prefix"
20694   eval x=\"$x\"
20695   exec_prefix="$acl_save_exec_prefix"
20696   prefix="$acl_save_prefix"
20697
20698       if test "X$x" = "X$element"; then
20699         haveit=yes
20700         break
20701       fi
20702     done
20703     if test -z "$haveit"; then
20704       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
20705     fi
20706   done
20707
20708
20709   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
20710 $as_echo_n "checking for iconv... " >&6; }
20711 if ${am_cv_func_iconv+:} false; then :
20712   $as_echo_n "(cached) " >&6
20713 else
20714
20715     am_cv_func_iconv="no, consider installing GNU libiconv"
20716     am_cv_lib_iconv=no
20717     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20718 /* end confdefs.h.  */
20719 #include <stdlib.h>
20720 #include <iconv.h>
20721 int
20722 main ()
20723 {
20724 iconv_t cd = iconv_open("","");
20725        iconv(cd,NULL,NULL,NULL,NULL);
20726        iconv_close(cd);
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 if ac_fn_c_try_link "$LINENO"; then :
20732   am_cv_func_iconv=yes
20733 fi
20734 rm -f core conftest.err conftest.$ac_objext \
20735     conftest$ac_exeext conftest.$ac_ext
20736     if test "$am_cv_func_iconv" != yes; then
20737       am_save_LIBS="$LIBS"
20738       LIBS="$LIBS $LIBICONV"
20739       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20740 /* end confdefs.h.  */
20741 #include <stdlib.h>
20742 #include <iconv.h>
20743 int
20744 main ()
20745 {
20746 iconv_t cd = iconv_open("","");
20747          iconv(cd,NULL,NULL,NULL,NULL);
20748          iconv_close(cd);
20749   ;
20750   return 0;
20751 }
20752 _ACEOF
20753 if ac_fn_c_try_link "$LINENO"; then :
20754   am_cv_lib_iconv=yes
20755         am_cv_func_iconv=yes
20756 fi
20757 rm -f core conftest.err conftest.$ac_objext \
20758     conftest$ac_exeext conftest.$ac_ext
20759       LIBS="$am_save_LIBS"
20760     fi
20761
20762 fi
20763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
20764 $as_echo "$am_cv_func_iconv" >&6; }
20765   if test "$am_cv_func_iconv" = yes; then
20766
20767 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
20768
20769   fi
20770   if test "$am_cv_lib_iconv" = yes; then
20771     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
20772 $as_echo_n "checking how to link with libiconv... " >&6; }
20773     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
20774 $as_echo "$LIBICONV" >&6; }
20775   else
20776             CPPFLAGS="$am_save_CPPFLAGS"
20777     LIBICONV=
20778     LTLIBICONV=
20779   fi
20780
20781
20782
20783   if test "$am_cv_func_iconv" = yes; then
20784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
20785 $as_echo_n "checking for iconv declaration... " >&6; }
20786     if ${am_cv_proto_iconv+:} false; then :
20787   $as_echo_n "(cached) " >&6
20788 else
20789
20790       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20791 /* end confdefs.h.  */
20792
20793 #include <stdlib.h>
20794 #include <iconv.h>
20795 extern
20796 #ifdef __cplusplus
20797 "C"
20798 #endif
20799 #if defined(__STDC__) || defined(__cplusplus)
20800 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
20801 #else
20802 size_t iconv();
20803 #endif
20804
20805 int
20806 main ()
20807 {
20808
20809   ;
20810   return 0;
20811 }
20812 _ACEOF
20813 if ac_fn_c_try_compile "$LINENO"; then :
20814   am_cv_proto_iconv_arg1=""
20815 else
20816   am_cv_proto_iconv_arg1="const"
20817 fi
20818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20819       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);"
20820 fi
20821
20822     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
20823     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
20824          }$am_cv_proto_iconv" >&5
20825 $as_echo "${ac_t:-
20826          }$am_cv_proto_iconv" >&6; }
20827
20828 cat >>confdefs.h <<_ACEOF
20829 #define ICONV_CONST $am_cv_proto_iconv_arg1
20830 _ACEOF
20831
20832   fi
20833
20834
20835   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
20836 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
20837 if ${am_cv_langinfo_codeset+:} false; then :
20838   $as_echo_n "(cached) " >&6
20839 else
20840   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20841 /* end confdefs.h.  */
20842 #include <langinfo.h>
20843 int
20844 main ()
20845 {
20846 char* cs = nl_langinfo(CODESET);
20847   ;
20848   return 0;
20849 }
20850 _ACEOF
20851 if ac_fn_c_try_link "$LINENO"; then :
20852   am_cv_langinfo_codeset=yes
20853 else
20854   am_cv_langinfo_codeset=no
20855 fi
20856 rm -f core conftest.err conftest.$ac_objext \
20857     conftest$ac_exeext conftest.$ac_ext
20858
20859 fi
20860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
20861 $as_echo "$am_cv_langinfo_codeset" >&6; }
20862   if test $am_cv_langinfo_codeset = yes; then
20863
20864 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
20865
20866   fi
20867
20868   if test $ac_cv_header_locale_h = yes; then
20869
20870   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
20871 $as_echo_n "checking for LC_MESSAGES... " >&6; }
20872 if ${gt_cv_val_LC_MESSAGES+:} false; then :
20873   $as_echo_n "(cached) " >&6
20874 else
20875   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20876 /* end confdefs.h.  */
20877 #include <locale.h>
20878 int
20879 main ()
20880 {
20881 return LC_MESSAGES
20882   ;
20883   return 0;
20884 }
20885 _ACEOF
20886 if ac_fn_c_try_link "$LINENO"; then :
20887   gt_cv_val_LC_MESSAGES=yes
20888 else
20889   gt_cv_val_LC_MESSAGES=no
20890 fi
20891 rm -f core conftest.err conftest.$ac_objext \
20892     conftest$ac_exeext conftest.$ac_ext
20893 fi
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
20895 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
20896   if test $gt_cv_val_LC_MESSAGES = yes; then
20897
20898 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
20899
20900   fi
20901
20902   fi
20903
20904   if test -n "$INTL_MACOSX_LIBS"; then
20905     CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20906   fi
20907
20908                       for ac_prog in bison
20909 do
20910   # Extract the first word of "$ac_prog", so it can be a program name with args.
20911 set dummy $ac_prog; ac_word=$2
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20913 $as_echo_n "checking for $ac_word... " >&6; }
20914 if ${ac_cv_prog_INTLBISON+:} false; then :
20915   $as_echo_n "(cached) " >&6
20916 else
20917   if test -n "$INTLBISON"; then
20918   ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
20919 else
20920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20921 for as_dir in $PATH
20922 do
20923   IFS=$as_save_IFS
20924   test -z "$as_dir" && as_dir=.
20925     for ac_exec_ext in '' $ac_executable_extensions; do
20926   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20927     ac_cv_prog_INTLBISON="$ac_prog"
20928     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20929     break 2
20930   fi
20931 done
20932   done
20933 IFS=$as_save_IFS
20934
20935 fi
20936 fi
20937 INTLBISON=$ac_cv_prog_INTLBISON
20938 if test -n "$INTLBISON"; then
20939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
20940 $as_echo "$INTLBISON" >&6; }
20941 else
20942   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20944 fi
20945
20946
20947   test -n "$INTLBISON" && break
20948 done
20949
20950   if test -z "$INTLBISON"; then
20951     ac_verc_fail=yes
20952   else
20953         { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
20954 $as_echo_n "checking version of bison... " >&6; }
20955     ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
20956     case $ac_prog_version in
20957       '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
20958       1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
20959          ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
20960       *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
20961     esac
20962     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
20963 $as_echo "$ac_prog_version" >&6; }
20964   fi
20965   if test $ac_verc_fail = yes; then
20966     INTLBISON=:
20967   fi
20968
20969
20970
20971
20972
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
20985 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
20986 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
20987   $as_echo_n "(cached) " >&6
20988 else
20989   gt_save_CPPFLAGS="$CPPFLAGS"
20990      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
20991      gt_save_LIBS="$LIBS"
20992      LIBS="$LIBS -framework CoreFoundation"
20993      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20994 /* end confdefs.h.  */
20995 #include <CFPreferences.h>
20996 int
20997 main ()
20998 {
20999 CFPreferencesCopyAppValue(NULL, NULL)
21000   ;
21001   return 0;
21002 }
21003 _ACEOF
21004 if ac_fn_c_try_link "$LINENO"; then :
21005   gt_cv_func_CFPreferencesCopyAppValue=yes
21006 else
21007   gt_cv_func_CFPreferencesCopyAppValue=no
21008 fi
21009 rm -f core conftest.err conftest.$ac_objext \
21010     conftest$ac_exeext conftest.$ac_ext
21011      CPPFLAGS="$gt_save_CPPFLAGS"
21012      LIBS="$gt_save_LIBS"
21013 fi
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21015 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21016   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21017
21018 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21019
21020   fi
21021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21022 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
21023 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
21024   $as_echo_n "(cached) " >&6
21025 else
21026   gt_save_CPPFLAGS="$CPPFLAGS"
21027      CPPFLAGS="$CPPFLAGS -I/System/Library/Frameworks/CoreFoundation.framework/Headers"
21028      gt_save_LIBS="$LIBS"
21029      LIBS="$LIBS -framework CoreFoundation"
21030      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21031 /* end confdefs.h.  */
21032 #include <CFLocale.h>
21033 int
21034 main ()
21035 {
21036 CFLocaleCopyCurrent();
21037   ;
21038   return 0;
21039 }
21040 _ACEOF
21041 if ac_fn_c_try_link "$LINENO"; then :
21042   gt_cv_func_CFLocaleCopyCurrent=yes
21043 else
21044   gt_cv_func_CFLocaleCopyCurrent=no
21045 fi
21046 rm -f core conftest.err conftest.$ac_objext \
21047     conftest$ac_exeext conftest.$ac_ext
21048      CPPFLAGS="$gt_save_CPPFLAGS"
21049      LIBS="$gt_save_LIBS"
21050 fi
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21052 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21053   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21054
21055 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21056
21057   fi
21058   INTL_MACOSX_LIBS=
21059   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21060     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21061   fi
21062
21063
21064
21065
21066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21067 $as_echo_n "checking whether NLS is requested... " >&6; }
21068     # Check whether --enable-nls was given.
21069 if test "${enable_nls+set}" = set; then :
21070   enableval=$enable_nls; USE_NLS=$enableval
21071 else
21072   USE_NLS=yes
21073 fi
21074
21075   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21076 $as_echo "$USE_NLS" >&6; }
21077
21078
21079
21080
21081     BUILD_INCLUDED_LIBINTL=no
21082     USE_INCLUDED_LIBINTL=no
21083
21084   LIBINTL=
21085   LTLIBINTL=
21086   POSUB=
21087
21088     if test "$USE_NLS" = "yes"; then
21089     gt_use_preinstalled_gnugettext=no
21090
21091       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
21092 $as_echo_n "checking whether included gettext is requested... " >&6; }
21093
21094 # Check whether --with-included-gettext was given.
21095 if test "${with_included_gettext+set}" = set; then :
21096   withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
21097 else
21098   nls_cv_force_use_gnu_gettext=no
21099 fi
21100
21101       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
21102 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
21103
21104       nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
21105       if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
21106
21107
21108
21109
21110
21111
21112         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21113 $as_echo_n "checking for GNU gettext in libc... " >&6; }
21114 if ${gt_cv_func_gnugettext1_libc+:} false; then :
21115   $as_echo_n "(cached) " >&6
21116 else
21117   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21118 /* end confdefs.h.  */
21119 #include <libintl.h>
21120 extern int _nl_msg_cat_cntr;
21121 extern int *_nl_domain_bindings;
21122 int
21123 main ()
21124 {
21125 bindtextdomain ("", "");
21126 return * gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
21127   ;
21128   return 0;
21129 }
21130 _ACEOF
21131 if ac_fn_c_try_link "$LINENO"; then :
21132   gt_cv_func_gnugettext1_libc=yes
21133 else
21134   gt_cv_func_gnugettext1_libc=no
21135 fi
21136 rm -f core conftest.err conftest.$ac_objext \
21137     conftest$ac_exeext conftest.$ac_ext
21138 fi
21139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5
21140 $as_echo "$gt_cv_func_gnugettext1_libc" >&6; }
21141
21142         if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
21143
21144
21145
21146     use_additional=yes
21147
21148   acl_save_prefix="$prefix"
21149   prefix="$acl_final_prefix"
21150   acl_save_exec_prefix="$exec_prefix"
21151   exec_prefix="$acl_final_exec_prefix"
21152
21153     eval additional_includedir=\"$includedir\"
21154     eval additional_libdir=\"$libdir\"
21155
21156   exec_prefix="$acl_save_exec_prefix"
21157   prefix="$acl_save_prefix"
21158
21159
21160 # Check whether --with-libintl-prefix was given.
21161 if test "${with_libintl_prefix+set}" = set; then :
21162   withval=$with_libintl_prefix;
21163     if test "X$withval" = "Xno"; then
21164       use_additional=no
21165     else
21166       if test "X$withval" = "X"; then
21167
21168   acl_save_prefix="$prefix"
21169   prefix="$acl_final_prefix"
21170   acl_save_exec_prefix="$exec_prefix"
21171   exec_prefix="$acl_final_exec_prefix"
21172
21173           eval additional_includedir=\"$includedir\"
21174           eval additional_libdir=\"$libdir\"
21175
21176   exec_prefix="$acl_save_exec_prefix"
21177   prefix="$acl_save_prefix"
21178
21179       else
21180         additional_includedir="$withval/include"
21181         additional_libdir="$withval/lib"
21182       fi
21183     fi
21184
21185 fi
21186
21187       LIBINTL=
21188   LTLIBINTL=
21189   INCINTL=
21190   rpathdirs=
21191   ltrpathdirs=
21192   names_already_handled=
21193   names_next_round='intl '
21194   while test -n "$names_next_round"; do
21195     names_this_round="$names_next_round"
21196     names_next_round=
21197     for name in $names_this_round; do
21198       already_handled=
21199       for n in $names_already_handled; do
21200         if test "$n" = "$name"; then
21201           already_handled=yes
21202           break
21203         fi
21204       done
21205       if test -z "$already_handled"; then
21206         names_already_handled="$names_already_handled $name"
21207                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
21208         eval value=\"\$HAVE_LIB$uppername\"
21209         if test -n "$value"; then
21210           if test "$value" = yes; then
21211             eval value=\"\$LIB$uppername\"
21212             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
21213             eval value=\"\$LTLIB$uppername\"
21214             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
21215           else
21216                                     :
21217           fi
21218         else
21219                               found_dir=
21220           found_la=
21221           found_so=
21222           found_a=
21223           if test $use_additional = yes; then
21224             if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
21225               found_dir="$additional_libdir"
21226               found_so="$additional_libdir/lib$name.$shlibext"
21227               if test -f "$additional_libdir/lib$name.la"; then
21228                 found_la="$additional_libdir/lib$name.la"
21229               fi
21230             else
21231               if test -f "$additional_libdir/lib$name.$libext"; then
21232                 found_dir="$additional_libdir"
21233                 found_a="$additional_libdir/lib$name.$libext"
21234                 if test -f "$additional_libdir/lib$name.la"; then
21235                   found_la="$additional_libdir/lib$name.la"
21236                 fi
21237               fi
21238             fi
21239           fi
21240           if test "X$found_dir" = "X"; then
21241             for x in $LDFLAGS $LTLIBINTL; do
21242
21243   acl_save_prefix="$prefix"
21244   prefix="$acl_final_prefix"
21245   acl_save_exec_prefix="$exec_prefix"
21246   exec_prefix="$acl_final_exec_prefix"
21247   eval x=\"$x\"
21248   exec_prefix="$acl_save_exec_prefix"
21249   prefix="$acl_save_prefix"
21250
21251               case "$x" in
21252                 -L*)
21253                   dir=`echo "X$x" | sed -e 's/^X-L//'`
21254                   if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
21255                     found_dir="$dir"
21256                     found_so="$dir/lib$name.$shlibext"
21257                     if test -f "$dir/lib$name.la"; then
21258                       found_la="$dir/lib$name.la"
21259                     fi
21260                   else
21261                     if test -f "$dir/lib$name.$libext"; then
21262                       found_dir="$dir"
21263                       found_a="$dir/lib$name.$libext"
21264                       if test -f "$dir/lib$name.la"; then
21265                         found_la="$dir/lib$name.la"
21266                       fi
21267                     fi
21268                   fi
21269                   ;;
21270               esac
21271               if test "X$found_dir" != "X"; then
21272                 break
21273               fi
21274             done
21275           fi
21276           if test "X$found_dir" != "X"; then
21277                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
21278             if test "X$found_so" != "X"; then
21279                                                         if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
21280                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21281               else
21282                                                                                 haveit=
21283                 for x in $ltrpathdirs; do
21284                   if test "X$x" = "X$found_dir"; then
21285                     haveit=yes
21286                     break
21287                   fi
21288                 done
21289                 if test -z "$haveit"; then
21290                   ltrpathdirs="$ltrpathdirs $found_dir"
21291                 fi
21292                                 if test "$hardcode_direct" = yes; then
21293                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21294                 else
21295                   if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
21296                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21297                                                             haveit=
21298                     for x in $rpathdirs; do
21299                       if test "X$x" = "X$found_dir"; then
21300                         haveit=yes
21301                         break
21302                       fi
21303                     done
21304                     if test -z "$haveit"; then
21305                       rpathdirs="$rpathdirs $found_dir"
21306                     fi
21307                   else
21308                                                                                 haveit=
21309                     for x in $LDFLAGS $LIBINTL; do
21310
21311   acl_save_prefix="$prefix"
21312   prefix="$acl_final_prefix"
21313   acl_save_exec_prefix="$exec_prefix"
21314   exec_prefix="$acl_final_exec_prefix"
21315   eval x=\"$x\"
21316   exec_prefix="$acl_save_exec_prefix"
21317   prefix="$acl_save_prefix"
21318
21319                       if test "X$x" = "X-L$found_dir"; then
21320                         haveit=yes
21321                         break
21322                       fi
21323                     done
21324                     if test -z "$haveit"; then
21325                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
21326                     fi
21327                     if test "$hardcode_minus_L" != no; then
21328                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
21329                     else
21330                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21331                     fi
21332                   fi
21333                 fi
21334               fi
21335             else
21336               if test "X$found_a" != "X"; then
21337                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
21338               else
21339                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
21340               fi
21341             fi
21342                         additional_includedir=
21343             case "$found_dir" in
21344               */lib | */lib/)
21345                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
21346                 additional_includedir="$basedir/include"
21347                 ;;
21348             esac
21349             if test "X$additional_includedir" != "X"; then
21350                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
21351                 haveit=
21352                 if test "X$additional_includedir" = "X/usr/local/include"; then
21353                   if test -n "$GCC"; then
21354                     case $host_os in
21355                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21356                     esac
21357                   fi
21358                 fi
21359                 if test -z "$haveit"; then
21360                   for x in $CPPFLAGS $INCINTL; do
21361
21362   acl_save_prefix="$prefix"
21363   prefix="$acl_final_prefix"
21364   acl_save_exec_prefix="$exec_prefix"
21365   exec_prefix="$acl_final_exec_prefix"
21366   eval x=\"$x\"
21367   exec_prefix="$acl_save_exec_prefix"
21368   prefix="$acl_save_prefix"
21369
21370                     if test "X$x" = "X-I$additional_includedir"; then
21371                       haveit=yes
21372                       break
21373                     fi
21374                   done
21375                   if test -z "$haveit"; then
21376                     if test -d "$additional_includedir"; then
21377                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
21378                     fi
21379                   fi
21380                 fi
21381               fi
21382             fi
21383                         if test -n "$found_la"; then
21384                                                         save_libdir="$libdir"
21385               case "$found_la" in
21386                 */* | *\\*) . "$found_la" ;;
21387                 *) . "./$found_la" ;;
21388               esac
21389               libdir="$save_libdir"
21390                             for dep in $dependency_libs; do
21391                 case "$dep" in
21392                   -L*)
21393                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
21394                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/lib"; then
21395                       haveit=
21396                       if test "X$additional_libdir" = "X/usr/local/lib"; then
21397                         if test -n "$GCC"; then
21398                           case $host_os in
21399                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
21400                           esac
21401                         fi
21402                       fi
21403                       if test -z "$haveit"; then
21404                         haveit=
21405                         for x in $LDFLAGS $LIBINTL; do
21406
21407   acl_save_prefix="$prefix"
21408   prefix="$acl_final_prefix"
21409   acl_save_exec_prefix="$exec_prefix"
21410   exec_prefix="$acl_final_exec_prefix"
21411   eval x=\"$x\"
21412   exec_prefix="$acl_save_exec_prefix"
21413   prefix="$acl_save_prefix"
21414
21415                           if test "X$x" = "X-L$additional_libdir"; then
21416                             haveit=yes
21417                             break
21418                           fi
21419                         done
21420                         if test -z "$haveit"; then
21421                           if test -d "$additional_libdir"; then
21422                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
21423                           fi
21424                         fi
21425                         haveit=
21426                         for x in $LDFLAGS $LTLIBINTL; do
21427
21428   acl_save_prefix="$prefix"
21429   prefix="$acl_final_prefix"
21430   acl_save_exec_prefix="$exec_prefix"
21431   exec_prefix="$acl_final_exec_prefix"
21432   eval x=\"$x\"
21433   exec_prefix="$acl_save_exec_prefix"
21434   prefix="$acl_save_prefix"
21435
21436                           if test "X$x" = "X-L$additional_libdir"; then
21437                             haveit=yes
21438                             break
21439                           fi
21440                         done
21441                         if test -z "$haveit"; then
21442                           if test -d "$additional_libdir"; then
21443                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
21444                           fi
21445                         fi
21446                       fi
21447                     fi
21448                     ;;
21449                   -R*)
21450                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
21451                     if test "$enable_rpath" != no; then
21452                                                                   haveit=
21453                       for x in $rpathdirs; do
21454                         if test "X$x" = "X$dir"; then
21455                           haveit=yes
21456                           break
21457                         fi
21458                       done
21459                       if test -z "$haveit"; then
21460                         rpathdirs="$rpathdirs $dir"
21461                       fi
21462                                                                   haveit=
21463                       for x in $ltrpathdirs; do
21464                         if test "X$x" = "X$dir"; then
21465                           haveit=yes
21466                           break
21467                         fi
21468                       done
21469                       if test -z "$haveit"; then
21470                         ltrpathdirs="$ltrpathdirs $dir"
21471                       fi
21472                     fi
21473                     ;;
21474                   -l*)
21475                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
21476                     ;;
21477                   *.la)
21478                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
21479                     ;;
21480                   *)
21481                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
21482                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
21483                     ;;
21484                 esac
21485               done
21486             fi
21487           else
21488                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
21489             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
21490           fi
21491         fi
21492       fi
21493     done
21494   done
21495   if test "X$rpathdirs" != "X"; then
21496     if test -n "$hardcode_libdir_separator"; then
21497                         alldirs=
21498       for found_dir in $rpathdirs; do
21499         alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
21500       done
21501             acl_save_libdir="$libdir"
21502       libdir="$alldirs"
21503       eval flag=\"$hardcode_libdir_flag_spec\"
21504       libdir="$acl_save_libdir"
21505       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21506     else
21507             for found_dir in $rpathdirs; do
21508         acl_save_libdir="$libdir"
21509         libdir="$found_dir"
21510         eval flag=\"$hardcode_libdir_flag_spec\"
21511         libdir="$acl_save_libdir"
21512         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
21513       done
21514     fi
21515   fi
21516   if test "X$ltrpathdirs" != "X"; then
21517             for found_dir in $ltrpathdirs; do
21518       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
21519     done
21520   fi
21521
21522           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
21523 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
21524 if ${gt_cv_func_gnugettext1_libintl+:} false; then :
21525   $as_echo_n "(cached) " >&6
21526 else
21527   gt_save_CPPFLAGS="$CPPFLAGS"
21528             CPPFLAGS="$CPPFLAGS $INCINTL"
21529             gt_save_LIBS="$LIBS"
21530             LIBS="$LIBS $LIBINTL"
21531                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21532 /* end confdefs.h.  */
21533 #include <libintl.h>
21534 extern int _nl_msg_cat_cntr;
21535 extern
21536 #ifdef __cplusplus
21537 "C"
21538 #endif
21539 const char *_nl_expand_alias (const char *);
21540 int
21541 main ()
21542 {
21543 bindtextdomain ("", "");
21544 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21545   ;
21546   return 0;
21547 }
21548 _ACEOF
21549 if ac_fn_c_try_link "$LINENO"; then :
21550   gt_cv_func_gnugettext1_libintl=yes
21551 else
21552   gt_cv_func_gnugettext1_libintl=no
21553 fi
21554 rm -f core conftest.err conftest.$ac_objext \
21555     conftest$ac_exeext conftest.$ac_ext
21556                         if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
21557               LIBS="$LIBS $LIBICONV"
21558               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21559 /* end confdefs.h.  */
21560 #include <libintl.h>
21561 extern int _nl_msg_cat_cntr;
21562 extern
21563 #ifdef __cplusplus
21564 "C"
21565 #endif
21566 const char *_nl_expand_alias (const char *);
21567 int
21568 main ()
21569 {
21570 bindtextdomain ("", "");
21571 return * gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias ("")
21572   ;
21573   return 0;
21574 }
21575 _ACEOF
21576 if ac_fn_c_try_link "$LINENO"; then :
21577   LIBINTL="$LIBINTL $LIBICONV"
21578                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
21579                 gt_cv_func_gnugettext1_libintl=yes
21580
21581 fi
21582 rm -f core conftest.err conftest.$ac_objext \
21583     conftest$ac_exeext conftest.$ac_ext
21584             fi
21585             CPPFLAGS="$gt_save_CPPFLAGS"
21586             LIBS="$gt_save_LIBS"
21587 fi
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5
21589 $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; }
21590         fi
21591
21592                                         if test "$gt_cv_func_gnugettext1_libc" = "yes" \
21593            || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
21594                 && test "$PACKAGE" != gettext-runtime \
21595                 && test "$PACKAGE" != gettext-tools; }; then
21596           gt_use_preinstalled_gnugettext=yes
21597         else
21598                     LIBINTL=
21599           LTLIBINTL=
21600           INCINTL=
21601         fi
21602
21603
21604         if test "$gt_use_preinstalled_gnugettext" != "yes"; then
21605                               nls_cv_use_gnu_gettext=yes
21606         fi
21607       fi
21608
21609       if test "$nls_cv_use_gnu_gettext" = "yes"; then
21610                 BUILD_INCLUDED_LIBINTL=yes
21611         USE_INCLUDED_LIBINTL=yes
21612         LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
21613         LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
21614         LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
21615       fi
21616
21617       CATOBJEXT=
21618       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21619          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21620                 CATOBJEXT=.gmo
21621       fi
21622
21623
21624     if test -n "$INTL_MACOSX_LIBS"; then
21625       if test "$gt_use_preinstalled_gnugettext" = "yes" \
21626          || test "$nls_cv_use_gnu_gettext" = "yes"; then
21627                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
21628         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
21629       fi
21630     fi
21631
21632     if test "$gt_use_preinstalled_gnugettext" = "yes" \
21633        || test "$nls_cv_use_gnu_gettext" = "yes"; then
21634
21635 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
21636
21637     else
21638       USE_NLS=no
21639     fi
21640   fi
21641
21642   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
21643 $as_echo_n "checking whether to use NLS... " >&6; }
21644   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21645 $as_echo "$USE_NLS" >&6; }
21646   if test "$USE_NLS" = "yes"; then
21647     { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
21648 $as_echo_n "checking where the gettext function comes from... " >&6; }
21649     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21650       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21651         gt_source="external libintl"
21652       else
21653         gt_source="libc"
21654       fi
21655     else
21656       gt_source="included intl directory"
21657     fi
21658     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
21659 $as_echo "$gt_source" >&6; }
21660   fi
21661
21662   if test "$USE_NLS" = "yes"; then
21663
21664     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
21665       if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
21666         { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
21667 $as_echo_n "checking how to link with libintl... " >&6; }
21668         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
21669 $as_echo "$LIBINTL" >&6; }
21670
21671   for element in $INCINTL; do
21672     haveit=
21673     for x in $CPPFLAGS; do
21674
21675   acl_save_prefix="$prefix"
21676   prefix="$acl_final_prefix"
21677   acl_save_exec_prefix="$exec_prefix"
21678   exec_prefix="$acl_final_exec_prefix"
21679   eval x=\"$x\"
21680   exec_prefix="$acl_save_exec_prefix"
21681   prefix="$acl_save_prefix"
21682
21683       if test "X$x" = "X$element"; then
21684         haveit=yes
21685         break
21686       fi
21687     done
21688     if test -z "$haveit"; then
21689       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21690     fi
21691   done
21692
21693       fi
21694
21695
21696 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
21697
21698
21699 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
21700
21701     fi
21702
21703         POSUB=po
21704   fi
21705
21706
21707             if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
21708       BUILD_INCLUDED_LIBINTL=yes
21709     fi
21710
21711
21712
21713
21714
21715         nls_cv_header_intl=
21716     nls_cv_header_libgt=
21717
21718         DATADIRNAME=share
21719
21720
21721         INSTOBJEXT=.mo
21722
21723
21724         GENCAT=gencat
21725
21726
21727         INTLOBJS=
21728     if test "$USE_INCLUDED_LIBINTL" = yes; then
21729       INTLOBJS="\$(GETTOBJS)"
21730     fi
21731
21732
21733         INTL_LIBTOOL_SUFFIX_PREFIX=
21734
21735
21736
21737     INTLLIBS="$LIBINTL"
21738
21739
21740
21741
21742
21743
21744 fi
21745
21746 support_smartalloc=yes
21747 support_readline=yes
21748 support_lzo=yes
21749 support_conio=yes
21750 support_bat=no
21751 support_tls=no
21752 support_crypto=no
21753 support_static_tools=no
21754 support_static_fd=no
21755 support_static_sd=no
21756 support_static_dir=no
21757 support_static_cons=no
21758 build_client_only=no
21759 build_dird=yes
21760 build_stored=yes
21761 db_backends=""
21762 batch_insert_db_backends=""
21763 support_lockmgr=no
21764
21765
21766 # Check whether --enable-bat was given.
21767 if test "${enable_bat+set}" = set; then :
21768   enableval=$enable_bat;
21769        if test x$enableval = xyes; then
21770
21771 $as_echo "#define HAVE_BAT 1" >>confdefs.h
21772
21773           support_bat=yes
21774        fi
21775
21776
21777 fi
21778
21779
21780 BAT_DIR=
21781 if test x$support_bat = xyes; then
21782    abc=`$PKGCONFIG --atleast-version=4.2 QtGui`
21783    pkg=$?
21784    if test $pkg = 0; then
21785       BAT_DIR=src/qt-console
21786    else
21787       as_fn_error $? "Unable to find Qt4 installation needed by bat" "$LINENO" 5
21788    fi
21789 fi
21790
21791 got_qwt=no
21792 QWT_INC=
21793 QWT_LDFLAGS=
21794 QWT_LIB=
21795 QWT=
21796 no_qwt=no
21797
21798
21799
21800
21801
21802
21803
21804
21805 # Check whether --enable-smartalloc was given.
21806 if test "${enable_smartalloc+set}" = set; then :
21807   enableval=$enable_smartalloc;
21808        if test x$enableval = xno; then
21809           support_smartalloc=no
21810        fi
21811
21812
21813 fi
21814
21815
21816 if test x$support_smartalloc = xyes; then
21817
21818 $as_echo "#define SMARTALLOC 1" >>confdefs.h
21819
21820 fi
21821
21822 # Check whether --enable-lockmgr was given.
21823 if test "${enable_lockmgr+set}" = set; then :
21824   enableval=$enable_lockmgr;
21825        if test x$enableval = xyes; then
21826           support_lockmgr=yes
21827        fi
21828
21829
21830 fi
21831
21832
21833 if test x$support_lockmgr = xyes; then
21834
21835 $as_echo "#define USE_LOCKMGR 1" >>confdefs.h
21836
21837 fi
21838
21839
21840 # Check whether --enable-static-tools was given.
21841 if test "${enable_static_tools+set}" = set; then :
21842   enableval=$enable_static_tools;
21843        if test x$enableval = xyes; then
21844           if test x$use_libtool = xyes; then
21845              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21846   please rerun configure with --disable-libtool" "$LINENO" 5
21847           fi
21848           support_static_tools=yes
21849        fi
21850
21851
21852 fi
21853
21854
21855 TTOOL_LDFLAGS=
21856 if test x$support_static_tools = xyes; then
21857    TTOOL_LDFLAGS="-static"
21858 fi
21859
21860
21861 # Check whether --enable-static-fd was given.
21862 if test "${enable_static_fd+set}" = set; then :
21863   enableval=$enable_static_fd;
21864        if test x$enableval = xyes; then
21865           if test x$use_libtool = xyes; then
21866              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21867   please rerun configure with --disable-libtool" "$LINENO" 5
21868           fi
21869           support_static_fd=yes
21870        fi
21871
21872
21873 fi
21874
21875
21876 STATIC_FD=
21877 if test x$support_static_fd = xyes; then
21878    STATIC_FD="static-bacula-fd"
21879 fi
21880
21881
21882 # Check whether --enable-static-sd was given.
21883 if test "${enable_static_sd+set}" = set; then :
21884   enableval=$enable_static_sd;
21885        if test x$enableval = xyes; then
21886           if test x$use_libtool = xyes; then
21887              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21888   please rerun configure with --disable-libtool" "$LINENO" 5
21889           fi
21890           support_static_sd=yes
21891        fi
21892
21893
21894 fi
21895
21896
21897 STATIC_SD=
21898 if test x$support_static_sd = xyes; then
21899    STATIC_SD="static-bacula-sd"
21900 fi
21901
21902
21903 # Check whether --enable-static-dir was given.
21904 if test "${enable_static_dir+set}" = set; then :
21905   enableval=$enable_static_dir;
21906        if test x$enableval = xyes; then
21907           if test x$use_libtool = xyes; then
21908              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21909   please rerun configure with --disable-libtool" "$LINENO" 5
21910           fi
21911           support_static_dir=yes
21912        fi
21913
21914
21915 fi
21916
21917
21918 STATIC_DIR=
21919 if test x$support_static_dir = xyes; then
21920    STATIC_DIR="static-bacula-dir"
21921 fi
21922
21923
21924 # Check whether --enable-static-cons was given.
21925 if test "${enable_static_cons+set}" = set; then :
21926   enableval=$enable_static_cons;
21927        if test x$enableval = xyes; then
21928           if test x$use_libtool = xyes; then
21929              as_fn_error $? "Libtool is enabled, not compatible with static tools,
21930   please rerun configure with --disable-libtool" "$LINENO" 5
21931           fi
21932           support_static_cons=yes
21933        fi
21934
21935
21936 fi
21937
21938
21939 STATIC_CONS=
21940 if test x$support_static_cons = xyes; then
21941    STATIC_CONS="static-bconsole"
21942 fi
21943
21944
21945 # Check whether --enable-client-only was given.
21946 if test "${enable_client_only+set}" = set; then :
21947   enableval=$enable_client_only;
21948        if test x$enableval = xyes; then
21949           build_client_only=yes
21950           db_backends="None"
21951           DB_BACKENDS="none"
21952        fi
21953
21954
21955 fi
21956
21957 if test x$build_client_only = xno; then
21958    ALL_DIRS="subdirs"
21959 else
21960    ALL_DIRS=""
21961 fi
21962
21963
21964 # Check whether --enable-build-dird was given.
21965 if test "${enable_build_dird+set}" = set; then :
21966   enableval=$enable_build_dird;
21967        if test x$enableval = xno; then
21968           build_dird=no
21969        fi
21970
21971
21972 fi
21973
21974
21975 DIRD_DIR="src/dird"
21976 DIR_TOOLS="DIRTOOLS"
21977
21978
21979
21980
21981 # Check whether --enable-build-stored was given.
21982 if test "${enable_build_stored+set}" = set; then :
21983   enableval=$enable_build_stored;
21984       if test x$enableval = xno; then
21985          build_stored=no
21986       fi
21987
21988
21989 fi
21990
21991 if test x$build_stored = xyes; then
21992    STORED_DIR="src/stored"
21993 else
21994    STORED_DIR=""
21995 fi
21996
21997
21998 # Check whether --enable-conio was given.
21999 if test "${enable_conio+set}" = set; then :
22000   enableval=$enable_conio;
22001        if test x$enableval = xno; then
22002           support_conio=no
22003        fi
22004
22005
22006 fi
22007
22008
22009
22010 support_ipv6=yes
22011 # Check whether --enable-ipv6 was given.
22012 if test "${enable_ipv6+set}" = set; then :
22013   enableval=$enable_ipv6;
22014        if test x$enableval = xno; then
22015           support_ipv6=no
22016        fi
22017
22018
22019 fi
22020
22021
22022 if test x$support_ipv6 = xyes; then
22023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22024 /* end confdefs.h.  */
22025  #include <sys/types.h>
22026 #include <sys/socket.h>
22027 #include <netinet/in.h>
22028 int
22029 main ()
22030 {
22031 struct in6_addr t=in6addr_any; t.s6_addr[0] = 0;
22032   ;
22033   return 0;
22034 }
22035 _ACEOF
22036 if ac_fn_c_try_link "$LINENO"; then :
22037   support_in6addr_any=yes
22038 else
22039   support_in6addr_any=no
22040 fi
22041 rm -f core conftest.err conftest.$ac_objext \
22042     conftest$ac_exeext conftest.$ac_ext
22043
22044    if test x$support_in6addr_any = xno ; then
22045        in6addr_any="const struct in6_addr in6addr_any"
22046    else
22047        in6addr_any="1"
22048    fi
22049
22050    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22051 /* end confdefs.h.  */
22052  #include <sys/types.h>
22053 #include <sys/socket.h>
22054 #include <netinet/in.h>
22055 int
22056 main ()
22057 {
22058 $in6addr_any; struct sockaddr_in6 s; struct in6_addr t=in6addr_any; int i=AF_INET6; s; t.s6_addr[0] = 0;
22059   ;
22060   return 0;
22061 }
22062 _ACEOF
22063 if ac_fn_c_try_link "$LINENO"; then :
22064   support_ipv6=yes
22065 else
22066   support_ipv6=no
22067 fi
22068 rm -f core conftest.err conftest.$ac_objext \
22069     conftest$ac_exeext conftest.$ac_ext
22070 fi
22071
22072 if test x$support_ipv6 = xyes; then
22073
22074 $as_echo "#define HAVE_IPV6 1" >>confdefs.h
22075
22076
22077    if test x$support_in6addr_any = xno ; then
22078
22079 $as_echo "#define NEED_IN6ADDR_ANY 1" >>confdefs.h
22080
22081    fi
22082 fi
22083
22084 TERM_LIB=""
22085 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22086 if test "x$ac_cv_header_curses_h" = xyes; then :
22087
22088     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
22089 $as_echo_n "checking for tgetent in -ltinfo... " >&6; }
22090 if ${ac_cv_lib_tinfo_tgetent+:} false; then :
22091   $as_echo_n "(cached) " >&6
22092 else
22093   ac_check_lib_save_LIBS=$LIBS
22094 LIBS="-ltinfo  $LIBS"
22095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22096 /* end confdefs.h.  */
22097
22098 /* Override any GCC internal prototype to avoid an error.
22099    Use char because int might match the return type of a GCC
22100    builtin and then its argument prototype would still apply.  */
22101 #ifdef __cplusplus
22102 extern "C"
22103 #endif
22104 char tgetent ();
22105 int
22106 main ()
22107 {
22108 return tgetent ();
22109   ;
22110   return 0;
22111 }
22112 _ACEOF
22113 if ac_fn_c_try_link "$LINENO"; then :
22114   ac_cv_lib_tinfo_tgetent=yes
22115 else
22116   ac_cv_lib_tinfo_tgetent=no
22117 fi
22118 rm -f core conftest.err conftest.$ac_objext \
22119     conftest$ac_exeext conftest.$ac_ext
22120 LIBS=$ac_check_lib_save_LIBS
22121 fi
22122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
22123 $as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
22124 if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then :
22125    TERM_LIB="-ltinfo"
22126 else
22127
22128       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
22129 $as_echo_n "checking for tgetent in -lncurses... " >&6; }
22130 if ${ac_cv_lib_ncurses_tgetent+:} false; then :
22131   $as_echo_n "(cached) " >&6
22132 else
22133   ac_check_lib_save_LIBS=$LIBS
22134 LIBS="-lncurses  $LIBS"
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h.  */
22137
22138 /* Override any GCC internal prototype to avoid an error.
22139    Use char because int might match the return type of a GCC
22140    builtin and then its argument prototype would still apply.  */
22141 #ifdef __cplusplus
22142 extern "C"
22143 #endif
22144 char tgetent ();
22145 int
22146 main ()
22147 {
22148 return tgetent ();
22149   ;
22150   return 0;
22151 }
22152 _ACEOF
22153 if ac_fn_c_try_link "$LINENO"; then :
22154   ac_cv_lib_ncurses_tgetent=yes
22155 else
22156   ac_cv_lib_ncurses_tgetent=no
22157 fi
22158 rm -f core conftest.err conftest.$ac_objext \
22159     conftest$ac_exeext conftest.$ac_ext
22160 LIBS=$ac_check_lib_save_LIBS
22161 fi
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
22163 $as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
22164 if test "x$ac_cv_lib_ncurses_tgetent" = xyes; then :
22165    TERM_LIB="-lncurses"
22166 else
22167
22168         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
22169 $as_echo_n "checking for tgetent in -ltermcap... " >&6; }
22170 if ${ac_cv_lib_termcap_tgetent+:} false; then :
22171   $as_echo_n "(cached) " >&6
22172 else
22173   ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-ltermcap  $LIBS"
22175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22176 /* end confdefs.h.  */
22177
22178 /* Override any GCC internal prototype to avoid an error.
22179    Use char because int might match the return type of a GCC
22180    builtin and then its argument prototype would still apply.  */
22181 #ifdef __cplusplus
22182 extern "C"
22183 #endif
22184 char tgetent ();
22185 int
22186 main ()
22187 {
22188 return tgetent ();
22189   ;
22190   return 0;
22191 }
22192 _ACEOF
22193 if ac_fn_c_try_link "$LINENO"; then :
22194   ac_cv_lib_termcap_tgetent=yes
22195 else
22196   ac_cv_lib_termcap_tgetent=no
22197 fi
22198 rm -f core conftest.err conftest.$ac_objext \
22199     conftest$ac_exeext conftest.$ac_ext
22200 LIBS=$ac_check_lib_save_LIBS
22201 fi
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
22203 $as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
22204 if test "x$ac_cv_lib_termcap_tgetent" = xyes; then :
22205    TERM_LIB="-ltermcap"
22206 fi
22207
22208
22209 fi
22210
22211
22212 fi
22213
22214
22215 else
22216     for ac_header in curses.h
22217 do :
22218   ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default"
22219 if test "x$ac_cv_header_curses_h" = xyes; then :
22220   cat >>confdefs.h <<_ACEOF
22221 #define HAVE_CURSES_H 1
22222 _ACEOF
22223
22224 fi
22225
22226 done
22227
22228      ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
22229 if test "x$ac_cv_header_term_h" = xyes; then :
22230    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
22231 $as_echo_n "checking for tgetent in -lcurses... " >&6; }
22232 if ${ac_cv_lib_curses_tgetent+:} false; then :
22233   $as_echo_n "(cached) " >&6
22234 else
22235   ac_check_lib_save_LIBS=$LIBS
22236 LIBS="-lcurses  $LIBS"
22237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22238 /* end confdefs.h.  */
22239
22240 /* Override any GCC internal prototype to avoid an error.
22241    Use char because int might match the return type of a GCC
22242    builtin and then its argument prototype would still apply.  */
22243 #ifdef __cplusplus
22244 extern "C"
22245 #endif
22246 char tgetent ();
22247 int
22248 main ()
22249 {
22250 return tgetent ();
22251   ;
22252   return 0;
22253 }
22254 _ACEOF
22255 if ac_fn_c_try_link "$LINENO"; then :
22256   ac_cv_lib_curses_tgetent=yes
22257 else
22258   ac_cv_lib_curses_tgetent=no
22259 fi
22260 rm -f core conftest.err conftest.$ac_objext \
22261     conftest$ac_exeext conftest.$ac_ext
22262 LIBS=$ac_check_lib_save_LIBS
22263 fi
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
22265 $as_echo "$ac_cv_lib_curses_tgetent" >&6; }
22266 if test "x$ac_cv_lib_curses_tgetent" = xyes; then :
22267    TERM_LIB="-lcurses"
22268 fi
22269
22270
22271 fi
22272
22273
22274
22275 fi
22276
22277
22278
22279
22280 got_conio="no"
22281 if test x$support_conio = xyes; then
22282    if test x$TERM_LIB != x; then
22283       CONS_LIBS=$TERM_LIB
22284       CONS_OBJ="conio.o"
22285       CONS_SRC="conio.c"
22286       got_conio="yes"
22287       support_readline=no
22288
22289 $as_echo "#define HAVE_CONIO 1" >>confdefs.h
22290
22291    else
22292       echo " "; echo "Required libraries not found. CONIO turned off ..."; echo " "
22293    fi
22294 fi
22295
22296
22297 # Check whether --enable-readline was given.
22298 if test "${enable_readline+set}" = set; then :
22299   enableval=$enable_readline;
22300        if test x$enableval = xno; then
22301           support_readline=no
22302        fi
22303
22304
22305 fi
22306
22307
22308 got_readline="no"
22309 READLINE_SRC=
22310 if test x$support_readline = xyes; then
22311
22312 # Check whether --with-readline was given.
22313 if test "${with_readline+set}" = set; then :
22314   withval=$with_readline;
22315           case "$with_readline" in
22316           no)
22317              :
22318              ;;
22319           yes|*)
22320              if test -f ${with_readline}/readline.h; then
22321                 CONS_INC="-I${with_readline}"
22322                 CONS_LDFLAGS="-L$with_readline"
22323              elif test -f ${with_readline}/include/readline/readline.h; then
22324                 CONS_INC="-I${with_readline}/include/readline"
22325                 CONS_LDFLAGS="-L${with_readline}/lib"
22326                 with_readline="${with_readline}/include/readline"
22327              else
22328                 with_readline="/usr/include/readline"
22329              fi
22330
22331              as_ac_Header=`$as_echo "ac_cv_header_${with_readline}/readline.h" | $as_tr_sh`
22332 ac_fn_c_check_header_mongrel "$LINENO" "${with_readline}/readline.h" "$as_ac_Header" "$ac_includes_default"
22333 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22334
22335
22336 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22337
22338                     CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22339                     got_readline="yes"
22340
22341 else
22342
22343                     echo " "
22344                     echo "readline.h not found. readline turned off ..."
22345                     echo " "
22346
22347
22348 fi
22349
22350
22351              ;;
22352           esac
22353
22354 else
22355
22356                  ac_fn_c_check_header_mongrel "$LINENO" "/usr/include/readline/readline.h" "ac_cv_header__usr_include_readline_readline_h" "$ac_includes_default"
22357 if test "x$ac_cv_header__usr_include_readline_readline_h" = xyes; then :
22358
22359
22360 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22361
22362                 got_readline="yes"
22363                 CONS_INC="-I/usr/include/readline"
22364                 CONS_LIBS="-lreadline ${TERM_LIB}"
22365
22366 else
22367
22368                                 as_ac_Header=`$as_echo "ac_cv_header_${TOP_DIR}/depkgs/readline/readline.h" | $as_tr_sh`
22369 ac_fn_c_check_header_mongrel "$LINENO" "${TOP_DIR}/depkgs/readline/readline.h" "$as_ac_Header" "$ac_includes_default"
22370 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22371
22372
22373 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
22374
22375                         got_readline="yes"
22376                         CONS_INC="-I${TOP_DIR}/depkgs/readline"
22377                         CONS_LIBS="-lreadline -lhistory ${TERM_LIB}"
22378                         CONS_LDFLAGS="-L${TOP_DIR}/depkgs/readline"
22379                         PRTREADLINE_SRC="${TOP_DIR}/depkgs/readline"
22380
22381 else
22382
22383                         echo " "
22384                         echo "readline.h not found. readline turned off ..."
22385                         echo " "
22386
22387
22388 fi
22389
22390
22391
22392
22393 fi
22394
22395
22396
22397
22398 fi
22399
22400 fi
22401
22402
22403
22404
22405
22406
22407
22408
22409 MAKE_SHELL=/bin/sh
22410
22411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
22412 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
22413 if ${ac_cv_header_stat_broken+:} false; then :
22414   $as_echo_n "(cached) " >&6
22415 else
22416   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22417 /* end confdefs.h.  */
22418 #include <sys/types.h>
22419 #include <sys/stat.h>
22420
22421 #if defined S_ISBLK && defined S_IFDIR
22422 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22423 #endif
22424
22425 #if defined S_ISBLK && defined S_IFCHR
22426 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22427 #endif
22428
22429 #if defined S_ISLNK && defined S_IFREG
22430 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22431 #endif
22432
22433 #if defined S_ISSOCK && defined S_IFREG
22434 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22435 #endif
22436
22437 _ACEOF
22438 if ac_fn_c_try_compile "$LINENO"; then :
22439   ac_cv_header_stat_broken=no
22440 else
22441   ac_cv_header_stat_broken=yes
22442 fi
22443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22444 fi
22445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
22446 $as_echo "$ac_cv_header_stat_broken" >&6; }
22447 if test $ac_cv_header_stat_broken = yes; then
22448
22449 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
22450
22451 fi
22452
22453 ac_header_dirent=no
22454 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22455   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
22456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
22457 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
22458 if eval \${$as_ac_Header+:} false; then :
22459   $as_echo_n "(cached) " >&6
22460 else
22461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22462 /* end confdefs.h.  */
22463 #include <sys/types.h>
22464 #include <$ac_hdr>
22465
22466 int
22467 main ()
22468 {
22469 if ((DIR *) 0)
22470 return 0;
22471   ;
22472   return 0;
22473 }
22474 _ACEOF
22475 if ac_fn_c_try_compile "$LINENO"; then :
22476   eval "$as_ac_Header=yes"
22477 else
22478   eval "$as_ac_Header=no"
22479 fi
22480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481 fi
22482 eval ac_res=\$$as_ac_Header
22483                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22484 $as_echo "$ac_res" >&6; }
22485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22486   cat >>confdefs.h <<_ACEOF
22487 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22488 _ACEOF
22489
22490 ac_header_dirent=$ac_hdr; break
22491 fi
22492
22493 done
22494 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22495 if test $ac_header_dirent = dirent.h; then
22496   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22497 $as_echo_n "checking for library containing opendir... " >&6; }
22498 if ${ac_cv_search_opendir+:} false; then :
22499   $as_echo_n "(cached) " >&6
22500 else
22501   ac_func_search_save_LIBS=$LIBS
22502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22503 /* end confdefs.h.  */
22504
22505 /* Override any GCC internal prototype to avoid an error.
22506    Use char because int might match the return type of a GCC
22507    builtin and then its argument prototype would still apply.  */
22508 #ifdef __cplusplus
22509 extern "C"
22510 #endif
22511 char opendir ();
22512 int
22513 main ()
22514 {
22515 return opendir ();
22516   ;
22517   return 0;
22518 }
22519 _ACEOF
22520 for ac_lib in '' dir; do
22521   if test -z "$ac_lib"; then
22522     ac_res="none required"
22523   else
22524     ac_res=-l$ac_lib
22525     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22526   fi
22527   if ac_fn_c_try_link "$LINENO"; then :
22528   ac_cv_search_opendir=$ac_res
22529 fi
22530 rm -f core conftest.err conftest.$ac_objext \
22531     conftest$ac_exeext
22532   if ${ac_cv_search_opendir+:} false; then :
22533   break
22534 fi
22535 done
22536 if ${ac_cv_search_opendir+:} false; then :
22537
22538 else
22539   ac_cv_search_opendir=no
22540 fi
22541 rm conftest.$ac_ext
22542 LIBS=$ac_func_search_save_LIBS
22543 fi
22544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22545 $as_echo "$ac_cv_search_opendir" >&6; }
22546 ac_res=$ac_cv_search_opendir
22547 if test "$ac_res" != no; then :
22548   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22549
22550 fi
22551
22552 else
22553   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
22554 $as_echo_n "checking for library containing opendir... " >&6; }
22555 if ${ac_cv_search_opendir+:} false; then :
22556   $as_echo_n "(cached) " >&6
22557 else
22558   ac_func_search_save_LIBS=$LIBS
22559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22560 /* end confdefs.h.  */
22561
22562 /* Override any GCC internal prototype to avoid an error.
22563    Use char because int might match the return type of a GCC
22564    builtin and then its argument prototype would still apply.  */
22565 #ifdef __cplusplus
22566 extern "C"
22567 #endif
22568 char opendir ();
22569 int
22570 main ()
22571 {
22572 return opendir ();
22573   ;
22574   return 0;
22575 }
22576 _ACEOF
22577 for ac_lib in '' x; do
22578   if test -z "$ac_lib"; then
22579     ac_res="none required"
22580   else
22581     ac_res=-l$ac_lib
22582     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22583   fi
22584   if ac_fn_c_try_link "$LINENO"; then :
22585   ac_cv_search_opendir=$ac_res
22586 fi
22587 rm -f core conftest.err conftest.$ac_objext \
22588     conftest$ac_exeext
22589   if ${ac_cv_search_opendir+:} false; then :
22590   break
22591 fi
22592 done
22593 if ${ac_cv_search_opendir+:} false; then :
22594
22595 else
22596   ac_cv_search_opendir=no
22597 fi
22598 rm conftest.$ac_ext
22599 LIBS=$ac_func_search_save_LIBS
22600 fi
22601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
22602 $as_echo "$ac_cv_search_opendir" >&6; }
22603 ac_res=$ac_cv_search_opendir
22604 if test "$ac_res" != no; then :
22605   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22606
22607 fi
22608
22609 fi
22610
22611 for ac_func in strcasecmp select setenv putenv tcgetattr
22612 do :
22613   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22614 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22615 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22616   cat >>confdefs.h <<_ACEOF
22617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22618 _ACEOF
22619
22620 fi
22621 done
22622
22623 for ac_func in lstat lchown lchmod futimes fchmod fchown
22624 do :
22625   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22626 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22627 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22628   cat >>confdefs.h <<_ACEOF
22629 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22630 _ACEOF
22631
22632 fi
22633 done
22634
22635 for ac_func in nanosleep nl_langinfo
22636 do :
22637   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22638 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22639 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22640   cat >>confdefs.h <<_ACEOF
22641 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22642 _ACEOF
22643
22644 fi
22645 done
22646
22647 for ac_func in be64toh htobe64
22648 do :
22649   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22650 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22651 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22652   cat >>confdefs.h <<_ACEOF
22653 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22654 _ACEOF
22655
22656 fi
22657 done
22658
22659 for ac_header in varargs.h
22660 do :
22661   ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
22662 if test "x$ac_cv_header_varargs_h" = xyes; then :
22663   cat >>confdefs.h <<_ACEOF
22664 #define HAVE_VARARGS_H 1
22665 _ACEOF
22666
22667 fi
22668
22669 done
22670
22671
22672
22673 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
22674 if test "x$ac_cv_func_socket" = xyes; then :
22675   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's socket" >&5
22676 $as_echo "using libc's socket" >&6; }
22677 else
22678   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lxnet" >&5
22679 $as_echo_n "checking for socket in -lxnet... " >&6; }
22680 if ${ac_cv_lib_xnet_socket+:} false; then :
22681   $as_echo_n "(cached) " >&6
22682 else
22683   ac_check_lib_save_LIBS=$LIBS
22684 LIBS="-lxnet  $LIBS"
22685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22686 /* end confdefs.h.  */
22687
22688 /* Override any GCC internal prototype to avoid an error.
22689    Use char because int might match the return type of a GCC
22690    builtin and then its argument prototype would still apply.  */
22691 #ifdef __cplusplus
22692 extern "C"
22693 #endif
22694 char socket ();
22695 int
22696 main ()
22697 {
22698 return socket ();
22699   ;
22700   return 0;
22701 }
22702 _ACEOF
22703 if ac_fn_c_try_link "$LINENO"; then :
22704   ac_cv_lib_xnet_socket=yes
22705 else
22706   ac_cv_lib_xnet_socket=no
22707 fi
22708 rm -f core conftest.err conftest.$ac_objext \
22709     conftest$ac_exeext conftest.$ac_ext
22710 LIBS=$ac_check_lib_save_LIBS
22711 fi
22712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xnet_socket" >&5
22713 $as_echo "$ac_cv_lib_xnet_socket" >&6; }
22714 if test "x$ac_cv_lib_xnet_socket" = xyes; then :
22715   cat >>confdefs.h <<_ACEOF
22716 #define HAVE_LIBXNET 1
22717 _ACEOF
22718
22719   LIBS="-lxnet $LIBS"
22720
22721 fi
22722
22723     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
22724 $as_echo_n "checking for socket in -lsocket... " >&6; }
22725 if ${ac_cv_lib_socket_socket+:} false; then :
22726   $as_echo_n "(cached) " >&6
22727 else
22728   ac_check_lib_save_LIBS=$LIBS
22729 LIBS="-lsocket  $LIBS"
22730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22731 /* end confdefs.h.  */
22732
22733 /* Override any GCC internal prototype to avoid an error.
22734    Use char because int might match the return type of a GCC
22735    builtin and then its argument prototype would still apply.  */
22736 #ifdef __cplusplus
22737 extern "C"
22738 #endif
22739 char socket ();
22740 int
22741 main ()
22742 {
22743 return socket ();
22744   ;
22745   return 0;
22746 }
22747 _ACEOF
22748 if ac_fn_c_try_link "$LINENO"; then :
22749   ac_cv_lib_socket_socket=yes
22750 else
22751   ac_cv_lib_socket_socket=no
22752 fi
22753 rm -f core conftest.err conftest.$ac_objext \
22754     conftest$ac_exeext conftest.$ac_ext
22755 LIBS=$ac_check_lib_save_LIBS
22756 fi
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
22758 $as_echo "$ac_cv_lib_socket_socket" >&6; }
22759 if test "x$ac_cv_lib_socket_socket" = xyes; then :
22760   cat >>confdefs.h <<_ACEOF
22761 #define HAVE_LIBSOCKET 1
22762 _ACEOF
22763
22764   LIBS="-lsocket $LIBS"
22765
22766 fi
22767
22768     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -linet" >&5
22769 $as_echo_n "checking for socket in -linet... " >&6; }
22770 if ${ac_cv_lib_inet_socket+:} false; then :
22771   $as_echo_n "(cached) " >&6
22772 else
22773   ac_check_lib_save_LIBS=$LIBS
22774 LIBS="-linet  $LIBS"
22775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22776 /* end confdefs.h.  */
22777
22778 /* Override any GCC internal prototype to avoid an error.
22779    Use char because int might match the return type of a GCC
22780    builtin and then its argument prototype would still apply.  */
22781 #ifdef __cplusplus
22782 extern "C"
22783 #endif
22784 char socket ();
22785 int
22786 main ()
22787 {
22788 return socket ();
22789   ;
22790   return 0;
22791 }
22792 _ACEOF
22793 if ac_fn_c_try_link "$LINENO"; then :
22794   ac_cv_lib_inet_socket=yes
22795 else
22796   ac_cv_lib_inet_socket=no
22797 fi
22798 rm -f core conftest.err conftest.$ac_objext \
22799     conftest$ac_exeext conftest.$ac_ext
22800 LIBS=$ac_check_lib_save_LIBS
22801 fi
22802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_inet_socket" >&5
22803 $as_echo "$ac_cv_lib_inet_socket" >&6; }
22804 if test "x$ac_cv_lib_inet_socket" = xyes; then :
22805   cat >>confdefs.h <<_ACEOF
22806 #define HAVE_LIBINET 1
22807 _ACEOF
22808
22809   LIBS="-linet $LIBS"
22810
22811 fi
22812
22813 fi
22814
22815
22816 TCPW_MSG="no"
22817 WRAPLIBS=""
22818
22819 # Check whether --with-tcp-wrappers was given.
22820 if test "${with_tcp_wrappers+set}" = set; then :
22821   withval=$with_tcp_wrappers;
22822        if test "x$withval" != "xno" ; then
22823           saved_LIBS="$LIBS"
22824           LIBS="$saved_LIBS -lwrap"
22825           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
22826 $as_echo_n "checking for library containing nanosleep... " >&6; }
22827 if ${ac_cv_search_nanosleep+:} false; then :
22828   $as_echo_n "(cached) " >&6
22829 else
22830   ac_func_search_save_LIBS=$LIBS
22831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22832 /* end confdefs.h.  */
22833
22834 /* Override any GCC internal prototype to avoid an error.
22835    Use char because int might match the return type of a GCC
22836    builtin and then its argument prototype would still apply.  */
22837 #ifdef __cplusplus
22838 extern "C"
22839 #endif
22840 char nanosleep ();
22841 int
22842 main ()
22843 {
22844 return nanosleep ();
22845   ;
22846   return 0;
22847 }
22848 _ACEOF
22849 for ac_lib in '' rt; do
22850   if test -z "$ac_lib"; then
22851     ac_res="none required"
22852   else
22853     ac_res=-l$ac_lib
22854     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22855   fi
22856   if ac_fn_c_try_link "$LINENO"; then :
22857   ac_cv_search_nanosleep=$ac_res
22858 fi
22859 rm -f core conftest.err conftest.$ac_objext \
22860     conftest$ac_exeext
22861   if ${ac_cv_search_nanosleep+:} false; then :
22862   break
22863 fi
22864 done
22865 if ${ac_cv_search_nanosleep+:} false; then :
22866
22867 else
22868   ac_cv_search_nanosleep=no
22869 fi
22870 rm conftest.$ac_ext
22871 LIBS=$ac_func_search_save_LIBS
22872 fi
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
22874 $as_echo "$ac_cv_search_nanosleep" >&6; }
22875 ac_res=$ac_cv_search_nanosleep
22876 if test "$ac_res" != no; then :
22877   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22878
22879 fi
22880
22881           { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwrap" >&5
22882 $as_echo_n "checking for libwrap... " >&6; }
22883           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22884 /* end confdefs.h.  */
22885
22886                #include <sys/types.h>
22887                #include <tcpd.h>
22888                int deny_severity = 0;
22889                int allow_severity = 0;
22890                struct request_info *req;
22891
22892 int
22893 main ()
22894 {
22895
22896                 hosts_access(req);
22897
22898   ;
22899   return 0;
22900 }
22901 _ACEOF
22902 if ac_fn_c_try_link "$LINENO"; then :
22903
22904                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22905 $as_echo "yes" >&6; }
22906
22907 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22908
22909                  TCPW_MSG="yes"
22910                  LIBS="$saved_LIBS"
22911                  WRAPLIBS="-lwrap"
22912
22913 else
22914
22915                  LIBS="$saved_LIBS -lwrap -lnsl"
22916                  WRAPLIBS="$saved_LIBS -lwrap -lnsl"
22917                  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22918 /* end confdefs.h.  */
22919
22920                        #include <sys/types.h>
22921                        #include <tcpd.h>
22922                        int deny_severity = 0;
22923                        int allow_severity = 0;
22924                        struct request_info *req;
22925
22926 int
22927 main ()
22928 {
22929
22930                        hosts_access(req);
22931
22932   ;
22933   return 0;
22934 }
22935 _ACEOF
22936 if ac_fn_c_try_link "$LINENO"; then :
22937
22938                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22939 $as_echo "yes" >&6; }
22940
22941 $as_echo "#define HAVE_LIBWRAP 1" >>confdefs.h
22942
22943                       TCPW_MSG="yes"
22944                       LIBS="$saved_LIBS"
22945                       WRAPLIBS="-lwrap"
22946
22947 else
22948
22949                       as_fn_error $? "*** libwrap missing" "$LINENO" 5
22950
22951
22952 fi
22953 rm -f core conftest.err conftest.$ac_objext \
22954     conftest$ac_exeext conftest.$ac_ext
22955
22956
22957 fi
22958 rm -f core conftest.err conftest.$ac_objext \
22959     conftest$ac_exeext conftest.$ac_ext
22960        fi
22961
22962
22963 fi
22964
22965
22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
22967 $as_echo_n "checking for OpenSSL... " >&6; }
22968
22969 # Check whether --with-openssl was given.
22970 if test "${with_openssl+set}" = set; then :
22971   withval=$with_openssl;
22972         with_openssl_directory=${withval}
22973
22974
22975 fi
22976
22977
22978 if test "x$with_openssl_directory" != "xno"; then
22979    OPENSSL_LIBS="-lssl -lcrypto"
22980    OPENSSL_INC=""
22981
22982    if test "x$with_openssl_directory" != "xyes" && test x"${with_openssl_directory}" != "x"; then
22983       #
22984       # Make sure the $with_openssl_directory also makes sense
22985       #
22986       if test -d "$with_openssl_directory/lib" -a -d "$with_openssl_directory/include"; then
22987          OPENSSL_LIBS="-L$with_openssl_directory/lib $OPENSSL_LIBS"
22988          OPENSSL_INC="-I$with_openssl_directory/include $OPENSSL_INC"
22989       fi
22990    fi
22991
22992    saved_LIBS="${LIBS}"
22993    saved_CFLAGS="${CFLAGS}"
22994    LIBS="${saved_LIBS} ${OPENSSL_LIBS}"
22995    CFLAGS="${saved_CFLAGS} ${OPENSSL_INC}"
22996
22997    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998 /* end confdefs.h.  */
22999
23000           #include <openssl/ssl.h>
23001
23002 int
23003 main ()
23004 {
23005
23006            CRYPTO_set_id_callback(NULL);
23007
23008   ;
23009   return 0;
23010 }
23011 _ACEOF
23012 if ac_fn_c_try_link "$LINENO"; then :
23013
23014           support_tls="yes"
23015           support_crypto="yes"
23016
23017 else
23018
23019           support_tls="no"
23020           support_crypto="no"
23021
23022
23023 fi
23024 rm -f core conftest.err conftest.$ac_objext \
23025     conftest$ac_exeext conftest.$ac_ext
23026
23027    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h.  */
23029
23030           #include <openssl/evp.h>
23031
23032 int
23033 main ()
23034 {
23035
23036           EVP_sha512();
23037
23038   ;
23039   return 0;
23040 }
23041 _ACEOF
23042 if ac_fn_c_try_link "$LINENO"; then :
23043
23044           ac_cv_openssl_sha2="yes"
23045
23046 else
23047
23048           ac_cv_openssl_sha2="no"
23049
23050
23051 fi
23052 rm -f core conftest.err conftest.$ac_objext \
23053     conftest$ac_exeext conftest.$ac_ext
23054
23055                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23056 /* end confdefs.h.  */
23057
23058           #include <openssl/evp.h>
23059
23060 int
23061 main ()
23062 {
23063
23064           EVP_aes_192_cbc();
23065
23066   ;
23067   return 0;
23068 }
23069 _ACEOF
23070 if ac_fn_c_try_link "$LINENO"; then :
23071
23072           ac_cv_openssl_export="no"
23073
23074 else
23075
23076           ac_cv_openssl_export="yes"
23077
23078
23079 fi
23080 rm -f core conftest.err conftest.$ac_objext \
23081     conftest$ac_exeext conftest.$ac_ext
23082
23083    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23084 $as_echo "$support_tls" >&6; }
23085    if test "$support_tls" = "yes"; then
23086
23087 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
23088
23089
23090 $as_echo "#define HAVE_TLS 1" >>confdefs.h
23091
23092
23093 $as_echo "#define HAVE_CRYPTO 1" >>confdefs.h
23094
23095    fi
23096
23097    if test "$ac_cv_openssl_sha2" = "yes"; then
23098
23099 $as_echo "#define HAVE_SHA2 1" >>confdefs.h
23100
23101    fi
23102
23103    if test "$ac_cv_openssl_export" = "yes"; then
23104
23105 $as_echo "#define HAVE_OPENSSL_EXPORT_LIBRARY 1" >>confdefs.h
23106
23107    fi
23108
23109    if test "$support_crypto" = "yes"; then
23110       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_PKEY_encrypt_old in -lcrypto" >&5
23111 $as_echo_n "checking for EVP_PKEY_encrypt_old in -lcrypto... " >&6; }
23112 if ${ac_cv_lib_crypto_EVP_PKEY_encrypt_old+:} false; then :
23113   $as_echo_n "(cached) " >&6
23114 else
23115   ac_check_lib_save_LIBS=$LIBS
23116 LIBS="-lcrypto  $LIBS"
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h.  */
23119
23120 /* Override any GCC internal prototype to avoid an error.
23121    Use char because int might match the return type of a GCC
23122    builtin and then its argument prototype would still apply.  */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 char EVP_PKEY_encrypt_old ();
23127 int
23128 main ()
23129 {
23130 return EVP_PKEY_encrypt_old ();
23131   ;
23132   return 0;
23133 }
23134 _ACEOF
23135 if ac_fn_c_try_link "$LINENO"; then :
23136   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=yes
23137 else
23138   ac_cv_lib_crypto_EVP_PKEY_encrypt_old=no
23139 fi
23140 rm -f core conftest.err conftest.$ac_objext \
23141     conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23143 fi
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&5
23145 $as_echo "$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" >&6; }
23146 if test "x$ac_cv_lib_crypto_EVP_PKEY_encrypt_old" = xyes; then :
23147
23148 $as_echo "#define HAVE_OPENSSLv1 1" >>confdefs.h
23149
23150 fi
23151
23152    fi
23153
23154    LIBS="${saved_LIBS}"
23155    CFLAGS="${saved_CFLAGS}"
23156 else
23157    support_tls="no"
23158    support_crypto="no"
23159    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_tls" >&5
23160 $as_echo "$support_tls" >&6; }
23161 fi
23162
23163 if test "$support_tls" = "no" -o "$support_crypto" = "no"; then
23164    OPENSSL_LIBS=""
23165    OPENSSL_INC=""
23166 fi
23167
23168
23169
23170
23171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
23172 $as_echo_n "checking for library containing dlopen... " >&6; }
23173 if ${ac_cv_search_dlopen+:} false; then :
23174   $as_echo_n "(cached) " >&6
23175 else
23176   ac_func_search_save_LIBS=$LIBS
23177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23178 /* end confdefs.h.  */
23179
23180 /* Override any GCC internal prototype to avoid an error.
23181    Use char because int might match the return type of a GCC
23182    builtin and then its argument prototype would still apply.  */
23183 #ifdef __cplusplus
23184 extern "C"
23185 #endif
23186 char dlopen ();
23187 int
23188 main ()
23189 {
23190 return dlopen ();
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 for ac_lib in '' dl; do
23196   if test -z "$ac_lib"; then
23197     ac_res="none required"
23198   else
23199     ac_res=-l$ac_lib
23200     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23201   fi
23202   if ac_fn_c_try_link "$LINENO"; then :
23203   ac_cv_search_dlopen=$ac_res
23204 fi
23205 rm -f core conftest.err conftest.$ac_objext \
23206     conftest$ac_exeext
23207   if ${ac_cv_search_dlopen+:} false; then :
23208   break
23209 fi
23210 done
23211 if ${ac_cv_search_dlopen+:} false; then :
23212
23213 else
23214   ac_cv_search_dlopen=no
23215 fi
23216 rm conftest.$ac_ext
23217 LIBS=$ac_func_search_save_LIBS
23218 fi
23219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
23220 $as_echo "$ac_cv_search_dlopen" >&6; }
23221 ac_res=$ac_cv_search_dlopen
23222 if test "$ac_res" != no; then :
23223   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23224
23225 fi
23226
23227
23228 working_dir=`eval echo /opt/bacula/working`
23229
23230 # Check whether --with-working-dir was given.
23231 if test "${with_working_dir+set}" = set; then :
23232   withval=$with_working_dir;
23233        if test "x$withval" != "xno" ; then
23234          working_dir=$withval
23235        fi
23236
23237
23238 fi
23239
23240
23241
23242
23243 archivedir=/tmp
23244
23245 # Check whether --with-archivedir was given.
23246 if test "${with_archivedir+set}" = set; then :
23247   withval=$with_archivedir;
23248        if test "x$withval" != "xno" ; then
23249           archivedir=$withval
23250        fi
23251
23252
23253 fi
23254
23255
23256
23257
23258 basename=`hostname`
23259
23260 # Check whether --with-basename was given.
23261 if test "${with_basename+set}" = set; then :
23262   withval=$with_basename;
23263        if test "x$withval" != "xno" ; then
23264           basename=$withval
23265        fi
23266
23267
23268 fi
23269
23270
23271
23272
23273 hostname=`uname -n | cut -d '.' -f 1`
23274 if test x${hostname} = x ; then
23275   hostname="localhost"
23276 fi
23277 ping -c 1 $hostname 2>/dev/null 1>/dev/null
23278 if test ! $? = 0; then
23279   hostname="localhost"
23280 fi
23281
23282 # Check whether --with-hostname was given.
23283 if test "${with_hostname+set}" = set; then :
23284   withval=$with_hostname;
23285        if test "x$withval" != "xno" ; then
23286          hostname=$withval
23287        fi
23288
23289
23290 fi
23291
23292
23293
23294
23295
23296 scriptdir=`eval echo ${sysconfdir}`
23297
23298 # Check whether --with-scriptdir was given.
23299 if test "${with_scriptdir+set}" = set; then :
23300   withval=$with_scriptdir;
23301        if test "x$withval" != "xno" ; then
23302           scriptdir=$withval
23303        fi
23304
23305
23306 fi
23307
23308
23309
23310
23311
23312 bsrdir=`eval echo /opt/bacula/bsr`
23313
23314 # Check whether --with-bsrdir was given.
23315 if test "${with_bsrdir+set}" = set; then :
23316   withval=$with_bsrdir;
23317        if test "x$withval" != "xno" ; then
23318           bsrdir=$withval
23319        fi
23320
23321
23322 fi
23323
23324
23325
23326
23327 logdir=`eval echo /opt/bacula/log`
23328
23329 # Check whether --with-logdir was given.
23330 if test "${with_logdir+set}" = set; then :
23331   withval=$with_logdir;
23332        if test "x$withval" != "xno" ; then
23333           logdir=$withval
23334        fi
23335
23336
23337 fi
23338
23339
23340
23341
23342
23343 # ------------------------------------------
23344 # Where to place plugindir (plugin files)
23345 # ------------------------------------------
23346 plugindir=`eval echo ${libdir}`
23347
23348 # Check whether --with-plugindir was given.
23349 if test "${with_plugindir+set}" = set; then :
23350   withval=$with_plugindir;
23351        if test "x$withval" != "xno" ; then
23352           plugindir=$withval
23353        fi
23354
23355
23356 fi
23357
23358
23359
23360
23361
23362 dump_email=root@localhost
23363
23364 # Check whether --with-dump-email was given.
23365 if test "${with_dump_email+set}" = set; then :
23366   withval=$with_dump_email;
23367        if test "x$withval" != "xno" ; then
23368           dump_email=$withval
23369        fi
23370
23371
23372 fi
23373
23374
23375
23376
23377 job_email=root@localhost
23378
23379 # Check whether --with-job-email was given.
23380 if test "${with_job_email+set}" = set; then :
23381   withval=$with_job_email;
23382        if test "x$withval" != "xno" ; then
23383           job_email=$withval
23384        fi
23385
23386
23387 fi
23388
23389
23390
23391
23392 smtp_host=localhost
23393
23394 # Check whether --with-smtp_host was given.
23395 if test "${with_smtp_host+set}" = set; then :
23396   withval=$with_smtp_host;
23397        if test "x$withval" != "xno" ; then
23398           smtp_host=$withval
23399        fi
23400
23401
23402 fi
23403
23404
23405
23406
23407 piddir=/var/run
23408
23409 # Check whether --with-pid-dir was given.
23410 if test "${with_pid_dir+set}" = set; then :
23411   withval=$with_pid_dir;
23412        if test "x$withval" != "xno" ; then
23413           piddir=$withval
23414        fi
23415
23416
23417 fi
23418
23419
23420 cat >>confdefs.h <<_ACEOF
23421 #define _PATH_BACULA_PIDDIR "$piddir"
23422 _ACEOF
23423
23424
23425
23426 subsysdir=/var/run/subsys
23427 if test -d /var/run/subsys; then
23428    subsysdir=/var/run/subsys
23429 elif test -d /var/lock/subsys; then
23430    subsysdir=/var/lock/subsys
23431 else
23432    subsysdir=/var/run/subsys
23433 fi
23434
23435 # Check whether --with-subsys-dir was given.
23436 if test "${with_subsys_dir+set}" = set; then :
23437   withval=$with_subsys_dir;
23438        if test "x$withval" != "xno" ; then
23439           subsysdir=$withval
23440        fi
23441
23442
23443 fi
23444
23445
23446
23447
23448 baseport=9101
23449
23450 # Check whether --with-baseport was given.
23451 if test "${with_baseport+set}" = set; then :
23452   withval=$with_baseport;
23453        if test "x$withval" != "xno" ; then
23454           baseport=$withval
23455        fi
23456
23457
23458 fi
23459
23460
23461
23462 dir_port=`expr $baseport`
23463 fd_port=`expr $baseport + 1`
23464 sd_port=`expr $fd_port + 1`
23465
23466
23467
23468
23469
23470 dir_password=
23471
23472 # Check whether --with-dir-password was given.
23473 if test "${with_dir_password+set}" = set; then :
23474   withval=$with_dir_password;
23475        if test "x$withval" != "xno" ; then
23476           dir_password=$withval
23477        fi
23478
23479
23480 fi
23481
23482
23483 if test "x$dir_password" = "x" ; then
23484    if test "x$OPENSSL" = "xnone" ; then
23485       key=`autoconf/randpass 33`
23486    else
23487       key=`openssl rand -base64 33`
23488    fi
23489    dir_password=$key
23490 fi
23491
23492 fd_password=
23493
23494 # Check whether --with-fd-password was given.
23495 if test "${with_fd_password+set}" = set; then :
23496   withval=$with_fd_password;
23497        if test "x$withval" != "xno" ; then
23498           fd_password=$withval
23499        fi
23500
23501
23502 fi
23503
23504
23505 if test "x$fd_password" = "x" ; then
23506    if test "x$OPENSSL" = "xnone" ; then
23507       key=`autoconf/randpass 37`
23508    else
23509       key=`openssl rand -base64 33`
23510    fi
23511    fd_password=$key
23512 fi
23513
23514 sd_password=
23515
23516 # Check whether --with-sd-password was given.
23517 if test "${with_sd_password+set}" = set; then :
23518   withval=$with_sd_password;
23519        if test "x$withval" != "xno" ; then
23520           sd_password=$withval
23521        fi
23522
23523
23524 fi
23525
23526
23527 if test "x$sd_password" = "x" ; then
23528    if test "x$OPENSSL" = "xnone" ; then
23529       key=`autoconf/randpass 41`
23530    else
23531       key=`openssl rand -base64 33`
23532    fi
23533    sd_password=$key
23534 fi
23535
23536 mon_dir_password=
23537
23538 # Check whether --with-mon-dir-password was given.
23539 if test "${with_mon_dir_password+set}" = set; then :
23540   withval=$with_mon_dir_password;
23541        if test "x$withval" != "xno" ; then
23542           mon_dir_password=$withval
23543        fi
23544
23545
23546 fi
23547
23548
23549 if test "x$mon_dir_password" = "x" ; then
23550    if test "x$OPENSSL" = "xnone" ; then
23551       key=`autoconf/randpass 33`
23552    else
23553       key=`openssl rand -base64 33`
23554    fi
23555    mon_dir_password=$key
23556 fi
23557
23558 mon_fd_password=
23559
23560 # Check whether --with-mon-fd-password was given.
23561 if test "${with_mon_fd_password+set}" = set; then :
23562   withval=$with_mon_fd_password;
23563        if test "x$withval" != "xno" ; then
23564           mon_fd_password=$withval
23565        fi
23566
23567
23568 fi
23569
23570
23571 if test "x$mon_fd_password" = "x" ; then
23572    if test "x$OPENSSL" = "xnone" ; then
23573       key=`autoconf/randpass 37`
23574    else
23575       key=`openssl rand -base64 33`
23576    fi
23577    mon_fd_password=$key
23578 fi
23579
23580 mon_sd_password=
23581
23582 # Check whether --with-mon-sd-password was given.
23583 if test "${with_mon_sd_password+set}" = set; then :
23584   withval=$with_mon_sd_password;
23585        if test "x$withval" != "xno" ; then
23586           mon_sd_password=$withval
23587        fi
23588
23589
23590 fi
23591
23592
23593 if test "x$mon_sd_password" = "x" ; then
23594    if test "x$OPENSSL" = "xnone" ; then
23595       key=`autoconf/randpass 41`
23596    else
23597       key=`openssl rand -base64 33`
23598    fi
23599    mon_sd_password=$key
23600 fi
23601
23602
23603
23604
23605
23606
23607
23608
23609 db_name=bacula
23610
23611 # Check whether --with-db_name was given.
23612 if test "${with_db_name+set}" = set; then :
23613   withval=$with_db_name;
23614        if test "x$withval" != "x" ; then
23615           db_name=$withval
23616        fi
23617
23618
23619 fi
23620
23621
23622
23623 db_user=bacula
23624
23625 # Check whether --with-db_user was given.
23626 if test "${with_db_user+set}" = set; then :
23627   withval=$with_db_user;
23628        if test "x$withval" != "x" ; then
23629           db_user=$withval
23630        fi
23631
23632
23633 fi
23634
23635
23636
23637 db_password=
23638
23639 # Check whether --with-db_password was given.
23640 if test "${with_db_password+set}" = set; then :
23641   withval=$with_db_password;
23642        if test "x$withval" != "x" ; then
23643           db_password=$withval
23644        fi
23645
23646
23647 fi
23648
23649
23650
23651 db_port=" "
23652
23653 # Check whether --with-db_port was given.
23654 if test "${with_db_port+set}" = set; then :
23655   withval=$with_db_port;
23656        if test "x$withval" != "x" ; then
23657           db_port=$withval
23658        fi
23659
23660
23661 fi
23662
23663
23664
23665 db_ssl_options=
23666
23667 # Check whether --with-db_ssl_options was given.
23668 if test "${with_db_ssl_options+set}" = set; then :
23669   withval=$with_db_ssl_options;
23670        if test "x$withval" != "x" ; then
23671          db_ssl_options=$withval
23672        fi
23673
23674
23675 fi
23676
23677
23678
23679 #
23680 # Handle users and groups for each daemon
23681 #
23682 dir_user=
23683
23684 # Check whether --with-dir_user was given.
23685 if test "${with_dir_user+set}" = set; then :
23686   withval=$with_dir_user;
23687        if test "x$withval" != "x" ; then
23688            dir_user=$withval
23689        fi
23690
23691
23692 fi
23693
23694
23695 dir_group=
23696
23697 # Check whether --with-dir_group was given.
23698 if test "${with_dir_group+set}" = set; then :
23699   withval=$with_dir_group;
23700        if test "x$withval" != "x" ; then
23701           dir_group=$withval
23702        fi
23703
23704
23705 fi
23706
23707
23708 sd_user=
23709
23710 # Check whether --with-sd_user was given.
23711 if test "${with_sd_user+set}" = set; then :
23712   withval=$with_sd_user;
23713        if test "x$withval" != "x" ; then
23714           sd_user=$withval
23715        fi
23716
23717
23718 fi
23719
23720
23721 sd_group=
23722
23723 # Check whether --with-sd_group was given.
23724 if test "${with_sd_group+set}" = set; then :
23725   withval=$with_sd_group;
23726        if test "x$withval" != "x" ; then
23727           sd_group=$withval
23728        fi
23729
23730
23731 fi
23732
23733
23734 fd_user=
23735
23736 # Check whether --with-fd_user was given.
23737 if test "${with_fd_user+set}" = set; then :
23738   withval=$with_fd_user;
23739        if test "x$withval" != "x" ; then
23740           fd_user=$withval
23741        fi
23742
23743
23744 fi
23745
23746
23747 fd_group=
23748
23749 # Check whether --with-fd_group was given.
23750 if test "${with_fd_group+set}" = set; then :
23751   withval=$with_fd_group;
23752        if test "x$withval" != "x" ; then
23753           fd_group=$withval
23754        fi
23755
23756
23757 fi
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767 SBINPERM=0750
23768
23769 # Check whether --with-sbin-perm was given.
23770 if test "${with_sbin_perm+set}" = set; then :
23771   withval=$with_sbin_perm;
23772        if test "x$withval" != "x" ; then
23773           SBINPERM=$withval
23774        fi
23775
23776
23777 fi
23778
23779
23780
23781
23782 support_batch_insert=yes
23783 # Check whether --enable-batch-insert was given.
23784 if test "${enable_batch_insert+set}" = set; then :
23785   enableval=$enable_batch_insert;
23786        if test x$enableval = xno; then
23787           support_batch_insert=no
23788        fi
23789
23790
23791 fi
23792
23793
23794 if test x$support_batch_insert = xyes; then
23795
23796 $as_echo "#define USE_BATCH_FILE_INSERT 1" >>confdefs.h
23797
23798 fi
23799
23800
23801 uncomment_dbi="#"
23802
23803
23804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5
23805 $as_echo_n "checking for PostgreSQL support... " >&6; }
23806
23807 # Check whether --with-postgresql was given.
23808 if test "${with_postgresql+set}" = set; then :
23809   withval=$with_postgresql;
23810   if test "$withval" != "no"; then
23811       if test "$withval" = "yes"; then
23812           PG_CONFIG=`which pg_config 2>/dev/null`
23813           if test -n "$PG_CONFIG"; then
23814               POSTGRESQL_INCDIR=`"$PG_CONFIG" --includedir`
23815               POSTGRESQL_LIBDIR=`"$PG_CONFIG" --libdir`
23816               POSTGRESQL_BINDIR=`"$PG_CONFIG" --bindir`
23817           elif test -f /usr/local/include/libpq-fe.h; then
23818               POSTGRESQL_INCDIR=/usr/local/include
23819               if test -d /usr/local/lib64; then
23820                  POSTGRESQL_LIBDIR=/usr/local/lib64
23821               else
23822                  POSTGRESQL_LIBDIR=/usr/local/lib
23823               fi
23824               POSTGRESQL_BINDIR=/usr/local/bin
23825           elif test -f /usr/include/libpq-fe.h; then
23826               POSTGRESQL_INCDIR=/usr/include
23827               if test -d /usr/lib64; then
23828                  POSTGRESQL_LIBDIR=/usr/lib64
23829               else
23830                  POSTGRESQL_LIBDIR=/usr/lib
23831               fi
23832               POSTGRESQL_BINDIR=/usr/bin
23833           elif test -f /usr/include/pgsql/libpq-fe.h; then
23834               POSTGRESQL_INCDIR=/usr/include/pgsql
23835               if test -d /usr/lib64/pgsql; then
23836                  POSTGRESQL_LIBDIR=/usr/lib64/pgsql
23837               else
23838                  POSTGRESQL_LIBDIR=/usr/lib/pgsql
23839               fi
23840               POSTGRESQL_BINDIR=/usr/bin
23841           elif test -f /usr/include/postgresql/libpq-fe.h; then
23842               POSTGRESQL_INCDIR=/usr/include/postgresql
23843               if test -d /usr/lib64/postgresql; then
23844                  POSTGRESQL_LIBDIR=/usr/lib64/postgresql
23845               else
23846                  POSTGRESQL_LIBDIR=/usr/lib/postgresql
23847               fi
23848               POSTGRESQL_BINDIR=/usr/bin
23849           else
23850               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23851 $as_echo "no" >&6; }
23852               as_fn_error $? "Unable to find libpq-fe.h in standard locations" "$LINENO" 5
23853           fi
23854       elif test -f $withval/include/libpq-fe.h; then
23855           POSTGRESQL_INCDIR=$withval/include
23856           POSTGRESQL_LIBDIR=$withval/lib
23857           POSTGRESQL_BINDIR=$withval/bin
23858       elif test -f $withval/include/postgresql/libpq-fe.h; then
23859           POSTGRESQL_INCDIR=$withval/include/postgresql
23860           if test -d $withval/lib64; then
23861               POSTGRESQL_LIBDIR=$withval/lib64
23862           else
23863               POSTGRESQL_LIBDIR=$withval/lib
23864           fi
23865           POSTGRESQL_BINDIR=$withval/bin
23866       else
23867           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23868 $as_echo "no" >&6; }
23869           as_fn_error $? "Invalid PostgreSQL directory $withval - unable to find libpq-fe.h under $withval" "$LINENO" 5
23870       fi
23871
23872 $as_echo "#define HAVE_POSTGRESQL 1" >>confdefs.h
23873
23874      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23875 $as_echo "yes" >&6; }
23876
23877      POSTGRESQL_INCLUDE=-I$POSTGRESQL_INCDIR
23878      if test x$use_libtool != xno; then
23879         POSTGRESQL_LIBS="-R $POSTGRESQL_LIBDIR -L$POSTGRESQL_LIBDIR -lpq"
23880      else
23881         POSTGRESQL_LIBS="-L$POSTGRESQL_LIBDIR -lpq"
23882      fi
23883      ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
23884 if test "x$ac_cv_func_crypt" = xyes; then :
23885
23886 else
23887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
23888 $as_echo_n "checking for crypt in -lcrypt... " >&6; }
23889 if ${ac_cv_lib_crypt_crypt+:} false; then :
23890   $as_echo_n "(cached) " >&6
23891 else
23892   ac_check_lib_save_LIBS=$LIBS
23893 LIBS="-lcrypt  $LIBS"
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h.  */
23896
23897 /* Override any GCC internal prototype to avoid an error.
23898    Use char because int might match the return type of a GCC
23899    builtin and then its argument prototype would still apply.  */
23900 #ifdef __cplusplus
23901 extern "C"
23902 #endif
23903 char crypt ();
23904 int
23905 main ()
23906 {
23907 return crypt ();
23908   ;
23909   return 0;
23910 }
23911 _ACEOF
23912 if ac_fn_c_try_link "$LINENO"; then :
23913   ac_cv_lib_crypt_crypt=yes
23914 else
23915   ac_cv_lib_crypt_crypt=no
23916 fi
23917 rm -f core conftest.err conftest.$ac_objext \
23918     conftest$ac_exeext conftest.$ac_ext
23919 LIBS=$ac_check_lib_save_LIBS
23920 fi
23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
23922 $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
23923 if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
23924   POSTGRESQL_LIBS="$POSTGRESQL_LIBS -lcrypt"
23925 fi
23926
23927 fi
23928
23929      POSTGRESQL_LIB=$POSTGRESQL_LIBDIR/libpq.a
23930      DB_LIBS="${DB_LIBS} ${POSTGRESQL_LIBS}"
23931
23932      if test -z "${db_backends}"; then
23933          db_backends="PostgreSQL"
23934      else
23935          db_backends="${db_backends} PostgreSQL"
23936      fi
23937      if test -z "${DB_BACKENDS}"; then
23938          DB_BACKENDS="postgresql"
23939      else
23940          DB_BACKENDS="${DB_BACKENDS} postgresql"
23941      fi
23942
23943                     if test "x$support_batch_insert" = "xyes"; then
23944                   saved_LDFLAGS="${LDFLAGS}"
23945          LDFLAGS="${saved_LDFLAGS} -L$POSTGRESQL_LIBDIR"
23946          saved_LIBS="${LIBS}"
23947          if test "x$ac_cv_lib_crypt_crypt" = "xyes" ; then
23948             LIBS="${saved_LIBS} -lcrypt"
23949          fi
23950
23951          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQisthreadsafe in -lpq" >&5
23952 $as_echo_n "checking for PQisthreadsafe in -lpq... " >&6; }
23953 if ${ac_cv_lib_pq_PQisthreadsafe+:} false; then :
23954   $as_echo_n "(cached) " >&6
23955 else
23956   ac_check_lib_save_LIBS=$LIBS
23957 LIBS="-lpq  $LIBS"
23958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23959 /* end confdefs.h.  */
23960
23961 /* Override any GCC internal prototype to avoid an error.
23962    Use char because int might match the return type of a GCC
23963    builtin and then its argument prototype would still apply.  */
23964 #ifdef __cplusplus
23965 extern "C"
23966 #endif
23967 char PQisthreadsafe ();
23968 int
23969 main ()
23970 {
23971 return PQisthreadsafe ();
23972   ;
23973   return 0;
23974 }
23975 _ACEOF
23976 if ac_fn_c_try_link "$LINENO"; then :
23977   ac_cv_lib_pq_PQisthreadsafe=yes
23978 else
23979   ac_cv_lib_pq_PQisthreadsafe=no
23980 fi
23981 rm -f core conftest.err conftest.$ac_objext \
23982     conftest$ac_exeext conftest.$ac_ext
23983 LIBS=$ac_check_lib_save_LIBS
23984 fi
23985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQisthreadsafe" >&5
23986 $as_echo "$ac_cv_lib_pq_PQisthreadsafe" >&6; }
23987 if test "x$ac_cv_lib_pq_PQisthreadsafe" = xyes; then :
23988
23989 $as_echo "#define HAVE_PQISTHREADSAFE 1" >>confdefs.h
23990
23991 fi
23992
23993          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQputCopyData in -lpq" >&5
23994 $as_echo_n "checking for PQputCopyData in -lpq... " >&6; }
23995 if ${ac_cv_lib_pq_PQputCopyData+:} false; then :
23996   $as_echo_n "(cached) " >&6
23997 else
23998   ac_check_lib_save_LIBS=$LIBS
23999 LIBS="-lpq  $LIBS"
24000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24001 /* end confdefs.h.  */
24002
24003 /* Override any GCC internal prototype to avoid an error.
24004    Use char because int might match the return type of a GCC
24005    builtin and then its argument prototype would still apply.  */
24006 #ifdef __cplusplus
24007 extern "C"
24008 #endif
24009 char PQputCopyData ();
24010 int
24011 main ()
24012 {
24013 return PQputCopyData ();
24014   ;
24015   return 0;
24016 }
24017 _ACEOF
24018 if ac_fn_c_try_link "$LINENO"; then :
24019   ac_cv_lib_pq_PQputCopyData=yes
24020 else
24021   ac_cv_lib_pq_PQputCopyData=no
24022 fi
24023 rm -f core conftest.err conftest.$ac_objext \
24024     conftest$ac_exeext conftest.$ac_ext
24025 LIBS=$ac_check_lib_save_LIBS
24026 fi
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQputCopyData" >&5
24028 $as_echo "$ac_cv_lib_pq_PQputCopyData" >&6; }
24029 if test "x$ac_cv_lib_pq_PQputCopyData" = xyes; then :
24030
24031 $as_echo "#define HAVE_PQ_COPY 1" >>confdefs.h
24032
24033 fi
24034
24035          if test "x$ac_cv_lib_pq_PQputCopyData" = "xyes"; then
24036              if test $support_batch_insert = yes ; then
24037
24038 $as_echo "#define HAVE_POSTGRESQL_BATCH_FILE_INSERT 1" >>confdefs.h
24039
24040                  if test -z "${batch_insert_db_backends}"; then
24041                      batch_insert_db_backends="PostgreSQL"
24042                  else
24043                      batch_insert_db_backends="${batch_insert_db_backends} PostgreSQL"
24044                  fi
24045              fi
24046          fi
24047
24048          if test x$ac_cv_lib_pq_PQisthreadsafe != xyes -a x$support_batch_insert = xyes
24049          then
24050              echo "WARNING: Your PostgreSQL client library is too old to detect "
24051              echo "if it was compiled with --enable-thread-safety, consider to "
24052              echo "upgrade it in order to avoid problems with Batch insert mode"
24053          fi
24054
24055                   LDFLAGS="${saved_LDFLAGS}"
24056          LIBS="${saved_LIBS}"
24057      fi
24058   else
24059      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24060 $as_echo "no" >&6; }
24061   fi
24062
24063 else
24064
24065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24066 $as_echo "no" >&6; }
24067
24068 fi
24069
24070
24071
24072
24073
24074
24075
24076
24077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5
24078 $as_echo_n "checking for MySQL support... " >&6; }
24079
24080 # Check whether --with-mysql was given.
24081 if test "${with_mysql+set}" = set; then :
24082   withval=$with_mysql;
24083   if test "$withval" != "no"; then
24084         if test "$withval" = "yes"; then
24085 #
24086 # This code is very broken on older systems
24087 #
24088 #           MYSQL_CONFIG=`which mysql_config 2>/dev/null`
24089 #           if test "x${MYSQL_CONFIG}" != x; then
24090 #              MYSQL_BINDIR="${MYSQL_CONFIG%/*}"
24091 #              ${MYSQL_CONFIG} --variable=pkglibdir > /dev/null 2>&1
24092 #              if test $? = 0 ; then
24093 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --variable=pkglibdir`
24094 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --variable=pkgincludedir`
24095 #              else
24096 #                 MYSQL_LIBDIR=`${MYSQL_CONFIG} --libs_r | sed -e 's/.*-L//' -e 's/ .*//'`
24097 #                 MYSQL_INCDIR=`${MYSQL_CONFIG} --include | sed -e 's/-I//'`
24098 #              fi
24099 #           fi
24100 #           if [ "x${MYSQL_LIB}" = x -o "x${MYSQL_INCDIR}" = x ]; then
24101            if test -f /usr/local/mysql/include/mysql/mysql.h; then
24102               MYSQL_INCDIR=/usr/local/mysql/include/mysql
24103               if test -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.a \
24104                       -o -f /usr/local/mysql/lib64/mysql/libmysqlclient_r.so; then
24105                  MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24106               else
24107                  MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24108               fi
24109               MYSQL_BINDIR=/usr/local/mysql/bin
24110            elif test -f /usr/include/mysql/mysql.h; then
24111               MYSQL_INCDIR=/usr/include/mysql
24112               if test -f /usr/lib64/mysql/libmysqlclient_r.a \
24113                       -o -f /usr/lib64/mysql/libmysqlclient_r.so; then
24114                  MYSQL_LIBDIR=/usr/lib64/mysql
24115               elif test -f /usr/lib64/libmysqlclient_r.a \
24116                         -o -f /usr/lib64/libmysqlclient_r.so; then
24117                  MYSQL_LIBDIR=/usr/lib64
24118               elif test -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.a \
24119                         -o -f /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so; then
24120                  MYSQL_LIBDIR=/usr/lib/x86_64-linux-gnu
24121               elif test -f /usr/lib/mysql/libmysqlclient_r.a \
24122                         -o -f /usr/lib/mysql/libmysqlclient_r.so; then
24123                  MYSQL_LIBDIR=/usr/lib/mysql
24124               else
24125                  MYSQL_LIBDIR=/usr/lib
24126               fi
24127               MYSQL_BINDIR=/usr/bin
24128            elif test -f /usr/include/mysql.h; then
24129               MYSQL_INCDIR=/usr/include
24130               if test -f /usr/lib64/libmysqlclient_r.a \
24131                       -o -f /usr/lib64/libmysqlclient_r.so; then
24132                  MYSQL_LIBDIR=/usr/lib64
24133               else
24134                  MYSQL_LIBDIR=/usr/lib
24135               fi
24136               MYSQL_BINDIR=/usr/bin
24137            elif test -f /usr/local/include/mysql/mysql.h; then
24138               MYSQL_INCDIR=/usr/local/include/mysql
24139               if test -f /usr/local/lib64/mysql/libmysqlclient_r.a \
24140                       -o -f /usr/local/lib64/mysql/libmysqlclient_r.so; then
24141                  MYSQL_LIBDIR=/usr/local/lib64/mysql
24142               else
24143                  MYSQL_LIBDIR=/usr/local/lib/mysql
24144               fi
24145               MYSQL_BINDIR=/usr/local/bin
24146            elif test -f /usr/local/include/mysql.h; then
24147               MYSQL_INCDIR=/usr/local/include
24148               if test -f /usr/local/lib64/libmysqlclient_r.a \
24149                       -o -f /usr/local/lib64/libmysqlclient_r.so; then
24150                  MYSQL_LIBDIR=/usr/local/lib64
24151               else
24152                  MYSQL_LIBDIR=/usr/local/lib
24153               fi
24154               MYSQL_BINDIR=/usr/local/bin
24155            else
24156               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24157 $as_echo "no" >&6; }
24158               as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24159            fi
24160         else
24161            if test -f $withval/include/mysql/mysql.h; then
24162               MYSQL_INCDIR=$withval/include/mysql
24163               if test -f $withval/lib64/mysql/libmysqlclient_r.a \
24164                    -o -f $withval/lib64/mysql/libmysqlclient_r.so; then
24165                  MYSQL_LIBDIR=$withval/lib64/mysql
24166               elif test -f $withval/lib64/libmysqlclient_r.a \
24167                    -o -f $withval/lib64/libmysqlclient_r.so; then
24168                  MYSQL_LIBDIR=$withval/lib64
24169               elif test -f $withval/lib/libmysqlclient_r.a \
24170                    -o -f $withval/lib/libmysqlclient_r.so; then
24171                  MYSQL_LIBDIR=$withval/lib
24172               else
24173                  MYSQL_LIBDIR=$withval/lib/mysql
24174               fi
24175               MYSQL_BINDIR=$withval/bin
24176            elif test -f $withval/include/mysql.h; then
24177               MYSQL_INCDIR=$withval/include
24178               if test -f $withval/lib64/libmysqlclient_r.a \
24179                    -o -f $withval/lib64/libmysqlclient_r.so; then
24180                  MYSQL_LIBDIR=$withval/lib64
24181               else
24182                  MYSQL_LIBDIR=$withval/lib
24183               fi
24184               MYSQL_BINDIR=$withval/bin
24185            elif test -f $withval/mysql.h; then
24186                             MYSQL_INCDIR=$withval
24187               { $as_echo "$as_me:${as_lineno-$LINENO}: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&5
24188 $as_echo "$as_me: Got with-mysql variable $MYSQL_INCDIR checking MySQL version" >&6;}
24189               case $MYSQL_INCDIR in
24190                  *mysql55*)
24191                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.5 variant installed" >&5
24192 $as_echo "$as_me: Assuming MacPorts MySQL 5.5 variant installed" >&6;}
24193                                           if test -f $prefix/lib/mysql55/mysql/libmysqlclient_r.a \
24194                           -o -f $prefix/lib/mysql55/mysql/libmysqlclient_r.so; then
24195                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&5
24196 $as_echo "$as_me: Found MySQL 5.5 library in $prefix/lib/mysql55/mysql" >&6;}
24197                         MYSQL_LIBDIR=$prefix/lib/mysql55/mysql
24198                      fi
24199                      MYSQL_BINDIR=$prefix/lib/mysql55/bin
24200                  ;;
24201                  *mysql51*)
24202                      { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming MacPorts MySQL 5.1 variant installed" >&5
24203 $as_echo "$as_me: Assuming MacPorts MySQL 5.1 variant installed" >&6;}
24204                                           if test -f $prefix/lib/mysql51/mysql/libmysqlclient_r.a \
24205                           -o -f $prefix/lib/mysql51/mysql/libmysqlclient_r.so; then
24206                         { $as_echo "$as_me:${as_lineno-$LINENO}: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&5
24207 $as_echo "$as_me: Found MySQL 5.1 library in $prefix/lib/mysql55/mysql" >&6;}
24208                         MYSQL_LIBDIR=$prefix/lib/mysql51/mysql
24209                      fi
24210                      MYSQL_BINDIR=$prefix/lib/mysql51/bin
24211                  ;;
24212               esac
24213               if test -z "${MYSQL_LIBDIR}" ; then
24214                  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24215 $as_echo "no" >&6; }
24216                  as_fn_error $? "MySQL $withval - unable to find MySQL libraries" "$LINENO" 5
24217               fi
24218            else
24219               { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24220 $as_echo "no" >&6; }
24221               as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24222            fi
24223         fi
24224      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24225      if test -f $MYSQL_LIBDIR/libmysqlclient_r.a \
24226           -o -f $MYSQL_LIBDIR/libmysqlclient_r.so; then
24227         if test x$use_libtool != xno; then
24228            MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24229         else
24230            MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqlclient_r -lz"
24231         fi
24232         DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24233      fi
24234      MYSQL_LIB=$MYSQL_LIBDIR/libmysqlclient_r.a
24235
24236
24237 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24238
24239      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24240 $as_echo "yes" >&6; }
24241
24242      if test -z "${db_backends}" ; then
24243          db_backends="MySQL"
24244      else
24245          db_backends="${db_backends} MySQL"
24246      fi
24247      if test -z "${DB_BACKENDS}" ; then
24248          DB_BACKENDS="mysql"
24249      else
24250          DB_BACKENDS="${DB_BACKENDS} mysql"
24251      fi
24252
24253                     if test "x$support_batch_insert" = "xyes"; then
24254                   saved_LDFLAGS="${LDFLAGS}"
24255          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24256          saved_LIBS="${LIBS}"
24257          LIBS="${saved_LIBS} -lz"
24258
24259          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24260 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24261 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24262   $as_echo_n "(cached) " >&6
24263 else
24264   ac_check_lib_save_LIBS=$LIBS
24265 LIBS="-lmysqlclient_r  $LIBS"
24266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24267 /* end confdefs.h.  */
24268
24269 /* Override any GCC internal prototype to avoid an error.
24270    Use char because int might match the return type of a GCC
24271    builtin and then its argument prototype would still apply.  */
24272 #ifdef __cplusplus
24273 extern "C"
24274 #endif
24275 char mysql_thread_safe ();
24276 int
24277 main ()
24278 {
24279 return mysql_thread_safe ();
24280   ;
24281   return 0;
24282 }
24283 _ACEOF
24284 if ac_fn_c_try_link "$LINENO"; then :
24285   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24286 else
24287   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24288 fi
24289 rm -f core conftest.err conftest.$ac_objext \
24290     conftest$ac_exeext conftest.$ac_ext
24291 LIBS=$ac_check_lib_save_LIBS
24292 fi
24293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24294 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24295 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24296
24297 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24298
24299 fi
24300
24301          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24302              if test -z "${batch_insert_db_backends}"; then
24303                  batch_insert_db_backends="MySQL"
24304              else
24305                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24306              fi
24307          fi
24308
24309                   LDFLAGS="${saved_LDFLAGS}"
24310          LIBS="${saved_LIBS}"
24311      fi
24312   else
24313      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24314 $as_echo "no" >&6; }
24315   fi
24316
24317 else
24318
24319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24320 $as_echo "no" >&6; }
24321
24322 fi
24323
24324
24325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL embedded support" >&5
24326 $as_echo_n "checking for MySQL embedded support... " >&6; }
24327
24328 # Check whether --with-embedded-mysql was given.
24329 if test "${with_embedded_mysql+set}" = set; then :
24330   withval=$with_embedded_mysql;
24331   if test "$withval" != "no"; then
24332         if test "$withval" = "yes"; then
24333                 if test -f /usr/local/mysql/include/mysql/mysql.h; then
24334                         MYSQL_INCDIR=/usr/local/mysql/include/mysql
24335                         if test -d /usr/local/mysql/lib64/mysql; then
24336                                 MYSQL_LIBDIR=/usr/local/mysql/lib64/mysql
24337                         else
24338                                 MYSQL_LIBDIR=/usr/local/mysql/lib/mysql
24339                         fi
24340                         MYSQL_BINDIR=/usr/local/mysql/bin
24341                 elif test -f /usr/include/mysql/mysql.h; then
24342                         MYSQL_INCDIR=/usr/include/mysql
24343                         if test -d /usr/lib64/mysql; then
24344                                 MYSQL_LIBDIR=/usr/lib64/mysql
24345                         else
24346                                 MYSQL_LIBDIR=/usr/lib/mysql
24347                         fi
24348                         MYSQL_BINDIR=/usr/bin
24349                 elif test -f /usr/include/mysql.h; then
24350                         MYSQL_INCDIR=/usr/include
24351                         if test -d /usr/lib64; then
24352                                 MYSQL_LIBDIR=/usr/lib64
24353                         else
24354                                 MYSQL_LIBDIR=/usr/lib
24355                         fi
24356                         MYSQL_BINDIR=/usr/bin
24357                 elif test -f /usr/local/include/mysql/mysql.h; then
24358                         MYSQL_INCDIR=/usr/local/include/mysql
24359                         if test -d /usr/local/lib64/mysql; then
24360                                 MYSQL_LIBDIR=/usr/local/lib64/mysql
24361                         else
24362                                 MYSQL_LIBDIR=/usr/local/lib/mysql
24363                         fi
24364                         MYSQL_BINDIR=/usr/local/bin
24365                 elif test -f /usr/local/include/mysql.h; then
24366                         MYSQL_INCDIR=/usr/local/include
24367                         if test -d /usr/local/lib64; then
24368                                 MYSQL_LIBDIR=/usr/local/lib64
24369                         else
24370                                 MYSQL_LIBDIR=/usr/local/lib
24371                         fi
24372                         MYSQL_BINDIR=/usr/local/bin
24373                 else
24374                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24375 $as_echo "no" >&6; }
24376                    as_fn_error $? "Unable to find mysql.h in standard locations" "$LINENO" 5
24377                 fi
24378         else
24379                 if test -f $withval/include/mysql/mysql.h; then
24380                         MYSQL_INCDIR=$withval/include/mysql
24381                         if test -d $withval/lib64/mysql; then
24382                                 MYSQL_LIBDIR=$withval/lib64/mysql
24383                         else
24384                                 MYSQL_LIBDIR=$withval/lib/mysql
24385                         fi
24386                         MYSQL_BINDIR=$withval/bin
24387                 elif test -f $withval/include/mysql.h; then
24388                         MYSQL_INCDIR=$withval/include
24389                         if test -d $withval/lib64; then
24390                                 MYSQL_LIBDIR=$withval/lib64
24391                         else
24392                                 MYSQL_LIBDIR=$withval/lib
24393                         fi
24394                         MYSQL_BINDIR=$withval/bin
24395                 else
24396                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24397 $as_echo "no" >&6; }
24398                    as_fn_error $? "Invalid MySQL directory $withval - unable to find mysql.h under $withval" "$LINENO" 5
24399                 fi
24400         fi
24401      MYSQL_INCLUDE=-I$MYSQL_INCDIR
24402      if test x$use_libtool != xno; then
24403         MYSQL_LIBS="-R $MYSQL_LIBDIR -L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24404      else
24405         MYSQL_LIBS="-L$MYSQL_LIBDIR -lmysqld -lz -lm -lcrypt"
24406      fi
24407      MYSQL_LIB=$MYSQL_LIBDIR/libmysqld.a
24408      DB_LIBS="${DB_LIBS} ${MYSQL_LIBS}"
24409
24410
24411 $as_echo "#define HAVE_MYSQL 1" >>confdefs.h
24412
24413
24414 $as_echo "#define HAVE_EMBEDDED_MYSQL 1" >>confdefs.h
24415
24416      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24417 $as_echo "yes" >&6; }
24418
24419      if test -z "${db_backends}"; then
24420          db_backends="MySQL"
24421      else
24422          db_backends="${db_backends} MySQL"
24423      fi
24424      if test -z "${DB_BACKENDS}"; then
24425          DB_BACKENDS="mysql"
24426      else
24427          DB_BACKENDS="${DB_BACKENDS} mysql"
24428      fi
24429
24430                     if test "x$support_batch_insert" = "xyes"; then
24431                   saved_LDFLAGS="${LDFLAGS}"
24432          LDFLAGS="${saved_LDFLAGS} -L$MYSQL_LIBDIR"
24433          saved_LIBS="${LIBS}"
24434          LIBS="${saved_LIBS} -lz -lm -lcrypt"
24435
24436          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_thread_safe in -lmysqlclient_r" >&5
24437 $as_echo_n "checking for mysql_thread_safe in -lmysqlclient_r... " >&6; }
24438 if ${ac_cv_lib_mysqlclient_r_mysql_thread_safe+:} false; then :
24439   $as_echo_n "(cached) " >&6
24440 else
24441   ac_check_lib_save_LIBS=$LIBS
24442 LIBS="-lmysqlclient_r  $LIBS"
24443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24444 /* end confdefs.h.  */
24445
24446 /* Override any GCC internal prototype to avoid an error.
24447    Use char because int might match the return type of a GCC
24448    builtin and then its argument prototype would still apply.  */
24449 #ifdef __cplusplus
24450 extern "C"
24451 #endif
24452 char mysql_thread_safe ();
24453 int
24454 main ()
24455 {
24456 return mysql_thread_safe ();
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 if ac_fn_c_try_link "$LINENO"; then :
24462   ac_cv_lib_mysqlclient_r_mysql_thread_safe=yes
24463 else
24464   ac_cv_lib_mysqlclient_r_mysql_thread_safe=no
24465 fi
24466 rm -f core conftest.err conftest.$ac_objext \
24467     conftest$ac_exeext conftest.$ac_ext
24468 LIBS=$ac_check_lib_save_LIBS
24469 fi
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&5
24471 $as_echo "$ac_cv_lib_mysqlclient_r_mysql_thread_safe" >&6; }
24472 if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = xyes; then :
24473
24474 $as_echo "#define HAVE_MYSQL_THREAD_SAFE 1" >>confdefs.h
24475
24476 fi
24477
24478          if test "x$ac_cv_lib_mysqlclient_r_mysql_thread_safe" = "xyes"; then
24479              if test -z "${batch_insert_db_backends}"; then
24480                  batch_insert_db_backends="MySQL"
24481              else
24482                  batch_insert_db_backends="${batch_insert_db_backends} MySQL"
24483              fi
24484          fi
24485
24486                   LDFLAGS="${saved_LDFLAGS}"
24487          LIBS="${saved_LIBS}"
24488      fi
24489   else
24490      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 $as_echo "no" >&6; }
24492   fi
24493
24494 else
24495
24496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24497 $as_echo "no" >&6; }
24498
24499 fi
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5
24510 $as_echo_n "checking for SQLite3 support... " >&6; }
24511
24512 # Check whether --with-sqlite3 was given.
24513 if test "${with_sqlite3+set}" = set; then :
24514   withval=$with_sqlite3;
24515   if test "$withval" != "no"; then
24516      if test "$withval" = "yes"; then
24517         if test -f /usr/local/include/sqlite3.h; then
24518            SQLITE_INCDIR=/usr/local/include
24519            if test -d /usr/local/lib64; then
24520               SQLITE_LIBDIR=/usr/local/lib64
24521            else
24522               SQLITE_LIBDIR=/usr/local/lib
24523            fi
24524            SQLITE_BINDIR=/usr/local/bin
24525         elif test -f /usr/include/sqlite3.h; then
24526            SQLITE_INCDIR=/usr/include
24527            if test -d /usr/lib64; then
24528               SQLITE_LIBDIR=/usr/lib64
24529            else
24530               SQLITE_LIBDIR=/usr/lib
24531            fi
24532            SQLITE_BINDIR=/usr/bin
24533         elif test -f $prefix/include/sqlite3.h; then
24534            SQLITE_INCDIR=$prefix/include
24535            if test -d $prefix/lib64; then
24536               SQLITE_LIBDIR=$prefix/lib64
24537            else
24538               SQLITE_LIBDIR=$prefix/lib
24539            fi
24540            SQLITE_BINDIR=$prefix/bin
24541         else
24542            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24543 $as_echo "no" >&6; }
24544            as_fn_error $? "Unable to find sqlite3.h in standard locations" "$LINENO" 5
24545         fi
24546      else
24547         if test -f $withval/sqlite3.h; then
24548            SQLITE_INCDIR=$withval
24549            SQLITE_LIBDIR=$withval
24550            SQLITE_BINDIR=$withval
24551         elif test -f $withval/include/sqlite3.h; then
24552            SQLITE_INCDIR=$withval/include
24553            if test -d $withval/lib64; then
24554               SQLITE_LIBDIR=$withval/lib64
24555            else
24556               SQLITE_LIBDIR=$withval/lib
24557            fi
24558            SQLITE_BINDIR=$withval/bin
24559         else
24560            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24561 $as_echo "no" >&6; }
24562            as_fn_error $? "Invalid SQLite3 directory $withval - unable to find sqlite3.h under $withval" "$LINENO" 5
24563         fi
24564      fi
24565      SQLITE_INCLUDE=-I$SQLITE_INCDIR
24566      if test x$use_libtool != xno; then
24567         SQLITE_LIBS="-R $SQLITE_LIBDIR -L$SQLITE_LIBDIR -lsqlite3"
24568      else
24569         SQLITE_LIBS="-L$SQLITE_LIBDIR -lsqlite3"
24570      fi
24571      SQLITE_LIB=$SQLITE_LIBDIR/libsqlite3.a
24572      DB_LIBS="${DB_LIBS} ${SQLITE_LIBS}"
24573
24574
24575 $as_echo "#define HAVE_SQLITE3 1" >>confdefs.h
24576
24577      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24578 $as_echo "yes" >&6; }
24579
24580      if test -z "${db_backends}"; then
24581          db_backends="SQLite3"
24582      else
24583          db_backends="${db_backends} SQLite3"
24584      fi
24585      if test -z "${DB_BACKENDS}"; then
24586          DB_BACKENDS="sqlite3"
24587      else
24588          DB_BACKENDS="${DB_BACKENDS} sqlite3"
24589      fi
24590
24591                     if test "x$support_batch_insert" = "xyes"; then
24592                   saved_LDFLAGS="${LDFLAGS}"
24593          LDFLAGS="${saved_LDFLAGS} -lpthread -L$SQLITE_LIBDIR"
24594
24595          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqlite3_threadsafe in -lsqlite3" >&5
24596 $as_echo_n "checking for sqlite3_threadsafe in -lsqlite3... " >&6; }
24597 if ${ac_cv_lib_sqlite3_sqlite3_threadsafe+:} false; then :
24598   $as_echo_n "(cached) " >&6
24599 else
24600   ac_check_lib_save_LIBS=$LIBS
24601 LIBS="-lsqlite3  $LIBS"
24602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24603 /* end confdefs.h.  */
24604
24605 /* Override any GCC internal prototype to avoid an error.
24606    Use char because int might match the return type of a GCC
24607    builtin and then its argument prototype would still apply.  */
24608 #ifdef __cplusplus
24609 extern "C"
24610 #endif
24611 char sqlite3_threadsafe ();
24612 int
24613 main ()
24614 {
24615 return sqlite3_threadsafe ();
24616   ;
24617   return 0;
24618 }
24619 _ACEOF
24620 if ac_fn_c_try_link "$LINENO"; then :
24621   ac_cv_lib_sqlite3_sqlite3_threadsafe=yes
24622 else
24623   ac_cv_lib_sqlite3_sqlite3_threadsafe=no
24624 fi
24625 rm -f core conftest.err conftest.$ac_objext \
24626     conftest$ac_exeext conftest.$ac_ext
24627 LIBS=$ac_check_lib_save_LIBS
24628 fi
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sqlite3_sqlite3_threadsafe" >&5
24630 $as_echo "$ac_cv_lib_sqlite3_sqlite3_threadsafe" >&6; }
24631 if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = xyes; then :
24632
24633 $as_echo "#define HAVE_SQLITE3_THREADSAFE 1" >>confdefs.h
24634
24635 fi
24636
24637          if test "x$ac_cv_lib_sqlite3_sqlite3_threadsafe" = "xyes"; then
24638              if test -z "${batch_insert_db_backends}"; then
24639                  batch_insert_db_backends="SQLite3"
24640              else
24641                  batch_insert_db_backends="${batch_insert_db_backends} SQLite3"
24642              fi
24643          fi
24644
24645                   LDFLAGS="${saved_LDFLAGS}"
24646      fi
24647   else
24648      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24649 $as_echo "no" >&6; }
24650   fi
24651
24652 else
24653
24654   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24655 $as_echo "no" >&6; }
24656
24657 fi
24658
24659
24660
24661
24662
24663
24664
24665 if test -z "${batch_insert_db_backends}"; then
24666    batch_insert_db_backends="None"
24667 fi
24668
24669 if test "x${db_backends}" = "x" ; then
24670    echo " "
24671    echo " "
24672    echo "You have not specified either --enable-client-only or one of the"
24673    echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24674    echo "This is not permitted. Please reconfigure."
24675    echo " "
24676    echo "Aborting the configuration ..."
24677    echo " "
24678    echo " "
24679    exit 1
24680 fi
24681
24682 case `echo $DB_BACKENDS | wc -w | sed -e 's/^ *//'` in
24683    1)
24684       DEFAULT_DB_TYPE="${DB_BACKENDS}"
24685       if test x$use_libtool = xno; then
24686          SHARED_CATALOG_TARGETS=""
24687       else
24688          SHARED_CATALOG_TARGETS="libbaccats-${DEFAULT_DB_TYPE}.la"
24689       fi
24690       ;;
24691    *)
24692                         DEFAULT_DB_TYPE=`echo ${DB_BACKENDS} | cut -d' ' -f1`
24693
24694                         if test x$use_libtool = xno; then
24695          echo " "
24696          echo " "
24697          echo "You have specified two or more of the"
24698          echo "supported databases: MySQL, PostgreSQL, or SQLite3."
24699          echo "This is not permitted when not using libtool Please reconfigure."
24700          echo " "
24701          echo "Aborting the configuration ..."
24702          echo " "
24703          echo " "
24704          exit 1
24705       fi
24706
24707       SHARED_CATALOG_TARGETS=""
24708       for db_type in ${DB_BACKENDS}
24709       do
24710          if test -z "${SHARED_CATALOG_TARGETS}"; then
24711             SHARED_CATALOG_TARGETS="libbaccats-${db_type}.la"
24712          else
24713             SHARED_CATALOG_TARGETS="${SHARED_CATALOG_TARGETS} libbaccats-${db_type}.la"
24714          fi
24715       done
24716       ;;
24717 esac
24718
24719 if test x$use_libtool = xyes; then
24720    DB_LIBS=""
24721 fi
24722
24723
24724
24725
24726
24727
24728
24729 $as_echo "#define PROTOTYPES 1" >>confdefs.h
24730
24731
24732 if test -z "$CFLAGS" -o "$CFLAGS" = "-g -O2"; then
24733    if test -z "$CCOPTS"; then
24734       CCOPTS='-g -O2 -Wall'
24735    fi
24736    CFLAGS="$CCOPTS"
24737 fi
24738
24739
24740
24741 largefile_support="no"
24742
24743    # Check whether --enable-largefile was given.
24744 if test "${enable_largefile+set}" = set; then :
24745   enableval=$enable_largefile;
24746 fi
24747
24748    if test "$enable_largefile" != no; then
24749      if test -n "$ac_tool_prefix"; then
24750   # Extract the first word of "${ac_tool_prefix}getconf", so it can be a program name with args.
24751 set dummy ${ac_tool_prefix}getconf; ac_word=$2
24752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24753 $as_echo_n "checking for $ac_word... " >&6; }
24754 if ${ac_cv_prog_GETCONF+:} false; then :
24755   $as_echo_n "(cached) " >&6
24756 else
24757   if test -n "$GETCONF"; then
24758   ac_cv_prog_GETCONF="$GETCONF" # Let the user override the test.
24759 else
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 for as_dir in $PATH
24762 do
24763   IFS=$as_save_IFS
24764   test -z "$as_dir" && as_dir=.
24765     for ac_exec_ext in '' $ac_executable_extensions; do
24766   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24767     ac_cv_prog_GETCONF="${ac_tool_prefix}getconf"
24768     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24769     break 2
24770   fi
24771 done
24772   done
24773 IFS=$as_save_IFS
24774
24775 fi
24776 fi
24777 GETCONF=$ac_cv_prog_GETCONF
24778 if test -n "$GETCONF"; then
24779   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GETCONF" >&5
24780 $as_echo "$GETCONF" >&6; }
24781 else
24782   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24783 $as_echo "no" >&6; }
24784 fi
24785
24786
24787 fi
24788 if test -z "$ac_cv_prog_GETCONF"; then
24789   ac_ct_GETCONF=$GETCONF
24790   # Extract the first word of "getconf", so it can be a program name with args.
24791 set dummy getconf; ac_word=$2
24792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24793 $as_echo_n "checking for $ac_word... " >&6; }
24794 if ${ac_cv_prog_ac_ct_GETCONF+:} false; then :
24795   $as_echo_n "(cached) " >&6
24796 else
24797   if test -n "$ac_ct_GETCONF"; then
24798   ac_cv_prog_ac_ct_GETCONF="$ac_ct_GETCONF" # Let the user override the test.
24799 else
24800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24801 for as_dir in $PATH
24802 do
24803   IFS=$as_save_IFS
24804   test -z "$as_dir" && as_dir=.
24805     for ac_exec_ext in '' $ac_executable_extensions; do
24806   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24807     ac_cv_prog_ac_ct_GETCONF="getconf"
24808     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24809     break 2
24810   fi
24811 done
24812   done
24813 IFS=$as_save_IFS
24814
24815 fi
24816 fi
24817 ac_ct_GETCONF=$ac_cv_prog_ac_ct_GETCONF
24818 if test -n "$ac_ct_GETCONF"; then
24819   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GETCONF" >&5
24820 $as_echo "$ac_ct_GETCONF" >&6; }
24821 else
24822   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24823 $as_echo "no" >&6; }
24824 fi
24825
24826   if test "x$ac_ct_GETCONF" = x; then
24827     GETCONF=""
24828   else
24829     case $cross_compiling:$ac_tool_warned in
24830 yes:)
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24832 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24833 ac_tool_warned=yes ;;
24834 esac
24835     GETCONF=$ac_ct_GETCONF
24836   fi
24837 else
24838   GETCONF="$ac_cv_prog_GETCONF"
24839 fi
24840
24841      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLAGS value to request large file support" >&5
24842 $as_echo_n "checking for CFLAGS value to request large file support... " >&6; }
24843 if ${ac_cv_sys_largefile_CFLAGS+:} false; then :
24844   $as_echo_n "(cached) " >&6
24845 else
24846   ac_cv_sys_largefile_CFLAGS=`($GETCONF LFS_CFLAGS) 2>/dev/null` || {
24847         ac_cv_sys_largefile_CFLAGS=no
24848         case "$host_os" in
24849            # IRIX 6.2 and later require cc -n32.
24850            irix6.[2-9]* | irix6.1[0-9]* | irix[7-9].* | irix[1-9][0-9]*)
24851              if test "$GCC" != yes; then
24852                ac_cv_sys_largefile_CFLAGS=-n32
24853              fi
24854              ac_save_CC="$CC"
24855              CC="$CC $ac_cv_sys_largefile_CFLAGS"
24856              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24857 /* end confdefs.h.  */
24858
24859 int
24860 main ()
24861 {
24862
24863   ;
24864   return 0;
24865 }
24866 _ACEOF
24867 if ac_fn_c_try_link "$LINENO"; then :
24868
24869 else
24870   ac_cv_sys_largefile_CFLAGS=no
24871 fi
24872 rm -f core conftest.err conftest.$ac_objext \
24873     conftest$ac_exeext conftest.$ac_ext
24874              CC="$ac_save_CC"
24875            esac
24876       }
24877 fi
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CFLAGS" >&5
24879 $as_echo "$ac_cv_sys_largefile_CFLAGS" >&6; }
24880      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDFLAGS value to request large file support" >&5
24881 $as_echo_n "checking for LDFLAGS value to request large file support... " >&6; }
24882 if ${ac_cv_sys_largefile_LDFLAGS+:} false; then :
24883   $as_echo_n "(cached) " >&6
24884 else
24885   ac_cv_sys_largefile_LDFLAGS=`($GETCONF LFS_LDFLAGS) 2>/dev/null` || {
24886         ac_cv_sys_largefile_LDFLAGS=no
24887
24888       }
24889 fi
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LDFLAGS" >&5
24891 $as_echo "$ac_cv_sys_largefile_LDFLAGS" >&6; }
24892      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBS value to request large file support" >&5
24893 $as_echo_n "checking for LIBS value to request large file support... " >&6; }
24894 if ${ac_cv_sys_largefile_LIBS+:} false; then :
24895   $as_echo_n "(cached) " >&6
24896 else
24897   ac_cv_sys_largefile_LIBS=`($GETCONF LFS_LIBS) 2>/dev/null` || {
24898         ac_cv_sys_largefile_LIBS=no
24899
24900       }
24901 fi
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_LIBS" >&5
24903 $as_echo "$ac_cv_sys_largefile_LIBS" >&6; }
24904
24905      for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24906        case "$ac_flag" in
24907        no) ;;
24908        -D_FILE_OFFSET_BITS=*) ;;
24909        -D_LARGEFILE_SOURCE | -D_LARGEFILE_SOURCE=*) ;;
24910        -D_LARGE_FILES | -D_LARGE_FILES=*) ;;
24911        -D?* | -I?*)
24912          case "$ac_flag" in
24913    no) ;;
24914    ?*)
24915      case "$CPPFLAGS" in
24916      '') CPPFLAGS="$ac_flag" ;;
24917      *) CPPFLAGS=$CPPFLAGS' '"$ac_flag" ;;
24918      esac ;;
24919    esac ;;
24920        *)
24921          case "$ac_flag" in
24922    no) ;;
24923    ?*)
24924      case "$CFLAGS" in
24925      '') CFLAGS="$ac_flag" ;;
24926      *) CFLAGS=$CFLAGS' '"$ac_flag" ;;
24927      esac ;;
24928    esac ;;
24929        esac
24930      done
24931      case "$ac_cv_sys_largefile_LDFLAGS" in
24932    no) ;;
24933    ?*)
24934      case "$LDFLAGS" in
24935      '') LDFLAGS="$ac_cv_sys_largefile_LDFLAGS" ;;
24936      *) LDFLAGS=$LDFLAGS' '"$ac_cv_sys_largefile_LDFLAGS" ;;
24937      esac ;;
24938    esac
24939      case "$ac_cv_sys_largefile_LIBS" in
24940    no) ;;
24941    ?*)
24942      case "$LIBS" in
24943      '') LIBS="$ac_cv_sys_largefile_LIBS" ;;
24944      *) LIBS=$LIBS' '"$ac_cv_sys_largefile_LIBS" ;;
24945      esac ;;
24946    esac
24947      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS" >&5
24948 $as_echo_n "checking for _FILE_OFFSET_BITS... " >&6; }
24949 if ${ac_cv_sys_file_offset_bits+:} false; then :
24950   $as_echo_n "(cached) " >&6
24951 else
24952   ac_cv_sys_file_offset_bits=no
24953       ac_cv_sys_file_offset_bits=64
24954       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24955         case "$ac_flag" in
24956         -D_FILE_OFFSET_BITS)
24957           ac_cv_sys_file_offset_bits=1 ;;
24958         -D_FILE_OFFSET_BITS=*)
24959           ac_cv_sys_file_offset_bits=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24960         esac
24961       done
24962
24963 fi
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
24965 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
24966    if test "$ac_cv_sys_file_offset_bits" != no; then
24967
24968 cat >>confdefs.h <<_ACEOF
24969 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
24970 _ACEOF
24971
24972    fi
24973      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE" >&5
24974 $as_echo_n "checking for _LARGEFILE_SOURCE... " >&6; }
24975 if ${ac_cv_sys_largefile_source+:} false; then :
24976   $as_echo_n "(cached) " >&6
24977 else
24978   ac_cv_sys_largefile_source=no
24979       ac_cv_sys_largefile_source=1
24980       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
24981         case "$ac_flag" in
24982         -D_LARGEFILE_SOURCE)
24983           ac_cv_sys_largefile_source=1 ;;
24984         -D_LARGEFILE_SOURCE=*)
24985           ac_cv_sys_largefile_source=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
24986         esac
24987       done
24988
24989 fi
24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
24991 $as_echo "$ac_cv_sys_largefile_source" >&6; }
24992    if test "$ac_cv_sys_largefile_source" != no; then
24993
24994 cat >>confdefs.h <<_ACEOF
24995 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
24996 _ACEOF
24997
24998    fi
24999      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES" >&5
25000 $as_echo_n "checking for _LARGE_FILES... " >&6; }
25001 if ${ac_cv_sys_large_files+:} false; then :
25002   $as_echo_n "(cached) " >&6
25003 else
25004   ac_cv_sys_large_files=no
25005       ac_cv_sys_large_files=1
25006       for ac_flag in $ac_cv_sys_largefile_CFLAGS no; do
25007         case "$ac_flag" in
25008         -D_LARGE_FILES)
25009           ac_cv_sys_large_files=1 ;;
25010         -D_LARGE_FILES=*)
25011           ac_cv_sys_large_files=`expr " $ac_flag" : '[^=]*=\(.*\)'` ;;
25012         esac
25013       done
25014
25015 fi
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
25017 $as_echo "$ac_cv_sys_large_files" >&6; }
25018    if test "$ac_cv_sys_large_files" != no; then
25019
25020 cat >>confdefs.h <<_ACEOF
25021 #define _LARGE_FILES $ac_cv_sys_large_files
25022 _ACEOF
25023
25024    fi
25025    fi
25026
25027
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
25029 $as_echo_n "checking for X... " >&6; }
25030
25031
25032 # Check whether --with-x was given.
25033 if test "${with_x+set}" = set; then :
25034   withval=$with_x;
25035 fi
25036
25037 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
25038 if test "x$with_x" = xno; then
25039   # The user explicitly disabled X.
25040   have_x=disabled
25041 else
25042   case $x_includes,$x_libraries in #(
25043     *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
25044     *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
25045   $as_echo_n "(cached) " >&6
25046 else
25047   # One or both of the vars are not set, and there is no cached value.
25048 ac_x_includes=no ac_x_libraries=no
25049 rm -f -r conftest.dir
25050 if mkdir conftest.dir; then
25051   cd conftest.dir
25052   cat >Imakefile <<'_ACEOF'
25053 incroot:
25054         @echo incroot='${INCROOT}'
25055 usrlibdir:
25056         @echo usrlibdir='${USRLIBDIR}'
25057 libdir:
25058         @echo libdir='${LIBDIR}'
25059 _ACEOF
25060   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
25061     # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
25062     for ac_var in incroot usrlibdir libdir; do
25063       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
25064     done
25065     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
25066     for ac_extension in a so sl dylib la dll; do
25067       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
25068          test -f "$ac_im_libdir/libX11.$ac_extension"; then
25069         ac_im_usrlibdir=$ac_im_libdir; break
25070       fi
25071     done
25072     # Screen out bogus values from the imake configuration.  They are
25073     # bogus both because they are the default anyway, and because
25074     # using them would break gcc on systems where it needs fixed includes.
25075     case $ac_im_incroot in
25076         /usr/include) ac_x_includes= ;;
25077         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
25078     esac
25079     case $ac_im_usrlibdir in
25080         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
25081         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
25082     esac
25083   fi
25084   cd ..
25085   rm -f -r conftest.dir
25086 fi
25087
25088 # Standard set of common directories for X headers.
25089 # Check X11 before X11Rn because it is often a symlink to the current release.
25090 ac_x_header_dirs='
25091 /usr/X11/include
25092 /usr/X11R7/include
25093 /usr/X11R6/include
25094 /usr/X11R5/include
25095 /usr/X11R4/include
25096
25097 /usr/include/X11
25098 /usr/include/X11R7
25099 /usr/include/X11R6
25100 /usr/include/X11R5
25101 /usr/include/X11R4
25102
25103 /usr/local/X11/include
25104 /usr/local/X11R7/include
25105 /usr/local/X11R6/include
25106 /usr/local/X11R5/include
25107 /usr/local/X11R4/include
25108
25109 /usr/local/include/X11
25110 /usr/local/include/X11R7
25111 /usr/local/include/X11R6
25112 /usr/local/include/X11R5
25113 /usr/local/include/X11R4
25114
25115 /usr/X386/include
25116 /usr/x386/include
25117 /usr/XFree86/include/X11
25118
25119 /usr/include
25120 /usr/local/include
25121 /usr/unsupported/include
25122 /usr/athena/include
25123 /usr/local/x11r5/include
25124 /usr/lpp/Xamples/include
25125
25126 /usr/openwin/include
25127 /usr/openwin/share/include'
25128
25129 if test "$ac_x_includes" = no; then
25130   # Guess where to find include files, by looking for Xlib.h.
25131   # First, try using that file with no special directory specified.
25132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25133 /* end confdefs.h.  */
25134 #include <X11/Xlib.h>
25135 _ACEOF
25136 if ac_fn_c_try_cpp "$LINENO"; then :
25137   # We can compile using X headers with no special include directory.
25138 ac_x_includes=
25139 else
25140   for ac_dir in $ac_x_header_dirs; do
25141   if test -r "$ac_dir/X11/Xlib.h"; then
25142     ac_x_includes=$ac_dir
25143     break
25144   fi
25145 done
25146 fi
25147 rm -f conftest.err conftest.i conftest.$ac_ext
25148 fi # $ac_x_includes = no
25149
25150 if test "$ac_x_libraries" = no; then
25151   # Check for the libraries.
25152   # See if we find them without any special options.
25153   # Don't add to $LIBS permanently.
25154   ac_save_LIBS=$LIBS
25155   LIBS="-lX11 $LIBS"
25156   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25157 /* end confdefs.h.  */
25158 #include <X11/Xlib.h>
25159 int
25160 main ()
25161 {
25162 XrmInitialize ()
25163   ;
25164   return 0;
25165 }
25166 _ACEOF
25167 if ac_fn_c_try_link "$LINENO"; then :
25168   LIBS=$ac_save_LIBS
25169 # We can link X programs with no special library path.
25170 ac_x_libraries=
25171 else
25172   LIBS=$ac_save_LIBS
25173 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
25174 do
25175   # Don't even attempt the hair of trying to link an X program!
25176   for ac_extension in a so sl dylib la dll; do
25177     if test -r "$ac_dir/libX11.$ac_extension"; then
25178       ac_x_libraries=$ac_dir
25179       break 2
25180     fi
25181   done
25182 done
25183 fi
25184 rm -f core conftest.err conftest.$ac_objext \
25185     conftest$ac_exeext conftest.$ac_ext
25186 fi # $ac_x_libraries = no
25187
25188 case $ac_x_includes,$ac_x_libraries in #(
25189   no,* | *,no | *\'*)
25190     # Didn't find X, or a directory has "'" in its name.
25191     ac_cv_have_x="have_x=no";; #(
25192   *)
25193     # Record where we found X for the cache.
25194     ac_cv_have_x="have_x=yes\
25195         ac_x_includes='$ac_x_includes'\
25196         ac_x_libraries='$ac_x_libraries'"
25197 esac
25198 fi
25199 ;; #(
25200     *) have_x=yes;;
25201   esac
25202   eval "$ac_cv_have_x"
25203 fi # $with_x != no
25204
25205 if test "$have_x" != yes; then
25206   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
25207 $as_echo "$have_x" >&6; }
25208   no_x=yes
25209 else
25210   # If each of the values was on the command line, it overrides each guess.
25211   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
25212   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
25213   # Update the cache value to reflect the command line values.
25214   ac_cv_have_x="have_x=yes\
25215         ac_x_includes='$x_includes'\
25216         ac_x_libraries='$x_libraries'"
25217   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
25218 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
25219 fi
25220
25221 if test "$no_x" = yes; then
25222   # Not all programs may use this symbol, but it does not hurt to define it.
25223
25224 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
25225
25226   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
25227 else
25228   if test -n "$x_includes"; then
25229     X_CFLAGS="$X_CFLAGS -I$x_includes"
25230   fi
25231
25232   # It would also be nice to do this for all -L options, not just this one.
25233   if test -n "$x_libraries"; then
25234     X_LIBS="$X_LIBS -L$x_libraries"
25235     # For Solaris; some versions of Sun CC require a space after -R and
25236     # others require no space.  Words are not sufficient . . . .
25237     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
25238 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
25239     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
25240     ac_xsave_c_werror_flag=$ac_c_werror_flag
25241     ac_c_werror_flag=yes
25242     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25243 /* end confdefs.h.  */
25244
25245 int
25246 main ()
25247 {
25248
25249   ;
25250   return 0;
25251 }
25252 _ACEOF
25253 if ac_fn_c_try_link "$LINENO"; then :
25254   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25255 $as_echo "no" >&6; }
25256        X_LIBS="$X_LIBS -R$x_libraries"
25257 else
25258   LIBS="$ac_xsave_LIBS -R $x_libraries"
25259        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25260 /* end confdefs.h.  */
25261
25262 int
25263 main ()
25264 {
25265
25266   ;
25267   return 0;
25268 }
25269 _ACEOF
25270 if ac_fn_c_try_link "$LINENO"; then :
25271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25272 $as_echo "yes" >&6; }
25273           X_LIBS="$X_LIBS -R $x_libraries"
25274 else
25275   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
25276 $as_echo "neither works" >&6; }
25277 fi
25278 rm -f core conftest.err conftest.$ac_objext \
25279     conftest$ac_exeext conftest.$ac_ext
25280 fi
25281 rm -f core conftest.err conftest.$ac_objext \
25282     conftest$ac_exeext conftest.$ac_ext
25283     ac_c_werror_flag=$ac_xsave_c_werror_flag
25284     LIBS=$ac_xsave_LIBS
25285   fi
25286
25287   # Check for system-dependent libraries X programs must link with.
25288   # Do this before checking for the system-independent R6 libraries
25289   # (-lICE), since we may need -lsocket or whatever for X linking.
25290
25291   if test "$ISC" = yes; then
25292     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
25293   else
25294     # Martyn Johnson says this is needed for Ultrix, if the X
25295     # libraries were built with DECnet support.  And Karl Berry says
25296     # the Alpha needs dnet_stub (dnet does not exist).
25297     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
25298     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25299 /* end confdefs.h.  */
25300
25301 /* Override any GCC internal prototype to avoid an error.
25302    Use char because int might match the return type of a GCC
25303    builtin and then its argument prototype would still apply.  */
25304 #ifdef __cplusplus
25305 extern "C"
25306 #endif
25307 char XOpenDisplay ();
25308 int
25309 main ()
25310 {
25311 return XOpenDisplay ();
25312   ;
25313   return 0;
25314 }
25315 _ACEOF
25316 if ac_fn_c_try_link "$LINENO"; then :
25317
25318 else
25319   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
25320 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
25321 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
25322   $as_echo_n "(cached) " >&6
25323 else
25324   ac_check_lib_save_LIBS=$LIBS
25325 LIBS="-ldnet  $LIBS"
25326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25327 /* end confdefs.h.  */
25328
25329 /* Override any GCC internal prototype to avoid an error.
25330    Use char because int might match the return type of a GCC
25331    builtin and then its argument prototype would still apply.  */
25332 #ifdef __cplusplus
25333 extern "C"
25334 #endif
25335 char dnet_ntoa ();
25336 int
25337 main ()
25338 {
25339 return dnet_ntoa ();
25340   ;
25341   return 0;
25342 }
25343 _ACEOF
25344 if ac_fn_c_try_link "$LINENO"; then :
25345   ac_cv_lib_dnet_dnet_ntoa=yes
25346 else
25347   ac_cv_lib_dnet_dnet_ntoa=no
25348 fi
25349 rm -f core conftest.err conftest.$ac_objext \
25350     conftest$ac_exeext conftest.$ac_ext
25351 LIBS=$ac_check_lib_save_LIBS
25352 fi
25353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
25354 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
25355 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
25356   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
25357 fi
25358
25359     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
25360       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
25361 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
25362 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
25363   $as_echo_n "(cached) " >&6
25364 else
25365   ac_check_lib_save_LIBS=$LIBS
25366 LIBS="-ldnet_stub  $LIBS"
25367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25368 /* end confdefs.h.  */
25369
25370 /* Override any GCC internal prototype to avoid an error.
25371    Use char because int might match the return type of a GCC
25372    builtin and then its argument prototype would still apply.  */
25373 #ifdef __cplusplus
25374 extern "C"
25375 #endif
25376 char dnet_ntoa ();
25377 int
25378 main ()
25379 {
25380 return dnet_ntoa ();
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 if ac_fn_c_try_link "$LINENO"; then :
25386   ac_cv_lib_dnet_stub_dnet_ntoa=yes
25387 else
25388   ac_cv_lib_dnet_stub_dnet_ntoa=no
25389 fi
25390 rm -f core conftest.err conftest.$ac_objext \
25391     conftest$ac_exeext conftest.$ac_ext
25392 LIBS=$ac_check_lib_save_LIBS
25393 fi
25394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
25395 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
25396 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
25397   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
25398 fi
25399
25400     fi
25401 fi
25402 rm -f core conftest.err conftest.$ac_objext \
25403     conftest$ac_exeext conftest.$ac_ext
25404     LIBS="$ac_xsave_LIBS"
25405
25406     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
25407     # to get the SysV transport functions.
25408     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
25409     # needs -lnsl.
25410     # The nsl library prevents programs from opening the X display
25411     # on Irix 5.2, according to T.E. Dickey.
25412     # The functions gethostbyname, getservbyname, and inet_addr are
25413     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
25414     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
25415 if test "x$ac_cv_func_gethostbyname" = xyes; then :
25416
25417 fi
25418
25419     if test $ac_cv_func_gethostbyname = no; then
25420       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
25421 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
25422 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
25423   $as_echo_n "(cached) " >&6
25424 else
25425   ac_check_lib_save_LIBS=$LIBS
25426 LIBS="-lnsl  $LIBS"
25427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25428 /* end confdefs.h.  */
25429
25430 /* Override any GCC internal prototype to avoid an error.
25431    Use char because int might match the return type of a GCC
25432    builtin and then its argument prototype would still apply.  */
25433 #ifdef __cplusplus
25434 extern "C"
25435 #endif
25436 char gethostbyname ();
25437 int
25438 main ()
25439 {
25440 return gethostbyname ();
25441   ;
25442   return 0;
25443 }
25444 _ACEOF
25445 if ac_fn_c_try_link "$LINENO"; then :
25446   ac_cv_lib_nsl_gethostbyname=yes
25447 else
25448   ac_cv_lib_nsl_gethostbyname=no
25449 fi
25450 rm -f core conftest.err conftest.$ac_objext \
25451     conftest$ac_exeext conftest.$ac_ext
25452 LIBS=$ac_check_lib_save_LIBS
25453 fi
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
25455 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
25456 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
25457   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
25458 fi
25459
25460       if test $ac_cv_lib_nsl_gethostbyname = no; then
25461         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
25462 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
25463 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
25464   $as_echo_n "(cached) " >&6
25465 else
25466   ac_check_lib_save_LIBS=$LIBS
25467 LIBS="-lbsd  $LIBS"
25468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25469 /* end confdefs.h.  */
25470
25471 /* Override any GCC internal prototype to avoid an error.
25472    Use char because int might match the return type of a GCC
25473    builtin and then its argument prototype would still apply.  */
25474 #ifdef __cplusplus
25475 extern "C"
25476 #endif
25477 char gethostbyname ();
25478 int
25479 main ()
25480 {
25481 return gethostbyname ();
25482   ;
25483   return 0;
25484 }
25485 _ACEOF
25486 if ac_fn_c_try_link "$LINENO"; then :
25487   ac_cv_lib_bsd_gethostbyname=yes
25488 else
25489   ac_cv_lib_bsd_gethostbyname=no
25490 fi
25491 rm -f core conftest.err conftest.$ac_objext \
25492     conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25494 fi
25495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
25496 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
25497 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
25498   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
25499 fi
25500
25501       fi
25502     fi
25503
25504     # lieder@skyler.mavd.honeywell.com says without -lsocket,
25505     # socket/setsockopt and other routines are undefined under SCO ODT
25506     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
25507     # on later versions), says Simon Leinen: it contains gethostby*
25508     # variants that don't use the name server (or something).  -lsocket
25509     # must be given before -lnsl if both are needed.  We assume that
25510     # if connect needs -lnsl, so does gethostbyname.
25511     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
25512 if test "x$ac_cv_func_connect" = xyes; then :
25513
25514 fi
25515
25516     if test $ac_cv_func_connect = no; then
25517       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
25518 $as_echo_n "checking for connect in -lsocket... " >&6; }
25519 if ${ac_cv_lib_socket_connect+:} false; then :
25520   $as_echo_n "(cached) " >&6
25521 else
25522   ac_check_lib_save_LIBS=$LIBS
25523 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
25524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25525 /* end confdefs.h.  */
25526
25527 /* Override any GCC internal prototype to avoid an error.
25528    Use char because int might match the return type of a GCC
25529    builtin and then its argument prototype would still apply.  */
25530 #ifdef __cplusplus
25531 extern "C"
25532 #endif
25533 char connect ();
25534 int
25535 main ()
25536 {
25537 return connect ();
25538   ;
25539   return 0;
25540 }
25541 _ACEOF
25542 if ac_fn_c_try_link "$LINENO"; then :
25543   ac_cv_lib_socket_connect=yes
25544 else
25545   ac_cv_lib_socket_connect=no
25546 fi
25547 rm -f core conftest.err conftest.$ac_objext \
25548     conftest$ac_exeext conftest.$ac_ext
25549 LIBS=$ac_check_lib_save_LIBS
25550 fi
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
25552 $as_echo "$ac_cv_lib_socket_connect" >&6; }
25553 if test "x$ac_cv_lib_socket_connect" = xyes; then :
25554   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
25555 fi
25556
25557     fi
25558
25559     # Guillermo Gomez says -lposix is necessary on A/UX.
25560     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
25561 if test "x$ac_cv_func_remove" = xyes; then :
25562
25563 fi
25564
25565     if test $ac_cv_func_remove = no; then
25566       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
25567 $as_echo_n "checking for remove in -lposix... " >&6; }
25568 if ${ac_cv_lib_posix_remove+:} false; then :
25569   $as_echo_n "(cached) " >&6
25570 else
25571   ac_check_lib_save_LIBS=$LIBS
25572 LIBS="-lposix  $LIBS"
25573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25574 /* end confdefs.h.  */
25575
25576 /* Override any GCC internal prototype to avoid an error.
25577    Use char because int might match the return type of a GCC
25578    builtin and then its argument prototype would still apply.  */
25579 #ifdef __cplusplus
25580 extern "C"
25581 #endif
25582 char remove ();
25583 int
25584 main ()
25585 {
25586 return remove ();
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 if ac_fn_c_try_link "$LINENO"; then :
25592   ac_cv_lib_posix_remove=yes
25593 else
25594   ac_cv_lib_posix_remove=no
25595 fi
25596 rm -f core conftest.err conftest.$ac_objext \
25597     conftest$ac_exeext conftest.$ac_ext
25598 LIBS=$ac_check_lib_save_LIBS
25599 fi
25600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
25601 $as_echo "$ac_cv_lib_posix_remove" >&6; }
25602 if test "x$ac_cv_lib_posix_remove" = xyes; then :
25603   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
25604 fi
25605
25606     fi
25607
25608     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
25609     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
25610 if test "x$ac_cv_func_shmat" = xyes; then :
25611
25612 fi
25613
25614     if test $ac_cv_func_shmat = no; then
25615       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
25616 $as_echo_n "checking for shmat in -lipc... " >&6; }
25617 if ${ac_cv_lib_ipc_shmat+:} false; then :
25618   $as_echo_n "(cached) " >&6
25619 else
25620   ac_check_lib_save_LIBS=$LIBS
25621 LIBS="-lipc  $LIBS"
25622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25623 /* end confdefs.h.  */
25624
25625 /* Override any GCC internal prototype to avoid an error.
25626    Use char because int might match the return type of a GCC
25627    builtin and then its argument prototype would still apply.  */
25628 #ifdef __cplusplus
25629 extern "C"
25630 #endif
25631 char shmat ();
25632 int
25633 main ()
25634 {
25635 return shmat ();
25636   ;
25637   return 0;
25638 }
25639 _ACEOF
25640 if ac_fn_c_try_link "$LINENO"; then :
25641   ac_cv_lib_ipc_shmat=yes
25642 else
25643   ac_cv_lib_ipc_shmat=no
25644 fi
25645 rm -f core conftest.err conftest.$ac_objext \
25646     conftest$ac_exeext conftest.$ac_ext
25647 LIBS=$ac_check_lib_save_LIBS
25648 fi
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
25650 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
25651 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
25652   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
25653 fi
25654
25655     fi
25656   fi
25657
25658   # Check for libraries that X11R6 Xt/Xaw programs need.
25659   ac_save_LDFLAGS=$LDFLAGS
25660   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
25661   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
25662   # check for ICE first), but we must link in the order -lSM -lICE or
25663   # we get undefined symbols.  So assume we have SM if we have ICE.
25664   # These have to be linked with before -lX11, unlike the other
25665   # libraries we check for below, so use a different variable.
25666   # John Interrante, Karl Berry
25667   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
25668 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
25669 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
25670   $as_echo_n "(cached) " >&6
25671 else
25672   ac_check_lib_save_LIBS=$LIBS
25673 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
25674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25675 /* end confdefs.h.  */
25676
25677 /* Override any GCC internal prototype to avoid an error.
25678    Use char because int might match the return type of a GCC
25679    builtin and then its argument prototype would still apply.  */
25680 #ifdef __cplusplus
25681 extern "C"
25682 #endif
25683 char IceConnectionNumber ();
25684 int
25685 main ()
25686 {
25687 return IceConnectionNumber ();
25688   ;
25689   return 0;
25690 }
25691 _ACEOF
25692 if ac_fn_c_try_link "$LINENO"; then :
25693   ac_cv_lib_ICE_IceConnectionNumber=yes
25694 else
25695   ac_cv_lib_ICE_IceConnectionNumber=no
25696 fi
25697 rm -f core conftest.err conftest.$ac_objext \
25698     conftest$ac_exeext conftest.$ac_ext
25699 LIBS=$ac_check_lib_save_LIBS
25700 fi
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
25702 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
25703 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
25704   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
25705 fi
25706
25707   LDFLAGS=$ac_save_LDFLAGS
25708
25709 fi
25710
25711
25712 for ac_header in \
25713    assert.h \
25714    fcntl.h \
25715    grp.h \
25716    pwd.h \
25717    libc.h \
25718    limits.h \
25719    stdarg.h \
25720    stdlib.h \
25721    stdint.h \
25722    inttypes.h \
25723    string.h \
25724    strings.h \
25725    termios.h \
25726    termcap.h \
25727    term.h \
25728    unistd.h \
25729    sys/bitypes.h \
25730    sys/byteorder.h \
25731    sys/ioctl.h \
25732    sys/select.h \
25733    sys/socket.h \
25734    sys/sockio.h \
25735    sys/stat.h \
25736    sys/time.h \
25737    sys/types.h \
25738    arpa/nameser.h \
25739    mtio.h \
25740    sys/mtio.h \
25741    sys/tape.h \
25742    regex.h \
25743
25744 do :
25745   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25746 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25747 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25748   cat >>confdefs.h <<_ACEOF
25749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25750 _ACEOF
25751
25752 fi
25753
25754 done
25755
25756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25757 $as_echo_n "checking for ANSI C header files... " >&6; }
25758 if ${ac_cv_header_stdc+:} false; then :
25759   $as_echo_n "(cached) " >&6
25760 else
25761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25762 /* end confdefs.h.  */
25763 #include <stdlib.h>
25764 #include <stdarg.h>
25765 #include <string.h>
25766 #include <float.h>
25767
25768 int
25769 main ()
25770 {
25771
25772   ;
25773   return 0;
25774 }
25775 _ACEOF
25776 if ac_fn_c_try_compile "$LINENO"; then :
25777   ac_cv_header_stdc=yes
25778 else
25779   ac_cv_header_stdc=no
25780 fi
25781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25782
25783 if test $ac_cv_header_stdc = yes; then
25784   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25785   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25786 /* end confdefs.h.  */
25787 #include <string.h>
25788
25789 _ACEOF
25790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25791   $EGREP "memchr" >/dev/null 2>&1; then :
25792
25793 else
25794   ac_cv_header_stdc=no
25795 fi
25796 rm -f conftest*
25797
25798 fi
25799
25800 if test $ac_cv_header_stdc = yes; then
25801   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25802   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25803 /* end confdefs.h.  */
25804 #include <stdlib.h>
25805
25806 _ACEOF
25807 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25808   $EGREP "free" >/dev/null 2>&1; then :
25809
25810 else
25811   ac_cv_header_stdc=no
25812 fi
25813 rm -f conftest*
25814
25815 fi
25816
25817 if test $ac_cv_header_stdc = yes; then
25818   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25819   if test "$cross_compiling" = yes; then :
25820   :
25821 else
25822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25823 /* end confdefs.h.  */
25824 #include <ctype.h>
25825 #include <stdlib.h>
25826 #if ((' ' & 0x0FF) == 0x020)
25827 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25828 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25829 #else
25830 # define ISLOWER(c) \
25831                    (('a' <= (c) && (c) <= 'i') \
25832                      || ('j' <= (c) && (c) <= 'r') \
25833                      || ('s' <= (c) && (c) <= 'z'))
25834 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25835 #endif
25836
25837 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25838 int
25839 main ()
25840 {
25841   int i;
25842   for (i = 0; i < 256; i++)
25843     if (XOR (islower (i), ISLOWER (i))
25844         || toupper (i) != TOUPPER (i))
25845       return 2;
25846   return 0;
25847 }
25848 _ACEOF
25849 if ac_fn_c_try_run "$LINENO"; then :
25850
25851 else
25852   ac_cv_header_stdc=no
25853 fi
25854 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25855   conftest.$ac_objext conftest.beam conftest.$ac_ext
25856 fi
25857
25858 fi
25859 fi
25860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25861 $as_echo "$ac_cv_header_stdc" >&6; }
25862 if test $ac_cv_header_stdc = yes; then
25863
25864 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25865
25866 fi
25867
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/types.h defines makedev" >&5
25869 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
25870 if ${ac_cv_header_sys_types_h_makedev+:} false; then :
25871   $as_echo_n "(cached) " >&6
25872 else
25873   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h.  */
25875 #include <sys/types.h>
25876 int
25877 main ()
25878 {
25879 return makedev(0, 0);
25880   ;
25881   return 0;
25882 }
25883 _ACEOF
25884 if ac_fn_c_try_link "$LINENO"; then :
25885   ac_cv_header_sys_types_h_makedev=yes
25886 else
25887   ac_cv_header_sys_types_h_makedev=no
25888 fi
25889 rm -f core conftest.err conftest.$ac_objext \
25890     conftest$ac_exeext conftest.$ac_ext
25891
25892 fi
25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_types_h_makedev" >&5
25894 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
25895
25896 if test $ac_cv_header_sys_types_h_makedev = no; then
25897 ac_fn_c_check_header_mongrel "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
25898 if test "x$ac_cv_header_sys_mkdev_h" = xyes; then :
25899
25900 $as_echo "#define MAJOR_IN_MKDEV 1" >>confdefs.h
25901
25902 fi
25903
25904
25905
25906   if test $ac_cv_header_sys_mkdev_h = no; then
25907     ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
25908 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
25909
25910 $as_echo "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
25911
25912 fi
25913
25914
25915   fi
25916 fi
25917
25918 ac_header_dirent=no
25919 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
25920   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
25922 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
25923 if eval \${$as_ac_Header+:} false; then :
25924   $as_echo_n "(cached) " >&6
25925 else
25926   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25927 /* end confdefs.h.  */
25928 #include <sys/types.h>
25929 #include <$ac_hdr>
25930
25931 int
25932 main ()
25933 {
25934 if ((DIR *) 0)
25935 return 0;
25936   ;
25937   return 0;
25938 }
25939 _ACEOF
25940 if ac_fn_c_try_compile "$LINENO"; then :
25941   eval "$as_ac_Header=yes"
25942 else
25943   eval "$as_ac_Header=no"
25944 fi
25945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25946 fi
25947 eval ac_res=\$$as_ac_Header
25948                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25949 $as_echo "$ac_res" >&6; }
25950 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25951   cat >>confdefs.h <<_ACEOF
25952 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
25953 _ACEOF
25954
25955 ac_header_dirent=$ac_hdr; break
25956 fi
25957
25958 done
25959 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
25960 if test $ac_header_dirent = dirent.h; then
25961   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
25962 $as_echo_n "checking for library containing opendir... " >&6; }
25963 if ${ac_cv_search_opendir+:} false; then :
25964   $as_echo_n "(cached) " >&6
25965 else
25966   ac_func_search_save_LIBS=$LIBS
25967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25968 /* end confdefs.h.  */
25969
25970 /* Override any GCC internal prototype to avoid an error.
25971    Use char because int might match the return type of a GCC
25972    builtin and then its argument prototype would still apply.  */
25973 #ifdef __cplusplus
25974 extern "C"
25975 #endif
25976 char opendir ();
25977 int
25978 main ()
25979 {
25980 return opendir ();
25981   ;
25982   return 0;
25983 }
25984 _ACEOF
25985 for ac_lib in '' dir; do
25986   if test -z "$ac_lib"; then
25987     ac_res="none required"
25988   else
25989     ac_res=-l$ac_lib
25990     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25991   fi
25992   if ac_fn_c_try_link "$LINENO"; then :
25993   ac_cv_search_opendir=$ac_res
25994 fi
25995 rm -f core conftest.err conftest.$ac_objext \
25996     conftest$ac_exeext
25997   if ${ac_cv_search_opendir+:} false; then :
25998   break
25999 fi
26000 done
26001 if ${ac_cv_search_opendir+:} false; then :
26002
26003 else
26004   ac_cv_search_opendir=no
26005 fi
26006 rm conftest.$ac_ext
26007 LIBS=$ac_func_search_save_LIBS
26008 fi
26009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26010 $as_echo "$ac_cv_search_opendir" >&6; }
26011 ac_res=$ac_cv_search_opendir
26012 if test "$ac_res" != no; then :
26013   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26014
26015 fi
26016
26017 else
26018   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
26019 $as_echo_n "checking for library containing opendir... " >&6; }
26020 if ${ac_cv_search_opendir+:} false; then :
26021   $as_echo_n "(cached) " >&6
26022 else
26023   ac_func_search_save_LIBS=$LIBS
26024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26025 /* end confdefs.h.  */
26026
26027 /* Override any GCC internal prototype to avoid an error.
26028    Use char because int might match the return type of a GCC
26029    builtin and then its argument prototype would still apply.  */
26030 #ifdef __cplusplus
26031 extern "C"
26032 #endif
26033 char opendir ();
26034 int
26035 main ()
26036 {
26037 return opendir ();
26038   ;
26039   return 0;
26040 }
26041 _ACEOF
26042 for ac_lib in '' x; do
26043   if test -z "$ac_lib"; then
26044     ac_res="none required"
26045   else
26046     ac_res=-l$ac_lib
26047     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
26048   fi
26049   if ac_fn_c_try_link "$LINENO"; then :
26050   ac_cv_search_opendir=$ac_res
26051 fi
26052 rm -f core conftest.err conftest.$ac_objext \
26053     conftest$ac_exeext
26054   if ${ac_cv_search_opendir+:} false; then :
26055   break
26056 fi
26057 done
26058 if ${ac_cv_search_opendir+:} false; then :
26059
26060 else
26061   ac_cv_search_opendir=no
26062 fi
26063 rm conftest.$ac_ext
26064 LIBS=$ac_func_search_save_LIBS
26065 fi
26066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
26067 $as_echo "$ac_cv_search_opendir" >&6; }
26068 ac_res=$ac_cv_search_opendir
26069 if test "$ac_res" != no; then :
26070   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
26071
26072 fi
26073
26074 fi
26075
26076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
26077 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
26078 if ${ac_cv_header_stat_broken+:} false; then :
26079   $as_echo_n "(cached) " >&6
26080 else
26081   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26082 /* end confdefs.h.  */
26083 #include <sys/types.h>
26084 #include <sys/stat.h>
26085
26086 #if defined S_ISBLK && defined S_IFDIR
26087 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
26088 #endif
26089
26090 #if defined S_ISBLK && defined S_IFCHR
26091 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
26092 #endif
26093
26094 #if defined S_ISLNK && defined S_IFREG
26095 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
26096 #endif
26097
26098 #if defined S_ISSOCK && defined S_IFREG
26099 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
26100 #endif
26101
26102 _ACEOF
26103 if ac_fn_c_try_compile "$LINENO"; then :
26104   ac_cv_header_stat_broken=no
26105 else
26106   ac_cv_header_stat_broken=yes
26107 fi
26108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26109 fi
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
26111 $as_echo "$ac_cv_header_stat_broken" >&6; }
26112 if test $ac_cv_header_stat_broken = yes; then
26113
26114 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
26115
26116 fi
26117
26118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
26119 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
26120 if ${ac_cv_header_sys_wait_h+:} false; then :
26121   $as_echo_n "(cached) " >&6
26122 else
26123   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26124 /* end confdefs.h.  */
26125 #include <sys/types.h>
26126 #include <sys/wait.h>
26127 #ifndef WEXITSTATUS
26128 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
26129 #endif
26130 #ifndef WIFEXITED
26131 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
26132 #endif
26133
26134 int
26135 main ()
26136 {
26137   int s;
26138   wait (&s);
26139   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
26140   ;
26141   return 0;
26142 }
26143 _ACEOF
26144 if ac_fn_c_try_compile "$LINENO"; then :
26145   ac_cv_header_sys_wait_h=yes
26146 else
26147   ac_cv_header_sys_wait_h=no
26148 fi
26149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26150 fi
26151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
26152 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
26153 if test $ac_cv_header_sys_wait_h = yes; then
26154
26155 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
26156
26157 fi
26158
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26160 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26161 if ${ac_cv_header_time+:} false; then :
26162   $as_echo_n "(cached) " >&6
26163 else
26164   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26165 /* end confdefs.h.  */
26166 #include <sys/types.h>
26167 #include <sys/time.h>
26168 #include <time.h>
26169
26170 int
26171 main ()
26172 {
26173 if ((struct tm *) 0)
26174 return 0;
26175   ;
26176   return 0;
26177 }
26178 _ACEOF
26179 if ac_fn_c_try_compile "$LINENO"; then :
26180   ac_cv_header_time=yes
26181 else
26182   ac_cv_header_time=no
26183 fi
26184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26185 fi
26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26187 $as_echo "$ac_cv_header_time" >&6; }
26188 if test $ac_cv_header_time = yes; then
26189
26190 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26191
26192 fi
26193
26194 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
26195 if test "x$ac_cv_member_struct_stat_st_blksize" = xyes; then :
26196
26197 cat >>confdefs.h <<_ACEOF
26198 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
26199 _ACEOF
26200
26201
26202 $as_echo "#define HAVE_ST_BLKSIZE 1" >>confdefs.h
26203
26204 fi
26205
26206
26207 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
26208 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
26209
26210 cat >>confdefs.h <<_ACEOF
26211 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
26212 _ACEOF
26213
26214
26215 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
26216
26217 else
26218   case " $LIBOBJS " in
26219   *" fileblocks.$ac_objext "* ) ;;
26220   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
26221  ;;
26222 esac
26223
26224 fi
26225
26226
26227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
26228 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
26229 if ${ac_cv_struct_tm+:} false; then :
26230   $as_echo_n "(cached) " >&6
26231 else
26232   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h.  */
26234 #include <sys/types.h>
26235 #include <time.h>
26236
26237 int
26238 main ()
26239 {
26240 struct tm tm;
26241                                      int *p = &tm.tm_sec;
26242                                      return !p;
26243   ;
26244   return 0;
26245 }
26246 _ACEOF
26247 if ac_fn_c_try_compile "$LINENO"; then :
26248   ac_cv_struct_tm=time.h
26249 else
26250   ac_cv_struct_tm=sys/time.h
26251 fi
26252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26253 fi
26254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
26255 $as_echo "$ac_cv_struct_tm" >&6; }
26256 if test $ac_cv_struct_tm = sys/time.h; then
26257
26258 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
26259
26260 fi
26261
26262 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
26263 #include <$ac_cv_struct_tm>
26264
26265 "
26266 if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
26267
26268 cat >>confdefs.h <<_ACEOF
26269 #define HAVE_STRUCT_TM_TM_ZONE 1
26270 _ACEOF
26271
26272
26273 fi
26274
26275 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26276
26277 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
26278
26279 else
26280   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
26281 "
26282 if test "x$ac_cv_have_decl_tzname" = xyes; then :
26283   ac_have_decl=1
26284 else
26285   ac_have_decl=0
26286 fi
26287
26288 cat >>confdefs.h <<_ACEOF
26289 #define HAVE_DECL_TZNAME $ac_have_decl
26290 _ACEOF
26291
26292   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
26293 $as_echo_n "checking for tzname... " >&6; }
26294 if ${ac_cv_var_tzname+:} false; then :
26295   $as_echo_n "(cached) " >&6
26296 else
26297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26298 /* end confdefs.h.  */
26299 #include <time.h>
26300 #if !HAVE_DECL_TZNAME
26301 extern char *tzname[];
26302 #endif
26303
26304 int
26305 main ()
26306 {
26307 return tzname[0][0];
26308   ;
26309   return 0;
26310 }
26311 _ACEOF
26312 if ac_fn_c_try_link "$LINENO"; then :
26313   ac_cv_var_tzname=yes
26314 else
26315   ac_cv_var_tzname=no
26316 fi
26317 rm -f core conftest.err conftest.$ac_objext \
26318     conftest$ac_exeext conftest.$ac_ext
26319 fi
26320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
26321 $as_echo "$ac_cv_var_tzname" >&6; }
26322   if test $ac_cv_var_tzname = yes; then
26323
26324 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
26325
26326   fi
26327 fi
26328
26329
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for utime.h" >&5
26331 $as_echo_n "checking for utime.h... " >&6; }
26332 if ${ba_cv_header_utime_h+:} false; then :
26333   $as_echo_n "(cached) " >&6
26334 else
26335
26336        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26337 /* end confdefs.h.  */
26338
26339               #include <sys/types.h>
26340               #include <utime.h>
26341
26342 int
26343 main ()
26344 {
26345
26346               struct utimbuf foo
26347
26348   ;
26349   return 0;
26350 }
26351 _ACEOF
26352 if ac_fn_c_try_compile "$LINENO"; then :
26353
26354               ba_cv_header_utime_h=yes
26355
26356 else
26357
26358               ba_cv_header_utime_h=no
26359
26360
26361 fi
26362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26363
26364
26365 fi
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_utime_h" >&5
26367 $as_echo "$ba_cv_header_utime_h" >&6; }
26368 test $ba_cv_header_utime_h = yes &&
26369 $as_echo "#define HAVE_UTIME_H 1" >>confdefs.h
26370
26371
26372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
26373 $as_echo_n "checking for socklen_t... " >&6; }
26374 if ${ba_cv_header_socklen_t+:} false; then :
26375   $as_echo_n "(cached) " >&6
26376 else
26377
26378        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26379 /* end confdefs.h.  */
26380
26381               #include <sys/types.h>
26382               #include <sys/socket.h>
26383
26384 int
26385 main ()
26386 {
26387
26388               socklen_t x
26389
26390   ;
26391   return 0;
26392 }
26393 _ACEOF
26394 if ac_fn_c_try_compile "$LINENO"; then :
26395
26396              ba_cv_header_socklen_t=yes
26397
26398 else
26399
26400              ba_cv_header_socklen_t=no
26401
26402
26403 fi
26404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26405
26406
26407 fi
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_socklen_t" >&5
26409 $as_echo "$ba_cv_header_socklen_t" >&6; }
26410 test $ba_cv_header_socklen_t = yes &&
26411 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
26412
26413
26414 ac_ext=cpp
26415 ac_cpp='$CXXCPP $CPPFLAGS'
26416 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26417 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26418 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26419
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl_req_t" >&5
26421 $as_echo_n "checking for ioctl_req_t... " >&6; }
26422 if ${ba_cv_header_ioctl_req_t+:} false; then :
26423   $as_echo_n "(cached) " >&6
26424 else
26425
26426        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26427 /* end confdefs.h.  */
26428
26429               #include <unistd.h>
26430               #include <sys/types.h>
26431               #include <sys/ioctl.h>
26432
26433 int
26434 main ()
26435 {
26436
26437               int (*d_ioctl)(int fd, unsigned long int request, ...);
26438               d_ioctl = ::ioctl;
26439
26440   ;
26441   return 0;
26442 }
26443 _ACEOF
26444 if ac_fn_cxx_try_compile "$LINENO"; then :
26445
26446              ba_cv_header_ioctl_req_t=yes
26447
26448 else
26449
26450              ba_cv_header_ioctl_req_t=no
26451
26452
26453 fi
26454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26455
26456
26457 fi
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_header_ioctl_req_t" >&5
26459 $as_echo "$ba_cv_header_ioctl_req_t" >&6; }
26460 test $ba_cv_header_ioctl_req_t = yes &&
26461 $as_echo "#define HAVE_IOCTL_ULINT_REQUEST 1" >>confdefs.h
26462
26463
26464 ac_ext=c
26465 ac_cpp='$CPP $CPPFLAGS'
26466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26469
26470
26471 ac_ext=cpp
26472 ac_cpp='$CXXCPP $CPPFLAGS'
26473 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26474 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26475 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26476
26477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for typeof" >&5
26478 $as_echo_n "checking for typeof... " >&6; }
26479 if ${ba_cv_have_typeof+:} false; then :
26480   $as_echo_n "(cached) " >&6
26481 else
26482
26483        if test "$cross_compiling" = yes; then :
26484
26485               ba_cv_have_typeof=no
26486
26487
26488 else
26489   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26490 /* end confdefs.h.  */
26491
26492               main(){char *a = 0; a = (typeof a)a;}
26493
26494 _ACEOF
26495 if ac_fn_cxx_try_run "$LINENO"; then :
26496
26497               ba_cv_have_typeof=yes
26498
26499 else
26500
26501               ba_cv_have_typeof=no
26502
26503 fi
26504 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26505   conftest.$ac_objext conftest.beam conftest.$ac_ext
26506 fi
26507
26508
26509
26510 fi
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_have_typeof" >&5
26512 $as_echo "$ba_cv_have_typeof" >&6; }
26513 test $ba_cv_have_typeof = yes &&
26514 $as_echo "#define HAVE_TYPEOF 1" >>confdefs.h
26515
26516 ac_ext=c
26517 ac_cpp='$CPP $CPPFLAGS'
26518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26521
26522
26523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26524 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26525 if ${ac_cv_c_const+:} false; then :
26526   $as_echo_n "(cached) " >&6
26527 else
26528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26529 /* end confdefs.h.  */
26530
26531 int
26532 main ()
26533 {
26534
26535 #ifndef __cplusplus
26536   /* Ultrix mips cc rejects this sort of thing.  */
26537   typedef int charset[2];
26538   const charset cs = { 0, 0 };
26539   /* SunOS 4.1.1 cc rejects this.  */
26540   char const *const *pcpcc;
26541   char **ppc;
26542   /* NEC SVR4.0.2 mips cc rejects this.  */
26543   struct point {int x, y;};
26544   static struct point const zero = {0,0};
26545   /* AIX XL C 1.02.0.0 rejects this.
26546      It does not let you subtract one const X* pointer from another in
26547      an arm of an if-expression whose if-part is not a constant
26548      expression */
26549   const char *g = "string";
26550   pcpcc = &g + (g ? g-g : 0);
26551   /* HPUX 7.0 cc rejects these. */
26552   ++pcpcc;
26553   ppc = (char**) pcpcc;
26554   pcpcc = (char const *const *) ppc;
26555   { /* SCO 3.2v4 cc rejects this sort of thing.  */
26556     char tx;
26557     char *t = &tx;
26558     char const *s = 0 ? (char *) 0 : (char const *) 0;
26559
26560     *t++ = 0;
26561     if (s) return 0;
26562   }
26563   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
26564     int x[] = {25, 17};
26565     const int *foo = &x[0];
26566     ++foo;
26567   }
26568   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26569     typedef const int *iptr;
26570     iptr p = 0;
26571     ++p;
26572   }
26573   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26574        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26575     struct s { int j; const int *ap[3]; } bx;
26576     struct s *b = &bx; b->j = 5;
26577   }
26578   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26579     const int foo = 10;
26580     if (!foo) return 0;
26581   }
26582   return !cs[0] && !zero.x;
26583 #endif
26584
26585   ;
26586   return 0;
26587 }
26588 _ACEOF
26589 if ac_fn_c_try_compile "$LINENO"; then :
26590   ac_cv_c_const=yes
26591 else
26592   ac_cv_c_const=no
26593 fi
26594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26595 fi
26596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26597 $as_echo "$ac_cv_c_const" >&6; }
26598 if test $ac_cv_c_const = no; then
26599
26600 $as_echo "#define const /**/" >>confdefs.h
26601
26602 fi
26603
26604
26605  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
26606 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
26607 if ${ac_cv_c_bigendian+:} false; then :
26608   $as_echo_n "(cached) " >&6
26609 else
26610   ac_cv_c_bigendian=unknown
26611     # See if we're dealing with a universal compiler.
26612     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26613 /* end confdefs.h.  */
26614 #ifndef __APPLE_CC__
26615                not a universal capable compiler
26616              #endif
26617              typedef int dummy;
26618
26619 _ACEOF
26620 if ac_fn_c_try_compile "$LINENO"; then :
26621
26622         # Check for potential -arch flags.  It is not universal unless
26623         # there are at least two -arch flags with different values.
26624         ac_arch=
26625         ac_prev=
26626         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
26627          if test -n "$ac_prev"; then
26628            case $ac_word in
26629              i?86 | x86_64 | ppc | ppc64)
26630                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
26631                  ac_arch=$ac_word
26632                else
26633                  ac_cv_c_bigendian=universal
26634                  break
26635                fi
26636                ;;
26637            esac
26638            ac_prev=
26639          elif test "x$ac_word" = "x-arch"; then
26640            ac_prev=arch
26641          fi
26642        done
26643 fi
26644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26645     if test $ac_cv_c_bigendian = unknown; then
26646       # See if sys/param.h defines the BYTE_ORDER macro.
26647       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26648 /* end confdefs.h.  */
26649 #include <sys/types.h>
26650              #include <sys/param.h>
26651
26652 int
26653 main ()
26654 {
26655 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
26656                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
26657                      && LITTLE_ENDIAN)
26658               bogus endian macros
26659              #endif
26660
26661   ;
26662   return 0;
26663 }
26664 _ACEOF
26665 if ac_fn_c_try_compile "$LINENO"; then :
26666   # It does; now see whether it defined to BIG_ENDIAN or not.
26667          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26668 /* end confdefs.h.  */
26669 #include <sys/types.h>
26670                 #include <sys/param.h>
26671
26672 int
26673 main ()
26674 {
26675 #if BYTE_ORDER != BIG_ENDIAN
26676                  not big endian
26677                 #endif
26678
26679   ;
26680   return 0;
26681 }
26682 _ACEOF
26683 if ac_fn_c_try_compile "$LINENO"; then :
26684   ac_cv_c_bigendian=yes
26685 else
26686   ac_cv_c_bigendian=no
26687 fi
26688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26689 fi
26690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26691     fi
26692     if test $ac_cv_c_bigendian = unknown; then
26693       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
26694       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26695 /* end confdefs.h.  */
26696 #include <limits.h>
26697
26698 int
26699 main ()
26700 {
26701 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
26702               bogus endian macros
26703              #endif
26704
26705   ;
26706   return 0;
26707 }
26708 _ACEOF
26709 if ac_fn_c_try_compile "$LINENO"; then :
26710   # It does; now see whether it defined to _BIG_ENDIAN or not.
26711          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26712 /* end confdefs.h.  */
26713 #include <limits.h>
26714
26715 int
26716 main ()
26717 {
26718 #ifndef _BIG_ENDIAN
26719                  not big endian
26720                 #endif
26721
26722   ;
26723   return 0;
26724 }
26725 _ACEOF
26726 if ac_fn_c_try_compile "$LINENO"; then :
26727   ac_cv_c_bigendian=yes
26728 else
26729   ac_cv_c_bigendian=no
26730 fi
26731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26732 fi
26733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26734     fi
26735     if test $ac_cv_c_bigendian = unknown; then
26736       # Compile a test program.
26737       if test "$cross_compiling" = yes; then :
26738   # Try to guess by grepping values from an object file.
26739          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26740 /* end confdefs.h.  */
26741 short int ascii_mm[] =
26742                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
26743                 short int ascii_ii[] =
26744                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
26745                 int use_ascii (int i) {
26746                   return ascii_mm[i] + ascii_ii[i];
26747                 }
26748                 short int ebcdic_ii[] =
26749                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
26750                 short int ebcdic_mm[] =
26751                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
26752                 int use_ebcdic (int i) {
26753                   return ebcdic_mm[i] + ebcdic_ii[i];
26754                 }
26755                 extern int foo;
26756
26757 int
26758 main ()
26759 {
26760 return use_ascii (foo) == use_ebcdic (foo);
26761   ;
26762   return 0;
26763 }
26764 _ACEOF
26765 if ac_fn_c_try_compile "$LINENO"; then :
26766   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
26767               ac_cv_c_bigendian=yes
26768             fi
26769             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
26770               if test "$ac_cv_c_bigendian" = unknown; then
26771                 ac_cv_c_bigendian=no
26772               else
26773                 # finding both strings is unlikely to happen, but who knows?
26774                 ac_cv_c_bigendian=unknown
26775               fi
26776             fi
26777 fi
26778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26779 else
26780   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h.  */
26782 $ac_includes_default
26783 int
26784 main ()
26785 {
26786
26787              /* Are we little or big endian?  From Harbison&Steele.  */
26788              union
26789              {
26790                long int l;
26791                char c[sizeof (long int)];
26792              } u;
26793              u.l = 1;
26794              return u.c[sizeof (long int) - 1] == 1;
26795
26796   ;
26797   return 0;
26798 }
26799 _ACEOF
26800 if ac_fn_c_try_run "$LINENO"; then :
26801   ac_cv_c_bigendian=no
26802 else
26803   ac_cv_c_bigendian=yes
26804 fi
26805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26806   conftest.$ac_objext conftest.beam conftest.$ac_ext
26807 fi
26808
26809     fi
26810 fi
26811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
26812 $as_echo "$ac_cv_c_bigendian" >&6; }
26813  case $ac_cv_c_bigendian in #(
26814    yes)
26815
26816 $as_echo "#define HAVE_BIG_ENDIAN 1" >>confdefs.h
26817 ;; #(
26818    no)
26819
26820 $as_echo "#define HAVE_LITTLE_ENDIAN 1" >>confdefs.h
26821  ;; #(
26822    universal)
26823
26824 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
26825
26826      ;; #(
26827    *)
26828      as_fn_error $? "unknown endianness
26829  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
26830  esac
26831
26832
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to get filesystem type" >&5
26834 $as_echo_n "checking how to get filesystem type... " >&6; }
26835 fstype=no
26836 # The order of these tests is important.
26837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26838 /* end confdefs.h.  */
26839
26840        #include <sys/statvfs.h>
26841        #include <sys/fstyp.h>
26842
26843 _ACEOF
26844 if ac_fn_c_try_cpp "$LINENO"; then :
26845   $as_echo "#define FSTYPE_STATVFS 1" >>confdefs.h
26846  fstype=SVR4
26847
26848 fi
26849 rm -f conftest.err conftest.i conftest.$ac_ext
26850 if test $fstype = no; then
26851    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26852 /* end confdefs.h.  */
26853
26854           #include <sys/statfs.h>
26855           #include <sys/fstyp.h>
26856
26857 _ACEOF
26858 if ac_fn_c_try_cpp "$LINENO"; then :
26859   $as_echo "#define FSTYPE_USG_STATFS 1" >>confdefs.h
26860  fstype=SVR3
26861
26862 fi
26863 rm -f conftest.err conftest.i conftest.$ac_ext
26864 fi
26865 if test $fstype = no; then
26866    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26867 /* end confdefs.h.  */
26868
26869           #include <sys/statfs.h>
26870           #include <sys/vmount.h>
26871
26872 _ACEOF
26873 if ac_fn_c_try_cpp "$LINENO"; then :
26874   $as_echo "#define FSTYPE_AIX_STATFS 1" >>confdefs.h
26875  fstype=AIX
26876
26877 fi
26878 rm -f conftest.err conftest.i conftest.$ac_ext
26879 fi
26880 if test $fstype = no; then
26881    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26882 /* end confdefs.h.  */
26883
26884           #include <mntent.h>
26885
26886 _ACEOF
26887 if ac_fn_c_try_cpp "$LINENO"; then :
26888   $as_echo "#define FSTYPE_MNTENT 1" >>confdefs.h
26889  fstype=4.3BSD
26890
26891 fi
26892 rm -f conftest.err conftest.i conftest.$ac_ext
26893 fi
26894 if test $fstype = no; then
26895    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26896 /* end confdefs.h.  */
26897 #include <sys/mount.h>
26898
26899 _ACEOF
26900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26901   $EGREP "f_type;" >/dev/null 2>&1; then :
26902   $as_echo "#define FSTYPE_STATFS 1" >>confdefs.h
26903  fstype=4.4BSD/OSF1
26904 fi
26905 rm -f conftest*
26906
26907 fi
26908 if test $fstype = no; then
26909    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26910 /* end confdefs.h.  */
26911
26912           #include <sys/mount.h>
26913           #include <sys/fs_types.h>
26914
26915 _ACEOF
26916 if ac_fn_c_try_cpp "$LINENO"; then :
26917   $as_echo "#define FSTYPE_GETMNT 1" >>confdefs.h
26918  fstype=Ultrix
26919
26920 fi
26921 rm -f conftest.err conftest.i conftest.$ac_ext
26922 fi
26923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fstype" >&5
26924 $as_echo "$fstype" >&6; }
26925
26926 ac_fn_c_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
26927 if test "x$ac_cv_header_sys_statvfs_h" = xyes; then :
26928
26929 $as_echo "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
26930
26931 fi
26932
26933
26934
26935 ac_ext=cpp
26936 ac_cpp='$CXXCPP $CPPFLAGS'
26937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26940
26941 for ac_func in backtrace
26942 do :
26943   ac_fn_cxx_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
26944 if test "x$ac_cv_func_backtrace" = xyes; then :
26945   cat >>confdefs.h <<_ACEOF
26946 #define HAVE_BACKTRACE 1
26947 _ACEOF
26948
26949 fi
26950 done
26951
26952 ac_ext=c
26953 ac_cpp='$CPP $CPPFLAGS'
26954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26957
26958
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
26960 $as_echo_n "checking return type of signal handlers... " >&6; }
26961 if ${ac_cv_type_signal+:} false; then :
26962   $as_echo_n "(cached) " >&6
26963 else
26964   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26965 /* end confdefs.h.  */
26966 #include <sys/types.h>
26967 #include <signal.h>
26968
26969 int
26970 main ()
26971 {
26972 return *(signal (0, 0)) (0) == 1;
26973   ;
26974   return 0;
26975 }
26976 _ACEOF
26977 if ac_fn_c_try_compile "$LINENO"; then :
26978   ac_cv_type_signal=int
26979 else
26980   ac_cv_type_signal=void
26981 fi
26982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26983 fi
26984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
26985 $as_echo "$ac_cv_type_signal" >&6; }
26986
26987 cat >>confdefs.h <<_ACEOF
26988 #define RETSIGTYPE $ac_cv_type_signal
26989 _ACEOF
26990
26991
26992
26993   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type of signal functions" >&5
26994 $as_echo_n "checking for type of signal functions... " >&6; }
26995   if ${bash_cv_signal_vintage+:} false; then :
26996   $as_echo_n "(cached) " >&6
26997 else
26998
26999     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h.  */
27001 #include <signal.h>
27002 int
27003 main ()
27004 {
27005
27006       sigset_t ss;
27007       struct sigaction sa;
27008       sigemptyset(&ss); sigsuspend(&ss);
27009       sigaction(SIGINT, &sa, (struct sigaction *) 0);
27010       sigprocmask(SIG_BLOCK, &ss, (sigset_t *) 0);
27011
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 if ac_fn_c_try_link "$LINENO"; then :
27017   bash_cv_signal_vintage="posix"
27018 else
27019
27020       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27021 /* end confdefs.h.  */
27022 #include <signal.h>
27023 int
27024 main ()
27025 {
27026
27027           int mask = sigmask(SIGINT);
27028           sigsetmask(mask); sigblock(mask); sigpause(mask);
27029
27030   ;
27031   return 0;
27032 }
27033 _ACEOF
27034 if ac_fn_c_try_link "$LINENO"; then :
27035   bash_cv_signal_vintage="4.2bsd"
27036 else
27037
27038         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h.  */
27040
27041           #include <signal.h>
27042           RETSIGTYPE foo() { }
27043 int
27044 main ()
27045 {
27046
27047                   int mask = sigmask(SIGINT);
27048                   sigset(SIGINT, foo); sigrelse(SIGINT);
27049                   sighold(SIGINT); sigpause(SIGINT);
27050
27051   ;
27052   return 0;
27053 }
27054 _ACEOF
27055 if ac_fn_c_try_link "$LINENO"; then :
27056   bash_cv_signal_vintage="svr3"
27057 else
27058   bash_cv_signal_vintage="v7"
27059
27060 fi
27061 rm -f core conftest.err conftest.$ac_objext \
27062     conftest$ac_exeext conftest.$ac_ext
27063
27064 fi
27065 rm -f core conftest.err conftest.$ac_objext \
27066     conftest$ac_exeext conftest.$ac_ext
27067
27068 fi
27069 rm -f core conftest.err conftest.$ac_objext \
27070     conftest$ac_exeext conftest.$ac_ext
27071
27072 fi
27073
27074   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bash_cv_signal_vintage" >&5
27075 $as_echo "$bash_cv_signal_vintage" >&6; }
27076   if test "$bash_cv_signal_vintage" = "posix"; then
27077     $as_echo "#define HAVE_POSIX_SIGNALS 1" >>confdefs.h
27078
27079   elif test "$bash_cv_signal_vintage" = "4.2bsd"; then
27080     $as_echo "#define HAVE_BSD_SIGNALS 1" >>confdefs.h
27081
27082   elif test "$bash_cv_signal_vintage" = "svr3"; then
27083     $as_echo "#define HAVE_USG_SIGHOLD 1" >>confdefs.h
27084
27085   fi
27086
27087 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
27088 if test "x$ac_cv_type_mode_t" = xyes; then :
27089
27090 else
27091
27092 cat >>confdefs.h <<_ACEOF
27093 #define mode_t int
27094 _ACEOF
27095
27096 fi
27097
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
27099 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
27100 if ${ac_cv_type_uid_t+:} false; then :
27101   $as_echo_n "(cached) " >&6
27102 else
27103   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27104 /* end confdefs.h.  */
27105 #include <sys/types.h>
27106
27107 _ACEOF
27108 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27109   $EGREP "uid_t" >/dev/null 2>&1; then :
27110   ac_cv_type_uid_t=yes
27111 else
27112   ac_cv_type_uid_t=no
27113 fi
27114 rm -f conftest*
27115
27116 fi
27117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
27118 $as_echo "$ac_cv_type_uid_t" >&6; }
27119 if test $ac_cv_type_uid_t = no; then
27120
27121 $as_echo "#define uid_t int" >>confdefs.h
27122
27123
27124 $as_echo "#define gid_t int" >>confdefs.h
27125
27126 fi
27127
27128 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
27129 if test "x$ac_cv_type_size_t" = xyes; then :
27130
27131 else
27132
27133 cat >>confdefs.h <<_ACEOF
27134 #define size_t unsigned int
27135 _ACEOF
27136
27137 fi
27138
27139 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
27140 if test "x$ac_cv_type_pid_t" = xyes; then :
27141
27142 else
27143
27144 cat >>confdefs.h <<_ACEOF
27145 #define pid_t int
27146 _ACEOF
27147
27148 fi
27149
27150 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
27151 if test "x$ac_cv_type_off_t" = xyes; then :
27152
27153 else
27154
27155 cat >>confdefs.h <<_ACEOF
27156 #define off_t long int
27157 _ACEOF
27158
27159 fi
27160
27161
27162   ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
27163 if test "x$ac_cv_type_intptr_t" = xyes; then :
27164
27165 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
27166
27167 else
27168   for ac_type in 'int' 'long int' 'long long int'; do
27169        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27170 /* end confdefs.h.  */
27171 $ac_includes_default
27172 int
27173 main ()
27174 {
27175 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27176 test_array [0] = 0;
27177 return test_array [0];
27178
27179   ;
27180   return 0;
27181 }
27182 _ACEOF
27183 if ac_fn_c_try_compile "$LINENO"; then :
27184
27185 cat >>confdefs.h <<_ACEOF
27186 #define intptr_t $ac_type
27187 _ACEOF
27188
27189           ac_type=
27190 fi
27191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27192        test -z "$ac_type" && break
27193      done
27194 fi
27195
27196
27197
27198   ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
27199 if test "x$ac_cv_type_uintptr_t" = xyes; then :
27200
27201 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
27202
27203 else
27204   for ac_type in 'unsigned int' 'unsigned long int' \
27205         'unsigned long long int'; do
27206        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27207 /* end confdefs.h.  */
27208 $ac_includes_default
27209 int
27210 main ()
27211 {
27212 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
27213 test_array [0] = 0;
27214 return test_array [0];
27215
27216   ;
27217   return 0;
27218 }
27219 _ACEOF
27220 if ac_fn_c_try_compile "$LINENO"; then :
27221
27222 cat >>confdefs.h <<_ACEOF
27223 #define uintptr_t $ac_type
27224 _ACEOF
27225
27226           ac_type=
27227 fi
27228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27229        test -z "$ac_type" && break
27230      done
27231 fi
27232
27233
27234 ac_fn_c_check_type "$LINENO" "ino_t" "ac_cv_type_ino_t" "$ac_includes_default"
27235 if test "x$ac_cv_type_ino_t" = xyes; then :
27236
27237 else
27238
27239 cat >>confdefs.h <<_ACEOF
27240 #define ino_t unsigned long
27241 _ACEOF
27242
27243 fi
27244
27245 ac_fn_c_check_type "$LINENO" "dev_t" "ac_cv_type_dev_t" "$ac_includes_default"
27246 if test "x$ac_cv_type_dev_t" = xyes; then :
27247
27248 else
27249
27250 cat >>confdefs.h <<_ACEOF
27251 #define dev_t unsigned long
27252 _ACEOF
27253
27254 fi
27255
27256 ac_fn_c_check_type "$LINENO" "daddr_t" "ac_cv_type_daddr_t" "$ac_includes_default"
27257 if test "x$ac_cv_type_daddr_t" = xyes; then :
27258
27259 else
27260
27261 cat >>confdefs.h <<_ACEOF
27262 #define daddr_t long
27263 _ACEOF
27264
27265 fi
27266
27267 ac_fn_c_check_type "$LINENO" "major_t" "ac_cv_type_major_t" "$ac_includes_default"
27268 if test "x$ac_cv_type_major_t" = xyes; then :
27269
27270 else
27271
27272 cat >>confdefs.h <<_ACEOF
27273 #define major_t int
27274 _ACEOF
27275
27276 fi
27277
27278 ac_fn_c_check_type "$LINENO" "minor_t" "ac_cv_type_minor_t" "$ac_includes_default"
27279 if test "x$ac_cv_type_minor_t" = xyes; then :
27280
27281 else
27282
27283 cat >>confdefs.h <<_ACEOF
27284 #define minor_t int
27285 _ACEOF
27286
27287 fi
27288
27289 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
27290 if test "x$ac_cv_type_ssize_t" = xyes; then :
27291
27292 else
27293
27294 cat >>confdefs.h <<_ACEOF
27295 #define ssize_t int
27296 _ACEOF
27297
27298 fi
27299
27300 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
27301 if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
27302
27303 cat >>confdefs.h <<_ACEOF
27304 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27305 _ACEOF
27306
27307
27308 $as_echo "#define HAVE_ST_BLOCKS 1" >>confdefs.h
27309
27310 else
27311   case " $LIBOBJS " in
27312   *" fileblocks.$ac_objext "* ) ;;
27313   *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
27314  ;;
27315 esac
27316
27317 fi
27318
27319
27320 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
27321 if test "x$ac_cv_member_struct_stat_st_rdev" = xyes; then :
27322
27323 cat >>confdefs.h <<_ACEOF
27324 #define HAVE_STRUCT_STAT_ST_RDEV 1
27325 _ACEOF
27326
27327
27328 $as_echo "#define HAVE_ST_RDEV 1" >>confdefs.h
27329
27330 fi
27331
27332
27333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
27334 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
27335 if ${ac_cv_struct_tm+:} false; then :
27336   $as_echo_n "(cached) " >&6
27337 else
27338   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27339 /* end confdefs.h.  */
27340 #include <sys/types.h>
27341 #include <time.h>
27342
27343 int
27344 main ()
27345 {
27346 struct tm tm;
27347                                      int *p = &tm.tm_sec;
27348                                      return !p;
27349   ;
27350   return 0;
27351 }
27352 _ACEOF
27353 if ac_fn_c_try_compile "$LINENO"; then :
27354   ac_cv_struct_tm=time.h
27355 else
27356   ac_cv_struct_tm=sys/time.h
27357 fi
27358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27359 fi
27360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
27361 $as_echo "$ac_cv_struct_tm" >&6; }
27362 if test $ac_cv_struct_tm = sys/time.h; then
27363
27364 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
27365
27366 fi
27367
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
27369 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
27370 if ${ac_cv_c_const+:} false; then :
27371   $as_echo_n "(cached) " >&6
27372 else
27373   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27374 /* end confdefs.h.  */
27375
27376 int
27377 main ()
27378 {
27379
27380 #ifndef __cplusplus
27381   /* Ultrix mips cc rejects this sort of thing.  */
27382   typedef int charset[2];
27383   const charset cs = { 0, 0 };
27384   /* SunOS 4.1.1 cc rejects this.  */
27385   char const *const *pcpcc;
27386   char **ppc;
27387   /* NEC SVR4.0.2 mips cc rejects this.  */
27388   struct point {int x, y;};
27389   static struct point const zero = {0,0};
27390   /* AIX XL C 1.02.0.0 rejects this.
27391      It does not let you subtract one const X* pointer from another in
27392      an arm of an if-expression whose if-part is not a constant
27393      expression */
27394   const char *g = "string";
27395   pcpcc = &g + (g ? g-g : 0);
27396   /* HPUX 7.0 cc rejects these. */
27397   ++pcpcc;
27398   ppc = (char**) pcpcc;
27399   pcpcc = (char const *const *) ppc;
27400   { /* SCO 3.2v4 cc rejects this sort of thing.  */
27401     char tx;
27402     char *t = &tx;
27403     char const *s = 0 ? (char *) 0 : (char const *) 0;
27404
27405     *t++ = 0;
27406     if (s) return 0;
27407   }
27408   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
27409     int x[] = {25, 17};
27410     const int *foo = &x[0];
27411     ++foo;
27412   }
27413   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
27414     typedef const int *iptr;
27415     iptr p = 0;
27416     ++p;
27417   }
27418   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
27419        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
27420     struct s { int j; const int *ap[3]; } bx;
27421     struct s *b = &bx; b->j = 5;
27422   }
27423   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
27424     const int foo = 10;
27425     if (!foo) return 0;
27426   }
27427   return !cs[0] && !zero.x;
27428 #endif
27429
27430   ;
27431   return 0;
27432 }
27433 _ACEOF
27434 if ac_fn_c_try_compile "$LINENO"; then :
27435   ac_cv_c_const=yes
27436 else
27437   ac_cv_c_const=no
27438 fi
27439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27440 fi
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
27442 $as_echo "$ac_cv_c_const" >&6; }
27443 if test $ac_cv_c_const = no; then
27444
27445 $as_echo "#define const /**/" >>confdefs.h
27446
27447 fi
27448
27449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
27450 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
27451 if ${ac_cv_c_restrict+:} false; then :
27452   $as_echo_n "(cached) " >&6
27453 else
27454   ac_cv_c_restrict=no
27455    # The order here caters to the fact that C++ does not require restrict.
27456    for ac_kw in __restrict __restrict__ _Restrict restrict; do
27457      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27458 /* end confdefs.h.  */
27459 typedef int * int_ptr;
27460         int foo (int_ptr $ac_kw ip) {
27461         return ip[0];
27462        }
27463 int
27464 main ()
27465 {
27466 int s[1];
27467         int * $ac_kw t = s;
27468         t[0] = 0;
27469         return foo(t)
27470   ;
27471   return 0;
27472 }
27473 _ACEOF
27474 if ac_fn_c_try_compile "$LINENO"; then :
27475   ac_cv_c_restrict=$ac_kw
27476 fi
27477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27478      test "$ac_cv_c_restrict" != no && break
27479    done
27480
27481 fi
27482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
27483 $as_echo "$ac_cv_c_restrict" >&6; }
27484
27485  case $ac_cv_c_restrict in
27486    restrict) ;;
27487    no) $as_echo "#define restrict /**/" >>confdefs.h
27488  ;;
27489    *)  cat >>confdefs.h <<_ACEOF
27490 #define restrict $ac_cv_c_restrict
27491 _ACEOF
27492  ;;
27493  esac
27494
27495
27496 # The cast to long int works around a bug in the HP C Compiler
27497 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27498 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27499 # This bug is HP SR number 8606223364.
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
27501 $as_echo_n "checking size of char... " >&6; }
27502 if ${ac_cv_sizeof_char+:} false; then :
27503   $as_echo_n "(cached) " >&6
27504 else
27505   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
27506
27507 else
27508   if test "$ac_cv_type_char" = yes; then
27509      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27511 as_fn_error 77 "cannot compute sizeof (char)
27512 See \`config.log' for more details" "$LINENO" 5; }
27513    else
27514      ac_cv_sizeof_char=0
27515    fi
27516 fi
27517
27518 fi
27519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
27520 $as_echo "$ac_cv_sizeof_char" >&6; }
27521
27522
27523
27524 cat >>confdefs.h <<_ACEOF
27525 #define SIZEOF_CHAR $ac_cv_sizeof_char
27526 _ACEOF
27527
27528
27529 # The cast to long int works around a bug in the HP C Compiler
27530 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27531 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27532 # This bug is HP SR number 8606223364.
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5
27534 $as_echo_n "checking size of short int... " >&6; }
27535 if ${ac_cv_sizeof_short_int+:} false; then :
27536   $as_echo_n "(cached) " >&6
27537 else
27538   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int"        "$ac_includes_default"; then :
27539
27540 else
27541   if test "$ac_cv_type_short_int" = yes; then
27542      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27544 as_fn_error 77 "cannot compute sizeof (short int)
27545 See \`config.log' for more details" "$LINENO" 5; }
27546    else
27547      ac_cv_sizeof_short_int=0
27548    fi
27549 fi
27550
27551 fi
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5
27553 $as_echo "$ac_cv_sizeof_short_int" >&6; }
27554
27555
27556
27557 cat >>confdefs.h <<_ACEOF
27558 #define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int
27559 _ACEOF
27560
27561
27562 # The cast to long int works around a bug in the HP C Compiler
27563 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27564 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27565 # This bug is HP SR number 8606223364.
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
27567 $as_echo_n "checking size of int... " >&6; }
27568 if ${ac_cv_sizeof_int+:} false; then :
27569   $as_echo_n "(cached) " >&6
27570 else
27571   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
27572
27573 else
27574   if test "$ac_cv_type_int" = yes; then
27575      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27576 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27577 as_fn_error 77 "cannot compute sizeof (int)
27578 See \`config.log' for more details" "$LINENO" 5; }
27579    else
27580      ac_cv_sizeof_int=0
27581    fi
27582 fi
27583
27584 fi
27585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
27586 $as_echo "$ac_cv_sizeof_int" >&6; }
27587
27588
27589
27590 cat >>confdefs.h <<_ACEOF
27591 #define SIZEOF_INT $ac_cv_sizeof_int
27592 _ACEOF
27593
27594
27595 # The cast to long int works around a bug in the HP C Compiler
27596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27598 # This bug is HP SR number 8606223364.
27599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long int" >&5
27600 $as_echo_n "checking size of long int... " >&6; }
27601 if ${ac_cv_sizeof_long_int+:} false; then :
27602   $as_echo_n "(cached) " >&6
27603 else
27604   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long int))" "ac_cv_sizeof_long_int"        "$ac_includes_default"; then :
27605
27606 else
27607   if test "$ac_cv_type_long_int" = yes; then
27608      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27610 as_fn_error 77 "cannot compute sizeof (long int)
27611 See \`config.log' for more details" "$LINENO" 5; }
27612    else
27613      ac_cv_sizeof_long_int=0
27614    fi
27615 fi
27616
27617 fi
27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_int" >&5
27619 $as_echo "$ac_cv_sizeof_long_int" >&6; }
27620
27621
27622
27623 cat >>confdefs.h <<_ACEOF
27624 #define SIZEOF_LONG_INT $ac_cv_sizeof_long_int
27625 _ACEOF
27626
27627
27628 # The cast to long int works around a bug in the HP C Compiler
27629 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27630 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27631 # This bug is HP SR number 8606223364.
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long int" >&5
27633 $as_echo_n "checking size of long long int... " >&6; }
27634 if ${ac_cv_sizeof_long_long_int+:} false; then :
27635   $as_echo_n "(cached) " >&6
27636 else
27637   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long int))" "ac_cv_sizeof_long_long_int"        "$ac_includes_default"; then :
27638
27639 else
27640   if test "$ac_cv_type_long_long_int" = yes; then
27641      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27643 as_fn_error 77 "cannot compute sizeof (long long int)
27644 See \`config.log' for more details" "$LINENO" 5; }
27645    else
27646      ac_cv_sizeof_long_long_int=0
27647    fi
27648 fi
27649
27650 fi
27651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long_int" >&5
27652 $as_echo "$ac_cv_sizeof_long_long_int" >&6; }
27653
27654
27655
27656 cat >>confdefs.h <<_ACEOF
27657 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_long_long_int
27658 _ACEOF
27659
27660
27661 # The cast to long int works around a bug in the HP C Compiler
27662 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27663 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27664 # This bug is HP SR number 8606223364.
27665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
27666 $as_echo_n "checking size of int *... " >&6; }
27667 if ${ac_cv_sizeof_int_p+:} false; then :
27668   $as_echo_n "(cached) " >&6
27669 else
27670   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
27671
27672 else
27673   if test "$ac_cv_type_int_p" = yes; then
27674      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27675 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27676 as_fn_error 77 "cannot compute sizeof (int *)
27677 See \`config.log' for more details" "$LINENO" 5; }
27678    else
27679      ac_cv_sizeof_int_p=0
27680    fi
27681 fi
27682
27683 fi
27684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
27685 $as_echo "$ac_cv_sizeof_int_p" >&6; }
27686
27687
27688
27689 cat >>confdefs.h <<_ACEOF
27690 #define SIZEOF_INT_P $ac_cv_sizeof_int_p
27691 _ACEOF
27692
27693
27694
27695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int type" >&5
27696 $as_echo_n "checking for u_int type... " >&6; }
27697 if ${ac_cv_have_u_int+:} false; then :
27698   $as_echo_n "(cached) " >&6
27699 else
27700
27701        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27702 /* end confdefs.h.  */
27703
27704               #include <sys/types.h>
27705
27706 int
27707 main ()
27708 {
27709
27710               u_int a; a = 1;
27711
27712   ;
27713   return 0;
27714 }
27715 _ACEOF
27716 if ac_fn_c_try_compile "$LINENO"; then :
27717
27718               ac_cv_have_u_int="yes"
27719
27720 else
27721
27722               ac_cv_have_u_int="no"
27723
27724
27725 fi
27726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27727
27728
27729 fi
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int" >&5
27731 $as_echo "$ac_cv_have_u_int" >&6; }
27732 if test "x$ac_cv_have_u_int" = "xyes" ; then
27733    $as_echo "#define HAVE_U_INT 1" >>confdefs.h
27734
27735    have_u_int=1
27736 fi
27737
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t type" >&5
27739 $as_echo_n "checking for intmax_t type... " >&6; }
27740 if ${ac_cv_have_intmax_t+:} false; then :
27741   $as_echo_n "(cached) " >&6
27742 else
27743
27744        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27745 /* end confdefs.h.  */
27746
27747               #include <sys/types.h>
27748
27749 int
27750 main ()
27751 {
27752
27753               intmax_t a; a = 1;
27754
27755   ;
27756   return 0;
27757 }
27758 _ACEOF
27759 if ac_fn_c_try_compile "$LINENO"; then :
27760
27761               ac_cv_have_intmax_t="yes"
27762
27763 else
27764
27765               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27766 /* end confdefs.h.  */
27767
27768                      #include <stdint.h>
27769
27770 int
27771 main ()
27772 {
27773
27774                      intmax_t a; a = 1;
27775
27776   ;
27777   return 0;
27778 }
27779 _ACEOF
27780 if ac_fn_c_try_compile "$LINENO"; then :
27781
27782                      ac_cv_have_intmax_t="yes"
27783
27784 else
27785
27786                      ac_cv_have_intmax_t="no"
27787
27788
27789 fi
27790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27791
27792
27793 fi
27794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27795
27796
27797 fi
27798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intmax_t" >&5
27799 $as_echo "$ac_cv_have_intmax_t" >&6; }
27800 if test "x$ac_cv_have_intmax_t" = "xyes" ; then
27801    $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
27802
27803    have_intmax_t=1
27804 fi
27805
27806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intmax_t type" >&5
27807 $as_echo_n "checking for u_intmax_t type... " >&6; }
27808 if ${ac_cv_have_u_intmax_t+:} false; then :
27809   $as_echo_n "(cached) " >&6
27810 else
27811
27812        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27813 /* end confdefs.h.  */
27814
27815               #include <sys/types.h>
27816
27817 int
27818 main ()
27819 {
27820
27821               u_intmax_t a; a = 1;
27822
27823   ;
27824   return 0;
27825 }
27826 _ACEOF
27827 if ac_fn_c_try_compile "$LINENO"; then :
27828
27829               ac_cv_have_u_intmax_t="yes"
27830
27831 else
27832
27833               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27834 /* end confdefs.h.  */
27835
27836                      #include <stdint.h>
27837
27838 int
27839 main ()
27840 {
27841
27842                     u_intmax_t a; a = 1;
27843
27844   ;
27845   return 0;
27846 }
27847 _ACEOF
27848 if ac_fn_c_try_compile "$LINENO"; then :
27849
27850                     ac_cv_have_u_intmax_t="yes"
27851
27852 else
27853
27854                     ac_cv_have_u_intmax_t="no"
27855
27856
27857 fi
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859
27860
27861 fi
27862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27863
27864
27865 fi
27866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intmax_t" >&5
27867 $as_echo "$ac_cv_have_u_intmax_t" >&6; }
27868 if test "x$ac_cv_have_u_intmax_t" = "xyes" ; then
27869    $as_echo "#define HAVE_U_INTMAX_T 1" >>confdefs.h
27870
27871    have_u_intmax_t=1
27872 fi
27873
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t types" >&5
27875 $as_echo_n "checking for intXX_t types... " >&6; }
27876 if ${ac_cv_have_intxx_t+:} false; then :
27877   $as_echo_n "(cached) " >&6
27878 else
27879
27880        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27881 /* end confdefs.h.  */
27882
27883               #include <sys/types.h>
27884
27885 int
27886 main ()
27887 {
27888
27889               int8_t a; int16_t b; int32_t c; a = b = c = 1;
27890
27891   ;
27892   return 0;
27893 }
27894 _ACEOF
27895 if ac_fn_c_try_compile "$LINENO"; then :
27896
27897               ac_cv_have_intxx_t="yes"
27898
27899 else
27900
27901               ac_cv_have_intxx_t="no"
27902
27903
27904 fi
27905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27906
27907
27908 fi
27909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_intxx_t" >&5
27910 $as_echo "$ac_cv_have_intxx_t" >&6; }
27911 if test "x$ac_cv_have_intxx_t" = "xyes" ; then
27912    $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
27913
27914    have_intxx_t=1
27915 fi
27916
27917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t type" >&5
27918 $as_echo_n "checking for int64_t type... " >&6; }
27919 if ${ac_cv_have_int64_t+:} false; then :
27920   $as_echo_n "(cached) " >&6
27921 else
27922
27923        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27924 /* end confdefs.h.  */
27925
27926               #include <sys/types.h>
27927
27928 int
27929 main ()
27930 {
27931
27932               int64_t a; a = 1;
27933
27934   ;
27935   return 0;
27936 }
27937 _ACEOF
27938 if ac_fn_c_try_compile "$LINENO"; then :
27939
27940               ac_cv_have_int64_t="yes"
27941
27942 else
27943
27944               ac_cv_have_int64_t="no"
27945
27946
27947 fi
27948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27949
27950
27951 fi
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_int64_t" >&5
27953 $as_echo "$ac_cv_have_int64_t" >&6; }
27954 if test "x$ac_cv_have_int64_t" = "xyes" ; then
27955    $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
27956
27957    have_int64_t=1
27958 fi
27959
27960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_intXX_t types" >&5
27961 $as_echo_n "checking for u_intXX_t types... " >&6; }
27962 if ${ac_cv_have_u_intxx_t+:} false; then :
27963   $as_echo_n "(cached) " >&6
27964 else
27965
27966        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27967 /* end confdefs.h.  */
27968
27969               #include <sys/types.h>
27970
27971 int
27972 main ()
27973 {
27974
27975               u_int8_t a; u_int16_t b; u_int32_t c; a = b = c = 1;
27976
27977   ;
27978   return 0;
27979 }
27980 _ACEOF
27981 if ac_fn_c_try_compile "$LINENO"; then :
27982
27983              ac_cv_have_u_intxx_t="yes"
27984
27985 else
27986
27987              ac_cv_have_u_intxx_t="no"
27988
27989
27990 fi
27991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27992
27993
27994 fi
27995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_intxx_t" >&5
27996 $as_echo "$ac_cv_have_u_intxx_t" >&6; }
27997 if test "x$ac_cv_have_u_intxx_t" = "xyes" ; then
27998    $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
27999
28000    have_u_intxx_t=1
28001 fi
28002
28003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for u_int64_t types" >&5
28004 $as_echo_n "checking for u_int64_t types... " >&6; }
28005 if ${ac_cv_have_u_int64_t+:} false; then :
28006   $as_echo_n "(cached) " >&6
28007 else
28008
28009        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h.  */
28011
28012               #include <sys/types.h>
28013
28014 int
28015 main ()
28016 {
28017
28018               u_int64_t a; a = 1;
28019
28020   ;
28021   return 0;
28022 }
28023 _ACEOF
28024 if ac_fn_c_try_compile "$LINENO"; then :
28025
28026              ac_cv_have_u_int64_t="yes"
28027
28028 else
28029
28030              ac_cv_have_u_int64_t="no"
28031
28032
28033 fi
28034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28035
28036
28037 fi
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_u_int64_t" >&5
28039 $as_echo "$ac_cv_have_u_int64_t" >&6; }
28040 if test "x$ac_cv_have_u_int64_t" = "xyes" ; then
28041    $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28042
28043    have_u_int64_t=1
28044 fi
28045
28046 if (test -z "$have_u_intxx_t" || test -z "$have_intxx_t" && \
28047     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28048 then
28049    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intXX_t and u_intXX_t types in sys/bitypes.h" >&5
28050 $as_echo_n "checking for intXX_t and u_intXX_t types in sys/bitypes.h... " >&6; }
28051    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28052 /* end confdefs.h.  */
28053
28054           #include <sys/bitypes.h>
28055
28056 int
28057 main ()
28058 {
28059
28060           int8_t a; int16_t b; int32_t c;
28061           u_int8_t e; u_int16_t f; u_int32_t g;
28062           a = b = c = e = f = g = 1;
28063
28064   ;
28065   return 0;
28066 }
28067 _ACEOF
28068 if ac_fn_c_try_compile "$LINENO"; then :
28069
28070           $as_echo "#define HAVE_U_INTXX_T 1" >>confdefs.h
28071
28072           $as_echo "#define HAVE_INTXX_T 1" >>confdefs.h
28073
28074           $as_echo "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
28075
28076           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28077 $as_echo "yes" >&6; }
28078
28079 else
28080
28081           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28082 $as_echo "no" >&6; }
28083
28084
28085 fi
28086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28087 fi
28088
28089 if test -z "$have_u_intxx_t" ; then
28090    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types" >&5
28091 $as_echo_n "checking for uintXX_t types... " >&6; }
28092 if ${ac_cv_have_uintxx_t+:} false; then :
28093   $as_echo_n "(cached) " >&6
28094 else
28095
28096           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28097 /* end confdefs.h.  */
28098
28099                  #include <sys/types.h>
28100
28101 int
28102 main ()
28103 {
28104
28105                  uint8_t a; uint16_t b;
28106                  uint32_t c; a = b = c = 1;
28107
28108   ;
28109   return 0;
28110 }
28111 _ACEOF
28112 if ac_fn_c_try_compile "$LINENO"; then :
28113
28114                 ac_cv_have_uintxx_t="yes"
28115
28116 else
28117
28118                 ac_cv_have_uintxx_t="no"
28119
28120
28121 fi
28122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28123
28124
28125 fi
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_uintxx_t" >&5
28127 $as_echo "$ac_cv_have_uintxx_t" >&6; }
28128    if test "x$ac_cv_have_uintxx_t" = "xyes" ; then
28129       $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28130
28131    fi
28132 fi
28133
28134 if (test -z "$have_u_int64_t" || test -z "$have_int64_t" && \
28135     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28136 then
28137    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int64_t and u_int64_t types in sys/bitypes.h" >&5
28138 $as_echo_n "checking for int64_t and u_int64_t types in sys/bitypes.h... " >&6; }
28139    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28140 /* end confdefs.h.  */
28141
28142           #include <sys/bitypes.h>
28143
28144 int
28145 main ()
28146 {
28147
28148           int64_t a; u_int64_t b;
28149           a = b = 1;
28150
28151   ;
28152   return 0;
28153 }
28154 _ACEOF
28155 if ac_fn_c_try_compile "$LINENO"; then :
28156
28157           $as_echo "#define HAVE_U_INT64_T 1" >>confdefs.h
28158
28159           $as_echo "#define HAVE_INT64_T 1" >>confdefs.h
28160
28161           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28162 $as_echo "yes" >&6; }
28163
28164 else
28165
28166           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28167 $as_echo "no" >&6; }
28168
28169
28170 fi
28171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28172 fi
28173
28174 if (test -z "$have_uintxx_t" && \
28175     test "x$ac_cv_header_sys_bitypes_h" = "xyes")
28176 then
28177    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uintXX_t types in sys/bitypes.h" >&5
28178 $as_echo_n "checking for uintXX_t types in sys/bitypes.h... " >&6; }
28179    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28180 /* end confdefs.h.  */
28181
28182           #include <sys/bitypes.h>
28183
28184 int
28185 main ()
28186 {
28187
28188           uint8_t a; uint16_t b;
28189           uint32_t c; a = b = c = 1;
28190
28191   ;
28192   return 0;
28193 }
28194 _ACEOF
28195 if ac_fn_c_try_compile "$LINENO"; then :
28196
28197           $as_echo "#define HAVE_UINTXX_T 1" >>confdefs.h
28198
28199           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28200 $as_echo "yes" >&6; }
28201
28202 else
28203
28204           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28205 $as_echo "no" >&6; }
28206
28207
28208 fi
28209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28210 fi
28211
28212 for ac_func in \
28213    fork \
28214    getcwd \
28215    gethostname \
28216    getpid \
28217    gettimeofday \
28218    setpgid \
28219    setpgrp \
28220    setsid \
28221    signal \
28222    strerror \
28223    strncmp \
28224    strncpy \
28225    vfprintf \
28226
28227 do :
28228   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28231   cat >>confdefs.h <<_ACEOF
28232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28233 _ACEOF
28234
28235 else
28236   echo 'configure: cannot find needed function.'; exit 1
28237
28238 fi
28239 done
28240
28241
28242 ac_fn_c_check_decl "$LINENO" "F_CLOSEM" "ac_cv_have_decl_F_CLOSEM" "#include <fcntl.h>
28243
28244 "
28245 if test "x$ac_cv_have_decl_F_CLOSEM" = xyes; then :
28246
28247 $as_echo "#define HAVE_FCNTL_F_CLOSEM 1" >>confdefs.h
28248
28249 fi
28250
28251
28252 ac_fn_c_check_decl "$LINENO" "F_SETLK" "ac_cv_have_decl_F_SETLK" "#include <fcntl.h>
28253
28254 "
28255 if test "x$ac_cv_have_decl_F_SETLK" = xyes; then :
28256
28257 $as_echo "#define HAVE_FCNTL_LOCK 1" >>confdefs.h
28258
28259 fi
28260
28261
28262 ac_fn_c_check_func "$LINENO" "closefrom" "ac_cv_func_closefrom"
28263 if test "x$ac_cv_func_closefrom" = xyes; then :
28264
28265 $as_echo "#define HAVE_CLOSEFROM 1" >>confdefs.h
28266
28267 fi
28268
28269 for ac_func in getpagesize
28270 do :
28271   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
28272 if test "x$ac_cv_func_getpagesize" = xyes; then :
28273   cat >>confdefs.h <<_ACEOF
28274 #define HAVE_GETPAGESIZE 1
28275 _ACEOF
28276
28277 $as_echo "#define HAVE_GETPAGESIZE 1" >>confdefs.h
28278
28279 fi
28280 done
28281
28282 for ac_func in malloc_trim
28283 do :
28284   ac_fn_c_check_func "$LINENO" "malloc_trim" "ac_cv_func_malloc_trim"
28285 if test "x$ac_cv_func_malloc_trim" = xyes; then :
28286   cat >>confdefs.h <<_ACEOF
28287 #define HAVE_MALLOC_TRIM 1
28288 _ACEOF
28289
28290 $as_echo "#define HAVE_MALLOC_TRIM 1" >>confdefs.h
28291
28292 fi
28293 done
28294
28295
28296 for ac_func in fchdir
28297 do :
28298   ac_fn_c_check_func "$LINENO" "fchdir" "ac_cv_func_fchdir"
28299 if test "x$ac_cv_func_fchdir" = xyes; then :
28300   cat >>confdefs.h <<_ACEOF
28301 #define HAVE_FCHDIR 1
28302 _ACEOF
28303  $as_echo "#define HAVE_FCHDIR 1" >>confdefs.h
28304
28305 fi
28306 done
28307
28308 for ac_func in strtoll
28309 do :
28310   ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll"
28311 if test "x$ac_cv_func_strtoll" = xyes; then :
28312   cat >>confdefs.h <<_ACEOF
28313 #define HAVE_STRTOLL 1
28314 _ACEOF
28315  $as_echo "#define HAVE_STRTOLL 1" >>confdefs.h
28316
28317 fi
28318 done
28319
28320 for ac_func in posix_fadvise
28321 do :
28322   ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
28323 if test "x$ac_cv_func_posix_fadvise" = xyes; then :
28324   cat >>confdefs.h <<_ACEOF
28325 #define HAVE_POSIX_FADVISE 1
28326 _ACEOF
28327
28328 fi
28329 done
28330
28331 for ac_func in posix_fallocate
28332 do :
28333   ac_fn_c_check_func "$LINENO" "posix_fallocate" "ac_cv_func_posix_fallocate"
28334 if test "x$ac_cv_func_posix_fallocate" = xyes; then :
28335   cat >>confdefs.h <<_ACEOF
28336 #define HAVE_POSIX_FALLOCATE 1
28337 _ACEOF
28338
28339 fi
28340 done
28341
28342 for ac_func in fdatasync
28343 do :
28344   ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
28345 if test "x$ac_cv_func_fdatasync" = xyes; then :
28346   cat >>confdefs.h <<_ACEOF
28347 #define HAVE_FDATASYNC 1
28348 _ACEOF
28349
28350 fi
28351 done
28352
28353
28354 for ac_func in chflags
28355 do :
28356   ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
28357 if test "x$ac_cv_func_chflags" = xyes; then :
28358   cat >>confdefs.h <<_ACEOF
28359 #define HAVE_CHFLAGS 1
28360 _ACEOF
28361
28362 fi
28363 done
28364
28365
28366 for ac_func in snprintf vsnprintf gethostid fseeko
28367 do :
28368   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28369 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28370 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28371   cat >>confdefs.h <<_ACEOF
28372 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28373 _ACEOF
28374
28375 fi
28376 done
28377
28378
28379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
28380 $as_echo_n "checking for va_copy... " >&6; }
28381 if ${ba_cv_va_copy+:} false; then :
28382   $as_echo_n "(cached) " >&6
28383 else
28384
28385        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28386 /* end confdefs.h.  */
28387
28388               #include <stdarg.h>
28389               void use_va_copy(va_list args){va_list args2; va_copy(args2,args); va_end(args2);}
28390               void call_use_va_copy(int junk,...){va_list args; va_start(args,junk); use_va_copy(args); va_end(args);}
28391
28392 int
28393 main ()
28394 {
28395
28396               call_use_va_copy(1,2,3)
28397
28398   ;
28399   return 0;
28400 }
28401 _ACEOF
28402 if ac_fn_c_try_link "$LINENO"; then :
28403
28404               ba_cv_va_copy=yes
28405
28406 else
28407
28408               ba_cv_va_copy=no
28409
28410
28411 fi
28412 rm -f core conftest.err conftest.$ac_objext \
28413     conftest$ac_exeext conftest.$ac_ext
28414
28415
28416 fi
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ba_cv_va_copy" >&5
28418 $as_echo "$ba_cv_va_copy" >&6; }
28419 test $ba_cv_va_copy = yes &&
28420 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
28421
28422
28423 for ac_func in localtime_r readdir_r strerror_r gethostbyname_r
28424 do :
28425   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28426 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28427 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28428   cat >>confdefs.h <<_ACEOF
28429 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28430 _ACEOF
28431
28432 fi
28433 done
28434
28435
28436 # If resolver functions are not in libc check for -lnsl or -lresolv.
28437 ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
28438 if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
28439   { $as_echo "$as_me:${as_lineno-$LINENO}: result: using libc's resolver" >&5
28440 $as_echo "using libc's resolver" >&6; }
28441 else
28442   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lnsl" >&5
28443 $as_echo_n "checking for gethostbyname_r in -lnsl... " >&6; }
28444 if ${ac_cv_lib_nsl_gethostbyname_r+:} false; then :
28445   $as_echo_n "(cached) " >&6
28446 else
28447   ac_check_lib_save_LIBS=$LIBS
28448 LIBS="-lnsl  $LIBS"
28449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28450 /* end confdefs.h.  */
28451
28452 /* Override any GCC internal prototype to avoid an error.
28453    Use char because int might match the return type of a GCC
28454    builtin and then its argument prototype would still apply.  */
28455 #ifdef __cplusplus
28456 extern "C"
28457 #endif
28458 char gethostbyname_r ();
28459 int
28460 main ()
28461 {
28462 return gethostbyname_r ();
28463   ;
28464   return 0;
28465 }
28466 _ACEOF
28467 if ac_fn_c_try_link "$LINENO"; then :
28468   ac_cv_lib_nsl_gethostbyname_r=yes
28469 else
28470   ac_cv_lib_nsl_gethostbyname_r=no
28471 fi
28472 rm -f core conftest.err conftest.$ac_objext \
28473     conftest$ac_exeext conftest.$ac_ext
28474 LIBS=$ac_check_lib_save_LIBS
28475 fi
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname_r" >&5
28477 $as_echo "$ac_cv_lib_nsl_gethostbyname_r" >&6; }
28478 if test "x$ac_cv_lib_nsl_gethostbyname_r" = xyes; then :
28479   cat >>confdefs.h <<_ACEOF
28480 #define HAVE_LIBNSL 1
28481 _ACEOF
28482
28483   LIBS="-lnsl $LIBS"
28484
28485 fi
28486
28487     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname_r in -lresolv" >&5
28488 $as_echo_n "checking for gethostbyname_r in -lresolv... " >&6; }
28489 if ${ac_cv_lib_resolv_gethostbyname_r+:} false; then :
28490   $as_echo_n "(cached) " >&6
28491 else
28492   ac_check_lib_save_LIBS=$LIBS
28493 LIBS="-lresolv  $LIBS"
28494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28495 /* end confdefs.h.  */
28496
28497 /* Override any GCC internal prototype to avoid an error.
28498    Use char because int might match the return type of a GCC
28499    builtin and then its argument prototype would still apply.  */
28500 #ifdef __cplusplus
28501 extern "C"
28502 #endif
28503 char gethostbyname_r ();
28504 int
28505 main ()
28506 {
28507 return gethostbyname_r ();
28508   ;
28509   return 0;
28510 }
28511 _ACEOF
28512 if ac_fn_c_try_link "$LINENO"; then :
28513   ac_cv_lib_resolv_gethostbyname_r=yes
28514 else
28515   ac_cv_lib_resolv_gethostbyname_r=no
28516 fi
28517 rm -f core conftest.err conftest.$ac_objext \
28518     conftest$ac_exeext conftest.$ac_ext
28519 LIBS=$ac_check_lib_save_LIBS
28520 fi
28521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_gethostbyname_r" >&5
28522 $as_echo "$ac_cv_lib_resolv_gethostbyname_r" >&6; }
28523 if test "x$ac_cv_lib_resolv_gethostbyname_r" = xyes; then :
28524   cat >>confdefs.h <<_ACEOF
28525 #define HAVE_LIBRESOLV 1
28526 _ACEOF
28527
28528   LIBS="-lresolv $LIBS"
28529
28530 fi
28531
28532 fi
28533
28534
28535 for ac_func in inet_pton
28536 do :
28537   ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
28538 if test "x$ac_cv_func_inet_pton" = xyes; then :
28539   cat >>confdefs.h <<_ACEOF
28540 #define HAVE_INET_PTON 1
28541 _ACEOF
28542  $as_echo "#define HAVE_INET_PTON 1" >>confdefs.h
28543
28544 fi
28545 done
28546
28547 for ac_func in inet_ntop
28548 do :
28549   ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
28550 if test "x$ac_cv_func_inet_ntop" = xyes; then :
28551   cat >>confdefs.h <<_ACEOF
28552 #define HAVE_INET_NTOP 1
28553 _ACEOF
28554  $as_echo "#define HAVE_INET_NTOP 1" >>confdefs.h
28555
28556 fi
28557 done
28558
28559 for ac_func in gethostbyname2
28560 do :
28561   ac_fn_c_check_func "$LINENO" "gethostbyname2" "ac_cv_func_gethostbyname2"
28562 if test "x$ac_cv_func_gethostbyname2" = xyes; then :
28563   cat >>confdefs.h <<_ACEOF
28564 #define HAVE_GETHOSTBYNAME2 1
28565 _ACEOF
28566  $as_echo "#define HAVE_GETHOSTBYNAME2 1" >>confdefs.h
28567
28568 fi
28569 done
28570
28571 for ac_func in getnameinfo
28572 do :
28573   ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
28574 if test "x$ac_cv_func_getnameinfo" = xyes; then :
28575   cat >>confdefs.h <<_ACEOF
28576 #define HAVE_GETNAMEINFO 1
28577 _ACEOF
28578  $as_echo "#define HAVE_GETNAMEINFO 1" >>confdefs.h
28579
28580 fi
28581 done
28582
28583
28584
28585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr has a sa_len field" >&5
28586 $as_echo_n "checking for struct sockaddr has a sa_len field... " >&6; }
28587 if ${ac_cv_struct_sockaddr_sa_len+:} false; then :
28588   $as_echo_n "(cached) " >&6
28589 else
28590
28591        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28592 /* end confdefs.h.  */
28593
28594               #include <sys/socket.h>
28595
28596 int
28597 main ()
28598 {
28599
28600               struct sockaddr s; s.sa_len;
28601
28602   ;
28603   return 0;
28604 }
28605 _ACEOF
28606 if ac_fn_c_try_compile "$LINENO"; then :
28607
28608              ac_cv_struct_sockaddr_sa_len=yes
28609
28610 else
28611   ac_cv_struct_sockaddr_sa_len=no
28612
28613
28614 fi
28615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28616
28617
28618 fi
28619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_sockaddr_sa_len" >&5
28620 $as_echo "$ac_cv_struct_sockaddr_sa_len" >&6; }
28621
28622 if test $ac_cv_struct_sockaddr_sa_len = yes; then
28623
28624 $as_echo "#define HAVE_SA_LEN 1" >>confdefs.h
28625
28626 fi
28627
28628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working getaddrinfo" >&5
28629 $as_echo_n "checking for working getaddrinfo... " >&6; }
28630 if ${ac_cv_working_getaddrinfo+:} false; then :
28631   $as_echo_n "(cached) " >&6
28632 else
28633
28634        if test "$cross_compiling" = yes; then :
28635
28636               ac_cv_working_getaddrinfo="yes"
28637
28638
28639 else
28640   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28641 /* end confdefs.h.  */
28642
28643               #include <netdb.h>
28644               #include <string.h>
28645               #include <sys/types.h>
28646               #include <sys/socket.h>
28647
28648               void main(void) {
28649                   struct addrinfo hints, *ai;
28650                   int error;
28651
28652                   memset(&hints, 0, sizeof(hints));
28653                   hints.ai_family = AF_UNSPEC;
28654                   hints.ai_socktype = SOCK_STREAM;
28655                   error = getaddrinfo("127.0.0.1", NULL, &hints, &ai);
28656                   if (error) {
28657                       exit(1);
28658                   }
28659                   if (ai->ai_addr->sa_family != AF_INET) {
28660                       exit(1);
28661                   }
28662                   exit(0);
28663               }
28664
28665 _ACEOF
28666 if ac_fn_c_try_run "$LINENO"; then :
28667
28668               ac_cv_working_getaddrinfo="yes"
28669
28670 else
28671
28672               ac_cv_working_getaddrinfo="no"
28673
28674 fi
28675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28676   conftest.$ac_objext conftest.beam conftest.$ac_ext
28677 fi
28678
28679
28680
28681 fi
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_getaddrinfo" >&5
28683 $as_echo "$ac_cv_working_getaddrinfo" >&6; }
28684 ac_fn_c_check_func "$LINENO" "gai_strerror" "ac_cv_func_gai_strerror"
28685 if test "x$ac_cv_func_gai_strerror" = xyes; then :
28686
28687 $as_echo "#define HAVE_GAI_STRERROR 1" >>confdefs.h
28688
28689 fi
28690
28691
28692 if test "$ac_cv_working_getaddrinfo" = "yes"; then
28693   if test "$ac_cv_func_gai_strerror" != "yes"; then
28694     ac_cv_working_getaddrinfo="no"
28695   else
28696
28697 $as_echo "#define HAVE_GETADDRINFO 1" >>confdefs.h
28698
28699   fi
28700 fi
28701
28702 for ac_func in strftime
28703 do :
28704   ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
28705 if test "x$ac_cv_func_strftime" = xyes; then :
28706   cat >>confdefs.h <<_ACEOF
28707 #define HAVE_STRFTIME 1
28708 _ACEOF
28709
28710 else
28711   # strftime is in -lintl on SCO UNIX.
28712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
28713 $as_echo_n "checking for strftime in -lintl... " >&6; }
28714 if ${ac_cv_lib_intl_strftime+:} false; then :
28715   $as_echo_n "(cached) " >&6
28716 else
28717   ac_check_lib_save_LIBS=$LIBS
28718 LIBS="-lintl  $LIBS"
28719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28720 /* end confdefs.h.  */
28721
28722 /* Override any GCC internal prototype to avoid an error.
28723    Use char because int might match the return type of a GCC
28724    builtin and then its argument prototype would still apply.  */
28725 #ifdef __cplusplus
28726 extern "C"
28727 #endif
28728 char strftime ();
28729 int
28730 main ()
28731 {
28732 return strftime ();
28733   ;
28734   return 0;
28735 }
28736 _ACEOF
28737 if ac_fn_c_try_link "$LINENO"; then :
28738   ac_cv_lib_intl_strftime=yes
28739 else
28740   ac_cv_lib_intl_strftime=no
28741 fi
28742 rm -f core conftest.err conftest.$ac_objext \
28743     conftest$ac_exeext conftest.$ac_ext
28744 LIBS=$ac_check_lib_save_LIBS
28745 fi
28746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
28747 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
28748 if test "x$ac_cv_lib_intl_strftime" = xyes; then :
28749   $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
28750
28751 LIBS="-lintl $LIBS"
28752 fi
28753
28754 fi
28755 done
28756
28757 for ac_func in vprintf
28758 do :
28759   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
28760 if test "x$ac_cv_func_vprintf" = xyes; then :
28761   cat >>confdefs.h <<_ACEOF
28762 #define HAVE_VPRINTF 1
28763 _ACEOF
28764
28765 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
28766 if test "x$ac_cv_func__doprnt" = xyes; then :
28767
28768 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
28769
28770 fi
28771
28772 fi
28773 done
28774
28775
28776 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
28777 # for constant arguments.  Useless!
28778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
28779 $as_echo_n "checking for working alloca.h... " >&6; }
28780 if ${ac_cv_working_alloca_h+:} false; then :
28781   $as_echo_n "(cached) " >&6
28782 else
28783   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28784 /* end confdefs.h.  */
28785 #include <alloca.h>
28786 int
28787 main ()
28788 {
28789 char *p = (char *) alloca (2 * sizeof (int));
28790                           if (p) return 0;
28791   ;
28792   return 0;
28793 }
28794 _ACEOF
28795 if ac_fn_c_try_link "$LINENO"; then :
28796   ac_cv_working_alloca_h=yes
28797 else
28798   ac_cv_working_alloca_h=no
28799 fi
28800 rm -f core conftest.err conftest.$ac_objext \
28801     conftest$ac_exeext conftest.$ac_ext
28802 fi
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
28804 $as_echo "$ac_cv_working_alloca_h" >&6; }
28805 if test $ac_cv_working_alloca_h = yes; then
28806
28807 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
28808
28809 fi
28810
28811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
28812 $as_echo_n "checking for alloca... " >&6; }
28813 if ${ac_cv_func_alloca_works+:} false; then :
28814   $as_echo_n "(cached) " >&6
28815 else
28816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28817 /* end confdefs.h.  */
28818 #ifdef __GNUC__
28819 # define alloca __builtin_alloca
28820 #else
28821 # ifdef _MSC_VER
28822 #  include <malloc.h>
28823 #  define alloca _alloca
28824 # else
28825 #  ifdef HAVE_ALLOCA_H
28826 #   include <alloca.h>
28827 #  else
28828 #   ifdef _AIX
28829  #pragma alloca
28830 #   else
28831 #    ifndef alloca /* predefined by HP cc +Olibcalls */
28832 void *alloca (size_t);
28833 #    endif
28834 #   endif
28835 #  endif
28836 # endif
28837 #endif
28838
28839 int
28840 main ()
28841 {
28842 char *p = (char *) alloca (1);
28843                                     if (p) return 0;
28844   ;
28845   return 0;
28846 }
28847 _ACEOF
28848 if ac_fn_c_try_link "$LINENO"; then :
28849   ac_cv_func_alloca_works=yes
28850 else
28851   ac_cv_func_alloca_works=no
28852 fi
28853 rm -f core conftest.err conftest.$ac_objext \
28854     conftest$ac_exeext conftest.$ac_ext
28855 fi
28856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
28857 $as_echo "$ac_cv_func_alloca_works" >&6; }
28858
28859 if test $ac_cv_func_alloca_works = yes; then
28860
28861 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
28862
28863 else
28864   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
28865 # that cause trouble.  Some versions do not even contain alloca or
28866 # contain a buggy version.  If you still want to use their alloca,
28867 # use ar to extract alloca.o from them instead of compiling alloca.c.
28868
28869 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
28870
28871 $as_echo "#define C_ALLOCA 1" >>confdefs.h
28872
28873
28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
28875 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
28876 if ${ac_cv_os_cray+:} false; then :
28877   $as_echo_n "(cached) " >&6
28878 else
28879   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28880 /* end confdefs.h.  */
28881 #if defined CRAY && ! defined CRAY2
28882 webecray
28883 #else
28884 wenotbecray
28885 #endif
28886
28887 _ACEOF
28888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28889   $EGREP "webecray" >/dev/null 2>&1; then :
28890   ac_cv_os_cray=yes
28891 else
28892   ac_cv_os_cray=no
28893 fi
28894 rm -f conftest*
28895
28896 fi
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
28898 $as_echo "$ac_cv_os_cray" >&6; }
28899 if test $ac_cv_os_cray = yes; then
28900   for ac_func in _getb67 GETB67 getb67; do
28901     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28902 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
28903 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
28904
28905 cat >>confdefs.h <<_ACEOF
28906 #define CRAY_STACKSEG_END $ac_func
28907 _ACEOF
28908
28909     break
28910 fi
28911
28912   done
28913 fi
28914
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
28916 $as_echo_n "checking stack direction for C alloca... " >&6; }
28917 if ${ac_cv_c_stack_direction+:} false; then :
28918   $as_echo_n "(cached) " >&6
28919 else
28920   if test "$cross_compiling" = yes; then :
28921   ac_cv_c_stack_direction=0
28922 else
28923   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28924 /* end confdefs.h.  */
28925 $ac_includes_default
28926 int
28927 find_stack_direction (int *addr, int depth)
28928 {
28929   int dir, dummy = 0;
28930   if (! addr)
28931     addr = &dummy;
28932   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
28933   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
28934   return dir + dummy;
28935 }
28936
28937 int
28938 main (int argc, char **argv)
28939 {
28940   return find_stack_direction (0, argc + !argv + 20) < 0;
28941 }
28942 _ACEOF
28943 if ac_fn_c_try_run "$LINENO"; then :
28944   ac_cv_c_stack_direction=1
28945 else
28946   ac_cv_c_stack_direction=-1
28947 fi
28948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28949   conftest.$ac_objext conftest.beam conftest.$ac_ext
28950 fi
28951
28952 fi
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
28954 $as_echo "$ac_cv_c_stack_direction" >&6; }
28955 cat >>confdefs.h <<_ACEOF
28956 #define STACK_DIRECTION $ac_cv_c_stack_direction
28957 _ACEOF
28958
28959
28960 fi
28961
28962 # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4,
28963 # -lseq on Dynix/PTX, -lgen on Unixware.
28964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5
28965 $as_echo_n "checking for library containing getmntent... " >&6; }
28966 if ${ac_cv_search_getmntent+:} false; then :
28967   $as_echo_n "(cached) " >&6
28968 else
28969   ac_func_search_save_LIBS=$LIBS
28970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28971 /* end confdefs.h.  */
28972
28973 /* Override any GCC internal prototype to avoid an error.
28974    Use char because int might match the return type of a GCC
28975    builtin and then its argument prototype would still apply.  */
28976 #ifdef __cplusplus
28977 extern "C"
28978 #endif
28979 char getmntent ();
28980 int
28981 main ()
28982 {
28983 return getmntent ();
28984   ;
28985   return 0;
28986 }
28987 _ACEOF
28988 for ac_lib in '' sun seq gen; do
28989   if test -z "$ac_lib"; then
28990     ac_res="none required"
28991   else
28992     ac_res=-l$ac_lib
28993     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
28994   fi
28995   if ac_fn_c_try_link "$LINENO"; then :
28996   ac_cv_search_getmntent=$ac_res
28997 fi
28998 rm -f core conftest.err conftest.$ac_objext \
28999     conftest$ac_exeext
29000   if ${ac_cv_search_getmntent+:} false; then :
29001   break
29002 fi
29003 done
29004 if ${ac_cv_search_getmntent+:} false; then :
29005
29006 else
29007   ac_cv_search_getmntent=no
29008 fi
29009 rm conftest.$ac_ext
29010 LIBS=$ac_func_search_save_LIBS
29011 fi
29012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5
29013 $as_echo "$ac_cv_search_getmntent" >&6; }
29014 ac_res=$ac_cv_search_getmntent
29015 if test "$ac_res" != no; then :
29016   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
29017   ac_cv_func_getmntent=yes
29018
29019 $as_echo "#define HAVE_GETMNTENT 1" >>confdefs.h
29020
29021 else
29022   ac_cv_func_getmntent=no
29023 fi
29024
29025
29026 for ac_func in getmntinfo
29027 do :
29028   ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
29029 if test "x$ac_cv_func_getmntinfo" = xyes; then :
29030   cat >>confdefs.h <<_ACEOF
29031 #define HAVE_GETMNTINFO 1
29032 _ACEOF
29033  $as_echo "#define HAVE_GETMNTINFO 1" >>confdefs.h
29034
29035 fi
29036 done
29037
29038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
29039 $as_echo_n "checking whether closedir returns void... " >&6; }
29040 if ${ac_cv_func_closedir_void+:} false; then :
29041   $as_echo_n "(cached) " >&6
29042 else
29043   if test "$cross_compiling" = yes; then :
29044   ac_cv_func_closedir_void=yes
29045 else
29046   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29047 /* end confdefs.h.  */
29048 $ac_includes_default
29049 #include <$ac_header_dirent>
29050 #ifndef __cplusplus
29051 int closedir ();
29052 #endif
29053
29054 int
29055 main ()
29056 {
29057 return closedir (opendir (".")) != 0;
29058   ;
29059   return 0;
29060 }
29061 _ACEOF
29062 if ac_fn_c_try_run "$LINENO"; then :
29063   ac_cv_func_closedir_void=no
29064 else
29065   ac_cv_func_closedir_void=yes
29066 fi
29067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29068   conftest.$ac_objext conftest.beam conftest.$ac_ext
29069 fi
29070
29071 fi
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
29073 $as_echo "$ac_cv_func_closedir_void" >&6; }
29074 if test $ac_cv_func_closedir_void = yes; then
29075
29076 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
29077
29078 fi
29079
29080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5
29081 $as_echo_n "checking whether setpgrp takes no argument... " >&6; }
29082 if ${ac_cv_func_setpgrp_void+:} false; then :
29083   $as_echo_n "(cached) " >&6
29084 else
29085   if test "$cross_compiling" = yes; then :
29086   as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5
29087 else
29088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29089 /* end confdefs.h.  */
29090 $ac_includes_default
29091 int
29092 main ()
29093 {
29094 /* If this system has a BSD-style setpgrp which takes arguments,
29095   setpgrp(1, 1) will fail with ESRCH and return -1, in that case
29096   exit successfully. */
29097   return setpgrp (1,1) != -1;
29098   ;
29099   return 0;
29100 }
29101 _ACEOF
29102 if ac_fn_c_try_run "$LINENO"; then :
29103   ac_cv_func_setpgrp_void=no
29104 else
29105   ac_cv_func_setpgrp_void=yes
29106 fi
29107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29108   conftest.$ac_objext conftest.beam conftest.$ac_ext
29109 fi
29110
29111 fi
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5
29113 $as_echo "$ac_cv_func_setpgrp_void" >&6; }
29114 if test $ac_cv_func_setpgrp_void = yes; then
29115
29116 $as_echo "#define SETPGRP_VOID 1" >>confdefs.h
29117
29118 fi
29119             # AC_FUNC_FNMATCH    dnl use local version
29120
29121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
29122 $as_echo_n "checking for gettext in -lintl... " >&6; }
29123 if ${ac_cv_lib_intl_gettext+:} false; then :
29124   $as_echo_n "(cached) " >&6
29125 else
29126   ac_check_lib_save_LIBS=$LIBS
29127 LIBS="-lintl  $LIBS"
29128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29129 /* end confdefs.h.  */
29130
29131 /* Override any GCC internal prototype to avoid an error.
29132    Use char because int might match the return type of a GCC
29133    builtin and then its argument prototype would still apply.  */
29134 #ifdef __cplusplus
29135 extern "C"
29136 #endif
29137 char gettext ();
29138 int
29139 main ()
29140 {
29141 return gettext ();
29142   ;
29143   return 0;
29144 }
29145 _ACEOF
29146 if ac_fn_c_try_link "$LINENO"; then :
29147   ac_cv_lib_intl_gettext=yes
29148 else
29149   ac_cv_lib_intl_gettext=no
29150 fi
29151 rm -f core conftest.err conftest.$ac_objext \
29152     conftest$ac_exeext conftest.$ac_ext
29153 LIBS=$ac_check_lib_save_LIBS
29154 fi
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
29156 $as_echo "$ac_cv_lib_intl_gettext" >&6; }
29157 if test "x$ac_cv_lib_intl_gettext" = xyes; then :
29158   LIBS="$LIBS -lintl"
29159 fi
29160
29161
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpwnam in -lsun" >&5
29163 $as_echo_n "checking for getpwnam in -lsun... " >&6; }
29164 if ${ac_cv_lib_sun_getpwnam+:} false; then :
29165   $as_echo_n "(cached) " >&6
29166 else
29167   ac_check_lib_save_LIBS=$LIBS
29168 LIBS="-lsun  $LIBS"
29169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29170 /* end confdefs.h.  */
29171
29172 /* Override any GCC internal prototype to avoid an error.
29173    Use char because int might match the return type of a GCC
29174    builtin and then its argument prototype would still apply.  */
29175 #ifdef __cplusplus
29176 extern "C"
29177 #endif
29178 char getpwnam ();
29179 int
29180 main ()
29181 {
29182 return getpwnam ();
29183   ;
29184   return 0;
29185 }
29186 _ACEOF
29187 if ac_fn_c_try_link "$LINENO"; then :
29188   ac_cv_lib_sun_getpwnam=yes
29189 else
29190   ac_cv_lib_sun_getpwnam=no
29191 fi
29192 rm -f core conftest.err conftest.$ac_objext \
29193     conftest$ac_exeext conftest.$ac_ext
29194 LIBS=$ac_check_lib_save_LIBS
29195 fi
29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getpwnam" >&5
29197 $as_echo "$ac_cv_lib_sun_getpwnam" >&6; }
29198 if test "x$ac_cv_lib_sun_getpwnam" = xyes; then :
29199   cat >>confdefs.h <<_ACEOF
29200 #define HAVE_LIBSUN 1
29201 _ACEOF
29202
29203   LIBS="-lsun $LIBS"
29204
29205 fi
29206
29207
29208 for ac_header in zlib.h
29209 do :
29210   ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
29211 if test "x$ac_cv_header_zlib_h" = xyes; then :
29212   cat >>confdefs.h <<_ACEOF
29213 #define HAVE_ZLIB_H 1
29214 _ACEOF
29215
29216 fi
29217
29218 done
29219
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
29221 $as_echo_n "checking for deflate in -lz... " >&6; }
29222 if ${ac_cv_lib_z_deflate+:} false; then :
29223   $as_echo_n "(cached) " >&6
29224 else
29225   ac_check_lib_save_LIBS=$LIBS
29226 LIBS="-lz  $LIBS"
29227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29228 /* end confdefs.h.  */
29229
29230 /* Override any GCC internal prototype to avoid an error.
29231    Use char because int might match the return type of a GCC
29232    builtin and then its argument prototype would still apply.  */
29233 #ifdef __cplusplus
29234 extern "C"
29235 #endif
29236 char deflate ();
29237 int
29238 main ()
29239 {
29240 return deflate ();
29241   ;
29242   return 0;
29243 }
29244 _ACEOF
29245 if ac_fn_c_try_link "$LINENO"; then :
29246   ac_cv_lib_z_deflate=yes
29247 else
29248   ac_cv_lib_z_deflate=no
29249 fi
29250 rm -f core conftest.err conftest.$ac_objext \
29251     conftest$ac_exeext conftest.$ac_ext
29252 LIBS=$ac_check_lib_save_LIBS
29253 fi
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
29255 $as_echo "$ac_cv_lib_z_deflate" >&6; }
29256 if test "x$ac_cv_lib_z_deflate" = xyes; then :
29257   ZLIBS="-lz"
29258 fi
29259
29260 have_zlib=no
29261 if test x$ZLIBS = x-lz; then
29262    $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
29263
29264    have_zlib=yes
29265 fi
29266
29267
29268 AFS_CFLAGS=""
29269 AFS_LIBS=""
29270 support_afs=auto
29271 # Check whether --enable-afs was given.
29272 if test "${enable_afs+set}" = set; then :
29273   enableval=$enable_afs;
29274        if test x$enableval = xyes; then
29275           support_afs=yes
29276        elif test x$enableval = xno; then
29277           support_afs=no
29278        fi
29279
29280
29281 fi
29282
29283
29284 have_afs=no
29285 if test x$support_afs = xyes -o x$support_afs = xauto; then
29286
29287 # Check whether --with-afsdir was given.
29288 if test "${with_afsdir+set}" = set; then :
29289   withval=$with_afsdir; with_afsdir=$withval
29290
29291 fi
29292
29293
29294             if test x$with_afsdir = x; then
29295       for root in /usr /usr/local; do
29296          if test -d ${root}/include/afs/ ; then
29297             with_afsdir=${root}
29298             break
29299          fi
29300          if test -d ${root}/include/openafs/afs/ ; then
29301             with_afsdir=${root}
29302             break
29303          fi
29304       done
29305    fi
29306
29307    if test -d ${with_afsdir}/include/afs/ ; then
29308       AFS_CFLAGS="-I${with_afsdir}/include"
29309    else
29310       if test -d ${with_afsdir}/include/openafs/afs/ ; then
29311          AFS_CFLAGS="-I${with_afsdir}/include/openafs"
29312       fi
29313    fi
29314
29315    saved_CFLAGS="${CFLAGS}"
29316    saved_CPPFLAGS="${CPPFLAGS}"
29317    CFLAGS="${AFS_CFLAGS} ${saved_CFLAGS}"
29318    CPPFLAGS="${AFS_CFLAGS} ${saved_CPPFLAGS}"
29319
29320    for ac_header in afs/afsint.h
29321 do :
29322   ac_fn_c_check_header_mongrel "$LINENO" "afs/afsint.h" "ac_cv_header_afs_afsint_h" "$ac_includes_default"
29323 if test "x$ac_cv_header_afs_afsint_h" = xyes; then :
29324   cat >>confdefs.h <<_ACEOF
29325 #define HAVE_AFS_AFSINT_H 1
29326 _ACEOF
29327
29328 fi
29329
29330 done
29331
29332    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29333 /* end confdefs.h.  */
29334
29335           #include <afs/afsint.h>
29336           #include <afs/venus.h>
29337
29338 _ACEOF
29339 if ac_fn_c_try_cpp "$LINENO"; then :
29340
29341 $as_echo "#define HAVE_AFS_VENUS_H 1" >>confdefs.h
29342
29343
29344 fi
29345 rm -f conftest.err conftest.i conftest.$ac_ext
29346
29347    CFLAGS="${saved_CFLAGS}"
29348    CPPFLAGS="${saved_CPPFLAGS}"
29349
29350             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pioctl in AFS libsys" >&5
29351 $as_echo_n "checking for pioctl in AFS libsys... " >&6; }
29352    for dir in ${with_afsdir}/lib \
29353               ${with_afsdir}/lib/afs \
29354               ${with_afsdir}/lib/openafs \
29355               ${with_afsdir}/lib64 \
29356               ${with_afsdir}/lib64/afs \
29357               ${with_afsdir}/lib64/openafs
29358    do
29359       for arch_type in .a .so
29360       do
29361          A=`test -f ${dir}/libsys${arch_type} && nm ${dir}/libsys${arch_type} 2>/dev/null | grep pioctl`
29362          pkg=$?
29363          if test $pkg = 0; then
29364             have_afs=yes
29365             AFS_LIBS="-L${dir} -lsys -lrx -llwp ${dir}/util${arch_type}"
29366             break
29367          fi
29368       done
29369    done
29370
29371    if test $have_afs = yes; then
29372       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29373 $as_echo "yes" >&6; }
29374    else
29375       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29376 $as_echo "no" >&6; }
29377    fi
29378
29379    if test x$support_afs = xyes -a $have_afs != yes; then
29380       as_fn_error $? "afs support explicitly enabled but no supported afs implementation found,
29381   please either load the afs libraries or rerun configure without --enable-afs" "$LINENO" 5
29382    else
29383       if test $have_afs = yes; then
29384
29385 $as_echo "#define HAVE_AFS 1" >>confdefs.h
29386
29387
29388 $as_echo "#define HAVE_AFS_ACL 1" >>confdefs.h
29389
29390       fi
29391    fi
29392 fi
29393
29394
29395
29396
29397 # Check whether --enable-lzo was given.
29398 if test "${enable_lzo+set}" = set; then :
29399   enableval=$enable_lzo;
29400        if test x$enableval = xno; then
29401           support_lzo=no
29402        fi
29403
29404
29405 fi
29406
29407
29408 LZO_INC=
29409 LZO_LIBS=
29410 LZO_LDFLAGS=
29411
29412 have_lzo="no"
29413 if test x$support_lzo = xyes; then
29414
29415 # Check whether --with-lzo was given.
29416 if test "${with_lzo+set}" = set; then :
29417   withval=$with_lzo;
29418           case "$with_lzo" in
29419           no)
29420              :
29421              ;;
29422           yes|*)
29423              if test -f ${with_lzo}/include/lzo/lzoconf.h; then
29424                 LZO_INC="-I${with_lzo}/include"
29425                 LZO_LDFLAGS="-L${with_lzo}/lib"
29426                 with_lzo="${with_lzo}/include"
29427              else
29428                 with_lzo="/usr/include"
29429              fi
29430
29431              as_ac_Header=`$as_echo "ac_cv_header_${with_lzo}/lzo/lzoconf.h" | $as_tr_sh`
29432 ac_fn_c_check_header_mongrel "$LINENO" "${with_lzo}/lzo/lzoconf.h" "$as_ac_Header" "$ac_includes_default"
29433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29434
29435
29436 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29437
29438                     LZO_LIBS="${LZO_LDFLAGS} -llzo2"
29439                     have_lzo="yes"
29440
29441 else
29442
29443                     echo " "
29444                     echo "lzoconf.h not found. lzo turned off ..."
29445                     echo " "
29446
29447
29448 fi
29449
29450
29451              ;;
29452           esac
29453
29454 else
29455
29456          ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzoconf.h" "ac_cv_header_lzo_lzoconf_h" "$ac_includes_default"
29457 if test "x$ac_cv_header_lzo_lzoconf_h" = xyes; then :
29458
29459             ac_fn_c_check_header_mongrel "$LINENO" "lzo/lzo1x.h" "ac_cv_header_lzo_lzo1x_h" "$ac_includes_default"
29460 if test "x$ac_cv_header_lzo_lzo1x_h" = xyes; then :
29461
29462                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzo1x_1_compress in -llzo2" >&5
29463 $as_echo_n "checking for lzo1x_1_compress in -llzo2... " >&6; }
29464 if ${ac_cv_lib_lzo2_lzo1x_1_compress+:} false; then :
29465   $as_echo_n "(cached) " >&6
29466 else
29467   ac_check_lib_save_LIBS=$LIBS
29468 LIBS="-llzo2  $LIBS"
29469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29470 /* end confdefs.h.  */
29471
29472 /* Override any GCC internal prototype to avoid an error.
29473    Use char because int might match the return type of a GCC
29474    builtin and then its argument prototype would still apply.  */
29475 #ifdef __cplusplus
29476 extern "C"
29477 #endif
29478 char lzo1x_1_compress ();
29479 int
29480 main ()
29481 {
29482 return lzo1x_1_compress ();
29483   ;
29484   return 0;
29485 }
29486 _ACEOF
29487 if ac_fn_c_try_link "$LINENO"; then :
29488   ac_cv_lib_lzo2_lzo1x_1_compress=yes
29489 else
29490   ac_cv_lib_lzo2_lzo1x_1_compress=no
29491 fi
29492 rm -f core conftest.err conftest.$ac_objext \
29493     conftest$ac_exeext conftest.$ac_ext
29494 LIBS=$ac_check_lib_save_LIBS
29495 fi
29496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzo2_lzo1x_1_compress" >&5
29497 $as_echo "$ac_cv_lib_lzo2_lzo1x_1_compress" >&6; }
29498 if test "x$ac_cv_lib_lzo2_lzo1x_1_compress" = xyes; then :
29499
29500                  LZO_LIBS="-llzo2"
29501
29502 $as_echo "#define HAVE_LZO 1" >>confdefs.h
29503
29504                  have_lzo=yes
29505
29506 fi
29507
29508
29509 fi
29510
29511
29512
29513 fi
29514
29515
29516
29517 fi
29518
29519 fi
29520
29521
29522
29523
29524
29525 support_acl=auto
29526 # Check whether --enable-acl was given.
29527 if test "${enable_acl+set}" = set; then :
29528   enableval=$enable_acl;
29529        if test x$enableval = xyes; then
29530           support_acl=yes
29531        elif test x$enableval = xno; then
29532           support_acl=no
29533        fi
29534
29535
29536 fi
29537
29538
29539 have_acl=no
29540 have_extended_acl=no
29541 if test x$support_acl = xyes -o x$support_acl = xauto; then
29542    ac_fn_c_check_header_mongrel "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
29543 if test "x$ac_cv_header_sys_acl_h" = xyes; then :
29544
29545 $as_echo "#define HAVE_SYS_ACL_H 1" >>confdefs.h
29546
29547 fi
29548
29549
29550
29551             ac_fn_c_check_func "$LINENO" "acl_get_file" "ac_cv_func_acl_get_file"
29552 if test "x$ac_cv_func_acl_get_file" = xyes; then :
29553
29554           have_acl=yes
29555
29556
29557 fi
29558
29559
29560             if test $have_acl = no; then
29561       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lacl" >&5
29562 $as_echo_n "checking for acl_get_file in -lacl... " >&6; }
29563 if ${ac_cv_lib_acl_acl_get_file+:} false; then :
29564   $as_echo_n "(cached) " >&6
29565 else
29566   ac_check_lib_save_LIBS=$LIBS
29567 LIBS="-lacl  $LIBS"
29568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29569 /* end confdefs.h.  */
29570
29571 /* Override any GCC internal prototype to avoid an error.
29572    Use char because int might match the return type of a GCC
29573    builtin and then its argument prototype would still apply.  */
29574 #ifdef __cplusplus
29575 extern "C"
29576 #endif
29577 char acl_get_file ();
29578 int
29579 main ()
29580 {
29581 return acl_get_file ();
29582   ;
29583   return 0;
29584 }
29585 _ACEOF
29586 if ac_fn_c_try_link "$LINENO"; then :
29587   ac_cv_lib_acl_acl_get_file=yes
29588 else
29589   ac_cv_lib_acl_acl_get_file=no
29590 fi
29591 rm -f core conftest.err conftest.$ac_objext \
29592     conftest$ac_exeext conftest.$ac_ext
29593 LIBS=$ac_check_lib_save_LIBS
29594 fi
29595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_acl_acl_get_file" >&5
29596 $as_echo "$ac_cv_lib_acl_acl_get_file" >&6; }
29597 if test "x$ac_cv_lib_acl_acl_get_file" = xyes; then :
29598
29599              have_acl=yes
29600              if test $have_afs = yes; then
29601                                                                 if test -d /usr/lib64/; then
29602                    FDLIBS="-L/usr/lib64 -lacl $FDLIBS"
29603                 else
29604                    FDLIBS="-L/usr/lib -lacl $FDLIBS"
29605                 fi
29606              else
29607                 FDLIBS="-lacl $FDLIBS"
29608              fi
29609
29610
29611 fi
29612
29613    fi
29614
29615                if test $have_acl = no -a \
29616            x${HAVE_OSF1_OS_TRUE} = x; then
29617       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_get_file in -lpacl" >&5
29618 $as_echo_n "checking for acl_get_file in -lpacl... " >&6; }
29619 if ${ac_cv_lib_pacl_acl_get_file+:} false; then :
29620   $as_echo_n "(cached) " >&6
29621 else
29622   ac_check_lib_save_LIBS=$LIBS
29623 LIBS="-lpacl  $LIBS"
29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625 /* end confdefs.h.  */
29626
29627 /* Override any GCC internal prototype to avoid an error.
29628    Use char because int might match the return type of a GCC
29629    builtin and then its argument prototype would still apply.  */
29630 #ifdef __cplusplus
29631 extern "C"
29632 #endif
29633 char acl_get_file ();
29634 int
29635 main ()
29636 {
29637 return acl_get_file ();
29638   ;
29639   return 0;
29640 }
29641 _ACEOF
29642 if ac_fn_c_try_link "$LINENO"; then :
29643   ac_cv_lib_pacl_acl_get_file=yes
29644 else
29645   ac_cv_lib_pacl_acl_get_file=no
29646 fi
29647 rm -f core conftest.err conftest.$ac_objext \
29648     conftest$ac_exeext conftest.$ac_ext
29649 LIBS=$ac_check_lib_save_LIBS
29650 fi
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pacl_acl_get_file" >&5
29652 $as_echo "$ac_cv_lib_pacl_acl_get_file" >&6; }
29653 if test "x$ac_cv_lib_pacl_acl_get_file" = xyes; then :
29654
29655              have_acl=yes
29656              FDLIBS="-lpacl $FDLIBS"
29657
29658
29659 fi
29660
29661
29662       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_DEFAULT_DIR in acl.h include file" >&5
29663 $as_echo_n "checking for ACL_TYPE_DEFAULT_DIR in acl.h include file... " >&6; }
29664       grep ACL_TYPE_DEFAULT_DIR /usr/include/sys/acl.h > /dev/null 2>&1
29665       if test $? = 0; then
29666
29667 $as_echo "#define HAVE_ACL_TYPE_DEFAULT_DIR 1" >>confdefs.h
29668
29669          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29670 $as_echo "yes" >&6; }
29671       else
29672          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29673 $as_echo "no" >&6; }
29674       fi
29675    fi
29676
29677             if test $have_acl = yes -a \
29678            x${HAVE_DARWIN_OS_TRUE} = x; then
29679       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_EXTENDED in acl.h include file" >&5
29680 $as_echo_n "checking for ACL_TYPE_EXTENDED in acl.h include file... " >&6; }
29681       grep ACL_TYPE_EXTENDED /usr/include/sys/acl.h > /dev/null 2>&1
29682       if test $? = 0; then
29683
29684 $as_echo "#define HAVE_ACL_TYPE_EXTENDED 1" >>confdefs.h
29685
29686          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29687 $as_echo "yes" >&6; }
29688       else
29689          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29690 $as_echo "no" >&6; }
29691       fi
29692    fi
29693
29694             if test $have_acl = yes -a \
29695            x${HAVE_FREEBSD_OS_TRUE} = x; then
29696       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ACL_TYPE_NFS4 in acl.h include file" >&5
29697 $as_echo_n "checking for ACL_TYPE_NFS4 in acl.h include file... " >&6; }
29698       grep ACL_TYPE_NFS4 /usr/include/sys/acl.h > /dev/null 2>&1
29699       if test $? = 0; then
29700
29701 $as_echo "#define HAVE_ACL_TYPE_NFS4 1" >>confdefs.h
29702
29703          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29704 $as_echo "yes" >&6; }
29705       else
29706          { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29707 $as_echo "no" >&6; }
29708       fi
29709    fi
29710
29711             if test $have_acl = no -a \
29712            x${HAVE_SUN_OS_TRUE} = x; then
29713       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acltotext in -lsec" >&5
29714 $as_echo_n "checking for acltotext in -lsec... " >&6; }
29715 if ${ac_cv_lib_sec_acltotext+:} false; then :
29716   $as_echo_n "(cached) " >&6
29717 else
29718   ac_check_lib_save_LIBS=$LIBS
29719 LIBS="-lsec  $LIBS"
29720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29721 /* end confdefs.h.  */
29722
29723 /* Override any GCC internal prototype to avoid an error.
29724    Use char because int might match the return type of a GCC
29725    builtin and then its argument prototype would still apply.  */
29726 #ifdef __cplusplus
29727 extern "C"
29728 #endif
29729 char acltotext ();
29730 int
29731 main ()
29732 {
29733 return acltotext ();
29734   ;
29735   return 0;
29736 }
29737 _ACEOF
29738 if ac_fn_c_try_link "$LINENO"; then :
29739   ac_cv_lib_sec_acltotext=yes
29740 else
29741   ac_cv_lib_sec_acltotext=no
29742 fi
29743 rm -f core conftest.err conftest.$ac_objext \
29744     conftest$ac_exeext conftest.$ac_ext
29745 LIBS=$ac_check_lib_save_LIBS
29746 fi
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acltotext" >&5
29748 $as_echo "$ac_cv_lib_sec_acltotext" >&6; }
29749 if test "x$ac_cv_lib_sec_acltotext" = xyes; then :
29750
29751              have_acl=yes
29752              FDLIBS="-lsec $FDLIBS"
29753
29754              { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acl_totext in -lsec" >&5
29755 $as_echo_n "checking for acl_totext in -lsec... " >&6; }
29756 if ${ac_cv_lib_sec_acl_totext+:} false; then :
29757   $as_echo_n "(cached) " >&6
29758 else
29759   ac_check_lib_save_LIBS=$LIBS
29760 LIBS="-lsec  $LIBS"
29761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29762 /* end confdefs.h.  */
29763
29764 /* Override any GCC internal prototype to avoid an error.
29765    Use char because int might match the return type of a GCC
29766    builtin and then its argument prototype would still apply.  */
29767 #ifdef __cplusplus
29768 extern "C"
29769 #endif
29770 char acl_totext ();
29771 int
29772 main ()
29773 {
29774 return acl_totext ();
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 if ac_fn_c_try_link "$LINENO"; then :
29780   ac_cv_lib_sec_acl_totext=yes
29781 else
29782   ac_cv_lib_sec_acl_totext=no
29783 fi
29784 rm -f core conftest.err conftest.$ac_objext \
29785     conftest$ac_exeext conftest.$ac_ext
29786 LIBS=$ac_check_lib_save_LIBS
29787 fi
29788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sec_acl_totext" >&5
29789 $as_echo "$ac_cv_lib_sec_acl_totext" >&6; }
29790 if test "x$ac_cv_lib_sec_acl_totext" = xyes; then :
29791
29792                     have_extended_acl=yes
29793
29794
29795 fi
29796
29797
29798
29799 fi
29800
29801    fi
29802
29803             if test $have_acl = no -a \
29804            x${HAVE_AIX_OS_TRUE} = x; then
29805       ac_fn_c_check_func "$LINENO" "acl_get" "ac_cv_func_acl_get"
29806 if test "x$ac_cv_func_acl_get" = xyes; then :
29807
29808              have_acl=yes
29809
29810              ac_fn_c_check_func "$LINENO" "aclx_get" "ac_cv_func_aclx_get"
29811 if test "x$ac_cv_func_aclx_get" = xyes; then :
29812
29813                     have_extended_acl=yes
29814
29815
29816 fi
29817
29818
29819
29820 fi
29821
29822    fi
29823
29824    if test x$support_acl = xyes -a $have_acl != yes; then
29825       as_fn_error $? "acl support explicitly enabled but no supported acl implementation found,
29826   please either load the acl libraries or rerun configure without --enable-acl" "$LINENO" 5
29827    else
29828       if test $have_acl = yes; then
29829
29830 $as_echo "#define HAVE_ACL 1" >>confdefs.h
29831
29832       fi
29833
29834       if test $have_extended_acl = yes; then
29835
29836 $as_echo "#define HAVE_EXTENDED_ACL 1" >>confdefs.h
29837
29838       fi
29839    fi
29840 fi
29841
29842 support_xattr=auto
29843 # Check whether --enable-xattr was given.
29844 if test "${enable_xattr+set}" = set; then :
29845   enableval=$enable_xattr;
29846        if test x$enableval = xyes; then
29847           support_xattr=yes
29848        elif test x$enableval = xno; then
29849           support_xattr=no
29850        fi
29851
29852
29853 fi
29854
29855
29856 have_xattr=no
29857 if test x$support_xattr = xyes -o x$support_xattr = xauto; then
29858                if test x${HAVE_FREEBSD_OS_TRUE} = x -o \
29859            x${HAVE_NETBSD_OS_TRUE} = x -o \
29860            x${HAVE_OPENBSD_OS_TRUE} = x; then
29861       ac_fn_c_check_header_mongrel "$LINENO" "sys/extattr.h" "ac_cv_header_sys_extattr_h" "$ac_includes_default"
29862 if test "x$ac_cv_header_sys_extattr_h" = xyes; then :
29863
29864 $as_echo "#define HAVE_SYS_EXTATTR_H 1" >>confdefs.h
29865
29866 fi
29867
29868
29869       ac_fn_c_check_header_mongrel "$LINENO" "libutil.h" "ac_cv_header_libutil_h" "$ac_includes_default"
29870 if test "x$ac_cv_header_libutil_h" = xyes; then :
29871
29872 $as_echo "#define HAVE_LIBUTIL_H 1" >>confdefs.h
29873
29874 fi
29875
29876
29877       for ac_func in extattr_get_link extattr_set_link extattr_list_link
29878 do :
29879   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29880 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29881 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29882   cat >>confdefs.h <<_ACEOF
29883 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29884 _ACEOF
29885
29886              have_xattr=yes
29887
29888 $as_echo "#define HAVE_EXTATTR_GET_LINK 1" >>confdefs.h
29889
29890
29891 $as_echo "#define HAVE_EXTATTR_SET_LINK 1" >>confdefs.h
29892
29893
29894 $as_echo "#define HAVE_EXTATTR_LIST_LINK 1" >>confdefs.h
29895
29896
29897
29898 fi
29899 done
29900
29901
29902       if test $have_xattr = no; then
29903          for ac_func in extattr_get_file extattr_set_file extattr_list_file
29904 do :
29905   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29906 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29907 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29908   cat >>confdefs.h <<_ACEOF
29909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29910 _ACEOF
29911
29912                 have_xattr=yes
29913
29914 $as_echo "#define HAVE_EXTATTR_GET_FILE 1" >>confdefs.h
29915
29916
29917 $as_echo "#define HAVE_EXTATTR_SET_FILE 1" >>confdefs.h
29918
29919
29920 $as_echo "#define HAVE_EXTATTR_LIST_FILE 1" >>confdefs.h
29921
29922
29923
29924 fi
29925 done
29926
29927       fi
29928
29929       if test $have_xattr = yes; then
29930          have_extattr_string_in_libc=no
29931          for ac_func in extattr_namespace_to_string extattr_string_to_namespace
29932 do :
29933   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29934 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
29935 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
29936   cat >>confdefs.h <<_ACEOF
29937 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29938 _ACEOF
29939
29940                 have_extattr_string_in_libc=yes
29941
29942 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29943
29944
29945 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29946
29947
29948
29949 fi
29950 done
29951
29952
29953                                  if test $have_extattr_string_in_libc = no; then
29954             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil" >&5
29955 $as_echo_n "checking for extattr_namespace_to_string extattr_string_to_namespace in -lutil... " >&6; }
29956 if ${ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace+:} false; then :
29957   $as_echo_n "(cached) " >&6
29958 else
29959   ac_check_lib_save_LIBS=$LIBS
29960 LIBS="-lutil  $LIBS"
29961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29962 /* end confdefs.h.  */
29963
29964 /* Override any GCC internal prototype to avoid an error.
29965    Use char because int might match the return type of a GCC
29966    builtin and then its argument prototype would still apply.  */
29967 #ifdef __cplusplus
29968 extern "C"
29969 #endif
29970 char extattr_namespace_to_string extattr_string_to_namespace ();
29971 int
29972 main ()
29973 {
29974 return extattr_namespace_to_string extattr_string_to_namespace ();
29975   ;
29976   return 0;
29977 }
29978 _ACEOF
29979 if ac_fn_c_try_link "$LINENO"; then :
29980   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=yes
29981 else
29982   ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace=no
29983 fi
29984 rm -f core conftest.err conftest.$ac_objext \
29985     conftest$ac_exeext conftest.$ac_ext
29986 LIBS=$ac_check_lib_save_LIBS
29987 fi
29988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&5
29989 $as_echo "$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" >&6; }
29990 if test "x$ac_cv_lib_util_extattr_namespace_to_string_extattr_string_to_namespace" = xyes; then :
29991
29992
29993 $as_echo "#define HAVE_EXTATTR_NAMESPACE_TO_STRING 1" >>confdefs.h
29994
29995
29996 $as_echo "#define HAVE_EXTATTR_STRING_TO_NAMESPACE 1" >>confdefs.h
29997
29998                    FDLIBS="-lutil $FDLIBS"
29999
30000
30001 fi
30002
30003          fi
30004       fi
30005    fi
30006
30007                if test $have_xattr = no -a \
30008            x${HAVE_AIX_OS_TRUE} = x; then
30009       ac_fn_c_check_header_mongrel "$LINENO" "sys/ea.h" "ac_cv_header_sys_ea_h" "$ac_includes_default"
30010 if test "x$ac_cv_header_sys_ea_h" = xyes; then :
30011
30012 $as_echo "#define HAVE_SYS_EA_H 1" >>confdefs.h
30013
30014 fi
30015
30016
30017       for ac_func in llistea lgetea lsetea
30018 do :
30019   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30022   cat >>confdefs.h <<_ACEOF
30023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30024 _ACEOF
30025
30026              have_xattr=yes
30027
30028 $as_echo "#define HAVE_LLISTEA 1" >>confdefs.h
30029
30030
30031 $as_echo "#define HAVE_LGETEA 1" >>confdefs.h
30032
30033
30034 $as_echo "#define HAVE_LSETEA 1" >>confdefs.h
30035
30036
30037
30038 fi
30039 done
30040
30041
30042       if test $have_xattr = no; then
30043          for ac_func in listea getea setea
30044 do :
30045   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30046 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30047 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30048   cat >>confdefs.h <<_ACEOF
30049 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30050 _ACEOF
30051
30052                 have_xattr=yes
30053
30054 $as_echo "#define HAVE_LISTEA 1" >>confdefs.h
30055
30056
30057 $as_echo "#define HAVE_GETEA 1" >>confdefs.h
30058
30059
30060 $as_echo "#define HAVE_SETEA 1" >>confdefs.h
30061
30062
30063
30064 fi
30065 done
30066
30067       fi
30068    fi
30069
30070                if test $have_xattr = no -a \
30071            x${HAVE_OSF1_OS_TRUE} = x; then
30072       ac_fn_c_check_header_mongrel "$LINENO" "sys/proplist.h" "ac_cv_header_sys_proplist_h" "$ac_includes_default"
30073 if test "x$ac_cv_header_sys_proplist_h" = xyes; then :
30074
30075 $as_echo "#define HAVE_SYS_PROPLIST_H 1" >>confdefs.h
30076
30077 fi
30078
30079
30080       for ac_func in getproplist get_proplist_entry sizeof_proplist_entry add_proplist_entry setproplist
30081 do :
30082   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30083 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30084 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30085   cat >>confdefs.h <<_ACEOF
30086 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30087 _ACEOF
30088
30089              have_xattr=yes
30090
30091 $as_echo "#define HAVE_GETPROPLIST 1" >>confdefs.h
30092
30093
30094 $as_echo "#define HAVE_GET_PROPLIST_ENTRY 1" >>confdefs.h
30095
30096
30097 $as_echo "#define HAVE_SIZEOF_PROPLIST_ENTRY 1" >>confdefs.h
30098
30099
30100 $as_echo "#define HAVE_ADD_PROPLIST_ENTRY 1" >>confdefs.h
30101
30102
30103 $as_echo "#define HAVE_SETPROPLIST 1" >>confdefs.h
30104
30105
30106
30107 fi
30108 done
30109
30110    fi
30111
30112                if test $have_xattr = no -a \
30113            x${HAVE_SUN_OS_TRUE} = x; then
30114       ac_fn_c_check_header_mongrel "$LINENO" "sys/attr.h" "ac_cv_header_sys_attr_h" "$ac_includes_default"
30115 if test "x$ac_cv_header_sys_attr_h" = xyes; then :
30116
30117 $as_echo "#define HAVE_SYS_ATTR_H 1" >>confdefs.h
30118
30119 fi
30120
30121
30122       ac_fn_c_check_header_mongrel "$LINENO" "sys/nvpair.h" "ac_cv_header_sys_nvpair_h" "$ac_includes_default"
30123 if test "x$ac_cv_header_sys_nvpair_h" = xyes; then :
30124
30125 $as_echo "#define HAVE_SYS_NVPAIR_H 1" >>confdefs.h
30126
30127 fi
30128
30129
30130       ac_fn_c_check_header_mongrel "$LINENO" "attr.h" "ac_cv_header_attr_h" "$ac_includes_default"
30131 if test "x$ac_cv_header_attr_h" = xyes; then :
30132
30133 $as_echo "#define HAVE_ATTR_H 1" >>confdefs.h
30134
30135 fi
30136
30137
30138
30139       for ac_func in openat fstatat unlinkat fchownat futimesat
30140 do :
30141   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30142 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30143 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30144   cat >>confdefs.h <<_ACEOF
30145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30146 _ACEOF
30147
30148              have_xattr=yes
30149
30150 $as_echo "#define HAVE_OPENAT 1" >>confdefs.h
30151
30152
30153 $as_echo "#define HAVE_FSTATAT 1" >>confdefs.h
30154
30155
30156 $as_echo "#define HAVE_UNLINKAT 1" >>confdefs.h
30157
30158
30159 $as_echo "#define HAVE_FCHOWNAT 1" >>confdefs.h
30160
30161
30162 $as_echo "#define HAVE_FUTIMESAT 1" >>confdefs.h
30163
30164
30165
30166 fi
30167 done
30168
30169
30170       if test $have_xattr = yes; then
30171          { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nvlist_next_nvpair in -lnvpair" >&5
30172 $as_echo_n "checking for nvlist_next_nvpair in -lnvpair... " >&6; }
30173 if ${ac_cv_lib_nvpair_nvlist_next_nvpair+:} false; then :
30174   $as_echo_n "(cached) " >&6
30175 else
30176   ac_check_lib_save_LIBS=$LIBS
30177 LIBS="-lnvpair  $LIBS"
30178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30179 /* end confdefs.h.  */
30180
30181 /* Override any GCC internal prototype to avoid an error.
30182    Use char because int might match the return type of a GCC
30183    builtin and then its argument prototype would still apply.  */
30184 #ifdef __cplusplus
30185 extern "C"
30186 #endif
30187 char nvlist_next_nvpair ();
30188 int
30189 main ()
30190 {
30191 return nvlist_next_nvpair ();
30192   ;
30193   return 0;
30194 }
30195 _ACEOF
30196 if ac_fn_c_try_link "$LINENO"; then :
30197   ac_cv_lib_nvpair_nvlist_next_nvpair=yes
30198 else
30199   ac_cv_lib_nvpair_nvlist_next_nvpair=no
30200 fi
30201 rm -f core conftest.err conftest.$ac_objext \
30202     conftest$ac_exeext conftest.$ac_ext
30203 LIBS=$ac_check_lib_save_LIBS
30204 fi
30205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nvpair_nvlist_next_nvpair" >&5
30206 $as_echo "$ac_cv_lib_nvpair_nvlist_next_nvpair" >&6; }
30207 if test "x$ac_cv_lib_nvpair_nvlist_next_nvpair" = xyes; then :
30208
30209
30210 $as_echo "#define HAVE_NVLIST_NEXT_NVPAIR 1" >>confdefs.h
30211
30212                 FDLIBS="-lnvpair $FDLIBS"
30213
30214
30215 fi
30216
30217       fi
30218    fi
30219
30220             if test $have_xattr = no; then
30221       ac_fn_c_check_header_mongrel "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
30222 if test "x$ac_cv_header_sys_xattr_h" = xyes; then :
30223
30224 $as_echo "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
30225
30226 fi
30227
30228
30229       for ac_func in llistxattr lgetxattr lsetxattr
30230 do :
30231   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30232 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30233 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30234   cat >>confdefs.h <<_ACEOF
30235 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30236 _ACEOF
30237
30238              have_xattr=yes
30239
30240 $as_echo "#define HAVE_LLISTXATTR 1" >>confdefs.h
30241
30242
30243 $as_echo "#define HAVE_LGETXATTR 1" >>confdefs.h
30244
30245
30246 $as_echo "#define HAVE_LSETXATTR 1" >>confdefs.h
30247
30248
30249
30250 fi
30251 done
30252
30253
30254       if test $have_xattr = no; then
30255          for ac_func in listxattr getxattr setxattr
30256 do :
30257   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30260   cat >>confdefs.h <<_ACEOF
30261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30262 _ACEOF
30263
30264                 have_xattr=yes
30265
30266 $as_echo "#define HAVE_LISTXATTR 1" >>confdefs.h
30267
30268
30269 $as_echo "#define HAVE_GETXATTR 1" >>confdefs.h
30270
30271
30272 $as_echo "#define HAVE_SETXATTR 1" >>confdefs.h
30273
30274
30275
30276 fi
30277 done
30278
30279       fi
30280    fi
30281
30282    if test x$support_xattr = xyes -a $have_xattr != yes; then
30283       as_fn_error $? "xattr support explicitly enabled but no supported xattr implementation found,
30284   please either load the xattr libraries or rerun configure without --enable-xattr" "$LINENO" 5
30285    else
30286       if test $have_xattr = yes; then
30287
30288 $as_echo "#define HAVE_XATTR 1" >>confdefs.h
30289
30290       fi
30291    fi
30292 fi
30293
30294 PTHREAD_LIB=""
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
30296 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
30297 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
30298   $as_echo_n "(cached) " >&6
30299 else
30300   ac_check_lib_save_LIBS=$LIBS
30301 LIBS="-lpthread  $LIBS"
30302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30303 /* end confdefs.h.  */
30304
30305 /* Override any GCC internal prototype to avoid an error.
30306    Use char because int might match the return type of a GCC
30307    builtin and then its argument prototype would still apply.  */
30308 #ifdef __cplusplus
30309 extern "C"
30310 #endif
30311 char pthread_create ();
30312 int
30313 main ()
30314 {
30315 return pthread_create ();
30316   ;
30317   return 0;
30318 }
30319 _ACEOF
30320 if ac_fn_c_try_link "$LINENO"; then :
30321   ac_cv_lib_pthread_pthread_create=yes
30322 else
30323   ac_cv_lib_pthread_pthread_create=no
30324 fi
30325 rm -f core conftest.err conftest.$ac_objext \
30326     conftest$ac_exeext conftest.$ac_ext
30327 LIBS=$ac_check_lib_save_LIBS
30328 fi
30329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
30330 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
30331 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
30332   PTHREAD_LIB="-lpthread"
30333 else
30334
30335        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthreads" >&5
30336 $as_echo_n "checking for pthread_create in -lpthreads... " >&6; }
30337 if ${ac_cv_lib_pthreads_pthread_create+:} false; then :
30338   $as_echo_n "(cached) " >&6
30339 else
30340   ac_check_lib_save_LIBS=$LIBS
30341 LIBS="-lpthreads  $LIBS"
30342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30343 /* end confdefs.h.  */
30344
30345 /* Override any GCC internal prototype to avoid an error.
30346    Use char because int might match the return type of a GCC
30347    builtin and then its argument prototype would still apply.  */
30348 #ifdef __cplusplus
30349 extern "C"
30350 #endif
30351 char pthread_create ();
30352 int
30353 main ()
30354 {
30355 return pthread_create ();
30356   ;
30357   return 0;
30358 }
30359 _ACEOF
30360 if ac_fn_c_try_link "$LINENO"; then :
30361   ac_cv_lib_pthreads_pthread_create=yes
30362 else
30363   ac_cv_lib_pthreads_pthread_create=no
30364 fi
30365 rm -f core conftest.err conftest.$ac_objext \
30366     conftest$ac_exeext conftest.$ac_ext
30367 LIBS=$ac_check_lib_save_LIBS
30368 fi
30369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_pthread_create" >&5
30370 $as_echo "$ac_cv_lib_pthreads_pthread_create" >&6; }
30371 if test "x$ac_cv_lib_pthreads_pthread_create" = xyes; then :
30372   PTHREAD_LIB="-lpthreads"
30373 else
30374
30375               { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lc_r" >&5
30376 $as_echo_n "checking for pthread_create in -lc_r... " >&6; }
30377 if ${ac_cv_lib_c_r_pthread_create+:} false; then :
30378   $as_echo_n "(cached) " >&6
30379 else
30380   ac_check_lib_save_LIBS=$LIBS
30381 LIBS="-lc_r  $LIBS"
30382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30383 /* end confdefs.h.  */
30384
30385 /* Override any GCC internal prototype to avoid an error.
30386    Use char because int might match the return type of a GCC
30387    builtin and then its argument prototype would still apply.  */
30388 #ifdef __cplusplus
30389 extern "C"
30390 #endif
30391 char pthread_create ();
30392 int
30393 main ()
30394 {
30395 return pthread_create ();
30396   ;
30397   return 0;
30398 }
30399 _ACEOF
30400 if ac_fn_c_try_link "$LINENO"; then :
30401   ac_cv_lib_c_r_pthread_create=yes
30402 else
30403   ac_cv_lib_c_r_pthread_create=no
30404 fi
30405 rm -f core conftest.err conftest.$ac_objext \
30406     conftest$ac_exeext conftest.$ac_ext
30407 LIBS=$ac_check_lib_save_LIBS
30408 fi
30409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_create" >&5
30410 $as_echo "$ac_cv_lib_c_r_pthread_create" >&6; }
30411 if test "x$ac_cv_lib_c_r_pthread_create" = xyes; then :
30412   PTHREAD_LIB="-lc_r"
30413 else
30414
30415                      ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
30416 if test "x$ac_cv_func_pthread_create" = xyes; then :
30417
30418 fi
30419
30420
30421
30422 fi
30423
30424
30425
30426 fi
30427
30428
30429
30430 fi
30431
30432
30433 for ac_header in sys/prctl.h sys/capability.h
30434 do :
30435   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30437 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30438   cat >>confdefs.h <<_ACEOF
30439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30440 _ACEOF
30441
30442 fi
30443
30444 done
30445
30446 for ac_func in prctl setreuid
30447 do :
30448   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30449 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
30450 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
30451   cat >>confdefs.h <<_ACEOF
30452 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30453 _ACEOF
30454
30455 fi
30456 done
30457
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cap_set_proc in -lcap" >&5
30459 $as_echo_n "checking for cap_set_proc in -lcap... " >&6; }
30460 if ${ac_cv_lib_cap_cap_set_proc+:} false; then :
30461   $as_echo_n "(cached) " >&6
30462 else
30463   ac_check_lib_save_LIBS=$LIBS
30464 LIBS="-lcap  $LIBS"
30465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30466 /* end confdefs.h.  */
30467
30468 /* Override any GCC internal prototype to avoid an error.
30469    Use char because int might match the return type of a GCC
30470    builtin and then its argument prototype would still apply.  */
30471 #ifdef __cplusplus
30472 extern "C"
30473 #endif
30474 char cap_set_proc ();
30475 int
30476 main ()
30477 {
30478 return cap_set_proc ();
30479   ;
30480   return 0;
30481 }
30482 _ACEOF
30483 if ac_fn_c_try_link "$LINENO"; then :
30484   ac_cv_lib_cap_cap_set_proc=yes
30485 else
30486   ac_cv_lib_cap_cap_set_proc=no
30487 fi
30488 rm -f core conftest.err conftest.$ac_objext \
30489     conftest$ac_exeext conftest.$ac_ext
30490 LIBS=$ac_check_lib_save_LIBS
30491 fi
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_cap_set_proc" >&5
30493 $as_echo "$ac_cv_lib_cap_cap_set_proc" >&6; }
30494 if test "x$ac_cv_lib_cap_cap_set_proc" = xyes; then :
30495   CAP_LIBS="-lcap"
30496 else
30497   CAP_LIBS=
30498 fi
30499
30500 if test x$CAP_LIBS = x-lcap; then
30501
30502 $as_echo "#define HAVE_LIBCAP 1" >>confdefs.h
30503
30504 fi
30505
30506
30507
30508 $as_echo "#define FDLIBS 1" >>confdefs.h
30509
30510
30511 CFLAGS=${CFLAGS--O}
30512
30513 if test x$have_gcc = xyes ; then
30514    CPPFLAGS="$CPPFLAGS -fno-strict-aliasing -fno-exceptions -fno-rtti"
30515    CFLAGS="$CFLAGS -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti"
30516 fi
30517 LDFLAGS=${LDFLAGS--O}
30518 CPPFLAGS="$CPPFLAGS"
30519 CFLAGS="$CFLAGS"
30520
30521
30522
30523
30524
30525
30526
30527
30528
30529
30530
30531
30532
30533
30534
30535 OBJLIST=
30536
30537
30538 lld="lld"
30539 llu="llu"
30540
30541 WCFLAGS=
30542 WLDFLAGS=
30543
30544 PSCMD="ps -e"
30545 WIN32=
30546 MACOSX=
30547 COMPRESS_MANPAGES=yes
30548
30549 case "$DISTNAME" in
30550 aix)
30551    DISTVER=`uname -r`
30552    PSCMD="ps -e -o pid,comm"
30553    PFILES="${PFILES} platforms/aix/Makefile"
30554    TAPEDRIVE="/dev/rmt0.1"
30555   ;;
30556 alpha)
30557    DISTVER=`uname -r`
30558    PTHREAD_LIB="-lpthread -lexc"
30559    if test "${CC}" = "gcc" ; then
30560       lld="lld"
30561       llu="llu"
30562    else
30563       lld="ld"
30564       llu="lu"
30565    fi
30566    TAPEDRIVE="/dev/nrmt0"
30567   ;;
30568 bsdi)
30569    DISTVER=`uname -a |awk '{print $3}'`
30570    TAPEDRIVE="/dev/nrmt0"
30571    PTHREAD_LIB="-pthread"
30572    CFLAGS="${CFLAGS} -pthread"
30573    PSCMD="ps -ax -o pid,command"
30574    lld="qd"
30575    llu="qu"
30576    PFILES="${PFILES} \
30577        platforms/bsdi/Makefile \
30578        platforms/bsdi/bacula-fd \
30579        platforms/bsdi/bacula-sd \
30580        platforms/bsdi/bacula-dir"
30581    largefile_support="yes"
30582   ;;
30583 cygwin)
30584    DISTVER=`uname -a |awk '{print $3}'`
30585    TAPEDRIVE="/dev/nrst0"
30586    WIN32=win32
30587    WCFLAGS="-mwindows"
30588    WLDFLAGS="-mwindows"
30589   ;;
30590 darwin)
30591    DISTVER=`uname -r`
30592    TAPEDRIVE="/dev/nst0"
30593    PSCMD="ps -e -o pid,command"
30594    MACOSX=macosx
30595    PFILES="${PFILES} \
30596       platforms/darwin/Makefile"
30597   ;;
30598 osx)
30599    DISTVER=`uname -r`
30600    TAPEDRIVE="/dev/nst0"
30601    PSCMD="ps -e -o pid,command"
30602    MACOSX=macosx
30603    PFILES="${PFILES} \
30604       platforms/osx/Makefile"
30605   ;;
30606 debian)
30607    if `test -f /etc/apt/sources.list && grep -q ubuntu /etc/apt/sources.list`; then
30608       DISTNAME="ubuntu"
30609    fi
30610    DISTVER=`cat /etc/debian_version`
30611    if test -f /etc/lsb-release ; then
30612       . /etc/lsb-release
30613       if test "x$DISTRIB_ID" != "x" ; then
30614          DISTNAME=$DISTRIB_ID
30615       fi
30616       if test "x$DISTRIB_RELEASE" != "x" ; then
30617          DISTVER=$DISTRIB_RELEASE
30618       fi
30619    fi
30620    if test "$DISTNAME" = "Ubuntu" ; then
30621       DISTNAME="ubuntu"
30622    fi
30623    TAPEDRIVE="/dev/nst0"
30624    PSCMD="ps -e -o pid,command"
30625    if test "$DISTNAME" = "ubuntu" ; then
30626       PFILES="${PFILES} \
30627          platforms/ubuntu/Makefile \
30628          platforms/ubuntu/bacula-fd \
30629          platforms/ubuntu/bacula-sd \
30630          platforms/ubuntu/bacula-dir"
30631    else
30632       PFILES="${PFILES} \
30633          platforms/debian/Makefile \
30634          platforms/debian/bacula-fd \
30635          platforms/debian/bacula-sd \
30636          platforms/debian/bacula-dir"
30637    fi
30638   ;;
30639 freebsd)
30640    DISTVER=`uname -a |awk '{print $3}'`
30641    VER=`echo $DISTVER | cut -c 1`
30642    if test x$VER = x4 ; then
30643       PTHREAD_LIB="${PTHREAD_LIBS:--pthread}"
30644       CFLAGS="${CFLAGS} ${PTHREAD_CFLAGS:--pthread}"
30645    fi
30646    lld="qd"
30647    llu="qu"
30648    TAPEDRIVE="/dev/nrsa0"
30649    PSCMD="ps -ax -o pid,command"
30650    PFILES="${PFILES} \
30651        platforms/freebsd/Makefile \
30652        platforms/freebsd/bacula-fd \
30653        platforms/freebsd/bacula-sd \
30654        platforms/freebsd/bacula-dir"
30655    largefile_support="yes"
30656   ;;
30657 hurd)
30658    DISTVER=`uname -r`
30659    TAPEDRIVE="/dev/nst0"
30660    PSCMD="ps -e -o pid,command"
30661    PFILES="${PFILES} \
30662        platforms/hurd/Makefile \
30663        platforms/hurd/bacula-fd \
30664        platforms/hurd/bacula-sd \
30665        platforms/hurd/bacula-dir"
30666   ;;
30667 hpux)
30668    PSCMD="UNIX95=1; ps -e -o pid,comm"
30669    CFLAGS="${CFLAGS} -D_XOPEN_SOURCE_EXTENDED=1"
30670    DISTVER=`uname -r`
30671    TAPEDRIVE="/dev/rmt/0hnb"
30672    PTHREAD_LIB="-lpthread"
30673    $as_echo "#define _INCLUDE_LONGLONG 1" >>confdefs.h
30674
30675   ;;
30676 irix)
30677    DISTVER=`uname -r`
30678    TAPEDRIVE="/dev/rmt/0cbn"
30679    PSCMD="ps -e -o pid,comm"
30680    PFILES="${PFILES} \
30681        platforms/irix/Makefile \
30682        platforms/irix/bacula-fd \
30683        platforms/irix/bacula-sd \
30684        platforms/irix/bacula-dir"
30685   ;;
30686 netbsd)
30687    DISTVER=`uname -a |awk '{print $3}'`
30688    lld="qd"
30689    llu="qu"
30690    TAPEDRIVE="/dev/nrst0"
30691    PSCMD="ps -ax -o pid,command"
30692    PTHREAD_LIB="-pthread"
30693    CFLAGS="${CFLAGS} -pthread"
30694   ;;
30695 openbsd)
30696    DISTVER=`uname -a |awk '{print $3}'`
30697    lld="qd"
30698    llu="qu"
30699    TAPEDRIVE="/dev/nrst0"
30700    PSCMD="ps -ax -o pid,command"
30701    PTHREAD_LIB="-pthread"
30702    CFLAGS="${CFLAGS} -pthread"
30703    PFILES="${PFILES} \
30704        platforms/openbsd/Makefile \
30705        platforms/openbsd/bacula-fd \
30706        platforms/openbsd/bacula-sd \
30707        platforms/openbsd/bacula-dir"
30708   ;;
30709 redhat)
30710    if test -f /etc/whitebox-release ; then
30711       f=/etc/whitebox-release
30712    else
30713       f=/etc/redhat-release
30714    fi
30715    if test `cat $f | grep release |\
30716          cut -f 3 -d ' '`x = "Enterprise"x ; then
30717       DISTVER="Enterprise "`cat $f | grep release |\
30718           cut -f 6 -d ' '`
30719    else
30720        DISTVER=`cat /etc/redhat-release | grep release |\
30721            cut -f 5 -d ' '`
30722    fi
30723    TAPEDRIVE="/dev/nst0"
30724    PSCMD="ps -e -o pid,command"
30725    PFILES="${PFILES} \
30726        platforms/redhat/Makefile \
30727        platforms/redhat/bacula-fd \
30728        platforms/redhat/bacula-sd \
30729        platforms/redhat/bacula-dir
30730        "
30731   ;;
30732 mandrake)
30733    DISTVER=`cat /etc/mandrake-release | grep release |\
30734       cut -f 5 -d ' '`
30735    TAPEDRIVE="/dev/nst0"
30736    PSCMD="ps -e -o pid,command"
30737    PFILES="${PFILES} \
30738        platforms/mandrake/Makefile \
30739        platforms/mandrake/bacula-fd \
30740        platforms/mandrake/bacula-sd \
30741        platforms/mandrake/bacula-dir \
30742        "
30743   ;;
30744 gentoo)
30745    DISTVER=`awk '/version / {print $5}' < /etc/gentoo-release`
30746    TAPEDRIVE="/dev/nst0"
30747    PSCMD="ps -e -o pid,command"
30748    PFILES="${PFILES} \
30749        platforms/gentoo/Makefile \
30750     platforms/gentoo/bacula-init \
30751        platforms/gentoo/bacula-fd \
30752        platforms/gentoo/bacula-sd \
30753        platforms/gentoo/bacula-dir"
30754   ;;
30755 slackware)
30756    DISTVER=`cat /etc/slackware-version`
30757    TAPEDRIVE="/dev/nst0"
30758    PSCMD="ps -e -o pid,command"
30759    PFILES="${PFILES} \
30760        platforms/slackware/Makefile \
30761        platforms/slackware/rc.bacula-fd \
30762        platforms/slackware/rc.bacula-sd \
30763        platforms/slackware/rc.bacula-dir\
30764        platforms/slackware/functions.bacula"
30765   ;;
30766 solaris)
30767    DISTVER=`uname -r`
30768    TAPEDRIVE="/dev/rmt/0cbn"
30769    PSCMD="ps -e -o pid,comm"
30770    PFILES="${PFILES} \
30771        platforms/solaris/Makefile \
30772        platforms/solaris/bacula-fd \
30773        platforms/solaris/bacula-sd \
30774        platforms/solaris/bacula-dir"
30775    COMPRESS_MANPAGES=
30776    case ${DISTVER} in
30777    5.5|5.6)
30778       $as_echo "#define HAVE_OLD_SOCKOPT 1" >>confdefs.h
30779
30780       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30781
30782       ;;
30783    5.7|5.8)
30784       $as_echo "#define USE_THR_SETCONCURRENCY 1" >>confdefs.h
30785
30786       ;;
30787    *)
30788       ;;
30789    esac
30790    LIBS="$LIBS -lresolv -lrt"
30791   ;;
30792 suse)
30793    DISTVER=`cat /etc/SuSE-release |grep VERSION|\
30794        cut -f 3 -d ' '`
30795    TAPEDRIVE="/dev/nst0"
30796    PSCMD="ps -e -o pid,command"
30797    PFILES="${PFILES} \
30798        platforms/suse/Makefile \
30799        platforms/suse/bacula-fd \
30800        platforms/suse/bacula-sd \
30801        platforms/suse/bacula-dir \
30802        platforms/suse/bacula"
30803   ;;
30804 suse5)
30805    DISTNAME=suse
30806    DISTVER=5.x
30807    TAPEDRIVE="/dev/nst0"
30808    PSCMD="ps -e -o pid,command"
30809    PFILES="${PFILES} \
30810        platforms/suse/Makefile \
30811        platforms/suse/bacula-fd \
30812        platforms/suse/bacula-sd \
30813        platforms/suse/bacula-dir"
30814   ;;
30815 unknown)
30816    DISTVER=unknown
30817    TAPEDRIVE="/dev/nst0"
30818   ;;
30819 *)
30820   echo " === Something went wrong. Unknown DISTNAME $DISTNAME ==="
30821   ;;
30822 esac
30823
30824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd support" >&5
30825 $as_echo_n "checking for systemd support... " >&6; }
30826
30827 # Check whether --with-systemd was given.
30828 if test "${with_systemd+set}" = set; then :
30829   withval=$with_systemd;
30830        if test "$withval" != "no"; then
30831            if test "$withval" = "yes"; then
30832                SYSTEMD_UNITDIR="`systemctl show | grep UnitPath | cut -d " " -f2`"
30833            else
30834                SYSTEMD_UNITDIR="${withval}"
30835            fi
30836
30837            PFILES="${PFILES} \
30838                    platforms/systemd/Makefile \
30839                    platforms/systemd/bacula-dir.service \
30840                    platforms/systemd/bacula-fd.service \
30841                    platforms/systemd/bacula-sd.service"
30842
30843 $as_echo "#define HAVE_SYSTEMD 1" >>confdefs.h
30844
30845            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30846 $as_echo "yes" >&6; }
30847            support_systemd="yes"
30848        else
30849            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30851            support_systemd="no"
30852        fi
30853
30854 else
30855
30856        support_systemd="no"
30857        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30858 $as_echo "no" >&6; }
30859
30860
30861 fi
30862
30863
30864
30865
30866
30867 LIBS="$PTHREAD_LIB $LIBS"
30868
30869 cat >>confdefs.h <<_ACEOF
30870 #define lld "$lld"
30871 _ACEOF
30872
30873 cat >>confdefs.h <<_ACEOF
30874 #define llu "$llu"
30875 _ACEOF
30876
30877
30878
30879
30880
30881
30882
30883
30884
30885 MCOMMON=./autoconf/Make.common
30886
30887
30888 if test "x${subsysdir}" = "x${sbindir}" ; then
30889    echo " "
30890    echo " "
30891    echo "You have set both --sbindir and --with-subsys-dir"
30892    echo "  equal to: ${subsysdir} "
30893    echo "This is not permitted. Please reconfigure."
30894    echo " "
30895    echo "Aborting configuration ..."
30896    echo " "
30897    echo " "
30898    exit 1
30899 fi
30900
30901
30902 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"
30903
30904 ac_config_commands="$ac_config_commands default"
30905
30906 cat >confcache <<\_ACEOF
30907 # This file is a shell script that caches the results of configure
30908 # tests run on this system so they can be shared between configure
30909 # scripts and configure runs, see configure's option --config-cache.
30910 # It is not useful on other systems.  If it contains results you don't
30911 # want to keep, you may remove or edit it.
30912 #
30913 # config.status only pays attention to the cache file if you give it
30914 # the --recheck option to rerun configure.
30915 #
30916 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30917 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30918 # following values.
30919
30920 _ACEOF
30921
30922 # The following way of writing the cache mishandles newlines in values,
30923 # but we know of no workaround that is simple, portable, and efficient.
30924 # So, we kill variables containing newlines.
30925 # Ultrix sh set writes to stderr and can't be redirected directly,
30926 # and sets the high bit in the cache file unless we assign to the vars.
30927 (
30928   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30929     eval ac_val=\$$ac_var
30930     case $ac_val in #(
30931     *${as_nl}*)
30932       case $ac_var in #(
30933       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30934 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30935       esac
30936       case $ac_var in #(
30937       _ | IFS | as_nl) ;; #(
30938       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30939       *) { eval $ac_var=; unset $ac_var;} ;;
30940       esac ;;
30941     esac
30942   done
30943
30944   (set) 2>&1 |
30945     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30946     *${as_nl}ac_space=\ *)
30947       # `set' does not quote correctly, so add quotes: double-quote
30948       # substitution turns \\\\ into \\, and sed turns \\ into \.
30949       sed -n \
30950         "s/'/'\\\\''/g;
30951           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30952       ;; #(
30953     *)
30954       # `set' quotes correctly as required by POSIX, so do not add quotes.
30955       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30956       ;;
30957     esac |
30958     sort
30959 ) |
30960   sed '
30961      /^ac_cv_env_/b end
30962      t clear
30963      :clear
30964      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
30965      t end
30966      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30967      :end' >>confcache
30968 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30969   if test -w "$cache_file"; then
30970     if test "x$cache_file" != "x/dev/null"; then
30971       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30972 $as_echo "$as_me: updating cache $cache_file" >&6;}
30973       if test ! -f "$cache_file" || test -h "$cache_file"; then
30974         cat confcache >"$cache_file"
30975       else
30976         case $cache_file in #(
30977         */* | ?:*)
30978           mv -f confcache "$cache_file"$$ &&
30979           mv -f "$cache_file"$$ "$cache_file" ;; #(
30980         *)
30981           mv -f confcache "$cache_file" ;;
30982         esac
30983       fi
30984     fi
30985   else
30986     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30987 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
30988   fi
30989 fi
30990 rm -f confcache
30991
30992 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30993 # Let make expand exec_prefix.
30994 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30995
30996 DEFS=-DHAVE_CONFIG_H
30997
30998 ac_libobjs=
30999 ac_ltlibobjs=
31000 U=
31001 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31002   # 1. Remove the extension, and $U if already installed.
31003   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
31004   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31005   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
31006   #    will be set to the directory where LIBOBJS objects are built.
31007   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31008   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
31009 done
31010 LIBOBJS=$ac_libobjs
31011
31012 LTLIBOBJS=$ac_ltlibobjs
31013
31014
31015
31016
31017 : "${CONFIG_STATUS=./config.status}"
31018 ac_write_fail=0
31019 ac_clean_files_save=$ac_clean_files
31020 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31022 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31023 as_write_fail=0
31024 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31025 #! $SHELL
31026 # Generated by $as_me.
31027 # Run this file to recreate the current configuration.
31028 # Compiler output produced by configure, useful for debugging
31029 # configure, is in config.log if it exists.
31030
31031 debug=false
31032 ac_cs_recheck=false
31033 ac_cs_silent=false
31034
31035 SHELL=\${CONFIG_SHELL-$SHELL}
31036 export SHELL
31037 _ASEOF
31038 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31039 ## -------------------- ##
31040 ## M4sh Initialization. ##
31041 ## -------------------- ##
31042
31043 # Be more Bourne compatible
31044 DUALCASE=1; export DUALCASE # for MKS sh
31045 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
31046   emulate sh
31047   NULLCMD=:
31048   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31049   # is contrary to our usage.  Disable this feature.
31050   alias -g '${1+"$@"}'='"$@"'
31051   setopt NO_GLOB_SUBST
31052 else
31053   case `(set -o) 2>/dev/null` in #(
31054   *posix*) :
31055     set -o posix ;; #(
31056   *) :
31057      ;;
31058 esac
31059 fi
31060
31061
31062 as_nl='
31063 '
31064 export as_nl
31065 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31066 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31067 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31068 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31069 # Prefer a ksh shell builtin over an external printf program on Solaris,
31070 # but without wasting forks for bash or zsh.
31071 if test -z "$BASH_VERSION$ZSH_VERSION" \
31072     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31073   as_echo='print -r --'
31074   as_echo_n='print -rn --'
31075 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31076   as_echo='printf %s\n'
31077   as_echo_n='printf %s'
31078 else
31079   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31080     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
31081     as_echo_n='/usr/ucb/echo -n'
31082   else
31083     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31084     as_echo_n_body='eval
31085       arg=$1;
31086       case $arg in #(
31087       *"$as_nl"*)
31088         expr "X$arg" : "X\\(.*\\)$as_nl";
31089         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31090       esac;
31091       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
31092     '
31093     export as_echo_n_body
31094     as_echo_n='sh -c $as_echo_n_body as_echo'
31095   fi
31096   export as_echo_body
31097   as_echo='sh -c $as_echo_body as_echo'
31098 fi
31099
31100 # The user is always right.
31101 if test "${PATH_SEPARATOR+set}" != set; then
31102   PATH_SEPARATOR=:
31103   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31104     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31105       PATH_SEPARATOR=';'
31106   }
31107 fi
31108
31109
31110 # IFS
31111 # We need space, tab and new line, in precisely that order.  Quoting is
31112 # there to prevent editors from complaining about space-tab.
31113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31114 # splitting by setting IFS to empty value.)
31115 IFS=" ""        $as_nl"
31116
31117 # Find who we are.  Look in the path if we contain no directory separator.
31118 as_myself=
31119 case $0 in #((
31120   *[\\/]* ) as_myself=$0 ;;
31121   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31122 for as_dir in $PATH
31123 do
31124   IFS=$as_save_IFS
31125   test -z "$as_dir" && as_dir=.
31126     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31127   done
31128 IFS=$as_save_IFS
31129
31130      ;;
31131 esac
31132 # We did not find ourselves, most probably we were run as `sh COMMAND'
31133 # in which case we are not to be found in the path.
31134 if test "x$as_myself" = x; then
31135   as_myself=$0
31136 fi
31137 if test ! -f "$as_myself"; then
31138   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31139   exit 1
31140 fi
31141
31142 # Unset variables that we do not need and which cause bugs (e.g. in
31143 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31144 # suppresses any "Segmentation fault" message there.  '((' could
31145 # trigger a bug in pdksh 5.2.14.
31146 for as_var in BASH_ENV ENV MAIL MAILPATH
31147 do eval test x\${$as_var+set} = xset \
31148   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31149 done
31150 PS1='$ '
31151 PS2='> '
31152 PS4='+ '
31153
31154 # NLS nuisances.
31155 LC_ALL=C
31156 export LC_ALL
31157 LANGUAGE=C
31158 export LANGUAGE
31159
31160 # CDPATH.
31161 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31162
31163
31164 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31165 # ----------------------------------------
31166 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31167 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31168 # script with STATUS, using 1 if that was 0.
31169 as_fn_error ()
31170 {
31171   as_status=$1; test $as_status -eq 0 && as_status=1
31172   if test "$4"; then
31173     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31174     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31175   fi
31176   $as_echo "$as_me: error: $2" >&2
31177   as_fn_exit $as_status
31178 } # as_fn_error
31179
31180
31181 # as_fn_set_status STATUS
31182 # -----------------------
31183 # Set $? to STATUS, without forking.
31184 as_fn_set_status ()
31185 {
31186   return $1
31187 } # as_fn_set_status
31188
31189 # as_fn_exit STATUS
31190 # -----------------
31191 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31192 as_fn_exit ()
31193 {
31194   set +e
31195   as_fn_set_status $1
31196   exit $1
31197 } # as_fn_exit
31198
31199 # as_fn_unset VAR
31200 # ---------------
31201 # Portably unset VAR.
31202 as_fn_unset ()
31203 {
31204   { eval $1=; unset $1;}
31205 }
31206 as_unset=as_fn_unset
31207 # as_fn_append VAR VALUE
31208 # ----------------------
31209 # Append the text in VALUE to the end of the definition contained in VAR. Take
31210 # advantage of any shell optimizations that allow amortized linear growth over
31211 # repeated appends, instead of the typical quadratic growth present in naive
31212 # implementations.
31213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
31214   eval 'as_fn_append ()
31215   {
31216     eval $1+=\$2
31217   }'
31218 else
31219   as_fn_append ()
31220   {
31221     eval $1=\$$1\$2
31222   }
31223 fi # as_fn_append
31224
31225 # as_fn_arith ARG...
31226 # ------------------
31227 # Perform arithmetic evaluation on the ARGs, and store the result in the
31228 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31229 # must be portable across $(()) and expr.
31230 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
31231   eval 'as_fn_arith ()
31232   {
31233     as_val=$(( $* ))
31234   }'
31235 else
31236   as_fn_arith ()
31237   {
31238     as_val=`expr "$@" || test $? -eq 1`
31239   }
31240 fi # as_fn_arith
31241
31242
31243 if expr a : '\(a\)' >/dev/null 2>&1 &&
31244    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31245   as_expr=expr
31246 else
31247   as_expr=false
31248 fi
31249
31250 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31251   as_basename=basename
31252 else
31253   as_basename=false
31254 fi
31255
31256 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31257   as_dirname=dirname
31258 else
31259   as_dirname=false
31260 fi
31261
31262 as_me=`$as_basename -- "$0" ||
31263 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31264          X"$0" : 'X\(//\)$' \| \
31265          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31266 $as_echo X/"$0" |
31267     sed '/^.*\/\([^/][^/]*\)\/*$/{
31268             s//\1/
31269             q
31270           }
31271           /^X\/\(\/\/\)$/{
31272             s//\1/
31273             q
31274           }
31275           /^X\/\(\/\).*/{
31276             s//\1/
31277             q
31278           }
31279           s/.*/./; q'`
31280
31281 # Avoid depending upon Character Ranges.
31282 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31283 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31284 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31285 as_cr_digits='0123456789'
31286 as_cr_alnum=$as_cr_Letters$as_cr_digits
31287
31288 ECHO_C= ECHO_N= ECHO_T=
31289 case `echo -n x` in #(((((
31290 -n*)
31291   case `echo 'xy\c'` in
31292   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31293   xy)  ECHO_C='\c';;
31294   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31295        ECHO_T=' ';;
31296   esac;;
31297 *)
31298   ECHO_N='-n';;
31299 esac
31300
31301 rm -f conf$$ conf$$.exe conf$$.file
31302 if test -d conf$$.dir; then
31303   rm -f conf$$.dir/conf$$.file
31304 else
31305   rm -f conf$$.dir
31306   mkdir conf$$.dir 2>/dev/null
31307 fi
31308 if (echo >conf$$.file) 2>/dev/null; then
31309   if ln -s conf$$.file conf$$ 2>/dev/null; then
31310     as_ln_s='ln -s'
31311     # ... but there are two gotchas:
31312     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31313     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31314     # In both cases, we have to default to `cp -pR'.
31315     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31316       as_ln_s='cp -pR'
31317   elif ln conf$$.file conf$$ 2>/dev/null; then
31318     as_ln_s=ln
31319   else
31320     as_ln_s='cp -pR'
31321   fi
31322 else
31323   as_ln_s='cp -pR'
31324 fi
31325 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31326 rmdir conf$$.dir 2>/dev/null
31327
31328
31329 # as_fn_mkdir_p
31330 # -------------
31331 # Create "$as_dir" as a directory, including parents if necessary.
31332 as_fn_mkdir_p ()
31333 {
31334
31335   case $as_dir in #(
31336   -*) as_dir=./$as_dir;;
31337   esac
31338   test -d "$as_dir" || eval $as_mkdir_p || {
31339     as_dirs=
31340     while :; do
31341       case $as_dir in #(
31342       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31343       *) as_qdir=$as_dir;;
31344       esac
31345       as_dirs="'$as_qdir' $as_dirs"
31346       as_dir=`$as_dirname -- "$as_dir" ||
31347 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31348          X"$as_dir" : 'X\(//\)[^/]' \| \
31349          X"$as_dir" : 'X\(//\)$' \| \
31350          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31351 $as_echo X"$as_dir" |
31352     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31353             s//\1/
31354             q
31355           }
31356           /^X\(\/\/\)[^/].*/{
31357             s//\1/
31358             q
31359           }
31360           /^X\(\/\/\)$/{
31361             s//\1/
31362             q
31363           }
31364           /^X\(\/\).*/{
31365             s//\1/
31366             q
31367           }
31368           s/.*/./; q'`
31369       test -d "$as_dir" && break
31370     done
31371     test -z "$as_dirs" || eval "mkdir $as_dirs"
31372   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31373
31374
31375 } # as_fn_mkdir_p
31376 if mkdir -p . 2>/dev/null; then
31377   as_mkdir_p='mkdir -p "$as_dir"'
31378 else
31379   test -d ./-p && rmdir ./-p
31380   as_mkdir_p=false
31381 fi
31382
31383
31384 # as_fn_executable_p FILE
31385 # -----------------------
31386 # Test if FILE is an executable regular file.
31387 as_fn_executable_p ()
31388 {
31389   test -f "$1" && test -x "$1"
31390 } # as_fn_executable_p
31391 as_test_x='test -x'
31392 as_executable_p=as_fn_executable_p
31393
31394 # Sed expression to map a string onto a valid CPP name.
31395 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31396
31397 # Sed expression to map a string onto a valid variable name.
31398 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31399
31400
31401 exec 6>&1
31402 ## ----------------------------------- ##
31403 ## Main body of $CONFIG_STATUS script. ##
31404 ## ----------------------------------- ##
31405 _ASEOF
31406 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31407
31408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31409 # Save the log message, to keep $0 and so on meaningful, and to
31410 # report actual input values of CONFIG_FILES etc. instead of their
31411 # values after options handling.
31412 ac_log="
31413 This file was extended by bacula $as_me 7.2.1, which was
31414 generated by GNU Autoconf 2.69.  Invocation command line was
31415
31416   CONFIG_FILES    = $CONFIG_FILES
31417   CONFIG_HEADERS  = $CONFIG_HEADERS
31418   CONFIG_LINKS    = $CONFIG_LINKS
31419   CONFIG_COMMANDS = $CONFIG_COMMANDS
31420   $ $0 $@
31421
31422 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31423 "
31424
31425 _ACEOF
31426
31427 case $ac_config_files in *"
31428 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31429 esac
31430
31431 case $ac_config_headers in *"
31432 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31433 esac
31434
31435
31436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31437 # Files that config.status was made for.
31438 config_files="$ac_config_files"
31439 config_headers="$ac_config_headers"
31440 config_commands="$ac_config_commands"
31441
31442 _ACEOF
31443
31444 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31445 ac_cs_usage="\
31446 \`$as_me' instantiates files and other configuration actions
31447 from templates according to the current configuration.  Unless the files
31448 and actions are specified as TAGs, all are instantiated by default.
31449
31450 Usage: $0 [OPTION]... [TAG]...
31451
31452   -h, --help       print this help, then exit
31453   -V, --version    print version number and configuration settings, then exit
31454       --config     print configuration, then exit
31455   -q, --quiet, --silent
31456                    do not print progress messages
31457   -d, --debug      don't remove temporary files
31458       --recheck    update $as_me by reconfiguring in the same conditions
31459       --file=FILE[:TEMPLATE]
31460                    instantiate the configuration file FILE
31461       --header=FILE[:TEMPLATE]
31462                    instantiate the configuration header FILE
31463
31464 Configuration files:
31465 $config_files
31466
31467 Configuration headers:
31468 $config_headers
31469
31470 Configuration commands:
31471 $config_commands
31472
31473 Report bugs to the package provider."
31474
31475 _ACEOF
31476 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31477 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31478 ac_cs_version="\\
31479 bacula config.status 7.2.1
31480 configured by $0, generated by GNU Autoconf 2.69,
31481   with options \\"\$ac_cs_config\\"
31482
31483 Copyright (C) 2012 Free Software Foundation, Inc.
31484 This config.status script is free software; the Free Software Foundation
31485 gives unlimited permission to copy, distribute and modify it."
31486
31487 ac_pwd='$ac_pwd'
31488 srcdir='$srcdir'
31489 INSTALL='$INSTALL'
31490 AWK='$AWK'
31491 test -n "\$AWK" || AWK=awk
31492 _ACEOF
31493
31494 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31495 # The default lists apply if the user does not specify any file.
31496 ac_need_defaults=:
31497 while test $# != 0
31498 do
31499   case $1 in
31500   --*=?*)
31501     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31502     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31503     ac_shift=:
31504     ;;
31505   --*=)
31506     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31507     ac_optarg=
31508     ac_shift=:
31509     ;;
31510   *)
31511     ac_option=$1
31512     ac_optarg=$2
31513     ac_shift=shift
31514     ;;
31515   esac
31516
31517   case $ac_option in
31518   # Handling of the options.
31519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31520     ac_cs_recheck=: ;;
31521   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31522     $as_echo "$ac_cs_version"; exit ;;
31523   --config | --confi | --conf | --con | --co | --c )
31524     $as_echo "$ac_cs_config"; exit ;;
31525   --debug | --debu | --deb | --de | --d | -d )
31526     debug=: ;;
31527   --file | --fil | --fi | --f )
31528     $ac_shift
31529     case $ac_optarg in
31530     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31531     '') as_fn_error $? "missing file argument" ;;
31532     esac
31533     as_fn_append CONFIG_FILES " '$ac_optarg'"
31534     ac_need_defaults=false;;
31535   --header | --heade | --head | --hea )
31536     $ac_shift
31537     case $ac_optarg in
31538     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31539     esac
31540     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31541     ac_need_defaults=false;;
31542   --he | --h)
31543     # Conflict between --help and --header
31544     as_fn_error $? "ambiguous option: \`$1'
31545 Try \`$0 --help' for more information.";;
31546   --help | --hel | -h )
31547     $as_echo "$ac_cs_usage"; exit ;;
31548   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31549   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31550     ac_cs_silent=: ;;
31551
31552   # This is an error.
31553   -*) as_fn_error $? "unrecognized option: \`$1'
31554 Try \`$0 --help' for more information." ;;
31555
31556   *) as_fn_append ac_config_targets " $1"
31557      ac_need_defaults=false ;;
31558
31559   esac
31560   shift
31561 done
31562
31563 ac_configure_extra_args=
31564
31565 if $ac_cs_silent; then
31566   exec 6>/dev/null
31567   ac_configure_extra_args="$ac_configure_extra_args --silent"
31568 fi
31569
31570 _ACEOF
31571 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31572 if \$ac_cs_recheck; then
31573   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31574   shift
31575   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31576   CONFIG_SHELL='$SHELL'
31577   export CONFIG_SHELL
31578   exec "\$@"
31579 fi
31580
31581 _ACEOF
31582 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31583 exec 5>>config.log
31584 {
31585   echo
31586   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31587 ## Running $as_me. ##
31588 _ASBOX
31589   $as_echo "$ac_log"
31590 } >&5
31591
31592 _ACEOF
31593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31594 #
31595 # INIT-COMMANDS
31596 #
31597
31598
31599 # The HP-UX ksh and POSIX shell print the target directory to stdout
31600 # if CDPATH is set.
31601 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31602
31603 sed_quote_subst='$sed_quote_subst'
31604 double_quote_subst='$double_quote_subst'
31605 delay_variable_subst='$delay_variable_subst'
31606 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31607 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31608 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31609 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31612 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31613 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31614 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31615 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31616 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31617 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31618 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31619 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31620 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31621 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31622 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31623 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31624 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31625 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31626 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31627 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31628 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31629 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31630 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31631 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31632 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31633 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31634 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31635 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31636 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31637 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31638 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31639 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31644 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31645 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31646 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31647 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31648 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31649 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31650 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31651 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31652 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31653 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31654 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31655 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31656 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31657 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31658 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31659 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31660 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31662 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"`'
31663 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31664 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31665 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31666 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31667 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31668 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31669 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31670 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31671 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31672 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31673 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31674 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31675 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31676 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31677 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31678 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31679 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31680 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31681 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31682 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31683 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31684 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31685 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31686 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31687 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31688 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31689 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31690 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31691 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31692 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31693 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31694 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31695 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31696 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31697 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31698 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31699 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31700 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31701 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31702 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31703 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31704 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31705 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31706 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31707 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31708 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31709 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31710 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31711 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31712 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31713 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31714 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31715 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31716 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31717 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31718 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31719 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31720 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31721 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31722 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31723 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31724 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31725 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31726 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31727 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31728 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31729 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31730 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31731 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31732 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31733 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31734 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31735 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31736 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
31737 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
31738 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
31739 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
31740 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
31741 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
31742 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
31743 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
31744 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31745 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31746 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
31747 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
31748 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
31749 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
31750 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
31751 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
31752 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
31753 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
31754 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
31755 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31756 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31757 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
31758 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31759 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31760 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31761 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31762 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31763 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31764 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
31765 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31766 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
31767 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
31768 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
31769 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
31770 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
31771 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
31772 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
31773 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
31774 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
31775 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
31776 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
31777 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31778 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31779 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
31780 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31781 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
31782 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
31783 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
31784 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
31785 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31786 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
31787 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
31788 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
31789 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
31790
31791 LTCC='$LTCC'
31792 LTCFLAGS='$LTCFLAGS'
31793 compiler='$compiler_DEFAULT'
31794
31795 # A function that is used when there is no print builtin or printf.
31796 func_fallback_echo ()
31797 {
31798   eval 'cat <<_LTECHO_EOF
31799 \$1
31800 _LTECHO_EOF'
31801 }
31802
31803 # Quote evaled strings.
31804 for var in SHELL \
31805 ECHO \
31806 PATH_SEPARATOR \
31807 SED \
31808 GREP \
31809 EGREP \
31810 FGREP \
31811 LD \
31812 NM \
31813 LN_S \
31814 lt_SP2NL \
31815 lt_NL2SP \
31816 reload_flag \
31817 OBJDUMP \
31818 deplibs_check_method \
31819 file_magic_cmd \
31820 file_magic_glob \
31821 want_nocaseglob \
31822 DLLTOOL \
31823 sharedlib_from_linklib_cmd \
31824 AR \
31825 AR_FLAGS \
31826 archiver_list_spec \
31827 STRIP \
31828 RANLIB \
31829 CC \
31830 CFLAGS \
31831 compiler \
31832 lt_cv_sys_global_symbol_pipe \
31833 lt_cv_sys_global_symbol_to_cdecl \
31834 lt_cv_sys_global_symbol_to_c_name_address \
31835 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31836 nm_file_list_spec \
31837 lt_prog_compiler_no_builtin_flag \
31838 lt_prog_compiler_pic \
31839 lt_prog_compiler_wl \
31840 lt_prog_compiler_static \
31841 lt_cv_prog_compiler_c_o \
31842 need_locks \
31843 MANIFEST_TOOL \
31844 DSYMUTIL \
31845 NMEDIT \
31846 LIPO \
31847 OTOOL \
31848 OTOOL64 \
31849 shrext_cmds \
31850 export_dynamic_flag_spec \
31851 whole_archive_flag_spec \
31852 compiler_needs_object \
31853 with_gnu_ld \
31854 allow_undefined_flag \
31855 no_undefined_flag \
31856 hardcode_libdir_flag_spec \
31857 hardcode_libdir_separator \
31858 exclude_expsyms \
31859 include_expsyms \
31860 file_list_spec \
31861 variables_saved_for_relink \
31862 libname_spec \
31863 library_names_spec \
31864 soname_spec \
31865 install_override_mode \
31866 finish_eval \
31867 old_striplib \
31868 striplib \
31869 compiler_lib_search_dirs \
31870 predep_objects \
31871 postdep_objects \
31872 predeps \
31873 postdeps \
31874 compiler_lib_search_path \
31875 LD_CXX \
31876 reload_flag_CXX \
31877 compiler_CXX \
31878 lt_prog_compiler_no_builtin_flag_CXX \
31879 lt_prog_compiler_pic_CXX \
31880 lt_prog_compiler_wl_CXX \
31881 lt_prog_compiler_static_CXX \
31882 lt_cv_prog_compiler_c_o_CXX \
31883 export_dynamic_flag_spec_CXX \
31884 whole_archive_flag_spec_CXX \
31885 compiler_needs_object_CXX \
31886 with_gnu_ld_CXX \
31887 allow_undefined_flag_CXX \
31888 no_undefined_flag_CXX \
31889 hardcode_libdir_flag_spec_CXX \
31890 hardcode_libdir_separator_CXX \
31891 exclude_expsyms_CXX \
31892 include_expsyms_CXX \
31893 file_list_spec_CXX \
31894 compiler_lib_search_dirs_CXX \
31895 predep_objects_CXX \
31896 postdep_objects_CXX \
31897 predeps_CXX \
31898 postdeps_CXX \
31899 compiler_lib_search_path_CXX; do
31900     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31901     *[\\\\\\\`\\"\\\$]*)
31902       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31903       ;;
31904     *)
31905       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31906       ;;
31907     esac
31908 done
31909
31910 # Double-quote double-evaled strings.
31911 for var in reload_cmds \
31912 old_postinstall_cmds \
31913 old_postuninstall_cmds \
31914 old_archive_cmds \
31915 extract_expsyms_cmds \
31916 old_archive_from_new_cmds \
31917 old_archive_from_expsyms_cmds \
31918 archive_cmds \
31919 archive_expsym_cmds \
31920 module_cmds \
31921 module_expsym_cmds \
31922 export_symbols_cmds \
31923 prelink_cmds \
31924 postlink_cmds \
31925 postinstall_cmds \
31926 postuninstall_cmds \
31927 finish_cmds \
31928 sys_lib_search_path_spec \
31929 sys_lib_dlsearch_path_spec \
31930 reload_cmds_CXX \
31931 old_archive_cmds_CXX \
31932 old_archive_from_new_cmds_CXX \
31933 old_archive_from_expsyms_cmds_CXX \
31934 archive_cmds_CXX \
31935 archive_expsym_cmds_CXX \
31936 module_cmds_CXX \
31937 module_expsym_cmds_CXX \
31938 export_symbols_cmds_CXX \
31939 prelink_cmds_CXX \
31940 postlink_cmds_CXX; do
31941     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31942     *[\\\\\\\`\\"\\\$]*)
31943       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31944       ;;
31945     *)
31946       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31947       ;;
31948     esac
31949 done
31950
31951 ac_aux_dir='$ac_aux_dir'
31952 xsi_shell='$xsi_shell'
31953 lt_shell_append='$lt_shell_append'
31954
31955 # See if we are running on zsh, and set the options which allow our
31956 # commands through without removal of \ escapes INIT.
31957 if test -n "\${ZSH_VERSION+set}" ; then
31958    setopt NO_GLOB_SUBST
31959 fi
31960
31961
31962     PACKAGE='$PACKAGE'
31963     VERSION='$VERSION'
31964     TIMESTAMP='$TIMESTAMP'
31965     RM='$RM'
31966     ofile='$ofile'
31967
31968
31969
31970
31971
31972 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
31973     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
31974     # from automake.
31975     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
31976     # Capture the value of LINGUAS because we need it to compute CATALOGS.
31977     LINGUAS="${LINGUAS-%UNSET%}"
31978
31979
31980 _ACEOF
31981
31982 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31983
31984 # Handling of arguments.
31985 for ac_config_target in $ac_config_targets
31986 do
31987   case $ac_config_target in
31988     "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:autoconf/config.h.in" ;;
31989     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
31990     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
31991     "autoconf/Make.common") CONFIG_FILES="$CONFIG_FILES autoconf/Make.common" ;;
31992     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31993     "manpages/Makefile") CONFIG_FILES="$CONFIG_FILES manpages/Makefile" ;;
31994     "scripts/btraceback") CONFIG_FILES="$CONFIG_FILES scripts/btraceback" ;;
31995     "scripts/bconsole") CONFIG_FILES="$CONFIG_FILES scripts/bconsole" ;;
31996     "scripts/bacula") CONFIG_FILES="$CONFIG_FILES scripts/bacula" ;;
31997     "scripts/bacula-ctl-dir") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-dir" ;;
31998     "scripts/bacula-ctl-fd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-fd" ;;
31999     "scripts/bacula-ctl-sd") CONFIG_FILES="$CONFIG_FILES scripts/bacula-ctl-sd" ;;
32000     "scripts/devel_bacula") CONFIG_FILES="$CONFIG_FILES scripts/devel_bacula" ;;
32001     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
32002     "scripts/logrotate") CONFIG_FILES="$CONFIG_FILES scripts/logrotate" ;;
32003     "scripts/mtx-changer") CONFIG_FILES="$CONFIG_FILES scripts/mtx-changer" ;;
32004     "scripts/disk-changer") CONFIG_FILES="$CONFIG_FILES scripts/disk-changer" ;;
32005     "scripts/dvd-handler") CONFIG_FILES="$CONFIG_FILES scripts/dvd-handler" ;;
32006     "scripts/dvd-simulator") CONFIG_FILES="$CONFIG_FILES scripts/dvd-simulator" ;;
32007     "scripts/logwatch/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/Makefile" ;;
32008     "scripts/logwatch/logfile.bacula.conf") CONFIG_FILES="$CONFIG_FILES scripts/logwatch/logfile.bacula.conf" ;;
32009     "scripts/bat.desktop") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop" ;;
32010     "scripts/bat.desktop.xsu") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.xsu" ;;
32011     "scripts/bat.desktop.consolehelper") CONFIG_FILES="$CONFIG_FILES scripts/bat.desktop.consolehelper" ;;
32012     "scripts/bat.console_apps") CONFIG_FILES="$CONFIG_FILES scripts/bat.console_apps" ;;
32013     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32014     "src/host.h") CONFIG_FILES="$CONFIG_FILES src/host.h" ;;
32015     "src/console/Makefile") CONFIG_FILES="$CONFIG_FILES src/console/Makefile" ;;
32016     "src/console/bconsole.conf") CONFIG_FILES="$CONFIG_FILES src/console/bconsole.conf" ;;
32017     "src/qt-console/bat.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.conf" ;;
32018     "src/qt-console/bat.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro" ;;
32019     "src/qt-console/bat.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw32" ;;
32020     "src/qt-console/bat.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/bat.pro.mingw64" ;;
32021     "src/qt-console/install_conf_file") CONFIG_FILES="$CONFIG_FILES src/qt-console/install_conf_file" ;;
32022     "src/qt-console/tray-monitor/tray-monitor.conf") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.conf" ;;
32023     "src/qt-console/tray-monitor/tray-monitor.pro") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro" ;;
32024     "src/qt-console/tray-monitor/tray-monitor.pro.mingw32") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw32" ;;
32025     "src/qt-console/tray-monitor/tray-monitor.pro.mingw64") CONFIG_FILES="$CONFIG_FILES src/qt-console/tray-monitor/tray-monitor.pro.mingw64" ;;
32026     "src/dird/Makefile") CONFIG_FILES="$CONFIG_FILES src/dird/Makefile" ;;
32027     "src/dird/bacula-dir.conf") CONFIG_FILES="$CONFIG_FILES src/dird/bacula-dir.conf" ;;
32028     "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
32029     "src/stored/Makefile") CONFIG_FILES="$CONFIG_FILES src/stored/Makefile" ;;
32030     "src/stored/bacula-sd.conf") CONFIG_FILES="$CONFIG_FILES src/stored/bacula-sd.conf" ;;
32031     "src/filed/Makefile") CONFIG_FILES="$CONFIG_FILES src/filed/Makefile" ;;
32032     "src/filed/bacula-fd.conf") CONFIG_FILES="$CONFIG_FILES src/filed/bacula-fd.conf" ;;
32033     "src/cats/Makefile") CONFIG_FILES="$CONFIG_FILES src/cats/Makefile" ;;
32034     "src/cats/make_catalog_backup.pl") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup.pl" ;;
32035     "src/cats/make_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/make_catalog_backup" ;;
32036     "src/cats/delete_catalog_backup") CONFIG_FILES="$CONFIG_FILES src/cats/delete_catalog_backup" ;;
32037     "src/cats/create_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_postgresql_database" ;;
32038     "src/cats/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_postgresql_tables" ;;
32039     "src/cats/make_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_postgresql_tables" ;;
32040     "src/cats/grant_postgresql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_postgresql_privileges" ;;
32041     "src/cats/drop_postgresql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_tables" ;;
32042     "src/cats/drop_postgresql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_postgresql_database" ;;
32043     "src/cats/create_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_mysql_database" ;;
32044     "src/cats/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_mysql_tables" ;;
32045     "src/cats/make_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_mysql_tables" ;;
32046     "src/cats/grant_mysql_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_mysql_privileges" ;;
32047     "src/cats/drop_mysql_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_tables" ;;
32048     "src/cats/drop_mysql_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_mysql_database" ;;
32049     "src/cats/create_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_sqlite3_database" ;;
32050     "src/cats/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_sqlite3_tables" ;;
32051     "src/cats/make_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_sqlite3_tables" ;;
32052     "src/cats/grant_sqlite3_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_sqlite3_privileges" ;;
32053     "src/cats/drop_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_tables" ;;
32054     "src/cats/drop_sqlite3_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_sqlite3_database" ;;
32055     "src/cats/sqlite") CONFIG_FILES="$CONFIG_FILES src/cats/sqlite" ;;
32056     "src/cats/mysql") CONFIG_FILES="$CONFIG_FILES src/cats/mysql" ;;
32057     "src/cats/create_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/create_bacula_database" ;;
32058     "src/cats/update_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/update_bacula_tables" ;;
32059     "src/cats/grant_bacula_privileges") CONFIG_FILES="$CONFIG_FILES src/cats/grant_bacula_privileges" ;;
32060     "src/cats/make_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/make_bacula_tables" ;;
32061     "src/cats/drop_bacula_tables") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_tables" ;;
32062     "src/cats/drop_bacula_database") CONFIG_FILES="$CONFIG_FILES src/cats/drop_bacula_database" ;;
32063     "src/cats/install-default-backend") CONFIG_FILES="$CONFIG_FILES src/cats/install-default-backend" ;;
32064     "src/findlib/Makefile") CONFIG_FILES="$CONFIG_FILES src/findlib/Makefile" ;;
32065     "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
32066     "src/plugins/fd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/fd/Makefile" ;;
32067     "src/plugins/sd/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/sd/Makefile" ;;
32068     "src/plugins/dir/Makefile") CONFIG_FILES="$CONFIG_FILES src/plugins/dir/Makefile" ;;
32069     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
32070     "updatedb/update_mysql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables" ;;
32071     "updatedb/update_sqlite3_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables" ;;
32072     "updatedb/update_postgresql_tables") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables" ;;
32073     "updatedb/update_mysql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_9_to_10" ;;
32074     "updatedb/update_sqlite3_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_9_to_10" ;;
32075     "updatedb/update_postgresql_tables_9_to_10") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_9_to_10" ;;
32076     "updatedb/update_mysql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_10_to_11" ;;
32077     "updatedb/update_sqlite3_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_10_to_11" ;;
32078     "updatedb/update_postgresql_tables_10_to_11") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_10_to_11" ;;
32079     "updatedb/update_mysql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_11_to_12" ;;
32080     "updatedb/update_sqlite3_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_sqlite3_tables_11_to_12" ;;
32081     "updatedb/update_postgresql_tables_11_to_12") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_11_to_12" ;;
32082     "updatedb/update_mysql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_12_to_13" ;;
32083     "updatedb/update_postgresql_tables_12_to_13") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_12_to_13" ;;
32084     "updatedb/update_mysql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_mysql_tables_13_to_14" ;;
32085     "updatedb/update_postgresql_tables_13_to_14") CONFIG_FILES="$CONFIG_FILES updatedb/update_postgresql_tables_13_to_14" ;;
32086     "examples/nagios/check_bacula/Makefile") CONFIG_FILES="$CONFIG_FILES examples/nagios/check_bacula/Makefile" ;;
32087     "platforms/rpms/redhat/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula.spec" ;;
32088     "platforms/rpms/redhat/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-bat.spec" ;;
32089     "platforms/rpms/redhat/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-docs.spec" ;;
32090     "platforms/rpms/redhat/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/redhat/bacula-mtx.spec" ;;
32091     "platforms/rpms/suse/bacula.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula.spec" ;;
32092     "platforms/rpms/suse/bacula-bat.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-bat.spec" ;;
32093     "platforms/rpms/suse/bacula-docs.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-docs.spec" ;;
32094     "platforms/rpms/suse/bacula-mtx.spec") CONFIG_FILES="$CONFIG_FILES platforms/rpms/suse/bacula-mtx.spec" ;;
32095     "$PFILES") CONFIG_FILES="$CONFIG_FILES $PFILES" ;;
32096     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
32097
32098   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32099   esac
32100 done
32101
32102
32103 # If the user did not use the arguments to specify the items to instantiate,
32104 # then the envvar interface is used.  Set only those that are not.
32105 # We use the long form for the default assignment because of an extremely
32106 # bizarre bug on SunOS 4.1.3.
32107 if $ac_need_defaults; then
32108   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32109   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32110   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32111 fi
32112
32113 # Have a temporary directory for convenience.  Make it in the build tree
32114 # simply because there is no reason against having it here, and in addition,
32115 # creating and moving files from /tmp can sometimes cause problems.
32116 # Hook for its removal unless debugging.
32117 # Note that there is a small window in which the directory will not be cleaned:
32118 # after its creation but before its name has been assigned to `$tmp'.
32119 $debug ||
32120 {
32121   tmp= ac_tmp=
32122   trap 'exit_status=$?
32123   : "${ac_tmp:=$tmp}"
32124   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32125 ' 0
32126   trap 'as_fn_exit 1' 1 2 13 15
32127 }
32128 # Create a (secure) tmp directory for tmp files.
32129
32130 {
32131   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32132   test -d "$tmp"
32133 }  ||
32134 {
32135   tmp=./conf$$-$RANDOM
32136   (umask 077 && mkdir "$tmp")
32137 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
32138 ac_tmp=$tmp
32139
32140 # Set up the scripts for CONFIG_FILES section.
32141 # No need to generate them if there are no CONFIG_FILES.
32142 # This happens for instance with `./config.status config.h'.
32143 if test -n "$CONFIG_FILES"; then
32144
32145 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
32146   ac_cs_awk_getline=:
32147   ac_cs_awk_pipe_init=
32148   ac_cs_awk_read_file='
32149       while ((getline aline < (F[key])) > 0)
32150         print(aline)
32151       close(F[key])'
32152   ac_cs_awk_pipe_fini=
32153 else
32154   ac_cs_awk_getline=false
32155   ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
32156   ac_cs_awk_read_file='
32157       print "|#_!!_#|"
32158       print "cat " F[key] " &&"
32159       '$ac_cs_awk_pipe_init
32160   # The final `:' finishes the AND list.
32161   ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
32162 fi
32163 ac_cr=`echo X | tr X '\015'`
32164 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32165 # But we know of no other shell where ac_cr would be empty at this
32166 # point, so we can use a bashism as a fallback.
32167 if test "x$ac_cr" = x; then
32168   eval ac_cr=\$\'\\r\'
32169 fi
32170 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32171 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32172   ac_cs_awk_cr='\\r'
32173 else
32174   ac_cs_awk_cr=$ac_cr
32175 fi
32176
32177 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32178 _ACEOF
32179
32180 # Create commands to substitute file output variables.
32181 {
32182   echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
32183   echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
32184   echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
32185   echo "_ACAWK" &&
32186   echo "_ACEOF"
32187 } >conf$$files.sh &&
32188 . ./conf$$files.sh ||
32189   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32190 rm -f conf$$files.sh
32191
32192 {
32193   echo "cat >conf$$subs.awk <<_ACEOF" &&
32194   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32195   echo "_ACEOF"
32196 } >conf$$subs.sh ||
32197   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32198 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32199 ac_delim='%!_!# '
32200 for ac_last_try in false false false false false :; do
32201   . ./conf$$subs.sh ||
32202     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32203
32204   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
32205   if test $ac_delim_n = $ac_delim_num; then
32206     break
32207   elif $ac_last_try; then
32208     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
32209   else
32210     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32211   fi
32212 done
32213 rm -f conf$$subs.sh
32214
32215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32216 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
32217 _ACEOF
32218 sed -n '
32219 h
32220 s/^/S["/; s/!.*/"]=/
32221 p
32222 g
32223 s/^[^!]*!//
32224 :repl
32225 t repl
32226 s/'"$ac_delim"'$//
32227 t delim
32228 :nl
32229 h
32230 s/\(.\{148\}\)..*/\1/
32231 t more1
32232 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
32233 p
32234 n
32235 b repl
32236 :more1
32237 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32238 p
32239 g
32240 s/.\{148\}//
32241 t nl
32242 :delim
32243 h
32244 s/\(.\{148\}\)..*/\1/
32245 t more2
32246 s/["\\]/\\&/g; s/^/"/; s/$/"/
32247 p
32248 b
32249 :more2
32250 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
32251 p
32252 g
32253 s/.\{148\}//
32254 t delim
32255 ' <conf$$subs.awk | sed '
32256 /^[^""]/{
32257   N
32258   s/\n//
32259 }
32260 ' >>$CONFIG_STATUS || ac_write_fail=1
32261 rm -f conf$$subs.awk
32262 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32263 _ACAWK
32264 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
32265   for (key in S) S_is_set[key] = 1
32266   FS = "\a"
32267   \$ac_cs_awk_pipe_init
32268 }
32269 {
32270   line = $ 0
32271   nfields = split(line, field, "@")
32272   substed = 0
32273   len = length(field[1])
32274   for (i = 2; i < nfields; i++) {
32275     key = field[i]
32276     keylen = length(key)
32277     if (S_is_set[key]) {
32278       value = S[key]
32279       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32280       len += length(value) + length(field[++i])
32281       substed = 1
32282     } else
32283       len += 1 + keylen
32284   }
32285   if (nfields == 3 && !substed) {
32286     key = field[2]
32287     if (F[key] != "" && line ~ /^[       ]*@.*@[         ]*$/) {
32288       \$ac_cs_awk_read_file
32289       next
32290     }
32291   }
32292   print line
32293 }
32294 \$ac_cs_awk_pipe_fini
32295 _ACAWK
32296 _ACEOF
32297 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32298 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32299   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
32300 else
32301   cat
32302 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
32303   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
32304 _ACEOF
32305
32306 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32307 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
32308 # trailing colons and then remove the whole line if VPATH becomes empty
32309 # (actually we leave an empty line to preserve line numbers).
32310 if test "x$srcdir" = x.; then
32311   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
32312 h
32313 s///
32314 s/^/:/
32315 s/[      ]*$/:/
32316 s/:\$(srcdir):/:/g
32317 s/:\${srcdir}:/:/g
32318 s/:@srcdir@:/:/g
32319 s/^:*//
32320 s/:*$//
32321 x
32322 s/\(=[   ]*\).*/\1/
32323 G
32324 s/\n//
32325 s/^[^=]*=[       ]*$//
32326 }'
32327 fi
32328
32329 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32330 fi # test -n "$CONFIG_FILES"
32331
32332 # Set up the scripts for CONFIG_HEADERS section.
32333 # No need to generate them if there are no CONFIG_HEADERS.
32334 # This happens for instance with `./config.status Makefile'.
32335 if test -n "$CONFIG_HEADERS"; then
32336 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
32337 BEGIN {
32338 _ACEOF
32339
32340 # Transform confdefs.h into an awk script `defines.awk', embedded as
32341 # here-document in config.status, that substitutes the proper values into
32342 # config.h.in to produce config.h.
32343
32344 # Create a delimiter string that does not exist in confdefs.h, to ease
32345 # handling of long lines.
32346 ac_delim='%!_!# '
32347 for ac_last_try in false false :; do
32348   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
32349   if test -z "$ac_tt"; then
32350     break
32351   elif $ac_last_try; then
32352     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
32353   else
32354     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
32355   fi
32356 done
32357
32358 # For the awk script, D is an array of macro values keyed by name,
32359 # likewise P contains macro parameters if any.  Preserve backslash
32360 # newline sequences.
32361
32362 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32363 sed -n '
32364 s/.\{148\}/&'"$ac_delim"'/g
32365 t rset
32366 :rset
32367 s/^[     ]*#[    ]*define[       ][      ]*/ /
32368 t def
32369 d
32370 :def
32371 s/\\$//
32372 t bsnl
32373 s/["\\]/\\&/g
32374 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32375 D["\1"]=" \3"/p
32376 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
32377 d
32378 :bsnl
32379 s/["\\]/\\&/g
32380 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
32381 D["\1"]=" \3\\\\\\n"\\/p
32382 t cont
32383 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
32384 t cont
32385 d
32386 :cont
32387 n
32388 s/.\{148\}/&'"$ac_delim"'/g
32389 t clear
32390 :clear
32391 s/\\$//
32392 t bsnlc
32393 s/["\\]/\\&/g; s/^/"/; s/$/"/p
32394 d
32395 :bsnlc
32396 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
32397 b cont
32398 ' <confdefs.h | sed '
32399 s/'"$ac_delim"'/"\\\
32400 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32401
32402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32403   for (key in D) D_is_set[key] = 1
32404   FS = "\a"
32405 }
32406 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32407   line = \$ 0
32408   split(line, arg, " ")
32409   if (arg[1] == "#") {
32410     defundef = arg[2]
32411     mac1 = arg[3]
32412   } else {
32413     defundef = substr(arg[1], 2)
32414     mac1 = arg[2]
32415   }
32416   split(mac1, mac2, "(") #)
32417   macro = mac2[1]
32418   prefix = substr(line, 1, index(line, defundef) - 1)
32419   if (D_is_set[macro]) {
32420     # Preserve the white space surrounding the "#".
32421     print prefix "define", macro P[macro] D[macro]
32422     next
32423   } else {
32424     # Replace #undef with comments.  This is necessary, for example,
32425     # in the case of _POSIX_SOURCE, which is predefined and required
32426     # on some systems where configure will not decide to define it.
32427     if (defundef == "undef") {
32428       print "/*", prefix defundef, macro, "*/"
32429       next
32430     }
32431   }
32432 }
32433 { print }
32434 _ACAWK
32435 _ACEOF
32436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32437   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
32438 fi # test -n "$CONFIG_HEADERS"
32439
32440
32441 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
32442 shift
32443 for ac_tag
32444 do
32445   case $ac_tag in
32446   :[FHLC]) ac_mode=$ac_tag; continue;;
32447   esac
32448   case $ac_mode$ac_tag in
32449   :[FHL]*:*);;
32450   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
32451   :[FH]-) ac_tag=-:-;;
32452   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
32453   esac
32454   ac_save_IFS=$IFS
32455   IFS=:
32456   set x $ac_tag
32457   IFS=$ac_save_IFS
32458   shift
32459   ac_file=$1
32460   shift
32461
32462   case $ac_mode in
32463   :L) ac_source=$1;;
32464   :[FH])
32465     ac_file_inputs=
32466     for ac_f
32467     do
32468       case $ac_f in
32469       -) ac_f="$ac_tmp/stdin";;
32470       *) # Look for the file first in the build tree, then in the source tree
32471          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32472          # because $ac_f cannot contain `:'.
32473          test -f "$ac_f" ||
32474            case $ac_f in
32475            [\\/$]*) false;;
32476            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32477            esac ||
32478            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32479       esac
32480       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32481       as_fn_append ac_file_inputs " '$ac_f'"
32482     done
32483
32484     # Let's still pretend it is `configure' which instantiates (i.e., don't
32485     # use $as_me), people would be surprised to read:
32486     #    /* config.h.  Generated by config.status.  */
32487     configure_input='Generated from '`
32488           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32489         `' by configure.'
32490     if test x"$ac_file" != x-; then
32491       configure_input="$ac_file.  $configure_input"
32492       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32493 $as_echo "$as_me: creating $ac_file" >&6;}
32494     fi
32495     # Neutralize special characters interpreted by sed in replacement strings.
32496     case $configure_input in #(
32497     *\&* | *\|* | *\\* )
32498        ac_sed_conf_input=`$as_echo "$configure_input" |
32499        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32500     *) ac_sed_conf_input=$configure_input;;
32501     esac
32502
32503     case $ac_tag in
32504     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32505       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32506     esac
32507     ;;
32508   esac
32509
32510   ac_dir=`$as_dirname -- "$ac_file" ||
32511 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32512          X"$ac_file" : 'X\(//\)[^/]' \| \
32513          X"$ac_file" : 'X\(//\)$' \| \
32514          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32515 $as_echo X"$ac_file" |
32516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32517             s//\1/
32518             q
32519           }
32520           /^X\(\/\/\)[^/].*/{
32521             s//\1/
32522             q
32523           }
32524           /^X\(\/\/\)$/{
32525             s//\1/
32526             q
32527           }
32528           /^X\(\/\).*/{
32529             s//\1/
32530             q
32531           }
32532           s/.*/./; q'`
32533   as_dir="$ac_dir"; as_fn_mkdir_p
32534   ac_builddir=.
32535
32536 case "$ac_dir" in
32537 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32538 *)
32539   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32540   # A ".." for each directory in $ac_dir_suffix.
32541   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32542   case $ac_top_builddir_sub in
32543   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32544   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32545   esac ;;
32546 esac
32547 ac_abs_top_builddir=$ac_pwd
32548 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32549 # for backward compatibility:
32550 ac_top_builddir=$ac_top_build_prefix
32551
32552 case $srcdir in
32553   .)  # We are building in place.
32554     ac_srcdir=.
32555     ac_top_srcdir=$ac_top_builddir_sub
32556     ac_abs_top_srcdir=$ac_pwd ;;
32557   [\\/]* | ?:[\\/]* )  # Absolute name.
32558     ac_srcdir=$srcdir$ac_dir_suffix;
32559     ac_top_srcdir=$srcdir
32560     ac_abs_top_srcdir=$srcdir ;;
32561   *) # Relative name.
32562     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32563     ac_top_srcdir=$ac_top_build_prefix$srcdir
32564     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32565 esac
32566 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32567
32568
32569   case $ac_mode in
32570   :F)
32571   #
32572   # CONFIG_FILE
32573   #
32574
32575   case $INSTALL in
32576   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32577   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32578   esac
32579 _ACEOF
32580
32581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32582 # If the template does not know about datarootdir, expand it.
32583 # FIXME: This hack should be removed a few years after 2.60.
32584 ac_datarootdir_hack=; ac_datarootdir_seen=
32585 ac_sed_dataroot='
32586 /datarootdir/ {
32587   p
32588   q
32589 }
32590 /@datadir@/p
32591 /@docdir@/p
32592 /@infodir@/p
32593 /@localedir@/p
32594 /@mandir@/p'
32595 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32596 *datarootdir*) ac_datarootdir_seen=yes;;
32597 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32598   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32599 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32600 _ACEOF
32601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32602   ac_datarootdir_hack='
32603   s&@datadir@&$datadir&g
32604   s&@docdir@&$docdir&g
32605   s&@infodir@&$infodir&g
32606   s&@localedir@&$localedir&g
32607   s&@mandir@&$mandir&g
32608   s&\\\${datarootdir}&$datarootdir&g' ;;
32609 esac
32610 _ACEOF
32611
32612 # Neutralize VPATH when `$srcdir' = `.'.
32613 # Shell code in configure.ac might set extrasub.
32614 # FIXME: do we really want to maintain this feature?
32615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32616 ac_sed_extra="$ac_vpsub
32617 $extrasub
32618 _ACEOF
32619 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32620 :t
32621 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32622 s|@configure_input@|$ac_sed_conf_input|;t t
32623 s&@top_builddir@&$ac_top_builddir_sub&;t t
32624 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32625 s&@srcdir@&$ac_srcdir&;t t
32626 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32627 s&@top_srcdir@&$ac_top_srcdir&;t t
32628 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32629 s&@builddir@&$ac_builddir&;t t
32630 s&@abs_builddir@&$ac_abs_builddir&;t t
32631 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32632 s&@INSTALL@&$ac_INSTALL&;t t
32633 $ac_datarootdir_hack
32634 "
32635 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
32636 if $ac_cs_awk_getline; then
32637   $AWK -f "$ac_tmp/subs.awk"
32638 else
32639   $AWK -f "$ac_tmp/subs.awk" | $SHELL
32640 fi \
32641   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32642
32643 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32644   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32645   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32646       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32647   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32648 which seems to be undefined.  Please make sure it is defined" >&5
32649 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32650 which seems to be undefined.  Please make sure it is defined" >&2;}
32651
32652   rm -f "$ac_tmp/stdin"
32653   case $ac_file in
32654   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32655   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32656   esac \
32657   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32658  ;;
32659   :H)
32660   #
32661   # CONFIG_HEADER
32662   #
32663   if test x"$ac_file" != x-; then
32664     {
32665       $as_echo "/* $configure_input  */" \
32666       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32667     } >"$ac_tmp/config.h" \
32668       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32669     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32670       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32671 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32672     else
32673       rm -f "$ac_file"
32674       mv "$ac_tmp/config.h" "$ac_file" \
32675         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32676     fi
32677   else
32678     $as_echo "/* $configure_input  */" \
32679       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32680       || as_fn_error $? "could not create -" "$LINENO" 5
32681   fi
32682  ;;
32683
32684   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32685 $as_echo "$as_me: executing $ac_file commands" >&6;}
32686  ;;
32687   esac
32688
32689
32690   case $ac_file$ac_mode in
32691     "libtool":C)
32692
32693     # See if we are running on zsh, and set the options which allow our
32694     # commands through without removal of \ escapes.
32695     if test -n "${ZSH_VERSION+set}" ; then
32696       setopt NO_GLOB_SUBST
32697     fi
32698
32699     cfgfile="${ofile}T"
32700     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32701     $RM "$cfgfile"
32702
32703     cat <<_LT_EOF >> "$cfgfile"
32704 #! $SHELL
32705
32706 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32707 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32708 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32709 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32710 #
32711 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32712 #                 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32713 #                 Foundation, Inc.
32714 #   Written by Gordon Matzigkeit, 1996
32715 #
32716 #   This file is part of GNU Libtool.
32717 #
32718 # GNU Libtool is free software; you can redistribute it and/or
32719 # modify it under the terms of the GNU General Public License as
32720 # published by the Free Software Foundation; either version 2 of
32721 # the License, or (at your option) any later version.
32722 #
32723 # As a special exception to the GNU General Public License,
32724 # if you distribute this file as part of a program or library that
32725 # is built using GNU Libtool, you may include this file under the
32726 # same distribution terms that you use for the rest of that program.
32727 #
32728 # GNU Libtool is distributed in the hope that it will be useful,
32729 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32730 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32731 # GNU General Public License for more details.
32732 #
32733 # You should have received a copy of the GNU General Public License
32734 # along with GNU Libtool; see the file COPYING.  If not, a copy
32735 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32736 # obtained by writing to the Free Software Foundation, Inc.,
32737 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32738
32739
32740 # The names of the tagged configurations supported by this script.
32741 available_tags="CXX "
32742
32743 # ### BEGIN LIBTOOL CONFIG
32744
32745 # Which release of libtool.m4 was used?
32746 macro_version=$macro_version
32747 macro_revision=$macro_revision
32748
32749 # Whether or not to build shared libraries.
32750 build_libtool_libs=$enable_shared
32751
32752 # Whether or not to build static libraries.
32753 build_old_libs=$enable_static
32754
32755 # What type of objects to build.
32756 pic_mode=$pic_mode
32757
32758 # Whether or not to optimize for fast installation.
32759 fast_install=$enable_fast_install
32760
32761 # Shell to use when invoking shell scripts.
32762 SHELL=$lt_SHELL
32763
32764 # An echo program that protects backslashes.
32765 ECHO=$lt_ECHO
32766
32767 # The PATH separator for the build system.
32768 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32769
32770 # The host system.
32771 host_alias=$host_alias
32772 host=$host
32773 host_os=$host_os
32774
32775 # The build system.
32776 build_alias=$build_alias
32777 build=$build
32778 build_os=$build_os
32779
32780 # A sed program that does not truncate output.
32781 SED=$lt_SED
32782
32783 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32784 Xsed="\$SED -e 1s/^X//"
32785
32786 # A grep program that handles long lines.
32787 GREP=$lt_GREP
32788
32789 # An ERE matcher.
32790 EGREP=$lt_EGREP
32791
32792 # A literal string matcher.
32793 FGREP=$lt_FGREP
32794
32795 # A BSD- or MS-compatible name lister.
32796 NM=$lt_NM
32797
32798 # Whether we need soft or hard links.
32799 LN_S=$lt_LN_S
32800
32801 # What is the maximum length of a command?
32802 max_cmd_len=$max_cmd_len
32803
32804 # Object file suffix (normally "o").
32805 objext=$ac_objext
32806
32807 # Executable file suffix (normally "").
32808 exeext=$exeext
32809
32810 # whether the shell understands "unset".
32811 lt_unset=$lt_unset
32812
32813 # turn spaces into newlines.
32814 SP2NL=$lt_lt_SP2NL
32815
32816 # turn newlines into spaces.
32817 NL2SP=$lt_lt_NL2SP
32818
32819 # convert \$build file names to \$host format.
32820 to_host_file_cmd=$lt_cv_to_host_file_cmd
32821
32822 # convert \$build files to toolchain format.
32823 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32824
32825 # An object symbol dumper.
32826 OBJDUMP=$lt_OBJDUMP
32827
32828 # Method to check whether dependent libraries are shared objects.
32829 deplibs_check_method=$lt_deplibs_check_method
32830
32831 # Command to use when deplibs_check_method = "file_magic".
32832 file_magic_cmd=$lt_file_magic_cmd
32833
32834 # How to find potential files when deplibs_check_method = "file_magic".
32835 file_magic_glob=$lt_file_magic_glob
32836
32837 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32838 want_nocaseglob=$lt_want_nocaseglob
32839
32840 # DLL creation program.
32841 DLLTOOL=$lt_DLLTOOL
32842
32843 # Command to associate shared and link libraries.
32844 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32845
32846 # The archiver.
32847 AR=$lt_AR
32848
32849 # Flags to create an archive.
32850 AR_FLAGS=$lt_AR_FLAGS
32851
32852 # How to feed a file listing to the archiver.
32853 archiver_list_spec=$lt_archiver_list_spec
32854
32855 # A symbol stripping program.
32856 STRIP=$lt_STRIP
32857
32858 # Commands used to install an old-style archive.
32859 RANLIB=$lt_RANLIB
32860 old_postinstall_cmds=$lt_old_postinstall_cmds
32861 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32862
32863 # Whether to use a lock for old archive extraction.
32864 lock_old_archive_extraction=$lock_old_archive_extraction
32865
32866 # A C compiler.
32867 LTCC=$lt_CC
32868
32869 # LTCC compiler flags.
32870 LTCFLAGS=$lt_CFLAGS
32871
32872 # Take the output of nm and produce a listing of raw symbols and C names.
32873 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32874
32875 # Transform the output of nm in a proper C declaration.
32876 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32877
32878 # Transform the output of nm in a C name address pair.
32879 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32880
32881 # Transform the output of nm in a C name address pair when lib prefix is needed.
32882 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32883
32884 # Specify filename containing input files for \$NM.
32885 nm_file_list_spec=$lt_nm_file_list_spec
32886
32887 # The root where to search for dependent libraries,and in which our libraries should be installed.
32888 lt_sysroot=$lt_sysroot
32889
32890 # The name of the directory that contains temporary libtool files.
32891 objdir=$objdir
32892
32893 # Used to examine libraries when file_magic_cmd begins with "file".
32894 MAGIC_CMD=$MAGIC_CMD
32895
32896 # Must we lock files when doing compilation?
32897 need_locks=$lt_need_locks
32898
32899 # Manifest tool.
32900 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32901
32902 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32903 DSYMUTIL=$lt_DSYMUTIL
32904
32905 # Tool to change global to local symbols on Mac OS X.
32906 NMEDIT=$lt_NMEDIT
32907
32908 # Tool to manipulate fat objects and archives on Mac OS X.
32909 LIPO=$lt_LIPO
32910
32911 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32912 OTOOL=$lt_OTOOL
32913
32914 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32915 OTOOL64=$lt_OTOOL64
32916
32917 # Old archive suffix (normally "a").
32918 libext=$libext
32919
32920 # Shared library suffix (normally ".so").
32921 shrext_cmds=$lt_shrext_cmds
32922
32923 # The commands to extract the exported symbol list from a shared archive.
32924 extract_expsyms_cmds=$lt_extract_expsyms_cmds
32925
32926 # Variables whose values should be saved in libtool wrapper scripts and
32927 # restored at link time.
32928 variables_saved_for_relink=$lt_variables_saved_for_relink
32929
32930 # Do we need the "lib" prefix for modules?
32931 need_lib_prefix=$need_lib_prefix
32932
32933 # Do we need a version for libraries?
32934 need_version=$need_version
32935
32936 # Library versioning type.
32937 version_type=$version_type
32938
32939 # Shared library runtime path variable.
32940 runpath_var=$runpath_var
32941
32942 # Shared library path variable.
32943 shlibpath_var=$shlibpath_var
32944
32945 # Is shlibpath searched before the hard-coded library search path?
32946 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
32947
32948 # Format of library name prefix.
32949 libname_spec=$lt_libname_spec
32950
32951 # List of archive names.  First name is the real one, the rest are links.
32952 # The last name is the one that the linker finds with -lNAME
32953 library_names_spec=$lt_library_names_spec
32954
32955 # The coded name of the library, if different from the real name.
32956 soname_spec=$lt_soname_spec
32957
32958 # Permission mode override for installation of shared libraries.
32959 install_override_mode=$lt_install_override_mode
32960
32961 # Command to use after installation of a shared archive.
32962 postinstall_cmds=$lt_postinstall_cmds
32963
32964 # Command to use after uninstallation of a shared archive.
32965 postuninstall_cmds=$lt_postuninstall_cmds
32966
32967 # Commands used to finish a libtool library installation in a directory.
32968 finish_cmds=$lt_finish_cmds
32969
32970 # As "finish_cmds", except a single script fragment to be evaled but
32971 # not shown.
32972 finish_eval=$lt_finish_eval
32973
32974 # Whether we should hardcode library paths into libraries.
32975 hardcode_into_libs=$hardcode_into_libs
32976
32977 # Compile-time system search path for libraries.
32978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
32979
32980 # Run-time system search path for libraries.
32981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
32982
32983 # Whether dlopen is supported.
32984 dlopen_support=$enable_dlopen
32985
32986 # Whether dlopen of programs is supported.
32987 dlopen_self=$enable_dlopen_self
32988
32989 # Whether dlopen of statically linked programs is supported.
32990 dlopen_self_static=$enable_dlopen_self_static
32991
32992 # Commands to strip libraries.
32993 old_striplib=$lt_old_striplib
32994 striplib=$lt_striplib
32995
32996
32997 # The linker used to build libraries.
32998 LD=$lt_LD
32999
33000 # How to create reloadable object files.
33001 reload_flag=$lt_reload_flag
33002 reload_cmds=$lt_reload_cmds
33003
33004 # Commands used to build an old-style archive.
33005 old_archive_cmds=$lt_old_archive_cmds
33006
33007 # A language specific compiler.
33008 CC=$lt_compiler
33009
33010 # Is the compiler the GNU compiler?
33011 with_gcc=$GCC
33012
33013 # Compiler flag to turn off builtin functions.
33014 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33015
33016 # Additional compiler flags for building library objects.
33017 pic_flag=$lt_lt_prog_compiler_pic
33018
33019 # How to pass a linker flag through the compiler.
33020 wl=$lt_lt_prog_compiler_wl
33021
33022 # Compiler flag to prevent dynamic linking.
33023 link_static_flag=$lt_lt_prog_compiler_static
33024
33025 # Does compiler simultaneously support -c and -o options?
33026 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33027
33028 # Whether or not to add -lc for building shared libraries.
33029 build_libtool_need_lc=$archive_cmds_need_lc
33030
33031 # Whether or not to disallow shared libs when runtime libs are static.
33032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33033
33034 # Compiler flag to allow reflexive dlopens.
33035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33036
33037 # Compiler flag to generate shared objects directly from archives.
33038 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33039
33040 # Whether the compiler copes with passing no objects directly.
33041 compiler_needs_object=$lt_compiler_needs_object
33042
33043 # Create an old-style archive from a shared archive.
33044 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33045
33046 # Create a temporary old-style archive to link instead of a shared archive.
33047 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33048
33049 # Commands used to build a shared archive.
33050 archive_cmds=$lt_archive_cmds
33051 archive_expsym_cmds=$lt_archive_expsym_cmds
33052
33053 # Commands used to build a loadable module if different from building
33054 # a shared archive.
33055 module_cmds=$lt_module_cmds
33056 module_expsym_cmds=$lt_module_expsym_cmds
33057
33058 # Whether we are building with GNU ld or not.
33059 with_gnu_ld=$lt_with_gnu_ld
33060
33061 # Flag that allows shared libraries with undefined symbols to be built.
33062 allow_undefined_flag=$lt_allow_undefined_flag
33063
33064 # Flag that enforces no undefined symbols.
33065 no_undefined_flag=$lt_no_undefined_flag
33066
33067 # Flag to hardcode \$libdir into a binary during linking.
33068 # This must work even if \$libdir does not exist
33069 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33070
33071 # Whether we need a single "-rpath" flag with a separated argument.
33072 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33073
33074 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33075 # DIR into the resulting binary.
33076 hardcode_direct=$hardcode_direct
33077
33078 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33079 # DIR into the resulting binary and the resulting library dependency is
33080 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33081 # library is relocated.
33082 hardcode_direct_absolute=$hardcode_direct_absolute
33083
33084 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33085 # into the resulting binary.
33086 hardcode_minus_L=$hardcode_minus_L
33087
33088 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33089 # into the resulting binary.
33090 hardcode_shlibpath_var=$hardcode_shlibpath_var
33091
33092 # Set to "yes" if building a shared library automatically hardcodes DIR
33093 # into the library and all subsequent libraries and executables linked
33094 # against it.
33095 hardcode_automatic=$hardcode_automatic
33096
33097 # Set to yes if linker adds runtime paths of dependent libraries
33098 # to runtime path list.
33099 inherit_rpath=$inherit_rpath
33100
33101 # Whether libtool must link a program against all its dependency libraries.
33102 link_all_deplibs=$link_all_deplibs
33103
33104 # Set to "yes" if exported symbols are required.
33105 always_export_symbols=$always_export_symbols
33106
33107 # The commands to list exported symbols.
33108 export_symbols_cmds=$lt_export_symbols_cmds
33109
33110 # Symbols that should not be listed in the preloaded symbols.
33111 exclude_expsyms=$lt_exclude_expsyms
33112
33113 # Symbols that must always be exported.
33114 include_expsyms=$lt_include_expsyms
33115
33116 # Commands necessary for linking programs (against libraries) with templates.
33117 prelink_cmds=$lt_prelink_cmds
33118
33119 # Commands necessary for finishing linking programs.
33120 postlink_cmds=$lt_postlink_cmds
33121
33122 # Specify filename containing input files.
33123 file_list_spec=$lt_file_list_spec
33124
33125 # How to hardcode a shared library path into an executable.
33126 hardcode_action=$hardcode_action
33127
33128 # The directories searched by this compiler when creating a shared library.
33129 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
33130
33131 # Dependencies to place before and after the objects being linked to
33132 # create a shared library.
33133 predep_objects=$lt_predep_objects
33134 postdep_objects=$lt_postdep_objects
33135 predeps=$lt_predeps
33136 postdeps=$lt_postdeps
33137
33138 # The library search path used internally by the compiler when linking
33139 # a shared library.
33140 compiler_lib_search_path=$lt_compiler_lib_search_path
33141
33142 # ### END LIBTOOL CONFIG
33143
33144 _LT_EOF
33145
33146   case $host_os in
33147   aix3*)
33148     cat <<\_LT_EOF >> "$cfgfile"
33149 # AIX sometimes has problems with the GCC collect2 program.  For some
33150 # reason, if we set the COLLECT_NAMES environment variable, the problems
33151 # vanish in a puff of smoke.
33152 if test "X${COLLECT_NAMES+set}" != Xset; then
33153   COLLECT_NAMES=
33154   export COLLECT_NAMES
33155 fi
33156 _LT_EOF
33157     ;;
33158   esac
33159
33160
33161 ltmain="$ac_aux_dir/ltmain.sh"
33162
33163
33164   # We use sed instead of cat because bash on DJGPP gets confused if
33165   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
33166   # text mode, it properly converts lines to CR/LF.  This bash problem
33167   # is reportedly fixed, but why not run on old versions too?
33168   sed '$q' "$ltmain" >> "$cfgfile" \
33169      || (rm -f "$cfgfile"; exit 1)
33170
33171   if test x"$xsi_shell" = xyes; then
33172   sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33173 func_dirname ()\
33174 {\
33175 \    case ${1} in\
33176 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33177 \      *  ) func_dirname_result="${3}" ;;\
33178 \    esac\
33179 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33180   && mv -f "$cfgfile.tmp" "$cfgfile" \
33181     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33182 test 0 -eq $? || _lt_function_replace_fail=:
33183
33184
33185   sed -e '/^func_basename ()$/,/^} # func_basename /c\
33186 func_basename ()\
33187 {\
33188 \    func_basename_result="${1##*/}"\
33189 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33190   && mv -f "$cfgfile.tmp" "$cfgfile" \
33191     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33192 test 0 -eq $? || _lt_function_replace_fail=:
33193
33194
33195   sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33196 func_dirname_and_basename ()\
33197 {\
33198 \    case ${1} in\
33199 \      */*) func_dirname_result="${1%/*}${2}" ;;\
33200 \      *  ) func_dirname_result="${3}" ;;\
33201 \    esac\
33202 \    func_basename_result="${1##*/}"\
33203 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33204   && mv -f "$cfgfile.tmp" "$cfgfile" \
33205     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33206 test 0 -eq $? || _lt_function_replace_fail=:
33207
33208
33209   sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33210 func_stripname ()\
33211 {\
33212 \    # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33213 \    # positional parameters, so assign one to ordinary parameter first.\
33214 \    func_stripname_result=${3}\
33215 \    func_stripname_result=${func_stripname_result#"${1}"}\
33216 \    func_stripname_result=${func_stripname_result%"${2}"}\
33217 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33218   && mv -f "$cfgfile.tmp" "$cfgfile" \
33219     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33220 test 0 -eq $? || _lt_function_replace_fail=:
33221
33222
33223   sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33224 func_split_long_opt ()\
33225 {\
33226 \    func_split_long_opt_name=${1%%=*}\
33227 \    func_split_long_opt_arg=${1#*=}\
33228 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33229   && mv -f "$cfgfile.tmp" "$cfgfile" \
33230     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33231 test 0 -eq $? || _lt_function_replace_fail=:
33232
33233
33234   sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33235 func_split_short_opt ()\
33236 {\
33237 \    func_split_short_opt_arg=${1#??}\
33238 \    func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33239 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33240   && mv -f "$cfgfile.tmp" "$cfgfile" \
33241     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33242 test 0 -eq $? || _lt_function_replace_fail=:
33243
33244
33245   sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33246 func_lo2o ()\
33247 {\
33248 \    case ${1} in\
33249 \      *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33250 \      *)    func_lo2o_result=${1} ;;\
33251 \    esac\
33252 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33253   && mv -f "$cfgfile.tmp" "$cfgfile" \
33254     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33255 test 0 -eq $? || _lt_function_replace_fail=:
33256
33257
33258   sed -e '/^func_xform ()$/,/^} # func_xform /c\
33259 func_xform ()\
33260 {\
33261     func_xform_result=${1%.*}.lo\
33262 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33263   && mv -f "$cfgfile.tmp" "$cfgfile" \
33264     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33265 test 0 -eq $? || _lt_function_replace_fail=:
33266
33267
33268   sed -e '/^func_arith ()$/,/^} # func_arith /c\
33269 func_arith ()\
33270 {\
33271     func_arith_result=$(( $* ))\
33272 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33273   && mv -f "$cfgfile.tmp" "$cfgfile" \
33274     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33275 test 0 -eq $? || _lt_function_replace_fail=:
33276
33277
33278   sed -e '/^func_len ()$/,/^} # func_len /c\
33279 func_len ()\
33280 {\
33281     func_len_result=${#1}\
33282 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33283   && mv -f "$cfgfile.tmp" "$cfgfile" \
33284     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33285 test 0 -eq $? || _lt_function_replace_fail=:
33286
33287 fi
33288
33289 if test x"$lt_shell_append" = xyes; then
33290   sed -e '/^func_append ()$/,/^} # func_append /c\
33291 func_append ()\
33292 {\
33293     eval "${1}+=\\${2}"\
33294 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33295   && mv -f "$cfgfile.tmp" "$cfgfile" \
33296     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33297 test 0 -eq $? || _lt_function_replace_fail=:
33298
33299
33300   sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33301 func_append_quoted ()\
33302 {\
33303 \    func_quote_for_eval "${2}"\
33304 \    eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33305 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33306   && mv -f "$cfgfile.tmp" "$cfgfile" \
33307     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail=:
33309
33310
33311   # Save a `func_append' function call where possible by direct use of '+='
33312   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33313     && mv -f "$cfgfile.tmp" "$cfgfile" \
33314       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33315   test 0 -eq $? || _lt_function_replace_fail=:
33316 else
33317   # Save a `func_append' function call even when '+=' is not available
33318   sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33319     && mv -f "$cfgfile.tmp" "$cfgfile" \
33320       || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321   test 0 -eq $? || _lt_function_replace_fail=:
33322 fi
33323
33324 if test x"$_lt_function_replace_fail" = x":"; then
33325   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33326 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33327 fi
33328
33329
33330    mv -f "$cfgfile" "$ofile" ||
33331     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33332   chmod +x "$ofile"
33333
33334
33335     cat <<_LT_EOF >> "$ofile"
33336
33337 # ### BEGIN LIBTOOL TAG CONFIG: CXX
33338
33339 # The linker used to build libraries.
33340 LD=$lt_LD_CXX
33341
33342 # How to create reloadable object files.
33343 reload_flag=$lt_reload_flag_CXX
33344 reload_cmds=$lt_reload_cmds_CXX
33345
33346 # Commands used to build an old-style archive.
33347 old_archive_cmds=$lt_old_archive_cmds_CXX
33348
33349 # A language specific compiler.
33350 CC=$lt_compiler_CXX
33351
33352 # Is the compiler the GNU compiler?
33353 with_gcc=$GCC_CXX
33354
33355 # Compiler flag to turn off builtin functions.
33356 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
33357
33358 # Additional compiler flags for building library objects.
33359 pic_flag=$lt_lt_prog_compiler_pic_CXX
33360
33361 # How to pass a linker flag through the compiler.
33362 wl=$lt_lt_prog_compiler_wl_CXX
33363
33364 # Compiler flag to prevent dynamic linking.
33365 link_static_flag=$lt_lt_prog_compiler_static_CXX
33366
33367 # Does compiler simultaneously support -c and -o options?
33368 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
33369
33370 # Whether or not to add -lc for building shared libraries.
33371 build_libtool_need_lc=$archive_cmds_need_lc_CXX
33372
33373 # Whether or not to disallow shared libs when runtime libs are static.
33374 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
33375
33376 # Compiler flag to allow reflexive dlopens.
33377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
33378
33379 # Compiler flag to generate shared objects directly from archives.
33380 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
33381
33382 # Whether the compiler copes with passing no objects directly.
33383 compiler_needs_object=$lt_compiler_needs_object_CXX
33384
33385 # Create an old-style archive from a shared archive.
33386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
33387
33388 # Create a temporary old-style archive to link instead of a shared archive.
33389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
33390
33391 # Commands used to build a shared archive.
33392 archive_cmds=$lt_archive_cmds_CXX
33393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
33394
33395 # Commands used to build a loadable module if different from building
33396 # a shared archive.
33397 module_cmds=$lt_module_cmds_CXX
33398 module_expsym_cmds=$lt_module_expsym_cmds_CXX
33399
33400 # Whether we are building with GNU ld or not.
33401 with_gnu_ld=$lt_with_gnu_ld_CXX
33402
33403 # Flag that allows shared libraries with undefined symbols to be built.
33404 allow_undefined_flag=$lt_allow_undefined_flag_CXX
33405
33406 # Flag that enforces no undefined symbols.
33407 no_undefined_flag=$lt_no_undefined_flag_CXX
33408
33409 # Flag to hardcode \$libdir into a binary during linking.
33410 # This must work even if \$libdir does not exist
33411 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
33412
33413 # Whether we need a single "-rpath" flag with a separated argument.
33414 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
33415
33416 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33417 # DIR into the resulting binary.
33418 hardcode_direct=$hardcode_direct_CXX
33419
33420 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33421 # DIR into the resulting binary and the resulting library dependency is
33422 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33423 # library is relocated.
33424 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
33425
33426 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33427 # into the resulting binary.
33428 hardcode_minus_L=$hardcode_minus_L_CXX
33429
33430 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33431 # into the resulting binary.
33432 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
33433
33434 # Set to "yes" if building a shared library automatically hardcodes DIR
33435 # into the library and all subsequent libraries and executables linked
33436 # against it.
33437 hardcode_automatic=$hardcode_automatic_CXX
33438
33439 # Set to yes if linker adds runtime paths of dependent libraries
33440 # to runtime path list.
33441 inherit_rpath=$inherit_rpath_CXX
33442
33443 # Whether libtool must link a program against all its dependency libraries.
33444 link_all_deplibs=$link_all_deplibs_CXX
33445
33446 # Set to "yes" if exported symbols are required.
33447 always_export_symbols=$always_export_symbols_CXX
33448
33449 # The commands to list exported symbols.
33450 export_symbols_cmds=$lt_export_symbols_cmds_CXX
33451
33452 # Symbols that should not be listed in the preloaded symbols.
33453 exclude_expsyms=$lt_exclude_expsyms_CXX
33454
33455 # Symbols that must always be exported.
33456 include_expsyms=$lt_include_expsyms_CXX
33457
33458 # Commands necessary for linking programs (against libraries) with templates.
33459 prelink_cmds=$lt_prelink_cmds_CXX
33460
33461 # Commands necessary for finishing linking programs.
33462 postlink_cmds=$lt_postlink_cmds_CXX
33463
33464 # Specify filename containing input files.
33465 file_list_spec=$lt_file_list_spec_CXX
33466
33467 # How to hardcode a shared library path into an executable.
33468 hardcode_action=$hardcode_action_CXX
33469
33470 # The directories searched by this compiler when creating a shared library.
33471 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
33472
33473 # Dependencies to place before and after the objects being linked to
33474 # create a shared library.
33475 predep_objects=$lt_predep_objects_CXX
33476 postdep_objects=$lt_postdep_objects_CXX
33477 predeps=$lt_predeps_CXX
33478 postdeps=$lt_postdeps_CXX
33479
33480 # The library search path used internally by the compiler when linking
33481 # a shared library.
33482 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
33483
33484 # ### END LIBTOOL TAG CONFIG: CXX
33485 _LT_EOF
33486
33487  ;;
33488     "default-1":C)
33489     for ac_file in $CONFIG_FILES; do
33490       # Support "outfile[:infile[:infile...]]"
33491       case "$ac_file" in
33492         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
33493       esac
33494       # PO directories have a Makefile.in generated from Makefile.in.in.
33495       case "$ac_file" in */Makefile.in)
33496         # Adjust a relative srcdir.
33497         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
33498         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
33499         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
33500         # In autoconf-2.13 it is called $ac_given_srcdir.
33501         # In autoconf-2.50 it is called $srcdir.
33502         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
33503         case "$ac_given_srcdir" in
33504           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
33505           /*) top_srcdir="$ac_given_srcdir" ;;
33506           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
33507         esac
33508         # Treat a directory as a PO directory if and only if it has a
33509         # POTFILES.in file. This allows packages to have multiple PO
33510         # directories under different names or in different locations.
33511         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
33512           rm -f "$ac_dir/POTFILES"
33513           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
33514           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
33515           POMAKEFILEDEPS="POTFILES.in"
33516           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
33517           # on $ac_dir but don't depend on user-specified configuration
33518           # parameters.
33519           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
33520             # The LINGUAS file contains the set of available languages.
33521             if test -n "$OBSOLETE_ALL_LINGUAS"; then
33522               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
33523             fi
33524             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
33525             # Hide the ALL_LINGUAS assigment from automake.
33526             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
33527             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
33528           else
33529             # The set of available languages was given in configure.in.
33530             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
33531           fi
33532           # Compute POFILES
33533           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
33534           # Compute UPDATEPOFILES
33535           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
33536           # Compute DUMMYPOFILES
33537           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
33538           # Compute GMOFILES
33539           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
33540           case "$ac_given_srcdir" in
33541             .) srcdirpre= ;;
33542             *) srcdirpre='$(srcdir)/' ;;
33543           esac
33544           POFILES=
33545           UPDATEPOFILES=
33546           DUMMYPOFILES=
33547           GMOFILES=
33548           for lang in $ALL_LINGUAS; do
33549             POFILES="$POFILES $srcdirpre$lang.po"
33550             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
33551             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
33552             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
33553           done
33554           # CATALOGS depends on both $ac_dir and the user's LINGUAS
33555           # environment variable.
33556           INST_LINGUAS=
33557           if test -n "$ALL_LINGUAS"; then
33558             for presentlang in $ALL_LINGUAS; do
33559               useit=no
33560               if test "%UNSET%" != "$LINGUAS"; then
33561                 desiredlanguages="$LINGUAS"
33562               else
33563                 desiredlanguages="$ALL_LINGUAS"
33564               fi
33565               for desiredlang in $desiredlanguages; do
33566                 # Use the presentlang catalog if desiredlang is
33567                 #   a. equal to presentlang, or
33568                 #   b. a variant of presentlang (because in this case,
33569                 #      presentlang can be used as a fallback for messages
33570                 #      which are not translated in the desiredlang catalog).
33571                 case "$desiredlang" in
33572                   "$presentlang"*) useit=yes;;
33573                 esac
33574               done
33575               if test $useit = yes; then
33576                 INST_LINGUAS="$INST_LINGUAS $presentlang"
33577               fi
33578             done
33579           fi
33580           CATALOGS=
33581           if test -n "$INST_LINGUAS"; then
33582             for lang in $INST_LINGUAS; do
33583               CATALOGS="$CATALOGS $lang.gmo"
33584             done
33585           fi
33586           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
33587           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"
33588           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
33589             if test -f "$f"; then
33590               case "$f" in
33591                 *.orig | *.bak | *~) ;;
33592                 *) cat "$f" >> "$ac_dir/Makefile" ;;
33593               esac
33594             fi
33595           done
33596         fi
33597         ;;
33598       esac
33599     done ;;
33600     "default":C)
33601  ;;
33602
33603   esac
33604 done # for ac_tag
33605
33606
33607 as_fn_exit 0
33608 _ACEOF
33609 ac_clean_files=$ac_clean_files_save
33610
33611 test $ac_write_fail = 0 ||
33612   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
33613
33614
33615 # configure is writing to config.log, and then calls config.status.
33616 # config.status does its own redirection, appending to config.log.
33617 # Unfortunately, on DOS this fails, as config.log is still kept open
33618 # by configure, so config.status won't be able to write to it; its
33619 # output is simply discarded.  So we exec the FD to /dev/null,
33620 # effectively closing config.log, so it can be properly (re)opened and
33621 # appended to by config.status.  When coming back to configure, we
33622 # need to make the FD available again.
33623 if test "$no_create" != yes; then
33624   ac_cs_success=:
33625   ac_config_status_args=
33626   test "$silent" = yes &&
33627     ac_config_status_args="$ac_config_status_args --quiet"
33628   exec 5>/dev/null
33629   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33630   exec 5>>config.log
33631   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33632   # would make configure fail if this is the last instruction.
33633   $ac_cs_success || as_fn_exit 1
33634 fi
33635 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
33636   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33637 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
33638 fi
33639
33640
33641 if test "${support_bat}" = "yes" ; then
33642    if test "x$QMAKE" = "xnone"; then
33643       as_fn_error $? "Could not find qmake $PATH. Check your Qt installation" "$LINENO" 5
33644    fi
33645
33646    cd src/qt-console
33647    echo "Creating bat Makefile"
33648    touch bat
33649    chmod 755 bat
33650    rm -f Makefile
33651    rm -rf moc32 obj32
33652    $QMAKE
33653    ${MAKE:-make} clean
33654    cd ${BUILD_DIR}
33655 fi
33656
33657 if test X"$GCC" = "Xyes" ; then
33658   echo "Doing make of dependencies"
33659   ${MAKE:-make} depend
33660 fi
33661
33662 cd src/qt-console
33663 chmod 755 install_conf_file build-depkgs-qt-console
33664 cd ${BUILD_DIR}
33665
33666 cd scripts
33667 chmod 755 bacula btraceback mtx-changer
33668 chmod 755 dvd-handler dvd-simulator
33669 chmod 755 bconsole disk-changer devel_bacula logrotate
33670 cd ..
33671
33672 c=updatedb
33673 chmod 755 $c/update_mysql_tables_10_to_11   $c/update_sqlite3_tables_10_to_11
33674 chmod 755 $c/update_postgresql_tables_10_to_11
33675 chmod 755 $c/update_mysql_tables_11_to_12   $c/update_sqlite3_tables_11_to_12
33676 chmod 755 $c/update_postgresql_tables_11_to_12
33677
33678
33679 c=src/cats
33680
33681 chmod 755 $c/create_bacula_database   $c/update_bacula_tables  $c/make_bacula_tables
33682 chmod 755 $c/grant_bacula_privileges  $c/drop_bacula_tables    $c/drop_bacula_database
33683
33684 chmod 755 $c/create_mysql_database    $c/update_mysql_tables   $c/make_mysql_tables
33685 chmod 755 $c/grant_mysql_privileges   $c/drop_mysql_tables     $c/drop_mysql_database
33686
33687 chmod 755 $c/create_sqlite3_database   $c/update_sqlite3_tables  $c/make_sqlite3_tables
33688 chmod 755 $c/grant_sqlite3_privileges  $c/drop_sqlite3_tables    $c/drop_sqlite3_database
33689
33690 chmod 755 $c/create_postgresql_database  $c/update_postgresql_tables $c/make_postgresql_tables
33691 chmod 755 $c/grant_postgresql_privileges $c/drop_postgresql_tables   $c/drop_postgresql_database
33692
33693 chmod 755 $c/make_catalog_backup $c/delete_catalog_backup  $c/make_catalog_backup.pl
33694 chmod 755 $c/sqlite
33695 chmod 755 $c/mysql
33696
33697 chmod 755 $c/install-default-backend
33698
33699 if test "x$ac_cv_sys_largefile_CFLAGS" != "xno" ; then
33700    largefile_support="yes"
33701 fi
33702
33703 if test X"$GCC" = "Xyes" ; then
33704                CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33705    if test "x${CCVERSION}" = "x" ; then
33706       CCVERSION=`${CC} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33707    fi
33708    CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 3 -d ' '`
33709    if test x"${CXXVERSION}" = x ; then
33710       CXXVERSION=`${CXX} --version | tr '\n' ' ' | cut -f 1 -d ' '`
33711    fi
33712 fi
33713
33714 # clean up any old junk
33715 echo " "
33716 echo "Cleaning up"
33717 echo " "
33718 ${MAKE:-make} clean
33719
33720 echo "
33721 Configuration on `date`:
33722
33723    Host:                     ${host}${post_host} -- ${DISTNAME} ${DISTVER}
33724    Bacula version:           ${BACULA} ${VERSION} (${DATE})
33725    Source code location:     ${srcdir}
33726    Install binaries:         ${sbindir}
33727    Install libraries:        ${libdir}
33728    Install config files:     ${sysconfdir}
33729    Scripts directory:        ${scriptdir}
33730    Archive directory:        ${archivedir}
33731    Working directory:        ${working_dir}
33732    PID directory:            ${piddir}
33733    Subsys directory:         ${subsysdir}
33734    Man directory:            ${mandir}
33735    Data directory:           ${datarootdir}
33736    Plugin directory:         ${plugindir}
33737    C Compiler:               ${CC} ${CCVERSION}
33738    C++ Compiler:             ${CXX} ${CXXVERSION}
33739    Compiler flags:           ${WCFLAGS} ${CFLAGS}
33740    Linker flags:             ${WLDFLAGS} ${LDFLAGS}
33741    Libraries:                ${LIBS}
33742    Statically Linked Tools:  ${support_static_tools}
33743    Statically Linked FD:     ${support_static_fd}
33744    Statically Linked SD:     ${support_static_sd}
33745    Statically Linked DIR:    ${support_static_dir}
33746    Statically Linked CONS:   ${support_static_cons}
33747    Database backends:        ${db_backends}
33748    Database port:            ${db_port}
33749    Database name:            ${db_name}
33750    Database user:            ${db_user}
33751    Database SSL options:     ${db_ssl_options}
33752
33753    Job Output Email:         ${job_email}
33754    Traceback Email:          ${dump_email}
33755    SMTP Host Address:        ${smtp_host}
33756
33757    Director Port:            ${dir_port}
33758    File daemon Port:         ${fd_port}
33759    Storage daemon Port:      ${sd_port}
33760
33761    Director User:            ${dir_user}
33762    Director Group:           ${dir_group}
33763    Storage Daemon User:      ${sd_user}
33764    Storage DaemonGroup:      ${sd_group}
33765    File Daemon User:         ${fd_user}
33766    File Daemon Group:        ${fd_group}
33767
33768    Large file support:       $largefile_support
33769    Bacula conio support:     ${got_conio} ${CONS_LIBS}
33770    readline support:         ${got_readline} ${PRTREADLINE_SRC}
33771    TCP Wrappers support:     ${TCPW_MSG} ${WRAPLIBS}
33772    TLS support:              ${support_tls}
33773    Encryption support:       ${support_crypto}
33774    ZLIB support:             ${have_zlib}
33775    LZO support:              ${have_lzo}
33776    enable-smartalloc:        ${support_smartalloc}
33777    enable-lockmgr:           ${support_lockmgr}
33778    bat support:              ${support_bat}
33779    client-only:              ${build_client_only}
33780    build-dird:               ${build_dird}
33781    build-stored:             ${build_stored}
33782    Plugin support:           ${have_plugins}
33783    AFS support:              ${have_afs}
33784    ACL support:              ${have_acl}
33785    XATTR support:            ${have_xattr}
33786    systemd support:          ${support_systemd} ${SYSTEMD_UNITDIR}
33787    Batch insert enabled:     ${batch_insert_db_backends}
33788
33789   " > config.out
33790
33791 # create a small shell script useful for support with
33792 # configure options and config.out info
33793 cat > scripts/bacula_config << EOF
33794 #!/bin/sh
33795 cat << __EOC__
33796 $ $0 $ac_configure_args
33797 EOF
33798 cat config.out >> scripts/bacula_config
33799 echo __EOC__ >> scripts/bacula_config
33800 chmod 755 scripts/bacula_config
33801
33802 cat config.out